diff --git a/.eslintignore b/.eslintignore index 1f3ae7ecb5d..078de549000 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,4 +1,9 @@ +**/node_modules/** /built/local/** /tests/** /lib/** /src/lib/*.generated.d.ts +/scripts/*.js +/scripts/eslint/built/** +/internal/** +/coverage/** diff --git a/.eslintrc.json b/.eslintrc.json index d488734ea8e..5d7deb84933 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -13,6 +13,17 @@ "plugins": [ "@typescript-eslint", "jsdoc", "no-null", "import" ], + "overrides": [ + // By default, the ESLint CLI only looks at .js files. But, it will also look at + // any files which are referenced in an override config. Most users of typescript-eslint + // get this behavior by default by extending a recommended typescript-eslint config, which + // just so happens to override some core ESLint rules. We don't extend from any config, so + // explicitly reference TS files here so the CLI picks them up. + // + // ESLint in VS Code will lint any opened file (so long as it's not eslintignore'd), so + // that will work regardless of the below. + { "files": ["*.ts"] } + ], "rules": { "@typescript-eslint/adjacent-overload-signatures": "error", "@typescript-eslint/array-type": "error", diff --git a/.github/pr_owners.txt b/.github/pr_owners.txt index 60ba7e99b7a..72f6d01d02f 100644 --- a/.github/pr_owners.txt +++ b/.github/pr_owners.txt @@ -1,16 +1,14 @@ sandersn -elibarzilay weswigham andrewbranch RyanCavanaugh sheetalkamat -orta rbuckton ahejlsberg amcasey -jessetrinity minestarks armanio123 gabritto jakebailey DanielRosenwasser +navya9singh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3ea0ee5a4eb..e870951c587 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,10 +31,6 @@ jobs: with: node-version: ${{ matrix.node-version }} check-latest: true - - name: Remove existing TypeScript - run: | - npm uninstall typescript --no-save - npm uninstall tslint --no-save - run: npm ci # Re: https://github.com/actions/setup-node/pull/125 diff --git a/.github/workflows/release-branch-artifact.yaml b/.github/workflows/release-branch-artifact.yaml index 4e1578ecd46..ed039a5accd 100644 --- a/.github/workflows/release-branch-artifact.yaml +++ b/.github/workflows/release-branch-artifact.yaml @@ -12,10 +12,6 @@ jobs: steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v3 - - name: Remove existing TypeScript - run: | - npm uninstall typescript --no-save - npm uninstall tslint --no-save - name: npm install and test run: | npm ci diff --git a/.github/workflows/update-package-lock.yaml b/.github/workflows/update-package-lock.yaml index c5ee25eddf7..55961561d7b 100644 --- a/.github/workflows/update-package-lock.yaml +++ b/.github/workflows/update-package-lock.yaml @@ -16,13 +16,14 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v3 with: - node-version: 14 + node-version: 16 - name: Configure git and update package-lock.json run: | git config user.email "typescriptbot@microsoft.com" git config user.name "TypeScript Bot" - npm install --package-lock-only --ignore-scripts + rm package-lock.json + npm install --package-lock-only --ignore-scripts # This is a no-op if package-lock.json is present. git add -f package-lock.json if git commit -m "Update package-lock.json"; then git push diff --git a/.gitignore b/.gitignore index f63a2aeea02..33df5bf877d 100644 --- a/.gitignore +++ b/.gitignore @@ -54,6 +54,7 @@ scripts/produceLKG.js scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.js scripts/generateLocalizedDiagnosticMessages.js scripts/request-pr-review.js +scripts/errorCheck.js scripts/*.js.map scripts/typings/ coverage/ diff --git a/.vscode/settings.template.json b/.vscode/settings.template.json index f17bc0657b1..bbb5a659755 100644 --- a/.vscode/settings.template.json +++ b/.vscode/settings.template.json @@ -6,7 +6,6 @@ ], "eslint.options": { "rulePaths": ["./scripts/eslint/built/rules/"], - "extensions": [".ts"] }, // To use the last-known-good (LKG) compiler version: // "typescript.tsdk": "lib" diff --git a/Gulpfile.js b/Gulpfile.js index a59894996e6..ec4fafe66ba 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -92,18 +92,12 @@ const localize = async () => { } }; -const buildShims = () => buildProject("src/shims"); -const cleanShims = () => cleanProject("src/shims"); -cleanTasks.push(cleanShims); - const buildDebugTools = () => buildProject("src/debug"); const cleanDebugTools = () => cleanProject("src/debug"); cleanTasks.push(cleanDebugTools); -const buildShimsAndTools = parallel(buildShims, buildDebugTools); - // Pre-build steps when targeting the LKG compiler -const lkgPreBuild = parallel(generateLibs, series(buildScripts, generateDiagnostics, buildShimsAndTools)); +const lkgPreBuild = parallel(generateLibs, series(buildScripts, generateDiagnostics, buildDebugTools)); const buildTsc = () => buildProject("src/tsc"); task("tsc", series(lkgPreBuild, buildTsc)); @@ -119,7 +113,7 @@ task("watch-tsc", series(lkgPreBuild, parallel(watchLib, watchDiagnostics, watch task("watch-tsc").description = "Watch for changes and rebuild the command-line compiler only."; // Pre-build steps when targeting the built/local compiler. -const localPreBuild = parallel(generateLibs, series(buildScripts, generateDiagnostics, buildShimsAndTools, buildTsc)); +const localPreBuild = parallel(generateLibs, series(buildScripts, generateDiagnostics, buildDebugTools, buildTsc)); // Pre-build steps to use based on supplied options. const preBuild = cmdLineOptions.lkg ? lkgPreBuild : localPreBuild; @@ -356,7 +350,6 @@ task("run-eslint-rules-tests").description = "Runs the eslint rule tests"; /** @type { (folder: string) => { (): Promise; displayName?: string } } */ const eslint = (folder) => async () => { - const formatter = cmdLineOptions.ci ? "stylish" : "autolinkable-stylish"; const args = [ "node_modules/eslint/bin/eslint", @@ -364,7 +357,6 @@ const eslint = (folder) => async () => { "--cache-location", `${folder}/.eslintcache`, "--format", formatter, "--rulesdir", "scripts/eslint/built/rules", - "--ext", ".ts", ]; if (cmdLineOptions.fix) { @@ -377,22 +369,12 @@ const eslint = (folder) => async () => { return exec(process.execPath, args); }; -const lintScripts = eslint("scripts"); -lintScripts.displayName = "lint-scripts"; -task("lint-scripts", series([buildEslintRules, lintScripts])); -task("lint-scripts").description = "Runs eslint on the scripts sources."; +const lintRoot = eslint("."); +lintRoot.displayName = "lint"; -const lintCompiler = eslint("src"); -lintCompiler.displayName = "lint-compiler"; -task("lint-compiler", series([buildEslintRules, lintCompiler])); -task("lint-compiler").description = "Runs eslint on the compiler sources."; -task("lint-compiler").flags = { - " --ci": "Runs eslint additional rules", -}; - -const lint = series([buildEslintRules, lintScripts, lintCompiler]); +const lint = series([buildEslintRules, lintRoot]); lint.displayName = "lint"; -task("lint", series([buildEslintRules, lint])); +task("lint", lint); task("lint").description = "Runs eslint on the compiler and scripts sources."; task("lint").flags = { " --ci": "Runs eslint additional rules", diff --git a/package-lock.json b/package-lock.json index e3c8d73aebd..62bca118b3c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,8 +1,8603 @@ { "name": "typescript", - "version": "4.8.0", - "lockfileVersion": 1, + "version": "4.9.0", + "lockfileVersion": 2, "requires": true, + "packages": { + "": { + "name": "typescript", + "version": "4.9.0", + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "devDependencies": { + "@octokit/rest": "latest", + "@types/async": "latest", + "@types/chai": "latest", + "@types/convert-source-map": "latest", + "@types/fs-extra": "^9.0.13", + "@types/glob": "latest", + "@types/gulp": "^4.0.9", + "@types/gulp-concat": "latest", + "@types/gulp-newer": "latest", + "@types/gulp-rename": "latest", + "@types/gulp-sourcemaps": "latest", + "@types/merge2": "latest", + "@types/microsoft__typescript-etw": "latest", + "@types/minimatch": "latest", + "@types/minimist": "latest", + "@types/mkdirp": "latest", + "@types/mocha": "latest", + "@types/ms": "latest", + "@types/node": "latest", + "@types/node-fetch": "^2.6.2", + "@types/q": "latest", + "@types/source-map-support": "latest", + "@types/xml2js": "^0.4.11", + "@typescript-eslint/eslint-plugin": "^5.28.0", + "@typescript-eslint/parser": "^5.28.0", + "@typescript-eslint/utils": "^5.28.0", + "async": "latest", + "azure-devops-node-api": "^11.1.1", + "chai": "latest", + "chalk": "^4.1.2", + "convert-source-map": "latest", + "del": "6.1.1", + "diff": "^5.1.0", + "eslint": "8.17.0", + "eslint-formatter-autolinkable-stylish": "1.2.0", + "eslint-plugin-import": "2.26.0", + "eslint-plugin-jsdoc": "39.3.2", + "eslint-plugin-no-null": "1.0.2", + "fancy-log": "latest", + "fs-extra": "^9.1.0", + "glob": "latest", + "gulp": "^4.0.2", + "gulp-concat": "latest", + "gulp-insert": "latest", + "gulp-newer": "latest", + "gulp-rename": "latest", + "gulp-sourcemaps": "latest", + "merge2": "latest", + "minimist": "latest", + "mkdirp": "latest", + "mocha": "latest", + "mocha-fivemat-progress-reporter": "latest", + "ms": "^2.1.3", + "node-fetch": "^2.6.7", + "prex": "^0.4.7", + "q": "latest", + "source-map-support": "latest", + "typescript": "^4.5.5", + "vinyl": "latest", + "vinyl-sourcemaps-apply": "latest", + "which": "^2.0.2", + "xml2js": "^0.4.23" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/@es-joy/jsdoccomment": { + "version": "0.31.0", + "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.31.0.tgz", + "integrity": "sha512-tc1/iuQcnaiSIUVad72PBierDFpsxdUHtEF/OrfqvM1CBAsIoMP51j52jTMb3dXriwhieTo289InzZj72jL3EQ==", + "dev": true, + "dependencies": { + "comment-parser": "1.3.1", + "esquery": "^1.4.0", + "jsdoc-type-pratt-parser": "~3.1.0" + }, + "engines": { + "node": "^14 || ^16 || ^17 || ^18" + } + }, + "node_modules/@esfx/cancelable": { + "version": "1.0.0-pre.30", + "resolved": "https://registry.npmjs.org/@esfx/cancelable/-/cancelable-1.0.0-pre.30.tgz", + "integrity": "sha512-fo0+/D3tEcSOHdZ8HiCR7qOKl5Tkk6Nw6QJNNXSQ0ejlpP3HU4S2i0rb/tjHQ1EkUcWZfB3g2jzfL0ioQSEgGg==", + "dev": true, + "dependencies": { + "@esfx/disposable": "^1.0.0-pre.30", + "@esfx/internal-deprecate": "^1.0.0-pre.24", + "@esfx/internal-guards": "^1.0.0-pre.23", + "@esfx/internal-tag": "^1.0.0-pre.19" + } + }, + "node_modules/@esfx/disposable": { + "version": "1.0.0-pre.30", + "resolved": "https://registry.npmjs.org/@esfx/disposable/-/disposable-1.0.0-pre.30.tgz", + "integrity": "sha512-njBGIQO+HW+lMqqMjURC+MWn+55ufulgebPLXzlxbwVSz5hZkoCsv6n9sIBQbnvg/PYQmWK5Dk6gDSmFfihTUg==", + "dev": true + }, + "node_modules/@esfx/internal-deprecate": { + "version": "1.0.0-pre.24", + "resolved": "https://registry.npmjs.org/@esfx/internal-deprecate/-/internal-deprecate-1.0.0-pre.24.tgz", + "integrity": "sha512-TSU5k04+nuVQdyfYhaVXxyskdiwYQHgwN20J3cbyRrm/YFi2dOoFSLFvkMNh7LNOPGWSOg6pfAm3kd23ISR3Ow==", + "dev": true + }, + "node_modules/@esfx/internal-guards": { + "version": "1.0.0-pre.23", + "resolved": "https://registry.npmjs.org/@esfx/internal-guards/-/internal-guards-1.0.0-pre.23.tgz", + "integrity": "sha512-y2svuwRERA2eKF1T/Stq+O8kPjicFQcUTob5je3L6iloOHnOD0sX6aQLvheWmTXXS7hAnjlyMeSN/ec84BRyHg==", + "dev": true, + "dependencies": { + "@esfx/type-model": "^1.0.0-pre.23" + } + }, + "node_modules/@esfx/internal-tag": { + "version": "1.0.0-pre.19", + "resolved": "https://registry.npmjs.org/@esfx/internal-tag/-/internal-tag-1.0.0-pre.19.tgz", + "integrity": "sha512-/v1D5LfvBnbvHzL22Vh6yobrOTVCBhsW/l9M+/GRA51eqCN27yTmWGaYUSd1QXp2vxHwNr0sfckVoNtTzeaIqQ==", + "dev": true + }, + "node_modules/@esfx/type-model": { + "version": "1.0.0-pre.23", + "resolved": "https://registry.npmjs.org/@esfx/type-model/-/type-model-1.0.0-pre.23.tgz", + "integrity": "sha512-jwcSY9pqEmGoDNhfT+0LUmSTyk6zXF/pbgKb7KU7mTfCrWfVCT/ve61cD1CreerDRBSat/s55se0lJXwDSjhuA==", + "dev": true + }, + "node_modules/@eslint/eslintrc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.0.tgz", + "integrity": "sha512-UWW0TMTmk2d7hLcWD1/e2g5HDM/HQ3csaLSqXCfqwh4uNDuNqlaKWXmEsL4Cs41Z0KnILNvwbHAah3C2yt06kw==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.3.2", + "globals": "^13.15.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@gulp-sourcemaps/identity-map": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@gulp-sourcemaps/identity-map/-/identity-map-2.0.1.tgz", + "integrity": "sha512-Tb+nSISZku+eQ4X1lAkevcQa+jknn/OVUgZ3XCxEKIsLsqYuPoJwJOPQeaOk75X3WPftb29GWY1eqE7GLsXb1Q==", + "dev": true, + "dependencies": { + "acorn": "^6.4.1", + "normalize-path": "^3.0.0", + "postcss": "^7.0.16", + "source-map": "^0.6.0", + "through2": "^3.0.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/@gulp-sourcemaps/identity-map/node_modules/acorn": { + "version": "6.4.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.4.2.tgz", + "integrity": "sha512-XtGIhXwF8YM8bJhGxG5kXgjkEuNGLTkoYqVE+KMR+aspr4KGYmKYg7yUe3KghyQ9yheNwLnjmzh/7+gfDBmHCQ==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/@gulp-sourcemaps/identity-map/node_modules/through2": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.2.tgz", + "integrity": "sha512-enaDQ4MUyP2W6ZyT6EsMzqBPZaM/avg8iuo+l2d3QCs0J+6RaqkHV/2/lOwDTueBHeJ/2LG9lrLW3d5rWPucuQ==", + "dev": true, + "dependencies": { + "inherits": "^2.0.4", + "readable-stream": "2 || 3" + } + }, + "node_modules/@gulp-sourcemaps/map-sources": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@gulp-sourcemaps/map-sources/-/map-sources-1.0.0.tgz", + "integrity": "sha512-o/EatdaGt8+x2qpb0vFLC/2Gug/xYPRXb6a+ET1wGYKozKN3krDWC/zZFZAtrzxJHuDL12mwdfEFKcKMNvc55A==", + "dev": true, + "dependencies": { + "normalize-path": "^2.0.1", + "through2": "^2.0.3" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/@gulp-sourcemaps/map-sources/node_modules/normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==", + "dev": true, + "dependencies": { + "remove-trailing-separator": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.9.5", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.9.5.tgz", + "integrity": "sha512-ObyMyWxZiCu/yTisA7uzx81s40xR2fD5Cg/2Kq7G02ajkNubJf6BopgDTmDyc3U7sXpNKM8cYOw7s7Tyr+DnCw==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "dev": true + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@octokit/auth-token": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-3.0.1.tgz", + "integrity": "sha512-/USkK4cioY209wXRpund6HZzHo9GmjakpV9ycOkpMcMxMk7QVcVFVyCMtzvXYiHsB2crgDgrtNYSELYFBXhhaA==", + "dev": true, + "dependencies": { + "@octokit/types": "^7.0.0" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/@octokit/core": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@octokit/core/-/core-4.0.5.tgz", + "integrity": "sha512-4R3HeHTYVHCfzSAi0C6pbGXV8UDI5Rk+k3G7kLVNckswN9mvpOzW9oENfjfH3nEmzg8y3AmKmzs8Sg6pLCeOCA==", + "dev": true, + "dependencies": { + "@octokit/auth-token": "^3.0.0", + "@octokit/graphql": "^5.0.0", + "@octokit/request": "^6.0.0", + "@octokit/request-error": "^3.0.0", + "@octokit/types": "^7.0.0", + "before-after-hook": "^2.2.0", + "universal-user-agent": "^6.0.0" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/@octokit/endpoint": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-7.0.1.tgz", + "integrity": "sha512-/wTXAJwt0HzJ2IeE4kQXO+mBScfzyCkI0hMtkIaqyXd9zg76OpOfNQfHL9FlaxAV2RsNiOXZibVWloy8EexENg==", + "dev": true, + "dependencies": { + "@octokit/types": "^7.0.0", + "is-plain-object": "^5.0.0", + "universal-user-agent": "^6.0.0" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/@octokit/graphql": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-5.0.1.tgz", + "integrity": "sha512-sxmnewSwAixkP1TrLdE6yRG53eEhHhDTYUykUwdV9x8f91WcbhunIHk9x1PZLALdBZKRPUO2HRcm4kezZ79HoA==", + "dev": true, + "dependencies": { + "@octokit/request": "^6.0.0", + "@octokit/types": "^7.0.0", + "universal-user-agent": "^6.0.0" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/@octokit/openapi-types": { + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.1.0.tgz", + "integrity": "sha512-Z7vzLqfTkoVQyoy/2iQla1N2I4Vav2wi4JbZK8QxIYAfBimhuflosFxmsqw5LTH7DkdNW46ZYpAcqJf0XaS8SQ==", + "dev": true + }, + "node_modules/@octokit/plugin-paginate-rest": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-4.0.0.tgz", + "integrity": "sha512-g4GJMt/7VDmIMMdQenN6bmsmRoZca1c7IxOdF2yMiMwQYrE2bmmypGQeQSD5rsaffsFMCUS7Br4pMVZamareYA==", + "dev": true, + "dependencies": { + "@octokit/types": "^7.0.0" + }, + "engines": { + "node": ">= 14" + }, + "peerDependencies": { + "@octokit/core": ">=4" + } + }, + "node_modules/@octokit/plugin-request-log": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz", + "integrity": "sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA==", + "dev": true, + "peerDependencies": { + "@octokit/core": ">=3" + } + }, + "node_modules/@octokit/plugin-rest-endpoint-methods": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-6.3.0.tgz", + "integrity": "sha512-qEu2wn6E7hqluZwIEUnDxWROvKjov3zMIAi4H4d7cmKWNMeBprEXZzJe8pE5eStUYC1ysGhD0B7L6IeG1Rfb+g==", + "dev": true, + "dependencies": { + "@octokit/types": "^7.0.0", + "deprecation": "^2.3.1" + }, + "engines": { + "node": ">= 14" + }, + "peerDependencies": { + "@octokit/core": ">=3" + } + }, + "node_modules/@octokit/request": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-6.2.1.tgz", + "integrity": "sha512-gYKRCia3cpajRzDSU+3pt1q2OcuC6PK8PmFIyxZDWCzRXRSIBH8jXjFJ8ZceoygBIm0KsEUg4x1+XcYBz7dHPQ==", + "dev": true, + "dependencies": { + "@octokit/endpoint": "^7.0.0", + "@octokit/request-error": "^3.0.0", + "@octokit/types": "^7.0.0", + "is-plain-object": "^5.0.0", + "node-fetch": "^2.6.7", + "universal-user-agent": "^6.0.0" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/@octokit/request-error": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-3.0.1.tgz", + "integrity": "sha512-ym4Bp0HTP7F3VFssV88WD1ZyCIRoE8H35pXSKwLeMizcdZAYc/t6N9X9Yr9n6t3aG9IH75XDnZ6UeZph0vHMWQ==", + "dev": true, + "dependencies": { + "@octokit/types": "^7.0.0", + "deprecation": "^2.0.0", + "once": "^1.4.0" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/@octokit/rest": { + "version": "19.0.4", + "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-19.0.4.tgz", + "integrity": "sha512-LwG668+6lE8zlSYOfwPj4FxWdv/qFXYBpv79TWIQEpBLKA9D/IMcWsF/U9RGpA3YqMVDiTxpgVpEW3zTFfPFTA==", + "dev": true, + "dependencies": { + "@octokit/core": "^4.0.0", + "@octokit/plugin-paginate-rest": "^4.0.0", + "@octokit/plugin-request-log": "^1.0.4", + "@octokit/plugin-rest-endpoint-methods": "^6.0.0" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/@octokit/types": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-7.1.0.tgz", + "integrity": "sha512-+ClA0jRc9zGFj5mfQeQNfgTlelzhpAexbAueQG1t2Xn8yhgnsjkF8bgLcUUpwrpqkv296uXyiGwkqXRSU7KYzQ==", + "dev": true, + "dependencies": { + "@octokit/openapi-types": "^13.1.0" + } + }, + "node_modules/@types/async": { + "version": "3.2.15", + "resolved": "https://registry.npmjs.org/@types/async/-/async-3.2.15.tgz", + "integrity": "sha512-PAmPfzvFA31mRoqZyTVsgJMsvbynR429UTTxhmfsUCrWGh3/fxOrzqBtaTPJsn4UtzTv4Vb0+/O7CARWb69N4g==", + "dev": true + }, + "node_modules/@types/chai": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.3.tgz", + "integrity": "sha512-hC7OMnszpxhZPduX+m+nrx+uFoLkWOMiR4oa/AZF3MuSETYTZmFfJAHqZEM8MVlvfG7BEUcgvtwoCTxBp6hm3g==", + "dev": true + }, + "node_modules/@types/convert-source-map": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/@types/convert-source-map/-/convert-source-map-1.5.2.tgz", + "integrity": "sha512-tHs++ZeXer40kCF2JpE51Hg7t4HPa18B1b1Dzy96S0eCw8QKECNMYMfwa1edK/x8yCN0r4e6ewvLcc5CsVGkdg==", + "dev": true + }, + "node_modules/@types/expect": { + "version": "1.20.4", + "resolved": "https://registry.npmjs.org/@types/expect/-/expect-1.20.4.tgz", + "integrity": "sha512-Q5Vn3yjTDyCMV50TB6VRIbQNxSE4OmZR86VSbGaNpfUolm0iePBB4KdEEHmxoY5sT2+2DIvXW0rvMDP2nHZ4Mg==", + "dev": true + }, + "node_modules/@types/fs-extra": { + "version": "9.0.13", + "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-9.0.13.tgz", + "integrity": "sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/glob": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.2.0.tgz", + "integrity": "sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==", + "dev": true, + "dependencies": { + "@types/minimatch": "*", + "@types/node": "*" + } + }, + "node_modules/@types/glob-stream": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/@types/glob-stream/-/glob-stream-6.1.1.tgz", + "integrity": "sha512-AGOUTsTdbPkRS0qDeyeS+6KypmfVpbT5j23SN8UPG63qjKXNKjXn6V9wZUr8Fin0m9l8oGYaPK8b2WUMF8xI1A==", + "dev": true, + "dependencies": { + "@types/glob": "*", + "@types/node": "*" + } + }, + "node_modules/@types/gulp": { + "version": "4.0.9", + "resolved": "https://registry.npmjs.org/@types/gulp/-/gulp-4.0.9.tgz", + "integrity": "sha512-zzT+wfQ8uwoXjDhRK9Zkmmk09/fbLLmN/yDHFizJiEKIve85qutOnXcP/TM2sKPBTU+Jc16vfPbOMkORMUBN7Q==", + "dev": true, + "dependencies": { + "@types/undertaker": "*", + "@types/vinyl-fs": "*", + "chokidar": "^3.3.1" + } + }, + "node_modules/@types/gulp-concat": { + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/@types/gulp-concat/-/gulp-concat-0.0.33.tgz", + "integrity": "sha512-8On3yjnwXFKmGWm+P9GKBLzuYW9kGnhd3+sTj6cdIPFchYAEdqhc7Q3egTLK/Oqr083w1Q3SyRPAWEHAuxj4DQ==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/gulp-newer": { + "version": "0.0.32", + "resolved": "https://registry.npmjs.org/@types/gulp-newer/-/gulp-newer-0.0.32.tgz", + "integrity": "sha512-H9KRWsNr4Z/HfUU82yuDT9Vshps8BsUWjOBqUImIsk9iBU2a19d/FIl6yUqCx1juSwzmKx8jbZ45S7zP49aWQw==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/gulp-rename": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/gulp-rename/-/gulp-rename-2.0.1.tgz", + "integrity": "sha512-9ZjeS2RHEnmBmTcyi2+oeye3BgCsWhvi4uv3qCnAg8i6plOuRdaeNxjOves0ELysEXYLBl7bCl5fbVs7AZtgTA==", + "dev": true, + "dependencies": { + "@types/node": "*", + "@types/vinyl": "*" + } + }, + "node_modules/@types/gulp-sourcemaps": { + "version": "0.0.35", + "resolved": "https://registry.npmjs.org/@types/gulp-sourcemaps/-/gulp-sourcemaps-0.0.35.tgz", + "integrity": "sha512-vUBuizwA4CAV3Mke0DJYHQxyN4YOB1aAql284qAO7Et7fe0hmnPi/R9Fhu2UhxMuSxAwFktsJUOQk5dJHOU1eA==", + "dev": true, + "dependencies": { + "@types/node": "*", + "@types/vinyl": "*" + } + }, + "node_modules/@types/json-schema": { + "version": "7.0.11", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", + "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", + "dev": true + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true + }, + "node_modules/@types/merge2": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@types/merge2/-/merge2-1.3.1.tgz", + "integrity": "sha512-aDA8WfZHU/J1OeQmrP+DfGrl1tb0cwNIuiiIqK3+S21gQ+aWg2n4OIvmFHpd2A4yQdZfjikC4XIYVNtX+b9qgg==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/microsoft__typescript-etw": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@types/microsoft__typescript-etw/-/microsoft__typescript-etw-0.1.1.tgz", + "integrity": "sha512-zdgHyZJEwbFKI6zhOqWPsNMhlrAk6qMrn9VMA6VQtRt/F+jNJKeaHIMysuO9oTLv0fWcli0gwUrMv8MeFyb3Sw==", + "dev": true + }, + "node_modules/@types/minimatch": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz", + "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==", + "dev": true + }, + "node_modules/@types/minimist": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz", + "integrity": "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==", + "dev": true + }, + "node_modules/@types/mkdirp": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@types/mkdirp/-/mkdirp-1.0.2.tgz", + "integrity": "sha512-o0K1tSO0Dx5X6xlU5F1D6625FawhC3dU3iqr25lluNv/+/QIVH8RLNEiVokgIZo+mz+87w/3Mkg/VvQS+J51fQ==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/mocha": { + "version": "9.1.1", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-9.1.1.tgz", + "integrity": "sha512-Z61JK7DKDtdKTWwLeElSEBcWGRLY8g95ic5FoQqI9CMx0ns/Ghep3B4DfcEimiKMvtamNVULVNKEsiwV3aQmXw==", + "dev": true + }, + "node_modules/@types/ms": { + "version": "0.7.31", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz", + "integrity": "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==", + "dev": true + }, + "node_modules/@types/node": { + "version": "18.7.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.7.6.tgz", + "integrity": "sha512-EdxgKRXgYsNITy5mjjXjVE/CS8YENSdhiagGrLqjG0pvA2owgJ6i4l7wy/PFZGC0B1/H20lWKN7ONVDNYDZm7A==", + "dev": true + }, + "node_modules/@types/node-fetch": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.2.tgz", + "integrity": "sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==", + "dev": true, + "dependencies": { + "@types/node": "*", + "form-data": "^3.0.0" + } + }, + "node_modules/@types/q": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@types/q/-/q-1.5.5.tgz", + "integrity": "sha512-L28j2FcJfSZOnL1WBjDYp2vUHCeIFlyYI/53EwD/rKUBQ7MtUUfbQWiyKJGpcnv4/WgrhWsFKrcPstcAt/J0tQ==", + "dev": true + }, + "node_modules/@types/source-map-support": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/@types/source-map-support/-/source-map-support-0.5.4.tgz", + "integrity": "sha512-9zGujX1sOPg32XLyfgEB/0G9ZnrjthL/Iv1ZfuAjj8LEilHZEpQSQs1scpRXPhHzGYgWiLz9ldF1cI8JhL+yMw==", + "dev": true, + "dependencies": { + "source-map": "^0.6.0" + } + }, + "node_modules/@types/undertaker": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@types/undertaker/-/undertaker-1.2.8.tgz", + "integrity": "sha512-gW3PRqCHYpo45XFQHJBhch7L6hytPsIe0QeLujlnFsjHPnXLhJcPdN6a9368d7aIQgH2I/dUTPFBlGeSNA3qOg==", + "dev": true, + "dependencies": { + "@types/node": "*", + "@types/undertaker-registry": "*", + "async-done": "~1.3.2" + } + }, + "node_modules/@types/undertaker-registry": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@types/undertaker-registry/-/undertaker-registry-1.0.1.tgz", + "integrity": "sha512-Z4TYuEKn9+RbNVk1Ll2SS4x1JeLHecolIbM/a8gveaHsW0Hr+RQMraZACwTO2VD7JvepgA6UO1A1VrbktQrIbQ==", + "dev": true + }, + "node_modules/@types/vinyl": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/vinyl/-/vinyl-2.0.6.tgz", + "integrity": "sha512-ayJ0iOCDNHnKpKTgBG6Q6JOnHTj9zFta+3j2b8Ejza0e4cvRyMn0ZoLEmbPrTHe5YYRlDYPvPWVdV4cTaRyH7g==", + "dev": true, + "dependencies": { + "@types/expect": "^1.20.4", + "@types/node": "*" + } + }, + "node_modules/@types/vinyl-fs": { + "version": "2.4.12", + "resolved": "https://registry.npmjs.org/@types/vinyl-fs/-/vinyl-fs-2.4.12.tgz", + "integrity": "sha512-LgBpYIWuuGsihnlF+OOWWz4ovwCYlT03gd3DuLwex50cYZLmX3yrW+sFF9ndtmh7zcZpS6Ri47PrIu+fV+sbXw==", + "dev": true, + "dependencies": { + "@types/glob-stream": "*", + "@types/node": "*", + "@types/vinyl": "*" + } + }, + "node_modules/@types/xml2js": { + "version": "0.4.11", + "resolved": "https://registry.npmjs.org/@types/xml2js/-/xml2js-0.4.11.tgz", + "integrity": "sha512-JdigeAKmCyoJUiQljjr7tQG3if9NkqGUgwEUqBvV0N7LM4HyQk7UXCnusRa1lnvXAEYJ8mw8GtZWioagNztOwA==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "5.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.33.1.tgz", + "integrity": "sha512-S1iZIxrTvKkU3+m63YUOxYPKaP+yWDQrdhxTglVDVEVBf+aCSw85+BmJnyUaQQsk5TXFG/LpBu9fa+LrAQ91fQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "5.33.1", + "@typescript-eslint/type-utils": "5.33.1", + "@typescript-eslint/utils": "5.33.1", + "debug": "^4.3.4", + "functional-red-black-tree": "^1.0.1", + "ignore": "^5.2.0", + "regexpp": "^3.2.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^5.0.0", + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "5.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.33.1.tgz", + "integrity": "sha512-IgLLtW7FOzoDlmaMoXdxG8HOCByTBXrB1V2ZQYSEV1ggMmJfAkMWTwUjjzagS6OkfpySyhKFkBw7A9jYmcHpZA==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "5.33.1", + "@typescript-eslint/types": "5.33.1", + "@typescript-eslint/typescript-estree": "5.33.1", + "debug": "^4.3.4" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "5.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.33.1.tgz", + "integrity": "sha512-8ibcZSqy4c5m69QpzJn8XQq9NnqAToC8OdH/W6IXPXv83vRyEDPYLdjAlUx8h/rbusq6MkW4YdQzURGOqsn3CA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.33.1", + "@typescript-eslint/visitor-keys": "5.33.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "5.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.33.1.tgz", + "integrity": "sha512-X3pGsJsD8OiqhNa5fim41YtlnyiWMF/eKsEZGsHID2HcDqeSC5yr/uLOeph8rNF2/utwuI0IQoAK3fpoxcLl2g==", + "dev": true, + "dependencies": { + "@typescript-eslint/utils": "5.33.1", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "5.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.33.1.tgz", + "integrity": "sha512-7K6MoQPQh6WVEkMrMW5QOA5FO+BOwzHSNd0j3+BlBwd6vtzfZceJ8xJ7Um2XDi/O3umS8/qDX6jdy2i7CijkwQ==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "5.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.33.1.tgz", + "integrity": "sha512-JOAzJ4pJ+tHzA2pgsWQi4804XisPHOtbvwUyqsuuq8+y5B5GMZs7lI1xDWs6V2d7gE/Ez5bTGojSK12+IIPtXA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.33.1", + "@typescript-eslint/visitor-keys": "5.33.1", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "5.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.33.1.tgz", + "integrity": "sha512-uphZjkMaZ4fE8CR4dU7BquOV6u0doeQAr8n6cQenl/poMaIyJtBu8eys5uk6u5HiDH01Mj5lzbJ5SfeDz7oqMQ==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.9", + "@typescript-eslint/scope-manager": "5.33.1", + "@typescript-eslint/types": "5.33.1", + "@typescript-eslint/typescript-estree": "5.33.1", + "eslint-scope": "^5.1.1", + "eslint-utils": "^3.0.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "5.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.33.1.tgz", + "integrity": "sha512-nwIxOK8Z2MPWltLKMLOEZwmfBZReqUdbEoHQXeCpa+sRVARe5twpJGHCB4dk9903Yaf0nMAlGbQfaAH92F60eg==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.33.1", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@ungap/promise-all-settled": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz", + "integrity": "sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==", + "dev": true + }, + "node_modules/acorn": { + "version": "8.8.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz", + "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/aggregate-error": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", + "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", + "dev": true, + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-colors": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-1.1.0.tgz", + "integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==", + "dev": true, + "dependencies": { + "ansi-wrap": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ansi-cyan": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-cyan/-/ansi-cyan-0.1.1.tgz", + "integrity": "sha512-eCjan3AVo/SxZ0/MyIYRtkpxIu/H3xZN7URr1vXVrISxeyz8fUFz0FJziamK4sS8I+t35y4rHg1b2PklyBe/7A==", + "dev": true, + "dependencies": { + "ansi-wrap": "0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ansi-gray": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-gray/-/ansi-gray-0.1.1.tgz", + "integrity": "sha512-HrgGIZUl8h2EHuZaU9hTR/cU5nhKxpVE1V6kdGsQ8e4zirElJ5fvtfc8N7Q1oq1aatO275i8pUFUCpNWCAnVWw==", + "dev": true, + "dependencies": { + "ansi-wrap": "0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ansi-red": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", + "integrity": "sha512-ewaIr5y+9CUTGFwZfpECUbFlGcC0GCw1oqR9RI6h1gQCd9Aj2GxSckCnPsVJnmfMZbwFYE+leZGASgkWl06Jow==", + "dev": true, + "dependencies": { + "ansi-wrap": "0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/ansi-wrap": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", + "integrity": "sha512-ZyznvL8k/FZeQHr2T6LzcJ/+vBApDnMNZvfVFy3At0knswWd6rJ3/0Hhmpu8oqa6C92npmozs890sX9Dl6q+Qw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/anymatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", + "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/append-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/append-buffer/-/append-buffer-1.0.2.tgz", + "integrity": "sha512-WLbYiXzD3y/ATLZFufV/rZvWdZOs+Z/+5v1rBZ463Jn398pa6kcde27cvozYnBoxXblGZTFfoPpsaEw0orU5BA==", + "dev": true, + "dependencies": { + "buffer-equal": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/archy": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz", + "integrity": "sha512-Xg+9RwCg/0p32teKdGMPTPnVXKD0w3DfHnFTficozsAgsvq2XenPJq/MYpzzQ/v8zrOyJn6Ds39VA4JIDwFfqw==", + "dev": true + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/arr-diff": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-1.1.0.tgz", + "integrity": "sha512-OQwDZUqYaQwyyhDJHThmzId8daf4/RFNLaeh3AevmSeZ5Y7ug4Ga/yKc6l6kTZOBW781rCj103ZuTh8GAsB3+Q==", + "dev": true, + "dependencies": { + "arr-flatten": "^1.0.1", + "array-slice": "^0.2.3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/arr-diff/node_modules/array-slice": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-0.2.3.tgz", + "integrity": "sha512-rlVfZW/1Ph2SNySXwR9QYkChp8EkOEiTMO5Vwx60usw04i4nWemkm9RXmQqgkQFaLHsqLuADvjp6IfgL9l2M8Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/arr-filter": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/arr-filter/-/arr-filter-1.1.2.tgz", + "integrity": "sha512-A2BETWCqhsecSvCkWAeVBFLH6sXEUGASuzkpjL3GR1SlL/PWL6M3J8EAAld2Uubmh39tvkJTqC9LeLHCUKmFXA==", + "dev": true, + "dependencies": { + "make-iterator": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/arr-flatten": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/arr-map": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/arr-map/-/arr-map-2.0.2.tgz", + "integrity": "sha512-tVqVTHt+Q5Xb09qRkbu+DidW1yYzz5izWS2Xm2yFm7qJnmUfz4HPzNxbHkdRJbz2lrqI7S+z17xNYdFcBBO8Hw==", + "dev": true, + "dependencies": { + "make-iterator": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/arr-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-2.1.0.tgz", + "integrity": "sha512-t5db90jq+qdgk8aFnxEkjqta0B/GHrM1pxzuuZz2zWsOXc5nKu3t+76s/PQBA8FTcM/ipspIH9jWG4OxCBc2eA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-each": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/array-each/-/array-each-1.0.1.tgz", + "integrity": "sha512-zHjL5SZa68hkKHBFBK6DJCTtr9sfTCPCaph/L7tMSLcTFgy+zX7E+6q5UArbtOtMBCtxdICpfTCspRse+ywyXA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-includes": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.5.tgz", + "integrity": "sha512-iSDYZMMyTPkiFasVqfuAQnWAYcvO/SeBSCGKePoEthjp4LEMTe4uLc7b025o4jAZpHhihh8xPo99TNWUWWkGDQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5", + "get-intrinsic": "^1.1.1", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-initial": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/array-initial/-/array-initial-1.1.0.tgz", + "integrity": "sha512-BC4Yl89vneCYfpLrs5JU2aAu9/a+xWbeKhvISg9PT7eWFB9UlRvI+rKEtk6mgxWr3dSkk9gQ8hCrdqt06NXPdw==", + "dev": true, + "dependencies": { + "array-slice": "^1.0.0", + "is-number": "^4.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-initial/node_modules/is-number": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", + "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-last": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/array-last/-/array-last-1.3.0.tgz", + "integrity": "sha512-eOCut5rXlI6aCOS7Z7kCplKRKyiFQ6dHFBem4PwlwKeNFk2/XxTrhRh5T9PyaEWGy/NHTZWbY+nsZlNFJu9rYg==", + "dev": true, + "dependencies": { + "is-number": "^4.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-last/node_modules/is-number": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", + "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-slice": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-1.1.0.tgz", + "integrity": "sha512-B1qMD3RBP7O8o0H2KbrXDyB0IccejMF15+87Lvlor12ONPRHP6gTjXMNkt/d3ZuOGbAe66hFmaCfECI24Ufp6w==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-sort": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-sort/-/array-sort-1.0.0.tgz", + "integrity": "sha512-ihLeJkonmdiAsD7vpgN3CRcx2J2S0TiYW+IS/5zHBI7mKUq3ySvBdzzBfD236ubDBQFiiyG3SWCPc+msQ9KoYg==", + "dev": true, + "dependencies": { + "default-compare": "^1.0.0", + "get-value": "^2.0.6", + "kind-of": "^5.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.0.tgz", + "integrity": "sha512-12IUEkHsAhA4DY5s0FPgNXIdc8VRSqD9Zp78a5au9abH/SOBrsp082JOWFNTjkMozh8mqcdiKuaLGhPeYztxSw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.2", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/assertion-error": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", + "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/assign-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", + "integrity": "sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/async": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", + "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==", + "dev": true + }, + "node_modules/async-done": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/async-done/-/async-done-1.3.2.tgz", + "integrity": "sha512-uYkTP8dw2og1tu1nmza1n1CMW0qb8gWWlwqMmLb7MhBVs4BXrFziT6HXUd+/RlRA/i4H9AkofYloUbs1fwMqlw==", + "dev": true, + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.2", + "process-nextick-args": "^2.0.0", + "stream-exhaust": "^1.0.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/async-each": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.3.tgz", + "integrity": "sha512-z/WhQ5FPySLdvREByI2vZiTWwCnF0moMJ1hK9YQwDTHKh6I7/uSckMetoRGb5UBZPC1z0jlw+n/XCgjeH7y1AQ==", + "dev": true + }, + "node_modules/async-settle": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/async-settle/-/async-settle-1.0.0.tgz", + "integrity": "sha512-VPXfB4Vk49z1LHHodrEQ6Xf7W4gg1w0dAPROHngx7qgDjqmIQ+fXmwgGXTW/ITLai0YLSvWepJOP9EVpMnEAcw==", + "dev": true, + "dependencies": { + "async-done": "^1.2.2" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true + }, + "node_modules/at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "dev": true, + "bin": { + "atob": "bin/atob.js" + }, + "engines": { + "node": ">= 4.5.0" + } + }, + "node_modules/azure-devops-node-api": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/azure-devops-node-api/-/azure-devops-node-api-11.2.0.tgz", + "integrity": "sha512-XdiGPhrpaT5J8wdERRKs5g8E0Zy1pvOYTli7z9E8nmOn3YGp4FhtjhrOyFmX/8veWCwdI69mCHKJw6l+4J/bHA==", + "dev": true, + "dependencies": { + "tunnel": "0.0.6", + "typed-rest-client": "^1.8.4" + } + }, + "node_modules/bach": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/bach/-/bach-1.2.0.tgz", + "integrity": "sha512-bZOOfCb3gXBXbTFXq3OZtGR88LwGeJvzu6szttaIzymOTS4ZttBNOWSv7aLZja2EMycKtRYV0Oa8SNKH/zkxvg==", + "dev": true, + "dependencies": { + "arr-filter": "^1.1.1", + "arr-flatten": "^1.0.1", + "arr-map": "^2.0.0", + "array-each": "^1.0.0", + "array-initial": "^1.0.0", + "array-last": "^1.1.1", + "async-done": "^1.2.2", + "async-settle": "^1.0.0", + "now-and-later": "^2.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/base": { + "version": "0.11.2", + "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", + "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", + "dev": true, + "dependencies": { + "cache-base": "^1.0.1", + "class-utils": "^0.3.5", + "component-emitter": "^1.2.1", + "define-property": "^1.0.0", + "isobject": "^3.0.1", + "mixin-deep": "^1.2.0", + "pascalcase": "^0.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/base/node_modules/define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", + "dev": true, + "dependencies": { + "is-descriptor": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/before-after-hook": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.2.tgz", + "integrity": "sha512-3pZEU3NT5BFUo/AD5ERPWOgQOCZITni6iavr5AUw5AUwQjMlI0kzu5btnyD39AF0gUEsDPwJT+oY1ORBJijPjQ==", + "dev": true + }, + "node_modules/binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/bindings": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", + "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", + "dev": true, + "optional": true, + "dependencies": { + "file-uri-to-path": "1.0.0" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browser-stdout": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", + "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", + "dev": true + }, + "node_modules/buffer-equal": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/buffer-equal/-/buffer-equal-1.0.0.tgz", + "integrity": "sha512-tcBWO2Dl4e7Asr9hTGcpVrCe+F7DubpmqWCTbj4FHLmjqO2hIaC383acQubWtRJhdceqs5uBHs6Es+Sk//RKiQ==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/cache-base": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", + "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", + "dev": true, + "dependencies": { + "collection-visit": "^1.0.0", + "component-emitter": "^1.2.1", + "get-value": "^2.0.6", + "has-value": "^1.0.0", + "isobject": "^3.0.1", + "set-value": "^2.0.0", + "to-object-path": "^0.3.0", + "union-value": "^1.0.0", + "unset-value": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", + "integrity": "sha512-4nhGqUkc4BqbBBB4Q6zLuD7lzzrHYrjKGeYaEji/3tFR5VdJu9v+LilhGIVe8wxEJPPOeWo7eg8dwY13TZ1BNg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/chai": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.6.tgz", + "integrity": "sha512-bbcp3YfHCUzMOvKqsztczerVgBKSsEijCySNlHHbX3VG1nskvqjz5Rfso1gGwD6w6oOV3eI60pKuMOV5MV7p3Q==", + "dev": true, + "dependencies": { + "assertion-error": "^1.1.0", + "check-error": "^1.0.2", + "deep-eql": "^3.0.1", + "get-func-name": "^2.0.0", + "loupe": "^2.3.1", + "pathval": "^1.1.1", + "type-detect": "^4.0.5" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/check-error": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", + "integrity": "sha512-BrgHpW9NURQgzoNyjfq0Wu6VFO6D7IZEmJNdtgNqpzGG8RuNFHt2jQxWlAs4HMe119chBnv+34syEZtc6IhLtA==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/class-utils": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", + "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", + "dev": true, + "dependencies": { + "arr-union": "^3.1.0", + "define-property": "^0.2.5", + "isobject": "^3.0.0", + "static-extend": "^0.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-accessor-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-data-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/cliui": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", + "integrity": "sha512-0yayqDxWQbqk3ojkYqUKqaAQ6AfNKeKWRNA8kR0WXzAsdHpP4BIaOmMAG87JGuO6qcobyW4GjxHd9PmhEd+T9w==", + "dev": true, + "dependencies": { + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wrap-ansi": "^2.0.0" + } + }, + "node_modules/cliui/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/cliui/node_modules/strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", + "dev": true, + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/clone": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==", + "dev": true, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/clone-buffer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/clone-buffer/-/clone-buffer-1.0.0.tgz", + "integrity": "sha512-KLLTJWrvwIP+OPfMn0x2PheDEP20RPUcGXj/ERegTgdmPEZylALQldygiqrPPu8P45uNuPs7ckmReLY6v/iA5g==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/clone-stats": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-1.0.0.tgz", + "integrity": "sha512-au6ydSpg6nsrigcZ4m8Bc9hxjeW+GJ8xh5G3BJCMt4WXe1H10UNaVOamqQTmrx1kjVuxAHIQSNU6hY4Nsn9/ag==", + "dev": true + }, + "node_modules/cloneable-readable": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/cloneable-readable/-/cloneable-readable-1.1.3.tgz", + "integrity": "sha512-2EF8zTQOxYq70Y4XKtorQupqF0m49MBz2/yf5Bj+MHjvpG3Hy7sImifnqD6UA+TKYxeSV+u6qqQPawN5UvnpKQ==", + "dev": true, + "dependencies": { + "inherits": "^2.0.1", + "process-nextick-args": "^2.0.0", + "readable-stream": "^2.3.5" + } + }, + "node_modules/code-point-at": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "integrity": "sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/collection-map": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/collection-map/-/collection-map-1.0.0.tgz", + "integrity": "sha512-5D2XXSpkOnleOI21TG7p3T0bGAsZ/XknZpKBmGYyluO8pw4zA3K8ZlrBIbC4FXg3m6z/RNFiUFfT2sQK01+UHA==", + "dev": true, + "dependencies": { + "arr-map": "^2.0.2", + "for-own": "^1.0.0", + "make-iterator": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/collection-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", + "integrity": "sha512-lNkKvzEeMBBjUGHZ+q6z9pSJla0KWAQPvtzhEV9+iGyQYG+pBpl7xKDhxoNSOZH2hhv0v5k0y2yAM4o4SjoSkw==", + "dev": true, + "dependencies": { + "map-visit": "^1.0.0", + "object-visit": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/color-support": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "dev": true, + "bin": { + "color-support": "bin.js" + } + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/comment-parser": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.3.1.tgz", + "integrity": "sha512-B52sN2VNghyq5ofvUsqZjmk6YkihBX5vMSChmSK9v4ShjKf3Vk5Xcmgpw4o+iIgtrnM/u5FiMpz9VKb8lpBveA==", + "dev": true, + "engines": { + "node": ">= 12.0.0" + } + }, + "node_modules/component-emitter": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", + "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "dev": true, + "engines": [ + "node >= 0.8" + ], + "dependencies": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + } + }, + "node_modules/concat-with-sourcemaps": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz", + "integrity": "sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg==", + "dev": true, + "dependencies": { + "source-map": "^0.6.1" + } + }, + "node_modules/convert-source-map": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", + "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.1" + } + }, + "node_modules/copy-descriptor": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", + "integrity": "sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/copy-props": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/copy-props/-/copy-props-2.0.5.tgz", + "integrity": "sha512-XBlx8HSqrT0ObQwmSzM7WE5k8FxTV75h1DX1Z3n6NhQ/UYYAvInWYmG06vFt7hQZArE2fuO62aihiWIVQwh1sw==", + "dev": true, + "dependencies": { + "each-props": "^1.3.2", + "is-plain-object": "^5.0.0" + } + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/css": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/css/-/css-3.0.0.tgz", + "integrity": "sha512-DG9pFfwOrzc+hawpmqX/dHYHJG+Bsdb0klhyi1sDneOgGOXy9wQIC8hzyVp1e4NRYDBdxcylvywPkkXCHAzTyQ==", + "dev": true, + "dependencies": { + "inherits": "^2.0.4", + "source-map": "^0.6.1", + "source-map-resolve": "^0.6.0" + } + }, + "node_modules/d": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/d/-/d-1.0.1.tgz", + "integrity": "sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==", + "dev": true, + "dependencies": { + "es5-ext": "^0.10.50", + "type": "^1.0.1" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/debug-fabulous": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/debug-fabulous/-/debug-fabulous-1.1.0.tgz", + "integrity": "sha512-GZqvGIgKNlUnHUPQhepnUZFIMoi3dgZKQBzKDeL2g7oJF9SNAji/AAu36dusFUas0O+pae74lNeoIPHqXWDkLg==", + "dev": true, + "dependencies": { + "debug": "3.X", + "memoizee": "0.4.X", + "object-assign": "4.X" + } + }, + "node_modules/debug-fabulous/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/debug/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decode-uri-component": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", + "integrity": "sha512-hjf+xovcEn31w/EUYdTXQh/8smFL/dzYjohQGEIgjyNavaJfBY2p5F527Bo1VPATxv0VYTUC2bOcXvqFwk78Og==", + "dev": true, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/deep-eql": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz", + "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", + "dev": true, + "dependencies": { + "type-detect": "^4.0.0" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/default-compare": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/default-compare/-/default-compare-1.0.0.tgz", + "integrity": "sha512-QWfXlM0EkAbqOCbD/6HjdwT19j7WCkMyiRhWilc4H9/5h/RzTF9gv5LYh1+CmDV5d1rki6KAWLtQale0xt20eQ==", + "dev": true, + "dependencies": { + "kind-of": "^5.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/default-resolution": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/default-resolution/-/default-resolution-2.0.0.tgz", + "integrity": "sha512-2xaP6GiwVwOEbXCGoJ4ufgC76m8cj805jrghScewJC2ZDsb9U0b4BIrba+xt/Uytyd0HvQ6+WymSRTfnYj59GQ==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/define-properties": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz", + "integrity": "sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==", + "dev": true, + "dependencies": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "dev": true, + "dependencies": { + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/del": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/del/-/del-6.1.1.tgz", + "integrity": "sha512-ua8BhapfP0JUJKC/zV9yHHDW/rDoDxP4Zhn3AkA6/xT6gY7jYXJiaeyBZznYVujhZZET+UgcbZiQ7sN3WqcImg==", + "dev": true, + "dependencies": { + "globby": "^11.0.1", + "graceful-fs": "^4.2.4", + "is-glob": "^4.0.1", + "is-path-cwd": "^2.2.0", + "is-path-inside": "^3.0.2", + "p-map": "^4.0.0", + "rimraf": "^3.0.2", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/deprecation": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", + "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", + "dev": true + }, + "node_modules/detect-file": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/detect-file/-/detect-file-1.0.0.tgz", + "integrity": "sha512-DtCOLG98P007x7wiiOmfI0fi3eIKyWiLTGJ2MDnVi/E04lWGbf+JzrRHMm0rgIIZJGtHpKpbVgLWHrv8xXpc3Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/detect-newline": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-2.1.0.tgz", + "integrity": "sha512-CwffZFvlJffUg9zZA0uqrjQayUTC8ob94pnr5sFwaVv3IOmkfUHcWH+jXaQK3askE51Cqe8/9Ql/0uXNwqZ8Zg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/diff": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-5.1.0.tgz", + "integrity": "sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/duplexify": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz", + "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==", + "dev": true, + "dependencies": { + "end-of-stream": "^1.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.0.0", + "stream-shift": "^1.0.0" + } + }, + "node_modules/each-props": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/each-props/-/each-props-1.3.2.tgz", + "integrity": "sha512-vV0Hem3zAGkJAyU7JSjixeU66rwdynTAa1vofCrSA5fEln+m67Az9CcnkVD776/fsN/UjIWmBDoNRS6t6G9RfA==", + "dev": true, + "dependencies": { + "is-plain-object": "^2.0.1", + "object.defaults": "^1.1.0" + } + }, + "node_modules/each-props/node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/es-abstract": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.1.tgz", + "integrity": "sha512-WEm2oBhfoI2sImeM4OF2zE2V3BYdSF+KnSi9Sidz51fQHd7+JuF8Xgcj9/0o+OWeIeIS/MiuNnlruQrJf16GQA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "function.prototype.name": "^1.1.5", + "get-intrinsic": "^1.1.1", + "get-symbol-description": "^1.0.0", + "has": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.3", + "is-callable": "^1.2.4", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-weakref": "^1.0.2", + "object-inspect": "^1.12.0", + "object-keys": "^1.1.1", + "object.assign": "^4.1.2", + "regexp.prototype.flags": "^1.4.3", + "string.prototype.trimend": "^1.0.5", + "string.prototype.trimstart": "^1.0.5", + "unbox-primitive": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-shim-unscopables": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", + "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + } + }, + "node_modules/es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es5-ext": { + "version": "0.10.53", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.53.tgz", + "integrity": "sha512-Xs2Stw6NiNHWypzRTY1MtaG/uJlwCk8kH81920ma8mvN8Xq1gsfhZvpkImLQArw8AHnv8MT2I45J3c0R8slE+Q==", + "dev": true, + "dependencies": { + "es6-iterator": "~2.0.3", + "es6-symbol": "~3.1.3", + "next-tick": "~1.0.0" + } + }, + "node_modules/es5-ext/node_modules/next-tick": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", + "integrity": "sha512-mc/caHeUcdjnC/boPWJefDr4KUIWQNv+tlnFnJd38QMou86QtxQzBJfxgGRzvx8jazYRqrVlaHarfO72uNxPOg==", + "dev": true + }, + "node_modules/es6-iterator": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", + "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==", + "dev": true, + "dependencies": { + "d": "1", + "es5-ext": "^0.10.35", + "es6-symbol": "^3.1.1" + } + }, + "node_modules/es6-symbol": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.3.tgz", + "integrity": "sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==", + "dev": true, + "dependencies": { + "d": "^1.0.1", + "ext": "^1.1.2" + } + }, + "node_modules/es6-weak-map": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.3.tgz", + "integrity": "sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==", + "dev": true, + "dependencies": { + "d": "1", + "es5-ext": "^0.10.46", + "es6-iterator": "^2.0.3", + "es6-symbol": "^3.1.1" + } + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "8.17.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.17.0.tgz", + "integrity": "sha512-gq0m0BTJfci60Fz4nczYxNAlED+sMcihltndR8t9t1evnU/azx53x3t2UHXC/uRjcbvRw/XctpaNygSTcQD+Iw==", + "dev": true, + "dependencies": { + "@eslint/eslintrc": "^1.3.0", + "@humanwhocodes/config-array": "^0.9.2", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.1.1", + "eslint-utils": "^3.0.0", + "eslint-visitor-keys": "^3.3.0", + "espree": "^9.3.2", + "esquery": "^1.4.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "functional-red-black-tree": "^1.0.1", + "glob-parent": "^6.0.1", + "globals": "^13.15.0", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "regexpp": "^3.2.0", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", + "text-table": "^0.2.0", + "v8-compile-cache": "^2.0.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-formatter-autolinkable-stylish": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/eslint-formatter-autolinkable-stylish/-/eslint-formatter-autolinkable-stylish-1.2.0.tgz", + "integrity": "sha512-fID9VwZBc2iLcefBvhwU08KRBa0SQkWoVVtm70o9F8w/nYQaJVtBBzNeTJHRFyt3gOm1NGqyDRxAcddfZ6JQzA==", + "dev": true, + "dependencies": { + "chalk": "^4.1.2", + "plur": "^4.0.0" + }, + "engines": { + "node": ">=0.10.0" + }, + "peerDependencies": { + "eslint": "^8.3.0" + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz", + "integrity": "sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw==", + "dev": true, + "dependencies": { + "debug": "^3.2.7", + "resolve": "^1.20.0" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-module-utils": { + "version": "2.7.4", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.7.4.tgz", + "integrity": "sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA==", + "dev": true, + "dependencies": { + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import": { + "version": "2.26.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.26.0.tgz", + "integrity": "sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.4", + "array.prototype.flat": "^1.2.5", + "debug": "^2.6.9", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.6", + "eslint-module-utils": "^2.7.3", + "has": "^1.0.3", + "is-core-module": "^2.8.1", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.values": "^1.1.5", + "resolve": "^1.22.0", + "tsconfig-paths": "^3.14.1" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" + } + }, + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-import/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/eslint-plugin-jsdoc": { + "version": "39.3.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-39.3.2.tgz", + "integrity": "sha512-RSGN94RYzIJS/WfW3l6cXzRLfJWxvJgNQZ4w0WCaxJWDJMigtwTsILEAfKqmmPkT2rwMH/s3C7G5ChDE6cwPJg==", + "dev": true, + "dependencies": { + "@es-joy/jsdoccomment": "~0.31.0", + "comment-parser": "1.3.1", + "debug": "^4.3.4", + "escape-string-regexp": "^4.0.0", + "esquery": "^1.4.0", + "semver": "^7.3.7", + "spdx-expression-parse": "^3.0.1" + }, + "engines": { + "node": "^14 || ^16 || ^17 || ^18" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + } + }, + "node_modules/eslint-plugin-no-null": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-no-null/-/eslint-plugin-no-null-1.0.2.tgz", + "integrity": "sha512-uRDiz88zCO/2rzGfgG15DBjNsgwWtWiSo4Ezy7zzajUgpnFIqd1TjepKeRmJZHEfBGu58o2a8S0D7vglvvhkVA==", + "dev": true, + "engines": { + "node": ">=5.0.0" + }, + "peerDependencies": { + "eslint": ">=3.0.0" + } + }, + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/eslint-utils": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^2.0.0" + }, + "engines": { + "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": ">=5" + } + }, + "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", + "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/eslint/node_modules/eslint-scope": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", + "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/eslint/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/eslint/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/espree": { + "version": "9.3.3", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.3.3.tgz", + "integrity": "sha512-ORs1Rt/uQTqUKjDdGCyrtYxbazf5umATSf/K4qxjmZHORR6HJk+2s/2Pqe+Kk49HHINC/xNIrGfgh8sZcll0ng==", + "dev": true, + "dependencies": { + "acorn": "^8.8.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", + "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esquery/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/event-emitter": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", + "integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==", + "dev": true, + "dependencies": { + "d": "1", + "es5-ext": "~0.10.14" + } + }, + "node_modules/expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha512-w/ozOKR9Obk3qoWeY/WDi6MFta9AoMR+zud60mdnbniMcBxRuFJyDt2LdX/14A1UABeqk+Uk+LDfUpvoGKppZA==", + "dev": true, + "dependencies": { + "debug": "^2.3.3", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "posix-character-classes": "^0.1.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/expand-brackets/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-accessor-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-data-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/expand-tilde": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-2.0.2.tgz", + "integrity": "sha512-A5EmesHW6rfnZ9ysHQjPdJRni0SRar0tjtG5MNtm9n5TUvsYU8oozprtRD4AqHxcZWWlVuAmQo2nWKfN9oyjTw==", + "dev": true, + "dependencies": { + "homedir-polyfill": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ext": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/ext/-/ext-1.6.0.tgz", + "integrity": "sha512-sdBImtzkq2HpkdRLtlLWDa6w4DX22ijZLKx8BMPUuKe1c5lbN6xwQDQCxSfxBQnHZ13ls/FH0MQZx/q/gr6FQg==", + "dev": true, + "dependencies": { + "type": "^2.5.0" + } + }, + "node_modules/ext/node_modules/type": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", + "dev": true + }, + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "dev": true + }, + "node_modules/extend-shallow": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-1.1.4.tgz", + "integrity": "sha512-L7AGmkO6jhDkEBBGWlLtftA80Xq8DipnrRPr0pyi7GQLXkaq9JYA4xF4z6qnadIC6euiTDKco0cGSU9muw+WTw==", + "dev": true, + "dependencies": { + "kind-of": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extend-shallow/node_modules/kind-of": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-1.1.0.tgz", + "integrity": "sha512-aUH6ElPnMGon2/YkxRIigV32MOpTVcoXQ1Oo8aYn40s+sJ3j+0gFZsT8HKDcxNy7Fi9zuquWtGaGAahOdv5p/g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "dev": true, + "dependencies": { + "array-unique": "^0.3.2", + "define-property": "^1.0.0", + "expand-brackets": "^2.1.4", + "extend-shallow": "^2.0.1", + "fragment-cache": "^0.2.1", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob/node_modules/define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", + "dev": true, + "dependencies": { + "is-descriptor": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fancy-log": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-2.0.0.tgz", + "integrity": "sha512-9CzxZbACXMUXW13tS0tI8XsGGmxWzO2DmYrGuBJOJ8k8q2K7hwfJA5qHjuPPe8wtsco33YR9wc+Rlr5wYFvhSA==", + "dev": true, + "dependencies": { + "color-support": "^1.1.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.2.11", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz", + "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", + "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/file-uri-to-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", + "dev": true, + "optional": true + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/findup-sync": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-3.0.0.tgz", + "integrity": "sha512-YbffarhcicEhOrm4CtrwdKBdCuz576RLdhJDsIfvNtxUuhdRet1qZcsMjqbePtAseKdAnDyM/IyXbu7PRPRLYg==", + "dev": true, + "dependencies": { + "detect-file": "^1.0.0", + "is-glob": "^4.0.0", + "micromatch": "^3.0.4", + "resolve-dir": "^1.0.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/findup-sync/node_modules/arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/findup-sync/node_modules/braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "dev": true, + "dependencies": { + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/findup-sync/node_modules/braces/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/findup-sync/node_modules/braces/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/findup-sync/node_modules/extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "dependencies": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/findup-sync/node_modules/fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==", + "dev": true, + "dependencies": { + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/findup-sync/node_modules/fill-range/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/findup-sync/node_modules/fill-range/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/findup-sync/node_modules/is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/findup-sync/node_modules/is-number/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/findup-sync/node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/findup-sync/node_modules/micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dev": true, + "dependencies": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/findup-sync/node_modules/to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==", + "dev": true, + "dependencies": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fined": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/fined/-/fined-1.2.0.tgz", + "integrity": "sha512-ZYDqPLGxDkDhDZBjZBb+oD1+j0rA4E0pXY50eplAAOPg2N/gUBSSk5IM1/QhPfyVo19lJ+CvXpqfvk+b2p/8Ng==", + "dev": true, + "dependencies": { + "expand-tilde": "^2.0.2", + "is-plain-object": "^2.0.3", + "object.defaults": "^1.1.0", + "object.pick": "^1.2.0", + "parse-filepath": "^1.0.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/fined/node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/flagged-respawn": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/flagged-respawn/-/flagged-respawn-1.0.1.tgz", + "integrity": "sha512-lNaHNVymajmk0OJMBn8fVUAU1BtDeKIqKoVhk4xAALB57aALg6b4W0MfJ/cUE0g9YBXy5XhSlPIpYIJ7HaY/3Q==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/flat": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", + "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", + "dev": true, + "bin": { + "flat": "cli.js" + } + }, + "node_modules/flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "dev": true, + "dependencies": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.6.tgz", + "integrity": "sha512-0sQoMh9s0BYsm+12Huy/rkKxVu4R1+r96YX5cG44rHV0pQ6iC3Q+mkoMFaGWObMFYQxCVT+ssG1ksneA2MI9KQ==", + "dev": true + }, + "node_modules/flush-write-stream": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.1.1.tgz", + "integrity": "sha512-3Z4XhFZ3992uIq0XOqb9AreonueSYphE6oYbpt5+3u06JWklbsPkNv3ZKkP9Bz/r+1MWCaMoSQ28P85+1Yc77w==", + "dev": true, + "dependencies": { + "inherits": "^2.0.3", + "readable-stream": "^2.3.6" + } + }, + "node_modules/for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/for-own": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/for-own/-/for-own-1.0.0.tgz", + "integrity": "sha512-0OABksIGrxKK8K4kynWkQ7y1zounQxP+CWnyclVwj81KW3vlLlGUx57DKGcP/LH216GzqnstnPocF16Nxs0Ycg==", + "dev": true, + "dependencies": { + "for-in": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/form-data": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "dev": true, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fragment-cache": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", + "integrity": "sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA==", + "dev": true, + "dependencies": { + "map-cache": "^0.2.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/fs-mkdirp-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs-mkdirp-stream/-/fs-mkdirp-stream-1.0.0.tgz", + "integrity": "sha512-+vSd9frUnapVC2RZYfL3FCB2p3g4TBhaUmrsWlSudsGdnxIuUvBB2QM1VZeBtc49QFwrp+wQLrDs3+xxDgI5gQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.1.11", + "through2": "^2.0.3" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "node_modules/function.prototype.name": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", + "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.0", + "functions-have-names": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", + "dev": true + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-caller-file": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", + "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", + "dev": true + }, + "node_modules/get-func-name": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", + "integrity": "sha512-Hm0ixYtaSZ/V7C8FJrtZIuBBI+iSgL+1Aq82zSu8VQNB4S3Gk8e7Qs3VwBDJAhmRZcFqkl3tQu36g/Foh5I5ig==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.2.tgz", + "integrity": "sha512-Jfm3OyCxHh9DJyc28qGk+JmfkpO41A4XkneDSujN9MDXrm4oDKdHvndhZ2dN94+ERNfkYJWDclW6k2L/ZGHjXA==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-value": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", + "integrity": "sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-8.0.3.tgz", + "integrity": "sha512-ull455NHSHI/Y1FqGaaYFaLGkNMMJbavMrEGFXG/PGrg6y7sutWHUHrz6gy6WEBH6akM1M414dWKCNs+IhKdiQ==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^5.0.1", + "once": "^1.3.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/glob-stream": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/glob-stream/-/glob-stream-6.1.0.tgz", + "integrity": "sha512-uMbLGAP3S2aDOHUDfdoYcdIePUCfysbAd0IAoWVZbeGU/oNQ8asHVSshLDJUPWxfzj8zsCG7/XeHPHTtow0nsw==", + "dev": true, + "dependencies": { + "extend": "^3.0.0", + "glob": "^7.1.1", + "glob-parent": "^3.1.0", + "is-negated-glob": "^1.0.0", + "ordered-read-streams": "^1.0.0", + "pumpify": "^1.3.5", + "readable-stream": "^2.1.5", + "remove-trailing-separator": "^1.0.1", + "to-absolute-glob": "^2.0.0", + "unique-stream": "^2.0.2" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/glob-stream/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-stream/node_modules/glob-parent": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", + "integrity": "sha512-E8Ak/2+dZY6fnzlR7+ueWvhsH1SjHr4jjss4YS/h4py44jY9MhK/VFdaZJAWDz6BbL21KeteKxFSFpq8OS5gVA==", + "dev": true, + "dependencies": { + "is-glob": "^3.1.0", + "path-dirname": "^1.0.0" + } + }, + "node_modules/glob-stream/node_modules/is-glob": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha512-UFpDDrPgM6qpnFNI+rh/p3bUaq9hKLZN8bMUWzxmcnZVS3omf4IPK+BrewlnWjO1WmUsMYuSjKh4UJuV4+Lqmw==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/glob-watcher/-/glob-watcher-5.0.5.tgz", + "integrity": "sha512-zOZgGGEHPklZNjZQaZ9f41i7F2YwE+tS5ZHrDhbBCk3stwahn5vQxnFmBJZHoYdusR6R1bLSXeGUy/BhctwKzw==", + "dev": true, + "dependencies": { + "anymatch": "^2.0.0", + "async-done": "^1.2.0", + "chokidar": "^2.0.0", + "is-negated-glob": "^1.0.0", + "just-debounce": "^1.0.0", + "normalize-path": "^3.0.0", + "object.defaults": "^1.1.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/glob-watcher/node_modules/anymatch": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", + "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "dev": true, + "dependencies": { + "micromatch": "^3.1.4", + "normalize-path": "^2.1.1" + } + }, + "node_modules/glob-watcher/node_modules/anymatch/node_modules/normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==", + "dev": true, + "dependencies": { + "remove-trailing-separator": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/binary-extensions": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.1.tgz", + "integrity": "sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "dev": true, + "dependencies": { + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/chokidar": { + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.8.tgz", + "integrity": "sha512-ZmZUazfOzf0Nve7duiCKD23PFSCs4JPoYyccjUFF3aQkQadqBhfzhjkwBH2mNOG9cTBwhamM37EIsIkZw3nRgg==", + "deprecated": "Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies", + "dev": true, + "dependencies": { + "anymatch": "^2.0.0", + "async-each": "^1.0.1", + "braces": "^2.3.2", + "glob-parent": "^3.1.0", + "inherits": "^2.0.3", + "is-binary-path": "^1.0.0", + "is-glob": "^4.0.0", + "normalize-path": "^3.0.0", + "path-is-absolute": "^1.0.0", + "readdirp": "^2.2.1", + "upath": "^1.1.1" + }, + "optionalDependencies": { + "fsevents": "^1.2.7" + } + }, + "node_modules/glob-watcher/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==", + "dev": true, + "dependencies": { + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/fsevents": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz", + "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", + "deprecated": "fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "dependencies": { + "bindings": "^1.5.0", + "nan": "^2.12.1" + }, + "engines": { + "node": ">= 4.0" + } + }, + "node_modules/glob-watcher/node_modules/glob-parent": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", + "integrity": "sha512-E8Ak/2+dZY6fnzlR7+ueWvhsH1SjHr4jjss4YS/h4py44jY9MhK/VFdaZJAWDz6BbL21KeteKxFSFpq8OS5gVA==", + "dev": true, + "dependencies": { + "is-glob": "^3.1.0", + "path-dirname": "^1.0.0" + } + }, + "node_modules/glob-watcher/node_modules/glob-parent/node_modules/is-glob": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha512-UFpDDrPgM6qpnFNI+rh/p3bUaq9hKLZN8bMUWzxmcnZVS3omf4IPK+BrewlnWjO1WmUsMYuSjKh4UJuV4+Lqmw==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/is-binary-path": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", + "integrity": "sha512-9fRVlXc0uCxEDj1nQzaWONSpbTfx0FmJfzHF7pwlI8DkWGoHBBea4Pg5Ky0ojwwxQmnSifgbKkI06Qv0Ljgj+Q==", + "dev": true, + "dependencies": { + "binary-extensions": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dev": true, + "dependencies": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/micromatch/node_modules/extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "dependencies": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/micromatch/node_modules/is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "dependencies": { + "is-plain-object": "^2.0.4" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/micromatch/node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/readdirp": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", + "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.1.11", + "micromatch": "^3.1.10", + "readable-stream": "^2.0.2" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/glob-watcher/node_modules/to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==", + "dev": true, + "dependencies": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/glob/node_modules/minimatch": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.0.tgz", + "integrity": "sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/global-modules": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-1.0.0.tgz", + "integrity": "sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg==", + "dev": true, + "dependencies": { + "global-prefix": "^1.0.1", + "is-windows": "^1.0.1", + "resolve-dir": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/global-prefix": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-1.0.2.tgz", + "integrity": "sha512-5lsx1NUDHtSjfg0eHlmYvZKv8/nVqX4ckFbM+FrGcQ+04KWcWFo9P5MxPZYSzUvyzmdTbI7Eix8Q4IbELDqzKg==", + "dev": true, + "dependencies": { + "expand-tilde": "^2.0.2", + "homedir-polyfill": "^1.0.1", + "ini": "^1.3.4", + "is-windows": "^1.0.1", + "which": "^1.2.14" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/global-prefix/node_modules/which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, + "node_modules/globals": { + "version": "13.17.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz", + "integrity": "sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glogg": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/glogg/-/glogg-1.0.2.tgz", + "integrity": "sha512-5mwUoSuBk44Y4EshyiqcH95ZntbDdTQqA3QYSrxmzj28Ai0vXBGMH1ApSANH14j2sIRtqCEyg6PfsuP7ElOEDA==", + "dev": true, + "dependencies": { + "sparkles": "^1.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", + "dev": true + }, + "node_modules/gulp": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/gulp/-/gulp-4.0.2.tgz", + "integrity": "sha512-dvEs27SCZt2ibF29xYgmnwwCYZxdxhQ/+LFWlbAW8y7jt68L/65402Lz3+CKy0Ov4rOs+NERmDq7YlZaDqUIfA==", + "dev": true, + "dependencies": { + "glob-watcher": "^5.0.3", + "gulp-cli": "^2.2.0", + "undertaker": "^1.2.1", + "vinyl-fs": "^3.0.0" + }, + "bin": { + "gulp": "bin/gulp.js" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/gulp-cli": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/gulp-cli/-/gulp-cli-2.3.0.tgz", + "integrity": "sha512-zzGBl5fHo0EKSXsHzjspp3y5CONegCm8ErO5Qh0UzFzk2y4tMvzLWhoDokADbarfZRL2pGpRp7yt6gfJX4ph7A==", + "dev": true, + "dependencies": { + "ansi-colors": "^1.0.1", + "archy": "^1.0.0", + "array-sort": "^1.0.0", + "color-support": "^1.1.3", + "concat-stream": "^1.6.0", + "copy-props": "^2.0.1", + "fancy-log": "^1.3.2", + "gulplog": "^1.0.0", + "interpret": "^1.4.0", + "isobject": "^3.0.1", + "liftoff": "^3.1.0", + "matchdep": "^2.0.0", + "mute-stdout": "^1.0.0", + "pretty-hrtime": "^1.0.0", + "replace-homedir": "^1.0.0", + "semver-greatest-satisfied-range": "^1.1.0", + "v8flags": "^3.2.0", + "yargs": "^7.1.0" + }, + "bin": { + "gulp": "bin/gulp.js" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/gulp-cli/node_modules/fancy-log": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.3.3.tgz", + "integrity": "sha512-k9oEhlyc0FrVh25qYuSELjr8oxsCoc4/LEZfg2iJJrfEk/tZL9bCoJE47gqAvI2m/AUjluCS4+3I0eTx8n3AEw==", + "dev": true, + "dependencies": { + "ansi-gray": "^0.1.1", + "color-support": "^1.1.3", + "parse-node-version": "^1.0.0", + "time-stamp": "^1.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/gulp-concat": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/gulp-concat/-/gulp-concat-2.6.1.tgz", + "integrity": "sha512-a2scActrQrDBpBbR3WUZGyGS1JEPLg5PZJdIa7/Bi3GuKAmPYDK6SFhy/NZq5R8KsKKFvtfR0fakbUCcKGCCjg==", + "dev": true, + "dependencies": { + "concat-with-sourcemaps": "^1.0.0", + "through2": "^2.0.0", + "vinyl": "^2.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/gulp-insert": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/gulp-insert/-/gulp-insert-0.5.0.tgz", + "integrity": "sha512-SDKCWmjomAo0N0Bzj9qEKIfURORJR/72p6AbDBIK9yKZw794ROTrQHliBem+NJzS2GsTWSm8dGWJ5L7KtjnMRA==", + "dev": true, + "dependencies": { + "readable-stream": "^1.0.26-4", + "streamqueue": "0.0.6" + } + }, + "node_modules/gulp-insert/node_modules/isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", + "dev": true + }, + "node_modules/gulp-insert/node_modules/readable-stream": { + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==", + "dev": true, + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, + "node_modules/gulp-insert/node_modules/string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", + "dev": true + }, + "node_modules/gulp-newer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/gulp-newer/-/gulp-newer-1.4.0.tgz", + "integrity": "sha512-h79fGO55S/P9eAADbLAP9aTtVYpLSR1ONj08VPaSdVVNVYhTS8p1CO1TW7kEMu+hC+sytmCqcUr5LesvZEtDoQ==", + "dev": true, + "dependencies": { + "glob": "^7.0.3", + "kew": "^0.7.0", + "plugin-error": "^0.1.2" + } + }, + "node_modules/gulp-newer/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/gulp-rename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/gulp-rename/-/gulp-rename-2.0.0.tgz", + "integrity": "sha512-97Vba4KBzbYmR5VBs9mWmK+HwIf5mj+/zioxfZhOKeXtx5ZjBk57KFlePf5nxq9QsTtFl0ejnHE3zTC9MHXqyQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/gulp-sourcemaps": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/gulp-sourcemaps/-/gulp-sourcemaps-3.0.0.tgz", + "integrity": "sha512-RqvUckJkuYqy4VaIH60RMal4ZtG0IbQ6PXMNkNsshEGJ9cldUPRb/YCgboYae+CLAs1HQNb4ADTKCx65HInquQ==", + "dev": true, + "dependencies": { + "@gulp-sourcemaps/identity-map": "^2.0.1", + "@gulp-sourcemaps/map-sources": "^1.0.0", + "acorn": "^6.4.1", + "convert-source-map": "^1.0.0", + "css": "^3.0.0", + "debug-fabulous": "^1.0.0", + "detect-newline": "^2.0.0", + "graceful-fs": "^4.0.0", + "source-map": "^0.6.0", + "strip-bom-string": "^1.0.0", + "through2": "^2.0.0" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/gulp-sourcemaps/node_modules/acorn": { + "version": "6.4.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.4.2.tgz", + "integrity": "sha512-XtGIhXwF8YM8bJhGxG5kXgjkEuNGLTkoYqVE+KMR+aspr4KGYmKYg7yUe3KghyQ9yheNwLnjmzh/7+gfDBmHCQ==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/gulplog": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/gulplog/-/gulplog-1.0.0.tgz", + "integrity": "sha512-hm6N8nrm3Y08jXie48jsC55eCZz9mnb4OirAStEk2deqeyhXU3C1otDVh+ccttMuc1sBi6RX6ZJ720hs9RCvgw==", + "dev": true, + "dependencies": { + "glogg": "^1.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", + "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", + "integrity": "sha512-IBXk4GTsLYdQ7Rvt+GRBrFSVEkmuOUy4re0Xjd9kJSUQpnTrWR4/y9RpfexN9vkAPMFuQoeWKwqzPozRTlasGw==", + "dev": true, + "dependencies": { + "get-value": "^2.0.6", + "has-values": "^1.0.0", + "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", + "integrity": "sha512-ODYZC64uqzmtfGMEAX/FvZiRyWLpAC3vYnNunURUnkGVTS+mI0smVsWaPydRBsE3g+ok7h960jChO8mFcWlHaQ==", + "dev": true, + "dependencies": { + "is-number": "^3.0.0", + "kind-of": "^4.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values/node_modules/is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values/node_modules/is-number/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values/node_modules/kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha512-24XsCxmEbRwEDbz/qz3stgin8TTzZ1ESR56OMCN0ujYg+vRutNSiOj9bHH9u85DKgXguraugV5sFuvbD4FW/hw==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/he": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", + "dev": true, + "bin": { + "he": "bin/he" + } + }, + "node_modules/homedir-polyfill": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz", + "integrity": "sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==", + "dev": true, + "dependencies": { + "parse-passwd": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "dev": true + }, + "node_modules/ignore": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", + "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", + "dev": true + }, + "node_modules/internal-slot": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz", + "integrity": "sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/interpret": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", + "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/invert-kv": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", + "integrity": "sha512-xgs2NH9AE66ucSq4cNG1nhSFghr5l6tdL15Pk+jl46bmmBapgoaY/AacXyaDznAqmGL99TiLSQgO/XazFSKYeQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/irregular-plurals": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/irregular-plurals/-/irregular-plurals-3.3.0.tgz", + "integrity": "sha512-MVBLKUTangM3EfRPFROhmWQQKRDsrgI83J8GS3jXy+OwYqiR2/aoWndYQ5416jLE3uaGgLH7ncme3X9y09gZ3g==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-absolute": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-1.0.0.tgz", + "integrity": "sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==", + "dev": true, + "dependencies": { + "is-relative": "^1.0.0", + "is-windows": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "dependencies": { + "kind-of": "^6.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-accessor-descriptor/node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "node_modules/is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dev": true, + "dependencies": { + "has-bigints": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, + "node_modules/is-callable": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.4.tgz", + "integrity": "sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.10.0.tgz", + "integrity": "sha512-Erxj2n/LDAZ7H8WNJXd9tw38GYM3dv8rk8Zcs+jJuxYTW7sozH+SS8NtrSjVL1/vpLvWi1hxy96IzjJ3EHTJJg==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "dependencies": { + "kind-of": "^6.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-data-descriptor/node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-descriptor/node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "dependencies": { + "is-plain-object": "^2.0.4" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-extendable/node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==", + "dev": true, + "dependencies": { + "number-is-nan": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-negated-glob": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-negated-glob/-/is-negated-glob-1.0.0.tgz", + "integrity": "sha512-czXVVn/QEmgvej1f50BZ648vUI+em0xqMq2Sn+QncCLN4zj1UAxlT+kw/6ggQTOaZPd1HqKQGEqbpQVtJucWug==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-path-cwd": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", + "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-plain-obj": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", + "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-plain-object": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", + "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-promise": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz", + "integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==", + "dev": true + }, + "node_modules/is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-relative": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-1.0.0.tgz", + "integrity": "sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA==", + "dev": true, + "dependencies": { + "is-unc-path": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-unc-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz", + "integrity": "sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ==", + "dev": true, + "dependencies": { + "unc-path-regex": "^0.1.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-unicode-supported": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", + "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-utf8": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", + "integrity": "sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q==", + "dev": true + }, + "node_modules/is-valid-glob": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-valid-glob/-/is-valid-glob-1.0.0.tgz", + "integrity": "sha512-AhiROmoEFDSsjx8hW+5sGwgKVIORcXnrlAx/R0ZSeaPw70Vw0CqkGBBhHGL58Uox2eXnU1AnvXJl1XlyedO5bA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsdoc-type-pratt-parser": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-3.1.0.tgz", + "integrity": "sha512-MgtD0ZiCDk9B+eI73BextfRrVQl0oyzRG8B2BjORts6jbunj4ScKPcyXGTbB6eXL4y9TzxCm6hyeLq/2ASzNdw==", + "dev": true, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/json5": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", + "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "dev": true, + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/just-debounce": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/just-debounce/-/just-debounce-1.1.0.tgz", + "integrity": "sha512-qpcRocdkUmf+UTNBYx5w6dexX5J31AKK1OmPwH630a83DdVVUIngk55RSAiIGpQyoH0dlr872VHfPjnQnK1qDQ==", + "dev": true + }, + "node_modules/kew": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/kew/-/kew-0.7.0.tgz", + "integrity": "sha512-IG6nm0+QtAMdXt9KvbgbGdvY50RSrw+U4sGZg+KlrSKPJEwVE5JVoI3d7RWfSMdBQneRheeAOj3lIjX5VL/9RQ==", + "dev": true + }, + "node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/last-run": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/last-run/-/last-run-1.1.1.tgz", + "integrity": "sha512-U/VxvpX4N/rFvPzr3qG5EtLKEnNI0emvIQB3/ecEwv+8GHaUKbIB8vxv1Oai5FAF0d0r7LXHhLLe5K/yChm5GQ==", + "dev": true, + "dependencies": { + "default-resolution": "^2.0.0", + "es6-weak-map": "^2.0.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/lazystream": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.1.tgz", + "integrity": "sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==", + "dev": true, + "dependencies": { + "readable-stream": "^2.0.5" + }, + "engines": { + "node": ">= 0.6.3" + } + }, + "node_modules/lcid": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", + "integrity": "sha512-YiGkH6EnGrDGqLMITnGjXtGmNtjoXw9SVUzcaos8RBi7Ps0VBylkq+vOcY9QE5poLasPCR849ucFUkl0UzUyOw==", + "dev": true, + "dependencies": { + "invert-kv": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/lead": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lead/-/lead-1.0.0.tgz", + "integrity": "sha512-IpSVCk9AYvLHo5ctcIXxOBpMWUe+4TKN3VPWAKUbJikkmsGp0VrSM8IttVc32D6J4WUsiPE6aEFRNmIoF/gdow==", + "dev": true, + "dependencies": { + "flush-write-stream": "^1.0.2" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/liftoff": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/liftoff/-/liftoff-3.1.0.tgz", + "integrity": "sha512-DlIPlJUkCV0Ips2zf2pJP0unEoT1kwYhiiPUGF3s/jtxTCjziNLoiVVh+jqWOWeFi6mmwQ5fNxvAUyPad4Dfog==", + "dev": true, + "dependencies": { + "extend": "^3.0.0", + "findup-sync": "^3.0.0", + "fined": "^1.0.1", + "flagged-respawn": "^1.0.0", + "is-plain-object": "^2.0.4", + "object.map": "^1.0.0", + "rechoir": "^0.6.2", + "resolve": "^1.1.7" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/liftoff/node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/load-json-file": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", + "integrity": "sha512-cy7ZdNRXdablkXYNI049pthVeXFurRyb9+hA/dZzerZ0pGTx42z+y+ssxBaVV2l70t1muq5IdKhn4UtcoGUY9A==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.1.2", + "parse-json": "^2.2.0", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0", + "strip-bom": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/load-json-file/node_modules/strip-bom": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", + "integrity": "sha512-kwrX1y7czp1E69n2ajbG65mIo9dqvJ+8aBQXOGVxqwvNbsXdFM6Lq37dLAY3mknUwru8CfcCbfOLL/gMo+fi3g==", + "dev": true, + "dependencies": { + "is-utf8": "^0.2.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/log-symbols": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", + "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "dev": true, + "dependencies": { + "chalk": "^4.1.0", + "is-unicode-supported": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/loupe": { + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.4.tgz", + "integrity": "sha512-OvKfgCC2Ndby6aSTREl5aCCPTNIzlDfQZvZxNUrBrihDhL3xcrYegTblhmEiCrg2kKQz4XsFIaemE5BF4ybSaQ==", + "dev": true, + "dependencies": { + "get-func-name": "^2.0.0" + } + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/lru-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/lru-queue/-/lru-queue-0.1.0.tgz", + "integrity": "sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==", + "dev": true, + "dependencies": { + "es5-ext": "~0.10.2" + } + }, + "node_modules/make-iterator": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/make-iterator/-/make-iterator-1.0.1.tgz", + "integrity": "sha512-pxiuXh0iVEq7VM7KMIhs5gxsfxCux2URptUQaXo4iZZJxBAzTPOLE2BumO5dbfVYq/hBJFBR/a1mFDmOx5AGmw==", + "dev": true, + "dependencies": { + "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/make-iterator/node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/map-cache": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", + "integrity": "sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/map-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", + "integrity": "sha512-4y7uGv8bd2WdM9vpQsiQNo41Ln1NvhvDRuVt0k2JZQ+ezN2uaQes7lZeZ+QQUHOLQAtDaBJ+7wCbi+ab/KFs+w==", + "dev": true, + "dependencies": { + "object-visit": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/matchdep": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/matchdep/-/matchdep-2.0.0.tgz", + "integrity": "sha512-LFgVbaHIHMqCRuCZyfCtUOq9/Lnzhi7Z0KFUE2fhD54+JN2jLh3hC02RLkqauJ3U4soU6H1J3tfj/Byk7GoEjA==", + "dev": true, + "dependencies": { + "findup-sync": "^2.0.0", + "micromatch": "^3.0.4", + "resolve": "^1.4.0", + "stack-trace": "0.0.10" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/matchdep/node_modules/arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/matchdep/node_modules/braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "dev": true, + "dependencies": { + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/matchdep/node_modules/braces/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/matchdep/node_modules/braces/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/matchdep/node_modules/extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "dependencies": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/matchdep/node_modules/fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==", + "dev": true, + "dependencies": { + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/matchdep/node_modules/fill-range/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/matchdep/node_modules/fill-range/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/matchdep/node_modules/findup-sync": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-2.0.0.tgz", + "integrity": "sha512-vs+3unmJT45eczmcAZ6zMJtxN3l/QXeccaXQx5cu/MeJMhewVfoWZqibRkOxPnmoR59+Zy5hjabfQc6JLSah4g==", + "dev": true, + "dependencies": { + "detect-file": "^1.0.0", + "is-glob": "^3.1.0", + "micromatch": "^3.0.4", + "resolve-dir": "^1.0.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/matchdep/node_modules/is-glob": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha512-UFpDDrPgM6qpnFNI+rh/p3bUaq9hKLZN8bMUWzxmcnZVS3omf4IPK+BrewlnWjO1WmUsMYuSjKh4UJuV4+Lqmw==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/matchdep/node_modules/is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/matchdep/node_modules/is-number/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/matchdep/node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/matchdep/node_modules/micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dev": true, + "dependencies": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/matchdep/node_modules/to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==", + "dev": true, + "dependencies": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/memoizee": { + "version": "0.4.15", + "resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.4.15.tgz", + "integrity": "sha512-UBWmJpLZd5STPm7PMUlOw/TSy972M+z8gcyQ5veOnSDRREz/0bmpyTfKt3/51DhEBqCZQn1udM/5flcSPYhkdQ==", + "dev": true, + "dependencies": { + "d": "^1.0.1", + "es5-ext": "^0.10.53", + "es6-weak-map": "^2.0.3", + "event-emitter": "^0.3.5", + "is-promise": "^2.2.2", + "lru-queue": "^0.1.0", + "next-tick": "^1.1.0", + "timers-ext": "^0.1.7" + } + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", + "dev": true + }, + "node_modules/mixin-deep": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", + "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", + "dev": true, + "dependencies": { + "for-in": "^1.0.2", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/mocha": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.0.0.tgz", + "integrity": "sha512-0Wl+elVUD43Y0BqPZBzZt8Tnkw9CMUdNYnUsTfOM1vuhJVZL+kiesFYsqwBkEEuEixaiPe5ZQdqDgX2jddhmoA==", + "dev": true, + "dependencies": { + "@ungap/promise-all-settled": "1.1.2", + "ansi-colors": "4.1.1", + "browser-stdout": "1.3.1", + "chokidar": "3.5.3", + "debug": "4.3.4", + "diff": "5.0.0", + "escape-string-regexp": "4.0.0", + "find-up": "5.0.0", + "glob": "7.2.0", + "he": "1.2.0", + "js-yaml": "4.1.0", + "log-symbols": "4.1.0", + "minimatch": "5.0.1", + "ms": "2.1.3", + "nanoid": "3.3.3", + "serialize-javascript": "6.0.0", + "strip-json-comments": "3.1.1", + "supports-color": "8.1.1", + "workerpool": "6.2.1", + "yargs": "16.2.0", + "yargs-parser": "20.2.4", + "yargs-unparser": "2.0.0" + }, + "bin": { + "_mocha": "bin/_mocha", + "mocha": "bin/mocha.js" + }, + "engines": { + "node": ">= 14.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mochajs" + } + }, + "node_modules/mocha-fivemat-progress-reporter": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/mocha-fivemat-progress-reporter/-/mocha-fivemat-progress-reporter-0.1.0.tgz", + "integrity": "sha512-nCf6dmCEHObJ8BBrcjW+UHYvVtHEL+FliYR/Mfc/v7dKenNmBQ0ZSuvlICgsyQy9Tt581ldvh+SReS4qp4LrQw==", + "dev": true + }, + "node_modules/mocha/node_modules/ansi-colors": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", + "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/mocha/node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/mocha/node_modules/diff": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", + "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/mocha/node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/mocha/node_modules/glob": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", + "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/mocha/node_modules/glob/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/mocha/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/mocha/node_modules/minimatch": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz", + "integrity": "sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/mocha/node_modules/minimatch/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/mocha/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/mocha/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/mocha/node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/mocha/node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/mocha/node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "dev": true, + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "node_modules/mute-stdout": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mute-stdout/-/mute-stdout-1.0.1.tgz", + "integrity": "sha512-kDcwXR4PS7caBpuRYYBUz9iVixUk3anO3f5OYFiIPwK/20vCzKCHyKoulbiDY1S53zD2bxUpxN/IJ+TnXjfvxg==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/nan": { + "version": "2.16.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.16.0.tgz", + "integrity": "sha512-UdAqHyFngu7TfQKsCBgAA6pWDkT8MAO7d0jyOecVhN5354xbLqdn8mV9Tat9gepAupm0bt2DbeaSC8vS52MuFA==", + "dev": true, + "optional": true + }, + "node_modules/nanoid": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz", + "integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==", + "dev": true, + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/nanomatch": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", + "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", + "dev": true, + "dependencies": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "fragment-cache": "^0.2.1", + "is-windows": "^1.0.2", + "kind-of": "^6.0.2", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/nanomatch/node_modules/arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/nanomatch/node_modules/extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "dependencies": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/nanomatch/node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/next-tick": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", + "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==", + "dev": true + }, + "node_modules/node-fetch": { + "version": "2.6.7", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", + "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "dev": true, + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "dependencies": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "node_modules/normalize-package-data/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/now-and-later": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/now-and-later/-/now-and-later-2.0.1.tgz", + "integrity": "sha512-KGvQ0cB70AQfg107Xvs/Fbu+dGmZoTRJp2TaPwcwQm3/7PteUyN2BCgk8KBMPGBUXZdVwyWS8fDCGFygBm19UQ==", + "dev": true, + "dependencies": { + "once": "^1.3.2" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", + "integrity": "sha512-79LYn6VAb63zgtmAteVOWo9Vdj71ZVBy3Pbse+VqxDpEP83XuujMrGqHIwAXJ5I/aM0zU7dIyIAhifVTPrNItQ==", + "dev": true, + "dependencies": { + "copy-descriptor": "^0.1.0", + "define-property": "^0.2.5", + "kind-of": "^3.0.3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-descriptor/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", + "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object-visit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", + "integrity": "sha512-GBaMwwAVK9qbQN3Scdo0OyvgPW7l3lnaVMj84uTOZlswkX0KpF6fyDBJhtTthf7pymztoN36/KEr1DyhF96zEA==", + "dev": true, + "dependencies": { + "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object.assign": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", + "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.defaults": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/object.defaults/-/object.defaults-1.1.0.tgz", + "integrity": "sha512-c/K0mw/F11k4dEUBMW8naXUuBuhxRCfG7W+yFy8EcijU/rSmazOUd1XAEEe6bC0OuXY4HUKjTJv7xbxIMqdxrA==", + "dev": true, + "dependencies": { + "array-each": "^1.0.1", + "array-slice": "^1.0.0", + "for-own": "^1.0.0", + "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object.map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object.map/-/object.map-1.0.1.tgz", + "integrity": "sha512-3+mAJu2PLfnSVGHwIWubpOFLscJANBKuB/6A4CxBstc4aqwQY0FWcsppuy4jU5GSB95yES5JHSI+33AWuS4k6w==", + "dev": true, + "dependencies": { + "for-own": "^1.0.0", + "make-iterator": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object.reduce": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object.reduce/-/object.reduce-1.0.1.tgz", + "integrity": "sha512-naLhxxpUESbNkRqc35oQ2scZSJueHGQNUfMW/0U37IgN6tE2dgDWg3whf+NEliy3F/QysrO48XKUz/nGPe+AQw==", + "dev": true, + "dependencies": { + "for-own": "^1.0.0", + "make-iterator": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object.values": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.5.tgz", + "integrity": "sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/optionator": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "dev": true, + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/ordered-read-streams": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ordered-read-streams/-/ordered-read-streams-1.0.1.tgz", + "integrity": "sha512-Z87aSjx3r5c0ZB7bcJqIgIRX5bxR7A4aSzvIbaxd0oTkWBCOoKfuGHiKj60CHVUgg1Phm5yMZzBdt8XqRs73Mw==", + "dev": true, + "dependencies": { + "readable-stream": "^2.0.1" + } + }, + "node_modules/os-locale": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", + "integrity": "sha512-PRT7ZORmwu2MEFt4/fv3Q+mEfN4zetKxufQrkShY2oGvUms9r8otu5HfdyIFHkYXjO7laNsoVGmM2MANfuTA8g==", + "dev": true, + "dependencies": { + "lcid": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-map": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", + "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", + "dev": true, + "dependencies": { + "aggregate-error": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-filepath": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/parse-filepath/-/parse-filepath-1.0.2.tgz", + "integrity": "sha512-FwdRXKCohSVeXqwtYonZTXtbGJKrn+HNyWDYVcp5yuJlesTwNH4rsmRZ+GrKAPJ5bLpRxESMeS+Rl0VCHRvB2Q==", + "dev": true, + "dependencies": { + "is-absolute": "^1.0.0", + "map-cache": "^0.2.0", + "path-root": "^0.1.1" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/parse-json": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", + "integrity": "sha512-QR/GGaKCkhwk1ePQNYDRKYZ3mwU9ypsKhB0XyFnLQdomyEqk3e8wpW3V5Jp88zbxK4n5ST1nqo+g9juTpownhQ==", + "dev": true, + "dependencies": { + "error-ex": "^1.2.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/parse-node-version": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parse-node-version/-/parse-node-version-1.0.1.tgz", + "integrity": "sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/parse-passwd": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz", + "integrity": "sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pascalcase": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", + "integrity": "sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-dirname": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", + "integrity": "sha512-ALzNPpyNq9AqXMBjeymIjFDAkAFH06mHJH/cSBHAgU0s4vfpBn6b2nf8tiRLvagKD8RbTpq2FKTBg7cl9l3c7Q==", + "dev": true + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/path-root": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz", + "integrity": "sha512-QLcPegTHF11axjfojBIoDygmS2E3Lf+8+jI6wOVmNVenrKSo3mFdSGiIgdSHenczw3wPtlVMQaFVwGmM7BJdtg==", + "dev": true, + "dependencies": { + "path-root-regex": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-root-regex": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/path-root-regex/-/path-root-regex-0.1.2.tgz", + "integrity": "sha512-4GlJ6rZDhQZFE0DPVKh0e9jmZ5egZfxTkp7bcRDuPlJXbAwhxcl2dINPUAsjLdejqaLsCeg8axcLjIbvBjN4pQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/pathval": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", + "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pinkie": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", + "integrity": "sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pinkie-promise": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "integrity": "sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw==", + "dev": true, + "dependencies": { + "pinkie": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/plugin-error": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-0.1.2.tgz", + "integrity": "sha512-WzZHcm4+GO34sjFMxQMqZbsz3xiNEgonCskQ9v+IroMmYgk/tas8dG+Hr2D6IbRPybZ12oWpzE/w3cGJ6FJzOw==", + "dev": true, + "dependencies": { + "ansi-cyan": "^0.1.1", + "ansi-red": "^0.1.1", + "arr-diff": "^1.0.1", + "arr-union": "^2.0.1", + "extend-shallow": "^1.1.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/plur": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/plur/-/plur-4.0.0.tgz", + "integrity": "sha512-4UGewrYgqDFw9vV6zNV+ADmPAUAfJPKtGvb/VdpQAx25X5f3xXdGdyOEVFwkl8Hl/tl7+xbeHqSEM+D5/TirUg==", + "dev": true, + "dependencies": { + "irregular-plurals": "^3.2.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/posix-character-classes": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", + "integrity": "sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/pretty-hrtime": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz", + "integrity": "sha512-66hKPCr+72mlfiSjlEB1+45IjXSqvVAIy6mocupoww4tBFE9R9IhwwUGoI4G++Tc9Aq+2rxOt0RFU6gPcrte0A==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/prex": { + "version": "0.4.7", + "resolved": "https://registry.npmjs.org/prex/-/prex-0.4.7.tgz", + "integrity": "sha512-ulhl3iyjmAW/GroRQJN4CG+pC6KJ+W+deNRBkEShQwe16wLP9k92+x6RmLJuLiVSGkbxhnAqHpGdJJCh3bRpUQ==", + "dev": true, + "dependencies": { + "@esfx/cancelable": "^1.0.0-pre.13", + "@esfx/disposable": "^1.0.0-pre.13" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true + }, + "node_modules/pump": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", + "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", + "dev": true, + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/pumpify": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-1.5.1.tgz", + "integrity": "sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==", + "dev": true, + "dependencies": { + "duplexify": "^3.6.0", + "inherits": "^2.0.3", + "pump": "^2.0.0" + } + }, + "node_modules/punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/q": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==", + "dev": true, + "engines": { + "node": ">=0.6.0", + "teleport": ">=0.2.0" + } + }, + "node_modules/qs": { + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "dev": true, + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, + "node_modules/read-pkg": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", + "integrity": "sha512-7BGwRHqt4s/uVbuyoeejRn4YmFnYZiFl4AuaeXHlgZf3sONF0SOGlxs2Pw8g6hCKupo08RafIO5YXFNOKTfwsQ==", + "dev": true, + "dependencies": { + "load-json-file": "^1.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/read-pkg-up": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", + "integrity": "sha512-WD9MTlNtI55IwYUS27iHh9tK3YoIVhxis8yKhLpTqWtml739uXc9NWTpxoHkfZf3+DkCCsXox94/VWZniuZm6A==", + "dev": true, + "dependencies": { + "find-up": "^1.0.0", + "read-pkg": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/read-pkg-up/node_modules/find-up": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", + "integrity": "sha512-jvElSjyuo4EMQGoTwo1uJU5pQMwTW5lS1x05zzfJuTIyLR3zwO27LYrxNg+dlvKpGOuGy/MzBdXh80g0ve5+HA==", + "dev": true, + "dependencies": { + "path-exists": "^2.0.0", + "pinkie-promise": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/read-pkg-up/node_modules/path-exists": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", + "integrity": "sha512-yTltuKuhtNeFJKa1PiRzfLAU5182q1y4Eb4XCJ3PBqyzEDkAZRzBrKKBct682ls9reBVHf9udYLN5Nd+K1B9BQ==", + "dev": true, + "dependencies": { + "pinkie-promise": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/read-pkg/node_modules/path-type": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", + "integrity": "sha512-S4eENJz1pkiQn9Znv33Q+deTOKmbl+jj1Fl+qiP/vYezj+S8x+J3Uo0ISrx/QoEvIlOaDWJhPaRd1flJ9HXZqg==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.1.2", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dev": true, + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/rechoir": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", + "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", + "dev": true, + "dependencies": { + "resolve": "^1.1.6" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/regex-not": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", + "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", + "dev": true, + "dependencies": { + "extend-shallow": "^3.0.2", + "safe-regex": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/regex-not/node_modules/extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "dependencies": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/regexp.prototype.flags": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", + "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "functions-have-names": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/regexpp": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", + "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + } + }, + "node_modules/remove-bom-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/remove-bom-buffer/-/remove-bom-buffer-3.0.0.tgz", + "integrity": "sha512-8v2rWhaakv18qcvNeli2mZ/TMTL2nEyAKRvzo1WtnZBl15SHyEhrCu2/xKlJyUFKHiHgfXIyuY6g2dObJJycXQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5", + "is-utf8": "^0.2.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/remove-bom-stream": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/remove-bom-stream/-/remove-bom-stream-1.2.0.tgz", + "integrity": "sha512-wigO8/O08XHb8YPzpDDT+QmRANfW6vLqxfaXm1YXhnFf3AkSLyjfG3GEFg4McZkmgL7KvCj5u2KczkvSP6NfHA==", + "dev": true, + "dependencies": { + "remove-bom-buffer": "^3.0.0", + "safe-buffer": "^5.1.0", + "through2": "^2.0.3" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/remove-trailing-separator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", + "integrity": "sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw==", + "dev": true + }, + "node_modules/repeat-element": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.4.tgz", + "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", + "dev": true, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/replace-ext": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.1.tgz", + "integrity": "sha512-yD5BHCe7quCgBph4rMQ+0KkIRKwWCrHDOX1p1Gp6HwjPM5kVoCdKGNhN7ydqqsX6lJEnQDKZ/tFMiEdQ1dvPEw==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/replace-homedir": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/replace-homedir/-/replace-homedir-1.0.0.tgz", + "integrity": "sha512-CHPV/GAglbIB1tnQgaiysb8H2yCy8WQ7lcEwQ/eT+kLj0QHV8LnJW0zpqpE7RSkrMSRoa+EBoag86clf7WAgSg==", + "dev": true, + "dependencies": { + "homedir-polyfill": "^1.0.1", + "is-absolute": "^1.0.0", + "remove-trailing-separator": "^1.1.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-main-filename": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", + "integrity": "sha512-IqSUtOVP4ksd1C/ej5zeEh/BIP2ajqpn8c5x+q99gvcIG/Qf0cud5raVnE/Dwd0ua9TXYDoDc0RE5hBSdz22Ug==", + "dev": true + }, + "node_modules/resolve": { + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", + "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", + "dev": true, + "dependencies": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-dir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-1.0.1.tgz", + "integrity": "sha512-R7uiTjECzvOsWSfdM0QKFNBVFcK27aHOUwdvK53BcW8zqnGdYp0Fbj82cy54+2A4P2tFM22J5kRfe1R+lM/1yg==", + "dev": true, + "dependencies": { + "expand-tilde": "^2.0.0", + "global-modules": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/resolve-options": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/resolve-options/-/resolve-options-1.1.0.tgz", + "integrity": "sha512-NYDgziiroVeDC29xq7bp/CacZERYsA9bXYd1ZmcJlF3BcrZv5pTb4NG7SjdyKDnXZ84aC4vo2u6sNKIA1LCu/A==", + "dev": true, + "dependencies": { + "value-or-function": "^3.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/resolve-url": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", + "integrity": "sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg==", + "deprecated": "https://github.com/lydell/resolve-url#deprecated", + "dev": true + }, + "node_modules/ret": { + "version": "0.1.15", + "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", + "dev": true, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "node_modules/safe-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "integrity": "sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg==", + "dev": true, + "dependencies": { + "ret": "~0.1.10" + } + }, + "node_modules/sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", + "dev": true + }, + "node_modules/semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver-greatest-satisfied-range": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/semver-greatest-satisfied-range/-/semver-greatest-satisfied-range-1.1.0.tgz", + "integrity": "sha512-Ny/iyOzSSa8M5ML46IAx3iXc6tfOsYU2R4AXi2UpHk60Zrgyq6eqPj/xiOfS0rRl/iiQ/rdJkVjw/5cdUyCntQ==", + "dev": true, + "dependencies": { + "sver-compat": "^1.5.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/serialize-javascript": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", + "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", + "dev": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", + "dev": true + }, + "node_modules/set-value": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", + "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", + "dev": true, + "dependencies": { + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.3", + "split-string": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/set-value/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/set-value/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/set-value/node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/snapdragon": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", + "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", + "dev": true, + "dependencies": { + "base": "^0.11.1", + "debug": "^2.2.0", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "map-cache": "^0.2.2", + "source-map": "^0.5.6", + "source-map-resolve": "^0.5.0", + "use": "^3.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-node": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", + "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", + "dev": true, + "dependencies": { + "define-property": "^1.0.0", + "isobject": "^3.0.0", + "snapdragon-util": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-node/node_modules/define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", + "dev": true, + "dependencies": { + "is-descriptor": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-util": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", + "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", + "dev": true, + "dependencies": { + "kind-of": "^3.2.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-util/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/snapdragon/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-accessor-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-data-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/snapdragon/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/source-map-resolve": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", + "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", + "deprecated": "See https://github.com/lydell/source-map-resolve#deprecated", + "dev": true, + "dependencies": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-resolve": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.6.0.tgz", + "integrity": "sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==", + "deprecated": "See https://github.com/lydell/source-map-resolve#deprecated", + "dev": true, + "dependencies": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/source-map-url": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.1.tgz", + "integrity": "sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==", + "deprecated": "See https://github.com/lydell/source-map-url#deprecated", + "dev": true + }, + "node_modules/sparkles": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/sparkles/-/sparkles-1.0.1.tgz", + "integrity": "sha512-dSO0DDYUahUt/0/pD/Is3VIm5TGJjludZ0HVymmhYF6eNA53PVLhnUk0znSYbH8IYBuJdCE+1luR22jNLMaQdw==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/spdx-correct": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", + "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", + "dev": true, + "dependencies": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-exceptions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", + "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", + "dev": true + }, + "node_modules/spdx-expression-parse": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", + "dev": true, + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-license-ids": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.11.tgz", + "integrity": "sha512-Ctl2BrFiM0X3MANYgj3CkygxhRmr9mi6xhejbdO960nF6EDJApTYpn0BQnDKlnNBULKiCN1n3w9EBkHK8ZWg+g==", + "dev": true + }, + "node_modules/split-string": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", + "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", + "dev": true, + "dependencies": { + "extend-shallow": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/split-string/node_modules/extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "dependencies": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/stack-trace": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz", + "integrity": "sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/static-extend": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", + "integrity": "sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g==", + "dev": true, + "dependencies": { + "define-property": "^0.2.5", + "object-copy": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-accessor-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-data-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/stream-exhaust": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/stream-exhaust/-/stream-exhaust-1.0.2.tgz", + "integrity": "sha512-b/qaq/GlBK5xaq1yrK9/zFcyRSTNxmcZwFLGSTG0mXgZl/4Z6GgiyYOXOvY7N3eEvFRAG1bkDRz5EPGSvPYQlw==", + "dev": true + }, + "node_modules/stream-shift": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.1.tgz", + "integrity": "sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ==", + "dev": true + }, + "node_modules/streamqueue": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/streamqueue/-/streamqueue-0.0.6.tgz", + "integrity": "sha512-l09LNfTUkmLMckTB1Mm8Um5GMS1uTZ/KTodg/SMf5Nx758IOsmaqIQ/AJumAnNMkDgZBG39btq3LVkN90knq8w==", + "dev": true, + "dependencies": { + "readable-stream": "^1.0.26-2" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/streamqueue/node_modules/isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", + "dev": true + }, + "node_modules/streamqueue/node_modules/readable-stream": { + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==", + "dev": true, + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, + "node_modules/streamqueue/node_modules/string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", + "dev": true + }, + "node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==", + "dev": true, + "dependencies": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/string-width/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/string-width/node_modules/strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", + "dev": true, + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.5.tgz", + "integrity": "sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.5.tgz", + "integrity": "sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/strip-bom-string": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-bom-string/-/strip-bom-string-1.0.0.tgz", + "integrity": "sha512-uCC2VHvQRYu+lMh4My/sFNmF2klFymLX1wHJeXnbEJERpV/ZsVuonzerjfrGpIGF7LBVa1O7i9kjiWvJiFck8g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/sver-compat": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/sver-compat/-/sver-compat-1.5.0.tgz", + "integrity": "sha512-aFTHfmjwizMNlNE6dsGmoAM4lHjL0CyiobWaFiXWSlD7cIxshW422Nb8KbXCmR6z+0ZEPY+daXJrDyh/vuwTyg==", + "dev": true, + "dependencies": { + "es6-iterator": "^2.0.1", + "es6-symbol": "^3.1.1" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, + "node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dev": true, + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/through2-filter": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/through2-filter/-/through2-filter-3.0.0.tgz", + "integrity": "sha512-jaRjI2WxN3W1V8/FMZ9HKIBXixtiqs3SQSX4/YGIiP3gL6djW48VoZq9tDqeCWs3MT8YY5wb/zli8VW8snY1CA==", + "dev": true, + "dependencies": { + "through2": "~2.0.0", + "xtend": "~4.0.0" + } + }, + "node_modules/time-stamp": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-1.1.0.tgz", + "integrity": "sha512-gLCeArryy2yNTRzTGKbZbloctj64jkZ57hj5zdraXue6aFgd6PmvVtEyiUU+hvU0v7q08oVv8r8ev0tRo6bvgw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/timers-ext": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/timers-ext/-/timers-ext-0.1.7.tgz", + "integrity": "sha512-b85NUNzTSdodShTIbky6ZF02e8STtVVfD+fu4aXXShEELpozH+bCpJLYMPZbsABN2wDH7fJpqIoXxJpzbf0NqQ==", + "dev": true, + "dependencies": { + "es5-ext": "~0.10.46", + "next-tick": "1" + } + }, + "node_modules/to-absolute-glob": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/to-absolute-glob/-/to-absolute-glob-2.0.2.tgz", + "integrity": "sha512-rtwLUQEwT8ZeKQbyFJyomBRYXyE16U5VKuy0ftxLMK/PZb2fkOsg5r9kHdauuVDbsNdIBoC/HCthpidamQFXYA==", + "dev": true, + "dependencies": { + "is-absolute": "^1.0.0", + "is-negated-glob": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-object-path/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-regex": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", + "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", + "dev": true, + "dependencies": { + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "regex-not": "^1.0.2", + "safe-regex": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/to-regex/node_modules/extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "dependencies": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-through": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-through/-/to-through-2.0.0.tgz", + "integrity": "sha512-+QIz37Ly7acM4EMdw2PRN389OneM5+d844tirkGp4dPKzI5OE72V9OsbFp+CIYJDahZ41ZV05hNtcPAQUAm9/Q==", + "dev": true, + "dependencies": { + "through2": "^2.0.3" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "dev": true + }, + "node_modules/tsconfig-paths": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz", + "integrity": "sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ==", + "dev": true, + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.1", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, + "node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, + "node_modules/tunnel": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", + "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==", + "dev": true, + "engines": { + "node": ">=0.6.11 <=0.7.0 || >=0.7.3" + } + }, + "node_modules/type": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz", + "integrity": "sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg==", + "dev": true + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typed-rest-client": { + "version": "1.8.9", + "resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.8.9.tgz", + "integrity": "sha512-uSmjE38B80wjL85UFX3sTYEUlvZ1JgCRhsWj/fJ4rZ0FqDUFoIuodtiVeE+cUqiVTOKPdKrp/sdftD15MDek6g==", + "dev": true, + "dependencies": { + "qs": "^6.9.1", + "tunnel": "0.0.6", + "underscore": "^1.12.1" + } + }, + "node_modules/typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", + "dev": true + }, + "node_modules/typescript": { + "version": "4.7.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", + "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/unbox-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/unc-path-regex": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", + "integrity": "sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/underscore": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.4.tgz", + "integrity": "sha512-BQFnUDuAQ4Yf/cYY5LNrK9NCJFKriaRbD9uR1fTeXnBeoa97W0i41qkZfGO9pSo8I5KzjAcSY2XYtdf0oKd7KQ==", + "dev": true + }, + "node_modules/undertaker": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/undertaker/-/undertaker-1.3.0.tgz", + "integrity": "sha512-/RXwi5m/Mu3H6IHQGww3GNt1PNXlbeCuclF2QYR14L/2CHPz3DFZkvB5hZ0N/QUkiXWCACML2jXViIQEQc2MLg==", + "dev": true, + "dependencies": { + "arr-flatten": "^1.0.1", + "arr-map": "^2.0.0", + "bach": "^1.0.0", + "collection-map": "^1.0.0", + "es6-weak-map": "^2.0.1", + "fast-levenshtein": "^1.0.0", + "last-run": "^1.1.0", + "object.defaults": "^1.0.0", + "object.reduce": "^1.0.0", + "undertaker-registry": "^1.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/undertaker-registry": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/undertaker-registry/-/undertaker-registry-1.0.1.tgz", + "integrity": "sha512-UR1khWeAjugW3548EfQmL9Z7pGMlBgXteQpr1IZeZBtnkCJQJIJ1Scj0mb9wQaPvUZ9Q17XqW6TIaPchJkyfqw==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/undertaker/node_modules/fast-levenshtein": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-1.1.4.tgz", + "integrity": "sha512-Ia0sQNrMPXXkqVFt6w6M1n1oKo3NfKs+mvaV811Jwir7vAk9a6PVV9VPYf6X3BU97QiLEmuW3uXH9u87zDFfdw==", + "dev": true + }, + "node_modules/union-value": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", + "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", + "dev": true, + "dependencies": { + "arr-union": "^3.1.0", + "get-value": "^2.0.6", + "is-extendable": "^0.1.1", + "set-value": "^2.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/union-value/node_modules/arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/union-value/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unique-stream": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/unique-stream/-/unique-stream-2.3.1.tgz", + "integrity": "sha512-2nY4TnBE70yoxHkDli7DMazpWiP7xMdCYqU2nBRO0UB+ZpEkGsSija7MvmvnZFUeC+mrgiUfcHSr3LmRFIg4+A==", + "dev": true, + "dependencies": { + "json-stable-stringify-without-jsonify": "^1.0.1", + "through2-filter": "^3.0.0" + } + }, + "node_modules/universal-user-agent": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", + "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==", + "dev": true + }, + "node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/unset-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", + "integrity": "sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ==", + "dev": true, + "dependencies": { + "has-value": "^0.3.1", + "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value/node_modules/has-value": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", + "integrity": "sha512-gpG936j8/MzaeID5Yif+577c17TxaDmhuyVgSwtnL/q8UUTySg8Mecb+8Cf1otgLoD7DDH75axp86ER7LFsf3Q==", + "dev": true, + "dependencies": { + "get-value": "^2.0.3", + "has-values": "^0.1.4", + "isobject": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value/node_modules/has-value/node_modules/isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==", + "dev": true, + "dependencies": { + "isarray": "1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value/node_modules/has-values": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", + "integrity": "sha512-J8S0cEdWuQbqD9//tlZxiMuMNmxB8PlEwvYwuxsTmR1G5RXUePEX/SJn7aD0GMLieuZYSwNH0cQuJGwnYunXRQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/upath": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/upath/-/upath-1.2.0.tgz", + "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==", + "dev": true, + "engines": { + "node": ">=4", + "yarn": "*" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/urix": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", + "integrity": "sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg==", + "deprecated": "Please see https://github.com/lydell/urix#deprecated", + "dev": true + }, + "node_modules/use": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", + "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true + }, + "node_modules/v8-compile-cache": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", + "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", + "dev": true + }, + "node_modules/v8flags": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-3.2.0.tgz", + "integrity": "sha512-mH8etigqMfiGWdeXpaaqGfs6BndypxusHHcv2qSHyZkGEznCd/qAXCWWRzeowtL54147cktFOC4P5y+kl8d8Jg==", + "dev": true, + "dependencies": { + "homedir-polyfill": "^1.0.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "node_modules/value-or-function": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/value-or-function/-/value-or-function-3.0.0.tgz", + "integrity": "sha512-jdBB2FrWvQC/pnPtIqcLsMaQgjhdb6B7tk1MMyTKapox+tQZbdRP4uLxu/JY0t7fbfDCUMnuelzEYv5GsxHhdg==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/vinyl": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.2.1.tgz", + "integrity": "sha512-LII3bXRFBZLlezoG5FfZVcXflZgWP/4dCwKtxd5ky9+LOtM4CS3bIRQsmR1KMnMW07jpE8fqR2lcxPZ+8sJIcw==", + "dev": true, + "dependencies": { + "clone": "^2.1.1", + "clone-buffer": "^1.0.0", + "clone-stats": "^1.0.0", + "cloneable-readable": "^1.0.0", + "remove-trailing-separator": "^1.0.1", + "replace-ext": "^1.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/vinyl-fs": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/vinyl-fs/-/vinyl-fs-3.0.3.tgz", + "integrity": "sha512-vIu34EkyNyJxmP0jscNzWBSygh7VWhqun6RmqVfXePrOwi9lhvRs//dOaGOTRUQr4tx7/zd26Tk5WeSVZitgng==", + "dev": true, + "dependencies": { + "fs-mkdirp-stream": "^1.0.0", + "glob-stream": "^6.1.0", + "graceful-fs": "^4.0.0", + "is-valid-glob": "^1.0.0", + "lazystream": "^1.0.0", + "lead": "^1.0.0", + "object.assign": "^4.0.4", + "pumpify": "^1.3.5", + "readable-stream": "^2.3.3", + "remove-bom-buffer": "^3.0.0", + "remove-bom-stream": "^1.2.0", + "resolve-options": "^1.1.0", + "through2": "^2.0.0", + "to-through": "^2.0.0", + "value-or-function": "^3.0.0", + "vinyl": "^2.0.0", + "vinyl-sourcemap": "^1.1.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/vinyl-sourcemap": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/vinyl-sourcemap/-/vinyl-sourcemap-1.1.0.tgz", + "integrity": "sha512-NiibMgt6VJGJmyw7vtzhctDcfKch4e4n9TBeoWlirb7FMg9/1Ov9k+A5ZRAtywBpRPiyECvQRQllYM8dECegVA==", + "dev": true, + "dependencies": { + "append-buffer": "^1.0.2", + "convert-source-map": "^1.5.0", + "graceful-fs": "^4.1.6", + "normalize-path": "^2.1.1", + "now-and-later": "^2.0.0", + "remove-bom-buffer": "^3.0.0", + "vinyl": "^2.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/vinyl-sourcemap/node_modules/normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==", + "dev": true, + "dependencies": { + "remove-trailing-separator": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/vinyl-sourcemaps-apply": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/vinyl-sourcemaps-apply/-/vinyl-sourcemaps-apply-0.2.1.tgz", + "integrity": "sha512-+oDh3KYZBoZC8hfocrbrxbLUeaYtQK7J5WU5Br9VqWqmCll3tFJqKp97GC9GmMsVIL0qnx2DgEDVxdo5EZ5sSw==", + "dev": true, + "dependencies": { + "source-map": "^0.5.1" + } + }, + "node_modules/vinyl-sourcemaps-apply/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "dev": true + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dev": true, + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dev": true, + "dependencies": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-module": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", + "integrity": "sha512-F6+WgncZi/mJDrammbTuHe1q0R5hOXv/mBaiNA2TCNT/LTHusX0V+CJnj9XT8ki5ln2UZyyddDgHfCzyrOH7MQ==", + "dev": true + }, + "node_modules/word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/workerpool": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz", + "integrity": "sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==", + "dev": true + }, + "node_modules/wrap-ansi": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", + "integrity": "sha512-vAaEaDM946gbNpH5pLVNR+vX2ht6n0Bt3GXwVB1AuAqZosOvHNF3P7wDnh8KLkSqgUh0uh77le7Owgoz+Z9XBw==", + "dev": true, + "dependencies": { + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", + "dev": true, + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/xml2js": { + "version": "0.4.23", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.23.tgz", + "integrity": "sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==", + "dev": true, + "dependencies": { + "sax": ">=0.6.0", + "xmlbuilder": "~11.0.0" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/xmlbuilder": { + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", + "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "dev": true, + "engines": { + "node": ">=0.4" + } + }, + "node_modules/y18n": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.2.tgz", + "integrity": "sha512-uGZHXkHnhF0XeeAPgnKfPv1bgKAYyVvmNL1xlKsPYZPaIHxGti2hHqvOCQv71XMsLxu1QjergkqogUnms5D3YQ==", + "dev": true + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/yargs": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-7.1.2.tgz", + "integrity": "sha512-ZEjj/dQYQy0Zx0lgLMLR8QuaqTihnxirir7EwUHp1Axq4e3+k8jXU5K0VLbNvedv1f4EWtBonDIZm0NUr+jCcA==", + "dev": true, + "dependencies": { + "camelcase": "^3.0.0", + "cliui": "^3.2.0", + "decamelize": "^1.1.1", + "get-caller-file": "^1.0.1", + "os-locale": "^1.4.0", + "read-pkg-up": "^1.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^1.0.2", + "which-module": "^1.0.0", + "y18n": "^3.2.1", + "yargs-parser": "^5.0.1" + } + }, + "node_modules/yargs-parser": { + "version": "20.2.4", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz", + "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs-unparser": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", + "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", + "dev": true, + "dependencies": { + "camelcase": "^6.0.0", + "decamelize": "^4.0.0", + "flat": "^5.0.2", + "is-plain-obj": "^2.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs-unparser/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/yargs-unparser/node_modules/decamelize": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", + "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/yargs/node_modules/yargs-parser": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-5.0.1.tgz", + "integrity": "sha512-wpav5XYiddjXxirPoCTUPbqM0PXvJ9hiBMvuJgInvo4/lAOTZzUprArw17q2O1P2+GHhbBr18/iQwjL5Z9BqfA==", + "dev": true, + "dependencies": { + "camelcase": "^3.0.0", + "object.assign": "^4.1.0" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + }, "dependencies": { "@es-joy/jsdoccomment": { "version": "0.31.0", @@ -173,132 +8768,139 @@ } }, "@octokit/auth-token": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.5.0.tgz", - "integrity": "sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-3.0.1.tgz", + "integrity": "sha512-/USkK4cioY209wXRpund6HZzHo9GmjakpV9ycOkpMcMxMk7QVcVFVyCMtzvXYiHsB2crgDgrtNYSELYFBXhhaA==", "dev": true, "requires": { - "@octokit/types": "^6.0.3" + "@octokit/types": "^7.0.0" } }, "@octokit/core": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.6.0.tgz", - "integrity": "sha512-7RKRKuA4xTjMhY+eG3jthb3hlZCsOwg3rztWh75Xc+ShDWOfDDATWbeZpAHBNRpm4Tv9WgBMOy1zEJYXG6NJ7Q==", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@octokit/core/-/core-4.0.5.tgz", + "integrity": "sha512-4R3HeHTYVHCfzSAi0C6pbGXV8UDI5Rk+k3G7kLVNckswN9mvpOzW9oENfjfH3nEmzg8y3AmKmzs8Sg6pLCeOCA==", "dev": true, "requires": { - "@octokit/auth-token": "^2.4.4", - "@octokit/graphql": "^4.5.8", - "@octokit/request": "^5.6.3", - "@octokit/request-error": "^2.0.5", - "@octokit/types": "^6.0.3", + "@octokit/auth-token": "^3.0.0", + "@octokit/graphql": "^5.0.0", + "@octokit/request": "^6.0.0", + "@octokit/request-error": "^3.0.0", + "@octokit/types": "^7.0.0", "before-after-hook": "^2.2.0", "universal-user-agent": "^6.0.0" } }, "@octokit/endpoint": { - "version": "6.0.12", - "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz", - "integrity": "sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-7.0.1.tgz", + "integrity": "sha512-/wTXAJwt0HzJ2IeE4kQXO+mBScfzyCkI0hMtkIaqyXd9zg76OpOfNQfHL9FlaxAV2RsNiOXZibVWloy8EexENg==", "dev": true, "requires": { - "@octokit/types": "^6.0.3", + "@octokit/types": "^7.0.0", "is-plain-object": "^5.0.0", "universal-user-agent": "^6.0.0" } }, "@octokit/graphql": { - "version": "4.8.0", - "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.8.0.tgz", - "integrity": "sha512-0gv+qLSBLKF0z8TKaSKTsS39scVKF9dbMxJpj3U0vC7wjNWFuIpL/z76Qe2fiuCbDRcJSavkXsVtMS6/dtQQsg==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-5.0.1.tgz", + "integrity": "sha512-sxmnewSwAixkP1TrLdE6yRG53eEhHhDTYUykUwdV9x8f91WcbhunIHk9x1PZLALdBZKRPUO2HRcm4kezZ79HoA==", "dev": true, "requires": { - "@octokit/request": "^5.6.0", - "@octokit/types": "^6.0.3", + "@octokit/request": "^6.0.0", + "@octokit/types": "^7.0.0", "universal-user-agent": "^6.0.0" } }, "@octokit/openapi-types": { - "version": "12.5.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-12.5.0.tgz", - "integrity": "sha512-VatvE5wtRkJq6hAWGTBZ62WkrdlCiy0G0u27cVOYTfAWVZi7QqTurVcjpsyc5+9hXLPRP5O/DaNEs4TgAp4Mqg==", + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.1.0.tgz", + "integrity": "sha512-Z7vzLqfTkoVQyoy/2iQla1N2I4Vav2wi4JbZK8QxIYAfBimhuflosFxmsqw5LTH7DkdNW46ZYpAcqJf0XaS8SQ==", "dev": true }, "@octokit/plugin-paginate-rest": { - "version": "2.20.0", - "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.20.0.tgz", - "integrity": "sha512-LbemX86JEmOCFo9eRwrtdP5Isq69TefLS1J7w0DO4PMhfpvRfqYVzq9c0eH1xgcx2PSA7/VJHu9SwvNhD9FjVg==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-4.0.0.tgz", + "integrity": "sha512-g4GJMt/7VDmIMMdQenN6bmsmRoZca1c7IxOdF2yMiMwQYrE2bmmypGQeQSD5rsaffsFMCUS7Br4pMVZamareYA==", "dev": true, "requires": { - "@octokit/types": "^6.38.1" + "@octokit/types": "^7.0.0" } }, "@octokit/plugin-request-log": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz", "integrity": "sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA==", - "dev": true + "dev": true, + "requires": {} }, "@octokit/plugin-rest-endpoint-methods": { - "version": "5.16.0", - "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.16.0.tgz", - "integrity": "sha512-mvdwq+LvhR2GRDY82FgSZ52xX6wkOCpjiI3amiKbzKHd9nyKeFdXLsIQ3Go12tWRtvo+HwqoypLHDjRrgMFDQA==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-6.3.0.tgz", + "integrity": "sha512-qEu2wn6E7hqluZwIEUnDxWROvKjov3zMIAi4H4d7cmKWNMeBprEXZzJe8pE5eStUYC1ysGhD0B7L6IeG1Rfb+g==", "dev": true, "requires": { - "@octokit/types": "^6.38.0", + "@octokit/types": "^7.0.0", "deprecation": "^2.3.1" } }, "@octokit/request": { - "version": "5.6.3", - "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.6.3.tgz", - "integrity": "sha512-bFJl0I1KVc9jYTe9tdGGpAMPy32dLBXXo1dS/YwSCTL/2nd9XeHsY616RE3HPXDVk+a+dBuzyz5YdlXwcDTr2A==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-6.2.1.tgz", + "integrity": "sha512-gYKRCia3cpajRzDSU+3pt1q2OcuC6PK8PmFIyxZDWCzRXRSIBH8jXjFJ8ZceoygBIm0KsEUg4x1+XcYBz7dHPQ==", "dev": true, "requires": { - "@octokit/endpoint": "^6.0.1", - "@octokit/request-error": "^2.1.0", - "@octokit/types": "^6.16.1", + "@octokit/endpoint": "^7.0.0", + "@octokit/request-error": "^3.0.0", + "@octokit/types": "^7.0.0", "is-plain-object": "^5.0.0", "node-fetch": "^2.6.7", "universal-user-agent": "^6.0.0" } }, "@octokit/request-error": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz", - "integrity": "sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-3.0.1.tgz", + "integrity": "sha512-ym4Bp0HTP7F3VFssV88WD1ZyCIRoE8H35pXSKwLeMizcdZAYc/t6N9X9Yr9n6t3aG9IH75XDnZ6UeZph0vHMWQ==", "dev": true, "requires": { - "@octokit/types": "^6.0.3", + "@octokit/types": "^7.0.0", "deprecation": "^2.0.0", "once": "^1.4.0" } }, "@octokit/rest": { - "version": "18.12.0", - "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-18.12.0.tgz", - "integrity": "sha512-gDPiOHlyGavxr72y0guQEhLsemgVjwRePayJ+FcKc2SJqKUbxbkvf5kAZEWA/MKvsfYlQAMVzNJE3ezQcxMJ2Q==", + "version": "19.0.4", + "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-19.0.4.tgz", + "integrity": "sha512-LwG668+6lE8zlSYOfwPj4FxWdv/qFXYBpv79TWIQEpBLKA9D/IMcWsF/U9RGpA3YqMVDiTxpgVpEW3zTFfPFTA==", "dev": true, "requires": { - "@octokit/core": "^3.5.1", - "@octokit/plugin-paginate-rest": "^2.16.8", + "@octokit/core": "^4.0.0", + "@octokit/plugin-paginate-rest": "^4.0.0", "@octokit/plugin-request-log": "^1.0.4", - "@octokit/plugin-rest-endpoint-methods": "^5.12.0" + "@octokit/plugin-rest-endpoint-methods": "^6.0.0" } }, "@octokit/types": { - "version": "6.38.1", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.38.1.tgz", - "integrity": "sha512-kWMohLCIvnwApRmxRFDOqve7puiNNdtVfgwdDOm6QyJNorWOgKv2/AodCcGqx63o28kF7Dr4/nJCatrwwqhULg==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-7.1.0.tgz", + "integrity": "sha512-+ClA0jRc9zGFj5mfQeQNfgTlelzhpAexbAueQG1t2Xn8yhgnsjkF8bgLcUUpwrpqkv296uXyiGwkqXRSU7KYzQ==", "dev": true, "requires": { - "@octokit/openapi-types": "^12.5.0" + "@octokit/openapi-types": "^13.1.0" } }, + "@types/async": { + "version": "3.2.15", + "resolved": "https://registry.npmjs.org/@types/async/-/async-3.2.15.tgz", + "integrity": "sha512-PAmPfzvFA31mRoqZyTVsgJMsvbynR429UTTxhmfsUCrWGh3/fxOrzqBtaTPJsn4UtzTv4Vb0+/O7CARWb69N4g==", + "dev": true + }, "@types/chai": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.1.tgz", - "integrity": "sha512-/zPMqDkzSZ8t3VtxOa4KPq7uzzW978M9Tvh+j7GHKuo6k6GTLxPJ4J5gE5cjfJ26pnXst0N5Hax8Sr0T2Mi9zQ==", + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.3.tgz", + "integrity": "sha512-hC7OMnszpxhZPduX+m+nrx+uFoLkWOMiR4oa/AZF3MuSETYTZmFfJAHqZEM8MVlvfG7BEUcgvtwoCTxBp6hm3g==", "dev": true }, "@types/convert-source-map": { @@ -452,9 +9054,9 @@ "dev": true }, "@types/node": { - "version": "18.0.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.0.0.tgz", - "integrity": "sha512-cHlGmko4gWLVI27cGJntjs/Sj8th9aYwplmZFwmmgYQQvL5NUsgVJG7OddLvNfLqYS31KFN0s3qlaD9qCaxACA==", + "version": "18.7.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.7.6.tgz", + "integrity": "sha512-EdxgKRXgYsNITy5mjjXjVE/CS8YENSdhiagGrLqjG0pvA2owgJ6i4l7wy/PFZGC0B1/H20lWKN7ONVDNYDZm7A==", "dev": true }, "@types/node-fetch": { @@ -530,14 +9132,14 @@ } }, "@typescript-eslint/eslint-plugin": { - "version": "5.28.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.28.0.tgz", - "integrity": "sha512-DXVU6Cg29H2M6EybqSg2A+x8DgO9TCUBRp4QEXQHJceLS7ogVDP0g3Lkg/SZCqcvkAP/RruuQqK0gdlkgmhSUA==", + "version": "5.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.33.1.tgz", + "integrity": "sha512-S1iZIxrTvKkU3+m63YUOxYPKaP+yWDQrdhxTglVDVEVBf+aCSw85+BmJnyUaQQsk5TXFG/LpBu9fa+LrAQ91fQ==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "5.28.0", - "@typescript-eslint/type-utils": "5.28.0", - "@typescript-eslint/utils": "5.28.0", + "@typescript-eslint/scope-manager": "5.33.1", + "@typescript-eslint/type-utils": "5.33.1", + "@typescript-eslint/utils": "5.33.1", "debug": "^4.3.4", "functional-red-black-tree": "^1.0.1", "ignore": "^5.2.0", @@ -547,52 +9149,52 @@ } }, "@typescript-eslint/parser": { - "version": "5.28.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.28.0.tgz", - "integrity": "sha512-ekqoNRNK1lAcKhZESN/PdpVsWbP9jtiNqzFWkp/yAUdZvJalw2heCYuqRmM5eUJSIYEkgq5sGOjq+ZqsLMjtRA==", + "version": "5.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.33.1.tgz", + "integrity": "sha512-IgLLtW7FOzoDlmaMoXdxG8HOCByTBXrB1V2ZQYSEV1ggMmJfAkMWTwUjjzagS6OkfpySyhKFkBw7A9jYmcHpZA==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "5.28.0", - "@typescript-eslint/types": "5.28.0", - "@typescript-eslint/typescript-estree": "5.28.0", + "@typescript-eslint/scope-manager": "5.33.1", + "@typescript-eslint/types": "5.33.1", + "@typescript-eslint/typescript-estree": "5.33.1", "debug": "^4.3.4" } }, "@typescript-eslint/scope-manager": { - "version": "5.28.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.28.0.tgz", - "integrity": "sha512-LeBLTqF/he1Z+boRhSqnso6YrzcKMTQ8bO/YKEe+6+O/JGof9M0g3IJlIsqfrK/6K03MlFIlycbf1uQR1IjE+w==", + "version": "5.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.33.1.tgz", + "integrity": "sha512-8ibcZSqy4c5m69QpzJn8XQq9NnqAToC8OdH/W6IXPXv83vRyEDPYLdjAlUx8h/rbusq6MkW4YdQzURGOqsn3CA==", "dev": true, "requires": { - "@typescript-eslint/types": "5.28.0", - "@typescript-eslint/visitor-keys": "5.28.0" + "@typescript-eslint/types": "5.33.1", + "@typescript-eslint/visitor-keys": "5.33.1" } }, "@typescript-eslint/type-utils": { - "version": "5.28.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.28.0.tgz", - "integrity": "sha512-SyKjKh4CXPglueyC6ceAFytjYWMoPHMswPQae236zqe1YbhvCVQyIawesYywGiu98L9DwrxsBN69vGIVxJ4mQQ==", + "version": "5.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.33.1.tgz", + "integrity": "sha512-X3pGsJsD8OiqhNa5fim41YtlnyiWMF/eKsEZGsHID2HcDqeSC5yr/uLOeph8rNF2/utwuI0IQoAK3fpoxcLl2g==", "dev": true, "requires": { - "@typescript-eslint/utils": "5.28.0", + "@typescript-eslint/utils": "5.33.1", "debug": "^4.3.4", "tsutils": "^3.21.0" } }, "@typescript-eslint/types": { - "version": "5.28.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.28.0.tgz", - "integrity": "sha512-2OOm8ZTOQxqkPbf+DAo8oc16sDlVR5owgJfKheBkxBKg1vAfw2JsSofH9+16VPlN9PWtv8Wzhklkqw3k/zCVxA==", + "version": "5.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.33.1.tgz", + "integrity": "sha512-7K6MoQPQh6WVEkMrMW5QOA5FO+BOwzHSNd0j3+BlBwd6vtzfZceJ8xJ7Um2XDi/O3umS8/qDX6jdy2i7CijkwQ==", "dev": true }, "@typescript-eslint/typescript-estree": { - "version": "5.28.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.28.0.tgz", - "integrity": "sha512-9GX+GfpV+F4hdTtYc6OV9ZkyYilGXPmQpm6AThInpBmKJEyRSIjORJd1G9+bknb7OTFYL+Vd4FBJAO6T78OVqA==", + "version": "5.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.33.1.tgz", + "integrity": "sha512-JOAzJ4pJ+tHzA2pgsWQi4804XisPHOtbvwUyqsuuq8+y5B5GMZs7lI1xDWs6V2d7gE/Ez5bTGojSK12+IIPtXA==", "dev": true, "requires": { - "@typescript-eslint/types": "5.28.0", - "@typescript-eslint/visitor-keys": "5.28.0", + "@typescript-eslint/types": "5.33.1", + "@typescript-eslint/visitor-keys": "5.33.1", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -601,26 +9203,26 @@ } }, "@typescript-eslint/utils": { - "version": "5.28.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.28.0.tgz", - "integrity": "sha512-E60N5L0fjv7iPJV3UGc4EC+A3Lcj4jle9zzR0gW7vXhflO7/J29kwiTGITA2RlrmPokKiZbBy2DgaclCaEUs6g==", + "version": "5.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.33.1.tgz", + "integrity": "sha512-uphZjkMaZ4fE8CR4dU7BquOV6u0doeQAr8n6cQenl/poMaIyJtBu8eys5uk6u5HiDH01Mj5lzbJ5SfeDz7oqMQ==", "dev": true, "requires": { "@types/json-schema": "^7.0.9", - "@typescript-eslint/scope-manager": "5.28.0", - "@typescript-eslint/types": "5.28.0", - "@typescript-eslint/typescript-estree": "5.28.0", + "@typescript-eslint/scope-manager": "5.33.1", + "@typescript-eslint/types": "5.33.1", + "@typescript-eslint/typescript-estree": "5.33.1", "eslint-scope": "^5.1.1", "eslint-utils": "^3.0.0" } }, "@typescript-eslint/visitor-keys": { - "version": "5.28.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.28.0.tgz", - "integrity": "sha512-BtfP1vCor8cWacovzzPFOoeW4kBQxzmhxGoOpt0v1SFvG+nJ0cWaVdJk7cky1ArTcFHHKNIxyo2LLr3oNkSuXA==", + "version": "5.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.33.1.tgz", + "integrity": "sha512-nwIxOK8Z2MPWltLKMLOEZwmfBZReqUdbEoHQXeCpa+sRVARe5twpJGHCB4dk9903Yaf0nMAlGbQfaAH92F60eg==", "dev": true, "requires": { - "@typescript-eslint/types": "5.28.0", + "@typescript-eslint/types": "5.33.1", "eslint-visitor-keys": "^3.3.0" } }, @@ -631,16 +9233,17 @@ "dev": true }, "acorn": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.1.tgz", - "integrity": "sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A==", + "version": "8.8.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz", + "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==", "dev": true }, "acorn-jsx": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true + "dev": true, + "requires": {} }, "aggregate-error": { "version": "3.1.0", @@ -753,10 +9356,22 @@ "dev": true }, "arr-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==", - "dev": true + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-1.1.0.tgz", + "integrity": "sha512-OQwDZUqYaQwyyhDJHThmzId8daf4/RFNLaeh3AevmSeZ5Y7ug4Ga/yKc6l6kTZOBW781rCj103ZuTh8GAsB3+Q==", + "dev": true, + "requires": { + "arr-flatten": "^1.0.1", + "array-slice": "^0.2.3" + }, + "dependencies": { + "array-slice": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-0.2.3.tgz", + "integrity": "sha512-rlVfZW/1Ph2SNySXwR9QYkChp8EkOEiTMO5Vwx60usw04i4nWemkm9RXmQqgkQFaLHsqLuADvjp6IfgL9l2M8Q==", + "dev": true + } + } }, "arr-filter": { "version": "1.1.2", @@ -783,9 +9398,9 @@ } }, "arr-union": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", - "integrity": "sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-2.1.0.tgz", + "integrity": "sha512-t5db90jq+qdgk8aFnxEkjqta0B/GHrM1pxzuuZz2zWsOXc5nKu3t+76s/PQBA8FTcM/ipspIH9jWG4OxCBc2eA==", "dev": true }, "array-each": { @@ -857,14 +9472,6 @@ "default-compare": "^1.0.0", "get-value": "^2.0.6", "kind-of": "^5.0.2" - }, - "dependencies": { - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true - } } }, "array-union": { @@ -955,9 +9562,9 @@ "dev": true }, "azure-devops-node-api": { - "version": "11.1.1", - "resolved": "https://registry.npmjs.org/azure-devops-node-api/-/azure-devops-node-api-11.1.1.tgz", - "integrity": "sha512-XDG91XzLZ15reP12s3jFkKS8oiagSICjnLwxEYieme4+4h3ZveFOFRA4iYIG40RyHXsiI0mefFYYMFIJbMpWcg==", + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/azure-devops-node-api/-/azure-devops-node-api-11.2.0.tgz", + "integrity": "sha512-XdiGPhrpaT5J8wdERRKs5g8E0Zy1pvOYTli7z9E8nmOn3YGp4FhtjhrOyFmX/8veWCwdI69mCHKJw6l+4J/bHA==", "dev": true, "requires": { "tunnel": "0.0.6", @@ -1010,35 +9617,6 @@ "requires": { "is-descriptor": "^1.0.0" } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } } } }, @@ -1054,6 +9632,16 @@ "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", "dev": true }, + "bindings": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", + "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", + "dev": true, + "optional": true, + "requires": { + "file-uri-to-path": "1.0.0" + } + }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -1189,6 +9777,12 @@ "static-extend": "^0.1.1" }, "dependencies": { + "arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q==", + "dev": true + }, "define-property": { "version": "0.2.5", "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", @@ -1197,6 +9791,57 @@ "requires": { "is-descriptor": "^0.1.0" } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + } } } }, @@ -1410,18 +10055,6 @@ "inherits": "^2.0.4", "source-map": "^0.6.1", "source-map-resolve": "^0.6.0" - }, - "dependencies": { - "source-map-resolve": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.6.0.tgz", - "integrity": "sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==", - "dev": true, - "requires": { - "atob": "^2.1.2", - "decode-uri-component": "^0.2.0" - } - } } }, "d": { @@ -1430,7 +10063,7 @@ "integrity": "sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==", "dev": true, "requires": { - "es5-ext": "^0.10.50", + "es5-ext": "0.10.53", "type": "^1.0.1" } }, @@ -1507,14 +10140,6 @@ "dev": true, "requires": { "kind-of": "^5.0.2" - }, - "dependencies": { - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true - } } }, "default-resolution": { @@ -1541,37 +10166,6 @@ "requires": { "is-descriptor": "^1.0.2", "isobject": "^3.0.1" - }, - "dependencies": { - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - } } }, "del": { @@ -1747,14 +10341,22 @@ } }, "es5-ext": { - "version": "0.10.61", - "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.61.tgz", - "integrity": "sha512-yFhIqQAzu2Ca2I4SE2Au3rxVfmohU9Y7wqGR+s7+H7krk26NXhIRAZDgqd6xqjCEFUomDEA3/Bo/7fKmIkW1kA==", + "version": "0.10.53", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.53.tgz", + "integrity": "sha512-Xs2Stw6NiNHWypzRTY1MtaG/uJlwCk8kH81920ma8mvN8Xq1gsfhZvpkImLQArw8AHnv8MT2I45J3c0R8slE+Q==", "dev": true, "requires": { - "es6-iterator": "^2.0.3", - "es6-symbol": "^3.1.3", - "next-tick": "^1.1.0" + "es6-iterator": "~2.0.3", + "es6-symbol": "~3.1.3", + "next-tick": "~1.0.0" + }, + "dependencies": { + "next-tick": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", + "integrity": "sha512-mc/caHeUcdjnC/boPWJefDr4KUIWQNv+tlnFnJd38QMou86QtxQzBJfxgGRzvx8jazYRqrVlaHarfO72uNxPOg==", + "dev": true + } } }, "es6-iterator": { @@ -1764,7 +10366,7 @@ "dev": true, "requires": { "d": "1", - "es5-ext": "^0.10.35", + "es5-ext": "0.10.53", "es6-symbol": "^3.1.1" } }, @@ -1785,7 +10387,7 @@ "dev": true, "requires": { "d": "1", - "es5-ext": "^0.10.46", + "es5-ext": "0.10.53", "es6-iterator": "^2.0.3", "es6-symbol": "^3.1.1" } @@ -1904,13 +10506,12 @@ } }, "eslint-module-utils": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.7.3.tgz", - "integrity": "sha512-088JEC7O3lDZM9xGe0RerkOMd0EjFl+Yvd1jPWIkMT5u3H9+HC34mWWPnqPrN13gieT9pBOO+Qt07Nb/6TresQ==", + "version": "2.7.4", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.7.4.tgz", + "integrity": "sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA==", "dev": true, "requires": { - "debug": "^3.2.7", - "find-up": "^2.1.0" + "debug": "^3.2.7" }, "dependencies": { "debug": { @@ -1990,7 +10591,8 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/eslint-plugin-no-null/-/eslint-plugin-no-null-1.0.2.tgz", "integrity": "sha512-uRDiz88zCO/2rzGfgG15DBjNsgwWtWiSo4Ezy7zzajUgpnFIqd1TjepKeRmJZHEfBGu58o2a8S0D7vglvvhkVA==", - "dev": true + "dev": true, + "requires": {} }, "eslint-scope": { "version": "5.1.1", @@ -2026,12 +10628,12 @@ "dev": true }, "espree": { - "version": "9.3.2", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.3.2.tgz", - "integrity": "sha512-D211tC7ZwouTIuY5x9XnS0E9sWNChB7IYKX/Xp5eQj3nFXhqmiUDB9q27y76oFl8jTg3pXcQx/bpxMfs3CIZbA==", + "version": "9.3.3", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.3.3.tgz", + "integrity": "sha512-ORs1Rt/uQTqUKjDdGCyrtYxbazf5umATSf/K4qxjmZHORR6HJk+2s/2Pqe+Kk49HHINC/xNIrGfgh8sZcll0ng==", "dev": true, "requires": { - "acorn": "^8.7.1", + "acorn": "^8.8.0", "acorn-jsx": "^5.3.2", "eslint-visitor-keys": "^3.3.0" } @@ -2089,7 +10691,7 @@ "dev": true, "requires": { "d": "1", - "es5-ext": "~0.10.14" + "es5-ext": "0.10.53" } }, "expand-brackets": { @@ -2134,6 +10736,63 @@ "is-extendable": "^0.1.0" } }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + } + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true + }, "ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", @@ -2161,9 +10820,9 @@ }, "dependencies": { "type": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/type/-/type-2.6.0.tgz", - "integrity": "sha512-eiDBDOmkih5pMbo9OqsqPRGMljLodLcwd5XD5JbtNB0o89xZAwynY9EdCDsJU7LtcVCClu9DvM7/0Ep1hYX3EQ==", + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", "dev": true } } @@ -2175,32 +10834,19 @@ "dev": true }, "extend-shallow": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", - "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-1.1.4.tgz", + "integrity": "sha512-L7AGmkO6jhDkEBBGWlLtftA80Xq8DipnrRPr0pyi7GQLXkaq9JYA4xF4z6qnadIC6euiTDKco0cGSU9muw+WTw==", "dev": true, "requires": { - "assign-symbols": "^1.0.0", - "is-extendable": "^1.0.1" + "kind-of": "^1.1.0" }, "dependencies": { - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, - "requires": { - "is-plain-object": "^2.0.4" - } - }, - "is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dev": true, - "requires": { - "isobject": "^3.0.1" - } + "kind-of": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-1.1.0.tgz", + "integrity": "sha512-aUH6ElPnMGon2/YkxRIigV32MOpTVcoXQ1Oo8aYn40s+sJ3j+0gFZsT8HKDcxNy7Fi9zuquWtGaGAahOdv5p/g==", + "dev": true } } }, @@ -2238,34 +10884,11 @@ "is-extendable": "^0.1.0" } }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true } } }, @@ -2327,6 +10950,13 @@ "flat-cache": "^3.0.4" } }, + "file-uri-to-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", + "dev": true, + "optional": true + }, "fill-range": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", @@ -2337,12 +10967,13 @@ } }, "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, "requires": { - "locate-path": "^2.0.0" + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" } }, "findup-sync": { @@ -2357,6 +10988,12 @@ "resolve-dir": "^1.0.1" }, "dependencies": { + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==", + "dev": true + }, "braces": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", @@ -2383,9 +11020,25 @@ "requires": { "is-extendable": "^0.1.0" } + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true } } }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + } + }, "fill-range": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", @@ -2406,6 +11059,12 @@ "requires": { "is-extendable": "^0.1.0" } + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true } } }, @@ -2429,6 +11088,12 @@ } } }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + }, "micromatch": { "version": "3.1.10", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", @@ -2509,9 +11174,9 @@ } }, "flatted": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.5.tgz", - "integrity": "sha512-WIWGi2L3DyTUvUrwRKgGi9TwxQMUEqPOPQBVi71R96jZXJdFskXEmf54BoZaS1kknGODoIGASGEzBUYdyMCBJg==", + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.6.tgz", + "integrity": "sha512-0sQoMh9s0BYsm+12Huy/rkKxVu4R1+r96YX5cG44rHV0pQ6iC3Q+mkoMFaGWObMFYQxCVT+ssG1ksneA2MI9KQ==", "dev": true }, "flush-write-stream": { @@ -2794,6 +11459,12 @@ } } }, + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==", + "dev": true + }, "binary-extensions": { "version": "1.13.1", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.1.tgz", @@ -2816,17 +11487,6 @@ "snapdragon-node": "^2.0.1", "split-string": "^3.0.2", "to-regex": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } } }, "chokidar": { @@ -2849,6 +11509,15 @@ "upath": "^1.1.1" } }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, "fill-range": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", @@ -2859,17 +11528,6 @@ "is-number": "^3.0.0", "repeat-string": "^1.6.1", "to-regex-range": "^2.1.0" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } } }, "fsevents": { @@ -2877,7 +11535,11 @@ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz", "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", "dev": true, - "optional": true + "optional": true, + "requires": { + "bindings": "^1.5.0", + "nan": "^2.12.1" + } }, "glob-parent": { "version": "3.1.0", @@ -2909,6 +11571,12 @@ "binary-extensions": "^1.0.0" } }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true + }, "is-number": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", @@ -2916,17 +11584,24 @@ "dev": true, "requires": { "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } + } + }, + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "requires": { + "isobject": "^3.0.1" + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" } }, "micromatch": { @@ -2948,6 +11623,33 @@ "regex-not": "^1.0.0", "snapdragon": "^0.8.1", "to-regex": "^3.0.2" + }, + "dependencies": { + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + } + }, + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + } + }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + } } }, "readdirp": { @@ -3009,9 +11711,9 @@ } }, "globals": { - "version": "13.15.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.15.0.tgz", - "integrity": "sha512-bpzcOlgDhMG070Av0Vy5Owklpv1I6+j96GhUI7Rh7IzDCKLzboflLrrfqMu8NquDbiR4EOQk7XzJwqVJxicxog==", + "version": "13.17.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz", + "integrity": "sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==", "dev": true, "requires": { "type-fest": "^0.20.2" @@ -3056,6 +11758,32 @@ "gulp-cli": "^2.2.0", "undertaker": "^1.2.1", "vinyl-fs": "^3.0.0" + } + }, + "gulp-cli": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/gulp-cli/-/gulp-cli-2.3.0.tgz", + "integrity": "sha512-zzGBl5fHo0EKSXsHzjspp3y5CONegCm8ErO5Qh0UzFzk2y4tMvzLWhoDokADbarfZRL2pGpRp7yt6gfJX4ph7A==", + "dev": true, + "requires": { + "ansi-colors": "^1.0.1", + "archy": "^1.0.0", + "array-sort": "^1.0.0", + "color-support": "^1.1.3", + "concat-stream": "^1.6.0", + "copy-props": "^2.0.1", + "fancy-log": "^1.3.2", + "gulplog": "^1.0.0", + "interpret": "^1.4.0", + "isobject": "^3.0.1", + "liftoff": "^3.1.0", + "matchdep": "^2.0.0", + "mute-stdout": "^1.0.0", + "pretty-hrtime": "^1.0.0", + "replace-homedir": "^1.0.0", + "semver-greatest-satisfied-range": "^1.1.0", + "v8flags": "^3.2.0", + "yargs": "^7.1.0" }, "dependencies": { "fancy-log": { @@ -3069,32 +11797,6 @@ "parse-node-version": "^1.0.0", "time-stamp": "^1.0.0" } - }, - "gulp-cli": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/gulp-cli/-/gulp-cli-2.3.0.tgz", - "integrity": "sha512-zzGBl5fHo0EKSXsHzjspp3y5CONegCm8ErO5Qh0UzFzk2y4tMvzLWhoDokADbarfZRL2pGpRp7yt6gfJX4ph7A==", - "dev": true, - "requires": { - "ansi-colors": "^1.0.1", - "archy": "^1.0.0", - "array-sort": "^1.0.0", - "color-support": "^1.1.3", - "concat-stream": "^1.6.0", - "copy-props": "^2.0.1", - "fancy-log": "^1.3.2", - "gulplog": "^1.0.0", - "interpret": "^1.4.0", - "isobject": "^3.0.1", - "liftoff": "^3.1.0", - "matchdep": "^2.0.0", - "mute-stdout": "^1.0.0", - "pretty-hrtime": "^1.0.0", - "replace-homedir": "^1.0.0", - "semver-greatest-satisfied-range": "^1.1.0", - "v8flags": "^3.2.0", - "yargs": "^7.1.0" - } } } }, @@ -3422,22 +12124,19 @@ } }, "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", "dev": true, "requires": { - "kind-of": "^3.0.2" + "kind-of": "^6.0.0" }, "dependencies": { "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true } } }, @@ -3488,31 +12187,28 @@ "dev": true }, "is-core-module": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz", - "integrity": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==", + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.10.0.tgz", + "integrity": "sha512-Erxj2n/LDAZ7H8WNJXd9tw38GYM3dv8rk8Zcs+jJuxYTW7sozH+SS8NtrSjVL1/vpLvWi1hxy96IzjJ3EHTJJg==", "dev": true, "requires": { "has": "^1.0.3" } }, "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", "dev": true, "requires": { - "kind-of": "^3.0.2" + "kind-of": "^6.0.0" }, "dependencies": { "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true } } }, @@ -3526,29 +12222,43 @@ } }, "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", "dev": true, "requires": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" }, "dependencies": { "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", "dev": true } } }, "is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "dev": true + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + }, + "dependencies": { + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "requires": { + "isobject": "^3.0.1" + } + } + } }, "is-extglob": { "version": "2.1.1", @@ -3796,9 +12506,9 @@ "dev": true }, "kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", "dev": true }, "last-run": { @@ -3900,13 +12610,12 @@ } }, "locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "dev": true, "requires": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" + "p-locate": "^5.0.0" } }, "lodash.merge": { @@ -3949,7 +12658,7 @@ "integrity": "sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==", "dev": true, "requires": { - "es5-ext": "~0.10.2" + "es5-ext": "0.10.53" } }, "make-iterator": { @@ -3959,6 +12668,14 @@ "dev": true, "requires": { "kind-of": "^6.0.2" + }, + "dependencies": { + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + } } }, "map-cache": { @@ -3988,6 +12705,12 @@ "stack-trace": "0.0.10" }, "dependencies": { + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==", + "dev": true + }, "braces": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", @@ -4014,9 +12737,25 @@ "requires": { "is-extendable": "^0.1.0" } + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true } } }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + } + }, "fill-range": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", @@ -4037,6 +12776,12 @@ "requires": { "is-extendable": "^0.1.0" } + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true } } }, @@ -4081,6 +12826,12 @@ } } }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + }, "micromatch": { "version": "3.1.10", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", @@ -4121,7 +12872,7 @@ "dev": true, "requires": { "d": "^1.0.1", - "es5-ext": "^0.10.53", + "es5-ext": "0.10.53", "es6-weak-map": "^2.0.3", "event-emitter": "^0.3.5", "is-promise": "^2.2.2", @@ -4184,26 +12935,6 @@ "requires": { "for-in": "^1.0.2", "is-extendable": "^1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, - "requires": { - "is-plain-object": "^2.0.4" - } - }, - "is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dev": true, - "requires": { - "isobject": "^3.0.1" - } - } } }, "mkdirp": { @@ -4265,16 +12996,6 @@ "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", "dev": true }, - "find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "requires": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - } - }, "get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", @@ -4312,15 +13033,6 @@ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true }, - "locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "requires": { - "p-locate": "^5.0.0" - } - }, "minimatch": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz", @@ -4341,30 +13053,6 @@ } } }, - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "requires": { - "yocto-queue": "^0.1.0" - } - }, - "p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "requires": { - "p-limit": "^3.0.2" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, "string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", @@ -4416,12 +13104,6 @@ "y18n": "^5.0.5", "yargs-parser": "^20.2.2" } - }, - "yargs-parser": { - "version": "20.2.4", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz", - "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==", - "dev": true } } }, @@ -4443,6 +13125,13 @@ "integrity": "sha512-kDcwXR4PS7caBpuRYYBUz9iVixUk3anO3f5OYFiIPwK/20vCzKCHyKoulbiDY1S53zD2bxUpxN/IJ+TnXjfvxg==", "dev": true }, + "nan": { + "version": "2.16.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.16.0.tgz", + "integrity": "sha512-UdAqHyFngu7TfQKsCBgAA6pWDkT8MAO7d0jyOecVhN5354xbLqdn8mV9Tat9gepAupm0bt2DbeaSC8vS52MuFA==", + "dev": true, + "optional": true + }, "nanoid": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz", @@ -4466,6 +13155,30 @@ "regex-not": "^1.0.0", "snapdragon": "^0.8.1", "to-regex": "^3.0.1" + }, + "dependencies": { + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==", + "dev": true + }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + } + }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + } } }, "natural-compare": { @@ -4556,6 +13269,43 @@ "is-descriptor": "^0.1.0" } }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "dependencies": { + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, "kind-of": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", @@ -4589,14 +13339,14 @@ } }, "object.assign": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.2.tgz", - "integrity": "sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ==", + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", + "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", "dev": true, "requires": { - "call-bind": "^1.0.0", - "define-properties": "^1.1.3", - "has-symbols": "^1.0.1", + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", "object-keys": "^1.1.1" } }, @@ -4694,21 +13444,21 @@ } }, "p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, "requires": { - "p-try": "^1.0.0" + "yocto-queue": "^0.1.0" } }, "p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, "requires": { - "p-limit": "^1.1.0" + "p-limit": "^3.0.2" } }, "p-map": { @@ -4720,12 +13470,6 @@ "aggregate-error": "^3.0.0" } }, - "p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==", - "dev": true - }, "parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", @@ -4780,9 +13524,9 @@ "dev": true }, "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true }, "path-is-absolute": { @@ -4874,45 +13618,6 @@ "arr-diff": "^1.0.1", "arr-union": "^2.0.1", "extend-shallow": "^1.1.2" - }, - "dependencies": { - "arr-diff": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-1.1.0.tgz", - "integrity": "sha512-OQwDZUqYaQwyyhDJHThmzId8daf4/RFNLaeh3AevmSeZ5Y7ug4Ga/yKc6l6kTZOBW781rCj103ZuTh8GAsB3+Q==", - "dev": true, - "requires": { - "arr-flatten": "^1.0.1", - "array-slice": "^0.2.3" - } - }, - "arr-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-2.1.0.tgz", - "integrity": "sha512-t5db90jq+qdgk8aFnxEkjqta0B/GHrM1pxzuuZz2zWsOXc5nKu3t+76s/PQBA8FTcM/ipspIH9jWG4OxCBc2eA==", - "dev": true - }, - "array-slice": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-0.2.3.tgz", - "integrity": "sha512-rlVfZW/1Ph2SNySXwR9QYkChp8EkOEiTMO5Vwx60usw04i4nWemkm9RXmQqgkQFaLHsqLuADvjp6IfgL9l2M8Q==", - "dev": true - }, - "extend-shallow": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-1.1.4.tgz", - "integrity": "sha512-L7AGmkO6jhDkEBBGWlLtftA80Xq8DipnrRPr0pyi7GQLXkaq9JYA4xF4z6qnadIC6euiTDKco0cGSU9muw+WTw==", - "dev": true, - "requires": { - "kind-of": "^1.1.0" - } - }, - "kind-of": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-1.1.0.tgz", - "integrity": "sha512-aUH6ElPnMGon2/YkxRIigV32MOpTVcoXQ1Oo8aYn40s+sJ3j+0gFZsT8HKDcxNy7Fi9zuquWtGaGAahOdv5p/g==", - "dev": true - } } }, "plur": { @@ -5002,9 +13707,9 @@ "dev": true }, "qs": { - "version": "6.10.5", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.10.5.tgz", - "integrity": "sha512-O5RlPh0VFtR78y79rgcgKK4wbAI0C5zGVLztOIdpWX6ep368q5Hv6XRxDvXuZ9q3C6v+e3n8UfZZJw7IIG27eQ==", + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", "dev": true, "requires": { "side-channel": "^1.0.4" @@ -5121,6 +13826,18 @@ "requires": { "extend-shallow": "^3.0.2", "safe-regex": "^1.1.0" + }, + "dependencies": { + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + } + } } }, "regexp.prototype.flags": { @@ -5209,12 +13926,12 @@ "dev": true }, "resolve": { - "version": "1.22.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz", - "integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==", + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", + "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", "dev": true, "requires": { - "is-core-module": "^2.8.1", + "is-core-module": "^2.9.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" } @@ -5371,6 +14088,12 @@ "is-extendable": "^0.1.0" } }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true + }, "is-plain-object": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", @@ -5457,6 +14180,63 @@ "is-extendable": "^0.1.0" } }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + } + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true + }, "ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", @@ -5468,6 +14248,19 @@ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", "dev": true + }, + "source-map-resolve": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", + "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", + "dev": true, + "requires": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" + } } } }, @@ -5490,35 +14283,6 @@ "requires": { "is-descriptor": "^1.0.0" } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } } } }, @@ -5549,16 +14313,13 @@ "dev": true }, "source-map-resolve": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", - "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.6.0.tgz", + "integrity": "sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==", "dev": true, "requires": { "atob": "^2.1.2", - "decode-uri-component": "^0.2.0", - "resolve-url": "^0.2.1", - "source-map-url": "^0.4.0", - "urix": "^0.1.0" + "decode-uri-component": "^0.2.0" } }, "source-map-support": { @@ -5622,6 +14383,18 @@ "dev": true, "requires": { "extend-shallow": "^3.0.0" + }, + "dependencies": { + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + } + } } }, "stack-trace": { @@ -5648,6 +14421,57 @@ "requires": { "is-descriptor": "^0.1.0" } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + } } } }, @@ -5698,6 +14522,15 @@ } } }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + }, "string-width": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", @@ -5748,15 +14581,6 @@ "es-abstract": "^1.19.5" } }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - }, "strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", @@ -5847,7 +14671,7 @@ "integrity": "sha512-b85NUNzTSdodShTIbky6ZF02e8STtVVfD+fu4aXXShEELpozH+bCpJLYMPZbsABN2wDH7fJpqIoXxJpzbf0NqQ==", "dev": true, "requires": { - "es5-ext": "~0.10.46", + "es5-ext": "0.10.53", "next-tick": "1" } }, @@ -5891,6 +14715,18 @@ "extend-shallow": "^3.0.2", "regex-not": "^1.0.2", "safe-regex": "^1.1.0" + }, + "dependencies": { + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + } + } } }, "to-regex-range": { @@ -5995,9 +14831,9 @@ "dev": true }, "typescript": { - "version": "4.7.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.3.tgz", - "integrity": "sha512-WOkT3XYvrpXx4vMMqlD+8R8R37fZkjyLGlxavMc4iB8lrl8L0DeTcHbYgw/v0N/z9wAFsgBhcsF0ruoySS22mA==", + "version": "4.7.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", + "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", "dev": true }, "unbox-primitive": { @@ -6066,6 +14902,20 @@ "get-value": "^2.0.6", "is-extendable": "^0.1.1", "set-value": "^2.0.1" + }, + "dependencies": { + "arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q==", + "dev": true + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true + } } }, "unique-stream": { @@ -6418,17 +15268,25 @@ "which-module": "^1.0.0", "y18n": "^3.2.1", "yargs-parser": "^5.0.1" + }, + "dependencies": { + "yargs-parser": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-5.0.1.tgz", + "integrity": "sha512-wpav5XYiddjXxirPoCTUPbqM0PXvJ9hiBMvuJgInvo4/lAOTZzUprArw17q2O1P2+GHhbBr18/iQwjL5Z9BqfA==", + "dev": true, + "requires": { + "camelcase": "^3.0.0", + "object.assign": "^4.1.0" + } + } } }, "yargs-parser": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-5.0.1.tgz", - "integrity": "sha512-wpav5XYiddjXxirPoCTUPbqM0PXvJ9hiBMvuJgInvo4/lAOTZzUprArw17q2O1P2+GHhbBr18/iQwjL5Z9BqfA==", - "dev": true, - "requires": { - "camelcase": "^3.0.0", - "object.assign": "^4.1.0" - } + "version": "20.2.4", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz", + "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==", + "dev": true }, "yargs-unparser": { "version": "2.0.0", diff --git a/package.json b/package.json index 4cb63db2c5b..d0655e1343e 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "typescript", "author": "Microsoft Corp.", "homepage": "https://www.typescriptlang.org/", - "version": "4.8.0", + "version": "4.9.0", "license": "Apache-2.0", "description": "TypeScript is a language for application scale JavaScript development", "keywords": [ @@ -28,9 +28,9 @@ "engines": { "node": ">=4.2.0" }, - "packageManager": "npm@6.14.15", "devDependencies": { "@octokit/rest": "latest", + "@types/async": "latest", "@types/chai": "latest", "@types/convert-source-map": "latest", "@types/fs-extra": "^9.0.13", @@ -89,8 +89,12 @@ "typescript": "^4.5.5", "vinyl": "latest", "vinyl-sourcemaps-apply": "latest", + "which": "^2.0.2", "xml2js": "^0.4.23" }, + "overrides": { + "es5-ext": "0.10.53" + }, "scripts": { "prepare": "gulp build-eslint-rules", "pretest": "gulp tests", @@ -104,8 +108,6 @@ "gulp": "gulp", "lint": "gulp lint", "lint:ci": "gulp lint --ci", - "lint:compiler": "gulp lint-compiler", - "lint:scripts": "gulp lint-scripts", "setup-hooks": "node scripts/link-hooks.js" }, "browser": { @@ -118,7 +120,9 @@ "source-map-support": false, "inspector": false }, + "packageManager": "npm@8.15.0", "volta": { - "node": "14.15.5" + "node": "14.20.0", + "npm": "8.15.0" } } diff --git a/scripts/authors.ts b/scripts/authors.ts index a619d3022d6..3c7fe985dff 100644 --- a/scripts/authors.ts +++ b/scripts/authors.ts @@ -1,6 +1,6 @@ -import fs = require("fs"); -import path = require("path"); -import childProcess = require("child_process"); +import * as fs from "fs"; +import * as path from "path"; +import * as childProcess from "child_process"; interface Author { displayNames: string[]; @@ -120,10 +120,10 @@ namespace Commands { const authors: { name: string, email: string, knownAuthor?: Author }[] = []; const {output: [error, stdout, stderr]} = childProcess.spawnSync(`git`, ["shortlog", "-se", ...specs], { cwd: path.resolve(__dirname, "../") }); if (error) { - console.log(stderr.toString()); + console.log(stderr!.toString()); } else { - const output = stdout.toString(); + const output = stdout!.toString(); const lines = output.split("\n"); lines.forEach(line => { if (line) { diff --git a/scripts/build/options.js b/scripts/build/options.js index 646ae1f826b..2c2d7c7b0a1 100644 --- a/scripts/build/options.js +++ b/scripts/build/options.js @@ -7,6 +7,7 @@ module.exports = minimist(process.argv.slice(2), { boolean: ["dirty", "light", "colors", "lint", "lkg", "soft", "fix", "failed", "keepFailed", "force", "built"], string: ["browser", "tests", "break", "host", "reporter", "stackTraceLimit", "timeout", "shards", "shardId"], alias: { + /* eslint-disable quote-props */ "b": "browser", "i": ["inspect", "inspect-brk", "break", "debug", "debug-brk"], "t": ["tests", "test"], @@ -16,6 +17,7 @@ module.exports = minimist(process.argv.slice(2), { "skippercent": "skipPercent", "w": "workers", "f": "fix" + /* eslint-enable quote-props */ }, default: { soft: false, diff --git a/scripts/build/prepend.js b/scripts/build/prepend.js index 51c8aa84a8a..d0f103ba4aa 100644 --- a/scripts/build/prepend.js +++ b/scripts/build/prepend.js @@ -1,6 +1,5 @@ // @ts-check const stream = require("stream"); -const Vinyl = require("vinyl"); const ts = require("../../lib/typescript"); const fs = require("fs"); const { base64VLQFormatEncode } = require("./sourcemaps"); @@ -43,13 +42,14 @@ function prepend(data) { sourcesContent: input.sourcesContent }; } + // eslint-disable-next-line boolean-trivia, no-null/no-null return cb(null, output); } catch (e) { return cb(e); } } - }) + }); } exports.prepend = prepend; @@ -59,6 +59,6 @@ exports.prepend = prepend; function prependFile(file) { const data = typeof file === "string" ? fs.readFileSync(file, "utf8") : vinyl => fs.readFileSync(file(vinyl), "utf8"); - return prepend(data) + return prepend(data); } -exports.prependFile = prependFile; \ No newline at end of file +exports.prependFile = prependFile; diff --git a/scripts/build/projects.js b/scripts/build/projects.js index 6f3da08c86e..7346607d3bf 100644 --- a/scripts/build/projects.js +++ b/scripts/build/projects.js @@ -35,7 +35,7 @@ class ProjectQueue { } } -const execTsc = (lkg, ...args) => +const execTsc = (/** @type {boolean} */ lkg, /** @type {string[]} */ ...args) => exec(process.execPath, [resolve(findUpRoot(), lkg ? "./lib/tsc" : "./built/local/tsc"), "-b", ...args], @@ -45,7 +45,7 @@ const projectBuilder = new ProjectQueue((projects, lkg, force) => execTsc(lkg, . /** * @param {string} project - * @param {object} [options] + * @param {object} options * @param {boolean} [options.lkg=true] * @param {boolean} [options.force=false] */ @@ -58,11 +58,11 @@ const projectCleaner = new ProjectQueue((projects, lkg) => execTsc(lkg, "--clean */ exports.cleanProject = (project) => projectCleaner.enqueue(project); -const projectWatcher = new ProjectQueue((projects) => execTsc(true, "--watch", ...projects)); +const projectWatcher = new ProjectQueue((projects) => execTsc(/*lkg*/ true, "--watch", ...projects)); /** * @param {string} project - * @param {object} [options] + * @param {object} options * @param {boolean} [options.lkg=true] */ exports.watchProject = (project, { lkg } = {}) => projectWatcher.enqueue(project, { lkg }); diff --git a/scripts/build/sourcemaps.js b/scripts/build/sourcemaps.js index 24c13b941c9..e572bf9cb49 100644 --- a/scripts/build/sourcemaps.js +++ b/scripts/build/sourcemaps.js @@ -45,4 +45,6 @@ function base64VLQFormatEncode(value) { return result; } -exports.base64VLQFormatEncode = base64VLQFormatEncode; \ No newline at end of file +exports.base64VLQFormatEncode = base64VLQFormatEncode; + +/** @typedef {object} RawSourceMap */ diff --git a/scripts/build/tests.js b/scripts/build/tests.js index 84cd23bfc10..a96877c9518 100644 --- a/scripts/build/tests.js +++ b/scripts/build/tests.js @@ -27,7 +27,7 @@ exports.localTest262Baseline = "internal/baselines/test262/local"; */ async function runConsoleTests(runJs, defaultReporter, runInParallel, watchMode, cancelToken = CancellationToken.none) { let testTimeout = cmdLineOptions.timeout; - let tests = cmdLineOptions.tests; + const tests = cmdLineOptions.tests; const inspect = cmdLineOptions.break || cmdLineOptions.inspect; const runners = cmdLineOptions.runners; const light = cmdLineOptions.light; @@ -72,7 +72,7 @@ async function runConsoleTests(runJs, defaultReporter, runInParallel, watchMode, const reporter = cmdLineOptions.reporter || defaultReporter; /** @type {string[]} */ - let args = []; + const args = []; // timeout normally isn't necessary but Travis-CI has been timing out on compiler baselines occasionally // default timeout is 2sec which really should be enough, but maybe we just need a small amount longer @@ -101,7 +101,7 @@ async function runConsoleTests(runJs, defaultReporter, runInParallel, watchMode, args.push("--no-colors"); } if (inspect !== undefined) { - args.unshift((inspect == "" || inspect === true) ? "--inspect-brk" : "--inspect-brk="+inspect); + args.unshift((inspect === "" || inspect === true) ? "--inspect-brk" : "--inspect-brk="+inspect); args.push("-t", "0"); } else { @@ -160,7 +160,7 @@ async function runConsoleTests(runJs, defaultReporter, runInParallel, watchMode, exports.runConsoleTests = runConsoleTests; async function cleanTestDirs() { - await del([exports.localBaseline, exports.localRwcBaseline]) + await del([exports.localBaseline, exports.localRwcBaseline]); mkdirP.sync(exports.localRwcBaseline); mkdirP.sync(exports.localBaseline); } @@ -214,5 +214,5 @@ function deleteTemporaryProjectOutput() { } function regExpEscape(text) { - return text.replace(/[.*+?^${}()|\[\]\\]/g, '\\$&'); + return text.replace(/[.*+?^${}()|\[\]\\]/g, "\\$&"); } diff --git a/scripts/build/utils.js b/scripts/build/utils.js index 3bcad441775..6dcccec02f4 100644 --- a/scripts/build/utils.js +++ b/scripts/build/utils.js @@ -1,4 +1,7 @@ // @ts-check + +/* eslint-disable no-restricted-globals */ +// eslint-disable-next-line @typescript-eslint/triple-slash-reference /// const fs = require("fs"); @@ -128,6 +131,7 @@ function streamFromBuffer(buffer) { return new Readable({ read() { this.push(buffer); + // eslint-disable-next-line no-null/no-null this.push(null); } }); @@ -249,7 +253,7 @@ function flatten(projectSpec, flattenedProjectSpec, options = {}) { const files = []; const resolvedOutputSpec = path.resolve(cwd, flattenedProjectSpec); const resolvedOutputDirectory = path.dirname(resolvedOutputSpec); - const resolvedProjectSpec = resolveProjectSpec(projectSpec, cwd, undefined); + const resolvedProjectSpec = resolveProjectSpec(projectSpec, cwd, /*referrer*/ undefined); const project = readJson(resolvedProjectSpec); const skipProjects = /**@type {Set}*/(new Set()); const skipFiles = new Set(options && options.exclude && options.exclude.map(file => normalizeSlashes(path.resolve(cwd, file)))); @@ -310,7 +314,7 @@ function normalizeSlashes(file) { * @returns {string} */ function resolveProjectSpec(projectSpec, cwd, referrer) { - let projectPath = normalizeSlashes(path.resolve(cwd, referrer ? path.dirname(referrer) : "", projectSpec)); + const projectPath = normalizeSlashes(path.resolve(cwd, referrer ? path.dirname(referrer) : "", projectSpec)); const stats = fs.statSync(projectPath); if (stats.isFile()) return normalizeSlashes(projectPath); return normalizeSlashes(path.resolve(cwd, projectPath, "tsconfig.json")); @@ -321,7 +325,10 @@ function resolveProjectSpec(projectSpec, cwd, referrer) { * @param {{ cwd?: string }} [opts] */ function rm(dest, opts) { - if (dest && typeof dest === "object") opts = dest, dest = undefined; + if (dest && typeof dest === "object") { + opts = dest; + dest = undefined; + } let failed = false; const cwd = path.resolve(opts && opts.cwd || process.cwd()); @@ -369,6 +376,7 @@ function rm(dest, opts) { pending.push(entry); }, final(cb) { + // eslint-disable-next-line no-null/no-null const endThenCb = () => (duplex.push(null), cb()); // signal end of read queue processDeleted(); if (pending.length) { diff --git a/scripts/configureLanguageServiceBuild.ts b/scripts/configureLanguageServiceBuild.ts index d61aeaeec35..41d189f5b85 100644 --- a/scripts/configureLanguageServiceBuild.ts +++ b/scripts/configureLanguageServiceBuild.ts @@ -1,7 +1,7 @@ /// import { normalize, dirname, join } from "path"; import { readFileSync, writeFileSync, unlinkSync, existsSync } from "fs"; -import assert = require("assert"); +import * as assert from "assert"; import { execSync } from "child_process"; const args = process.argv.slice(2); @@ -10,11 +10,11 @@ const args = process.argv.slice(2); */ interface PackageJson { name: string; - bin: {}; + bin?: {}; main: string; scripts: { - prepare: string - postpublish: string + prepare?: string + postpublish?: string } } diff --git a/scripts/configurePrerelease.ts b/scripts/configurePrerelease.ts index 141f1d5cba8..17d8bb3a920 100644 --- a/scripts/configurePrerelease.ts +++ b/scripts/configurePrerelease.ts @@ -1,6 +1,6 @@ /// import { normalize, relative } from "path"; -import assert = require("assert"); +import * as assert from "assert"; import { readFileSync, writeFileSync } from "fs"; /** diff --git a/scripts/errorCheck.ts b/scripts/errorCheck.ts index dfd78724115..711d5474aac 100644 --- a/scripts/errorCheck.ts +++ b/scripts/errorCheck.ts @@ -1,6 +1,6 @@ -const fs = require("fs"); -const async = require("async"); -const glob = require("glob"); +import * as fs from "fs"; +import * as async from "async"; +import * as glob from "glob"; fs.readFile("src/compiler/diagnosticMessages.json", "utf-8", (err, data) => { if (err) { @@ -25,7 +25,7 @@ fs.readFile("src/compiler/diagnosticMessages.json", "utf-8", (err, data) => { fs.readFile(baseDir + f, "utf-8", (err, baseline) => { if (err) throw err; - let g: string[]; + let g: RegExpExecArray | null; while (g = errRegex.exec(baseline)) { const errCode = +g[1]; const msg = keys.filter(k => messages[k].code === errCode)[0]; @@ -53,7 +53,7 @@ fs.readFile("src/compiler/diagnosticMessages.json", "utf-8", (err, data) => { fs.readFile("src/compiler/diagnosticInformationMap.generated.ts", "utf-8", (err, data) => { const errorRegexp = /\s(\w+): \{ code/g; const errorNames: string[] = []; - let errMatch: string[]; + let errMatch: RegExpExecArray | null; while (errMatch = errorRegexp.exec(data)) { errorNames.push(errMatch[1]); } diff --git a/scripts/failed-tests.d.ts b/scripts/failed-tests.d.ts index 5218a75910e..866ed8f6bfe 100644 --- a/scripts/failed-tests.d.ts +++ b/scripts/failed-tests.d.ts @@ -1,4 +1,4 @@ -import Mocha = require("mocha"); +import * as Mocha from "mocha"; export = FailedTestsReporter; diff --git a/scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.ts b/scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.ts index 8dbc6a5c668..bfe4886361b 100644 --- a/scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.ts +++ b/scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.ts @@ -46,7 +46,7 @@ function copyFileSync(source: string, destination: string) { fs.writeFileSync(destination, text); } -function importDefinitelyTypedTest(tscPath: string, rwcTestPath: string, testCaseName: string, testFiles: string[], responseFile: string) { +function importDefinitelyTypedTest(tscPath: string, rwcTestPath: string, testCaseName: string, testFiles: string[], responseFile: string | undefined) { let cmd = "node " + tscPath + " --module commonjs " + testFiles.join(" "); if (responseFile) { cmd += " @" + responseFile; @@ -122,7 +122,7 @@ function importDefinitelyTypedTests(tscPath: string, rwcTestPath: string, defini const tsFiles: string[] = []; const testFiles: string[] = []; - let paramFile: string; + let paramFile: string | undefined; for (const filePath of files.map(f => path.join(directoryPath, f))) { if (filePathEndsWith(filePath, ".ts")) { diff --git a/scripts/open-cherry-pick-pr.ts b/scripts/open-cherry-pick-pr.ts index 07e61b8e3bf..8bce97f4e06 100644 --- a/scripts/open-cherry-pick-pr.ts +++ b/scripts/open-cherry-pick-pr.ts @@ -3,9 +3,9 @@ /// import { Octokit } from "@octokit/rest"; -const {runSequence} = require("./run-sequence"); -import fs = require("fs"); -import path = require("path"); +import { runSequence } from "./run-sequence"; +import * as fs from "fs"; +import * as path from "path"; const userName = process.env.GH_USERNAME; const reviewers = process.env.REQUESTING_USER ? [process.env.REQUESTING_USER] : ["weswigham", "RyanCavanaugh"]; diff --git a/scripts/open-user-pr.ts b/scripts/open-user-pr.ts index 7d77da9dea8..314cd737771 100644 --- a/scripts/open-user-pr.ts +++ b/scripts/open-user-pr.ts @@ -2,7 +2,7 @@ /// // Must reference esnext.asynciterable lib, since octokit uses AsyncIterable internally import { Octokit } from "@octokit/rest"; -const {runSequence} = require("./run-sequence"); +import { runSequence } from "./run-sequence"; const userName = process.env.GH_USERNAME || "typescript-bot"; const reviewers = process.env.REQUESTING_USER ? [process.env.REQUESTING_USER] : ["weswigham", "sandersn", "RyanCavanaugh"]; @@ -22,7 +22,7 @@ runSequence([ ["node", ["./node_modules/gulp/bin/gulp.js", "baseline-accept"]], // accept baselines ["git", ["checkout", "-b", branchName]], // create a branch ["git", ["add", "."]], // Add all changes - ["git", ["commit", "-m", `"Update user baselines${+process.env.SOURCE_ISSUE === 33716 ? " +cc @sandersn" : ""}"`]], // Commit all changes (ping nathan if we would post to CI thread) + ["git", ["commit", "-m", `"Update user baselines${+process.env.SOURCE_ISSUE! === 33716 ? " +cc @sandersn" : ""}"`]], // Commit all changes (ping nathan if we would post to CI thread) ["git", ["push", "--set-upstream", "fork", branchName, "-f"]] // push the branch ]); diff --git a/scripts/processDiagnosticMessages.ts b/scripts/processDiagnosticMessages.ts index fd5f825b848..0ddc27b06f1 100644 --- a/scripts/processDiagnosticMessages.ts +++ b/scripts/processDiagnosticMessages.ts @@ -1,5 +1,5 @@ -import path = require("path"); -import fs = require("fs"); +import * as path from "path"; +import * as fs from "fs"; interface DiagnosticDetails { category: string; diff --git a/scripts/produceLKG.ts b/scripts/produceLKG.ts index bd23b5329bb..e4e37df028e 100644 --- a/scripts/produceLKG.ts +++ b/scripts/produceLKG.ts @@ -1,9 +1,9 @@ /// -import childProcess = require("child_process"); -import fs = require("fs-extra"); -import path = require("path"); -import glob = require("glob"); +import * as childProcess from "child_process"; +import * as fs from "fs-extra"; +import * as path from "path"; +import * as glob from "glob"; const root = path.join(__dirname, ".."); const source = path.join(root, "built/local"); @@ -90,7 +90,7 @@ async function copyFromBuiltLocal(fileName: string) { } async function copyFilesWithGlob(pattern: string) { - const files = glob.sync(path.join(source, pattern)).map(f => path.basename(f)); + const files = glob.sync(pattern, { cwd: source }).map(f => path.basename(f)); for (const f of files) { await copyFromBuiltLocal(f); } diff --git a/scripts/request-pr-review.ts b/scripts/request-pr-review.ts index fd9cf016e6e..f8c993f19e7 100644 --- a/scripts/request-pr-review.ts +++ b/scripts/request-pr-review.ts @@ -1,8 +1,7 @@ /// /// -import octokit = require("@octokit/rest"); -import Octokit = octokit.Octokit; -import minimist = require("minimist"); +import { Octokit } from "@octokit/rest"; +import * as minimist from "minimist"; const options = minimist(process.argv.slice(2), { boolean: ["help"], @@ -70,4 +69,4 @@ options: -h --help Prints this help message. `); return process.exit(exitCode); -} \ No newline at end of file +} diff --git a/scripts/run-sequence.d.ts b/scripts/run-sequence.d.ts new file mode 100644 index 00000000000..fde899dde0d --- /dev/null +++ b/scripts/run-sequence.d.ts @@ -0,0 +1,3 @@ +import { SpawnSyncOptions } from "child_process"; + +export function runSequence(tasks: [string, string[]][], opts?: SpawnSyncOptions): string; diff --git a/scripts/tsconfig.json b/scripts/tsconfig.json index eeb14ab3781..54d4a435014 100644 --- a/scripts/tsconfig.json +++ b/scripts/tsconfig.json @@ -11,13 +11,5 @@ "lib": ["es6", "scripthost"], }, - "include": [ - "generateLocalizedDiagnosticMessages.ts", - "processDiagnosticMessages.ts", - "configurePrerelease.ts", - "buildProtocol.ts", - "produceLKG.ts", - "word2md.ts", - "request-pr-review.ts" - ] + "include": ["*.ts"] } diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index 1a817ee006a..6ffe3a7ef52 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -850,6 +850,9 @@ namespace ts { case SyntaxKind.BindingElement: bindBindingElementFlow(node as BindingElement); break; + case SyntaxKind.Parameter: + bindParameterFlow(node as ParameterDeclaration); + break; case SyntaxKind.ObjectLiteralExpression: case SyntaxKind.ArrayLiteralExpression: case SyntaxKind.PropertyAssignment: @@ -1655,20 +1658,40 @@ namespace ts { } function bindBindingElementFlow(node: BindingElement) { - if (isBindingPattern(node.name)) { - // When evaluating a binding pattern, the initializer is evaluated before the binding pattern, per: - // - https://tc39.es/ecma262/#sec-destructuring-binding-patterns-runtime-semantics-iteratorbindinginitialization - // - `BindingElement: BindingPattern Initializer?` - // - https://tc39.es/ecma262/#sec-runtime-semantics-keyedbindinginitialization - // - `BindingElement: BindingPattern Initializer?` - bind(node.dotDotDotToken); - bind(node.propertyName); - bind(node.initializer); - bind(node.name); + // When evaluating a binding pattern, the initializer is evaluated before the binding pattern, per: + // - https://tc39.es/ecma262/#sec-destructuring-binding-patterns-runtime-semantics-iteratorbindinginitialization + // - `BindingElement: BindingPattern Initializer?` + // - https://tc39.es/ecma262/#sec-runtime-semantics-keyedbindinginitialization + // - `BindingElement: BindingPattern Initializer?` + bind(node.dotDotDotToken); + bind(node.propertyName); + bindInitializer(node.initializer); + bind(node.name); + } + + function bindParameterFlow(node: ParameterDeclaration) { + bindEach(node.modifiers); + bind(node.dotDotDotToken); + bind(node.questionToken); + bind(node.type); + bindInitializer(node.initializer); + bind(node.name); + } + + // a BindingElement/Parameter does not have side effects if initializers are not evaluated and used. (see GH#49759) + function bindInitializer(node: Expression | undefined) { + if (!node) { + return; } - else { - bindEachChild(node); + const entryFlow = currentFlow; + bind(node); + if (entryFlow === unreachableFlow || entryFlow === currentFlow) { + return; } + const exitFlow = createBranchLabel(); + addAntecedent(exitFlow, entryFlow); + addAntecedent(exitFlow, currentFlow); + currentFlow = finishFlowLabel(exitFlow); } function bindJSDocTypeAlias(node: JSDocTypedefTag | JSDocCallbackTag | JSDocEnumTag) { @@ -2040,41 +2063,6 @@ namespace ts { } function bindObjectLiteralExpression(node: ObjectLiteralExpression) { - const enum ElementKind { - Property = 1, - Accessor = 2 - } - - if (inStrictMode && !isAssignmentTarget(node)) { - const seen = new Map<__String, ElementKind>(); - - for (const prop of node.properties) { - if (prop.kind === SyntaxKind.SpreadAssignment || prop.name.kind !== SyntaxKind.Identifier) { - continue; - } - - const identifier = prop.name; - - // ECMA-262 11.1.5 Object Initializer - // If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true - // a.This production is contained in strict code and IsDataDescriptor(previous) is true and - // IsDataDescriptor(propId.descriptor) is true. - // b.IsDataDescriptor(previous) is true and IsAccessorDescriptor(propId.descriptor) is true. - // c.IsAccessorDescriptor(previous) is true and IsDataDescriptor(propId.descriptor) is true. - // d.IsAccessorDescriptor(previous) is true and IsAccessorDescriptor(propId.descriptor) is true - // and either both previous and propId.descriptor have[[Get]] fields or both previous and propId.descriptor have[[Set]] fields - const currentKind = prop.kind === SyntaxKind.PropertyAssignment || prop.kind === SyntaxKind.ShorthandPropertyAssignment || prop.kind === SyntaxKind.MethodDeclaration - ? ElementKind.Property - : ElementKind.Accessor; - - const existingKind = seen.get(identifier.escapedText); - if (!existingKind) { - seen.set(identifier.escapedText, currentKind); - continue; - } - } - } - return bindAnonymousDeclaration(node, SymbolFlags.ObjectLiteral, InternalSymbolName.Object); } diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index 17e90bd6225..61777135828 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -62,9 +62,9 @@ namespace ts { */ outSignature?: string; /** - * Time when d.ts was modified + * Name of the file whose dts was the latest to change */ - dtsChangeTime: number | undefined; + latestChangedDtsFile: string | undefined; } export const enum BuilderFileEmit { @@ -112,7 +112,7 @@ namespace ts { /** * Records if change in dts emit was detected */ - hasChangedEmitSignature?: boolean; + hasChangedEmitSignature?: boolean; /** * Files pending to be emitted */ @@ -141,7 +141,7 @@ namespace ts { "programEmitComplete" | "emitSignatures" | "outSignature" | - "dtsChangeTime" | + "latestChangedDtsFile" | "hasChangedEmitSignature" > & { changedFilesSet: BuilderProgramState["changedFilesSet"] | undefined }; @@ -167,7 +167,7 @@ namespace ts { state.outSignature = oldState?.outSignature; } state.changedFilesSet = new Set(); - state.dtsChangeTime = compilerOptions.composite ? oldState?.dtsChangeTime : undefined; + state.latestChangedDtsFile = compilerOptions.composite ? oldState?.latestChangedDtsFile : undefined; const useOldState = BuilderState.canReuseOldState(state.referencedMap, oldState); const oldCompilerOptions = useOldState ? oldState!.compilerOptions : undefined; @@ -301,7 +301,7 @@ namespace ts { programEmitComplete: state.programEmitComplete, emitSignatures: state.emitSignatures && new Map(state.emitSignatures), outSignature: state.outSignature, - dtsChangeTime: state.dtsChangeTime, + latestChangedDtsFile: state.latestChangedDtsFile, hasChangedEmitSignature: state.hasChangedEmitSignature, changedFilesSet: outFilePath ? new Set(state.changedFilesSet) : undefined, }; @@ -315,7 +315,7 @@ namespace ts { state.programEmitComplete = savedEmitState.programEmitComplete; state.emitSignatures = savedEmitState.emitSignatures; state.outSignature = savedEmitState.outSignature; - state.dtsChangeTime = savedEmitState.dtsChangeTime; + state.latestChangedDtsFile = savedEmitState.latestChangedDtsFile; state.hasChangedEmitSignature = savedEmitState.hasChangedEmitSignature; if (savedEmitState.changedFilesSet) state.changedFilesSet = savedEmitState.changedFilesSet; } @@ -795,7 +795,8 @@ namespace ts { affectedFilesPendingEmit?: ProgramBuilderInfoFilePendingEmit[]; changeFileSet?: readonly ProgramBuildInfoFileId[]; emitSignatures?: readonly ProgramBuildInfoEmitSignature[]; - dtsChangeTime?: number; + // Because this is only output file in the program, we dont need fileId to deduplicate name + latestChangedDtsFile?: string; } export interface ProgramBundleEmitBuildInfo { @@ -803,7 +804,7 @@ namespace ts { fileInfos: readonly string[]; options: CompilerOptions | undefined; outSignature?: string; - dtsChangeTime?: number; + latestChangedDtsFile?: string; } export type ProgramBuildInfo = ProgramMultiFileEmitBuildInfo | ProgramBundleEmitBuildInfo; @@ -815,13 +816,13 @@ namespace ts { /** * Gets the program information to be emitted in buildInfo so that we can use it to create new program */ - function getProgramBuildInfo(state: BuilderProgramState, getCanonicalFileName: GetCanonicalFileName, host: BuilderProgramHost): ProgramBuildInfo | undefined { + function getProgramBuildInfo(state: BuilderProgramState, getCanonicalFileName: GetCanonicalFileName): ProgramBuildInfo | undefined { const outFilePath = outFile(state.compilerOptions); if (outFilePath && !state.compilerOptions.composite) return; const currentDirectory = Debug.checkDefined(state.program).getCurrentDirectory(); const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions)!, currentDirectory)); - // Update the dtsChange time in buildInfo - state.dtsChangeTime = state.hasChangedEmitSignature ? getCurrentTime(host).getTime() : state.dtsChangeTime; + // Convert the file name to Path here if we set the fileName instead to optimize multiple d.ts file emits and having to compute Canonical path + const latestChangedDtsFile = state.latestChangedDtsFile ? relativeToBuildInfoEnsuringAbsolutePath(state.latestChangedDtsFile) : undefined; if (outFilePath) { const fileNames: string[] = []; const fileInfos: string[] = []; @@ -836,7 +837,7 @@ namespace ts { fileInfos, options: convertToProgramBuildInfoCompilerOptions(state.compilerOptions, "affectsBundleEmitBuildInfo"), outSignature: state.outSignature, - dtsChangeTime: state.dtsChangeTime, + latestChangedDtsFile, }; return result; } @@ -939,7 +940,7 @@ namespace ts { affectedFilesPendingEmit, changeFileSet, emitSignatures, - dtsChangeTime: state.dtsChangeTime, + latestChangedDtsFile, }; return result; @@ -1137,7 +1138,7 @@ namespace ts { */ const computeHash = maybeBind(host, host.createHash); const state = createBuilderProgramState(newProgram, getCanonicalFileName, oldState, host.disableUseFileVersionAsSignature); - newProgram.getProgramBuildInfo = () => getProgramBuildInfo(state, getCanonicalFileName, host); + newProgram.getProgramBuildInfo = () => getProgramBuildInfo(state, getCanonicalFileName); // To ensure that we arent storing any references to old program or new program without state newProgram = undefined!; // TODO: GH#18217 @@ -1149,6 +1150,7 @@ namespace ts { builderProgram.getState = getState; builderProgram.saveEmitState = () => backupBuilderProgramEmitState(state); builderProgram.restoreEmitState = (saved) => restoreBuilderProgramEmitState(state, saved); + builderProgram.hasChangedEmitSignature = () => !!state.hasChangedEmitSignature; builderProgram.getAllDependencies = sourceFile => BuilderState.getAllDependencies(state, Debug.checkDefined(state.program), sourceFile); builderProgram.getSemanticDiagnostics = getSemanticDiagnostics; builderProgram.emit = emit; @@ -1279,18 +1281,20 @@ namespace ts { const filePath = sourceFiles[0].resolvedPath; const oldSignature = state.emitSignatures?.get(filePath); emitSignature ??= computeSignature(text, computeHash, data); - if (emitSignature !== oldSignature) { - (state.emitSignatures ??= new Map()).set(filePath, emitSignature); - state.hasChangedEmitSignature = true; - } + // Dont write dts files if they didn't change + if (emitSignature === oldSignature) return; + (state.emitSignatures ??= new Map()).set(filePath, emitSignature); + state.hasChangedEmitSignature = true; + state.latestChangedDtsFile = fileName; } } else if (state.compilerOptions.composite) { const newSignature = computeSignature(text, computeHash, data); - if (newSignature !== state.outSignature) { - state.outSignature = newSignature; - state.hasChangedEmitSignature = true; - } + // Dont write dts files if they didn't change + if (newSignature === state.outSignature) return; + state.outSignature = newSignature; + state.hasChangedEmitSignature = true; + state.latestChangedDtsFile = fileName; } } if (writeFile) writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data); @@ -1472,11 +1476,12 @@ namespace ts { let state: ReusableBuilderProgramState; let filePaths: Path[] | undefined; let filePathsSetList: Set[] | undefined; + const latestChangedDtsFile = program.latestChangedDtsFile ? toAbsolutePath(program.latestChangedDtsFile) : undefined; if (isProgramBundleEmitBuildInfo(program)) { state = { fileInfos: new Map(), compilerOptions: program.options ? convertToOptionsWithAbsolutePaths(program.options, toAbsolutePath) : {}, - dtsChangeTime: program.dtsChangeTime, + latestChangedDtsFile, outSignature: program.outSignature, }; } @@ -1506,7 +1511,7 @@ namespace ts { affectedFilesPendingEmitKind: program.affectedFilesPendingEmit && arrayToMap(program.affectedFilesPendingEmit, value => toFilePath(value[0]), value => value[1]), affectedFilesPendingEmitIndex: program.affectedFilesPendingEmit && 0, changedFilesSet: new Set(map(program.changeFileSet, toFilePath)), - dtsChangeTime: program.dtsChangeTime, + latestChangedDtsFile, emitSignatures: emitSignatures?.size ? emitSignatures : undefined, }; } @@ -1534,6 +1539,7 @@ namespace ts { getSemanticDiagnosticsOfNextAffectedFile: notImplemented, emitBuildInfo: notImplemented, close: noop, + hasChangedEmitSignature: returnFalse, }; function toPath(path: string) { diff --git a/src/compiler/builderPublic.ts b/src/compiler/builderPublic.ts index 9831c965c44..cc1a971753f 100644 --- a/src/compiler/builderPublic.ts +++ b/src/compiler/builderPublic.ts @@ -42,6 +42,8 @@ namespace ts { saveEmitState(): SavedBuildProgramEmitState; /*@internal*/ restoreEmitState(saved: SavedBuildProgramEmitState): void; + /*@internal*/ + hasChangedEmitSignature?(): boolean; /** * Returns current program */ diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 4e1e4766da4..5a325cfc059 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -61,7 +61,7 @@ namespace ts { GeneratorYield, } - const enum TypeFacts { + export const enum TypeFacts { None = 0, TypeofEQString = 1 << 0, // typeof x === "string" TypeofEQNumber = 1 << 1, // typeof x === "number" @@ -169,7 +169,7 @@ namespace ts { WriteType, } - const enum CheckMode { + export const enum CheckMode { Normal = 0, // Normal type checking Contextual = 1 << 0, // Explicitly assigned contextual type, therefore not cacheable Inferential = 1 << 1, // Inferential typing @@ -182,7 +182,7 @@ namespace ts { // we need to preserve generic types instead of substituting them for constraints } - const enum SignatureCheckMode { + export const enum SignatureCheckMode { BivariantCallback = 1 << 0, StrictCallback = 1 << 1, IgnoreReturnTypes = 1 << 2, @@ -542,7 +542,7 @@ namespace ts { }, getContextualTypeForObjectLiteralElement: nodeIn => { const node = getParseTreeNode(nodeIn, isObjectLiteralElementLike); - return node ? getContextualTypeForObjectLiteralElement(node) : undefined; + return node ? getContextualTypeForObjectLiteralElement(node, /*contextFlags*/ undefined) : undefined; }, getContextualTypeForArgumentAtIndex: (nodeIn, argIndex) => { const node = getParseTreeNode(nodeIn, isCallLikeExpression); @@ -550,7 +550,7 @@ namespace ts { }, getContextualTypeForJsxAttribute: (nodeIn) => { const node = getParseTreeNode(nodeIn, isJsxAttributeLike); - return node && getContextualTypeForJsxAttribute(node); + return node && getContextualTypeForJsxAttribute(node, /*contextFlags*/ undefined); }, isContextSensitive, getTypeOfPropertyOfContextualType, @@ -774,6 +774,7 @@ namespace ts { const stringMappingTypes = new Map(); const substitutionTypes = new Map(); const subtypeReductionCache = new Map(); + const cachedTypes = new Map(); const evolvingArrayTypes: EvolvingArrayType[] = []; const undefinedProperties: SymbolTable = new Map(); const markerTypes = new Set(); @@ -784,11 +785,10 @@ namespace ts { const errorTypes = new Map(); const anyType = createIntrinsicType(TypeFlags.Any, "any"); - const autoType = createIntrinsicType(TypeFlags.Any, "any"); + const autoType = createIntrinsicType(TypeFlags.Any, "any", ObjectFlags.NonInferrableType); const wildcardType = createIntrinsicType(TypeFlags.Any, "any"); const errorType = createIntrinsicType(TypeFlags.Any, "error"); const unresolvedType = createIntrinsicType(TypeFlags.Any, "unresolved"); - const nonInferrableAnyType = createIntrinsicType(TypeFlags.Any, "any", ObjectFlags.ContainsWideningType); const intrinsicMarkerType = createIntrinsicType(TypeFlags.Any, "intrinsic"); const unknownType = createIntrinsicType(TypeFlags.Unknown, "unknown"); const nonNullUnknownType = createIntrinsicType(TypeFlags.Unknown, "unknown"); @@ -817,8 +817,7 @@ namespace ts { const esSymbolType = createIntrinsicType(TypeFlags.ESSymbol, "symbol"); const voidType = createIntrinsicType(TypeFlags.Void, "void"); const neverType = createIntrinsicType(TypeFlags.Never, "never"); - const silentNeverType = createIntrinsicType(TypeFlags.Never, "never"); - const nonInferrableType = createIntrinsicType(TypeFlags.Never, "never", ObjectFlags.NonInferrableType); + const silentNeverType = createIntrinsicType(TypeFlags.Never, "never", ObjectFlags.NonInferrableType); const implicitNeverType = createIntrinsicType(TypeFlags.Never, "never"); const unreachableNeverType = createIntrinsicType(TypeFlags.Never, "never"); const nonPrimitiveType = createIntrinsicType(TypeFlags.NonPrimitive, "object"); @@ -829,10 +828,23 @@ namespace ts { const templateConstraintType = getUnionType([stringType, numberType, booleanType, bigintType, nullType, undefinedType]) as UnionType; const numericStringType = getTemplateLiteralType(["", ""], [numberType]); // The `${number}` type - const restrictiveMapper: TypeMapper = makeFunctionTypeMapper(t => t.flags & TypeFlags.TypeParameter ? getRestrictiveTypeParameter(t as TypeParameter) : t); - const permissiveMapper: TypeMapper = makeFunctionTypeMapper(t => t.flags & TypeFlags.TypeParameter ? wildcardType : t); + const restrictiveMapper: TypeMapper = makeFunctionTypeMapper(t => t.flags & TypeFlags.TypeParameter ? getRestrictiveTypeParameter(t as TypeParameter) : t, () => "(restrictive mapper)"); + const permissiveMapper: TypeMapper = makeFunctionTypeMapper(t => t.flags & TypeFlags.TypeParameter ? wildcardType : t, () => "(permissive mapper)"); const uniqueLiteralType = createIntrinsicType(TypeFlags.Never, "never"); // `uniqueLiteralType` is a special `never` flagged by union reduction to behave as a literal - const uniqueLiteralMapper: TypeMapper = makeFunctionTypeMapper(t => t.flags & TypeFlags.TypeParameter ? uniqueLiteralType : t); // replace all type parameters with the unique literal type (disregarding constraints) + const uniqueLiteralMapper: TypeMapper = makeFunctionTypeMapper(t => t.flags & TypeFlags.TypeParameter ? uniqueLiteralType : t, () => "(unique literal mapper)"); // replace all type parameters with the unique literal type (disregarding constraints) + let outofbandVarianceMarkerHandler: ((onlyUnreliable: boolean) => void) | undefined; + const reportUnreliableMapper = makeFunctionTypeMapper(t => { + if (outofbandVarianceMarkerHandler && (t === markerSuperType || t === markerSubType || t === markerOtherType)) { + outofbandVarianceMarkerHandler(/*onlyUnreliable*/ true); + } + return t; + }, () => "(unmeasurable reporter)"); + const reportUnmeasurableMapper = makeFunctionTypeMapper(t => { + if (outofbandVarianceMarkerHandler && (t === markerSuperType || t === markerSubType || t === markerOtherType)) { + outofbandVarianceMarkerHandler(/*onlyUnreliable*/ false); + } + return t; + }, () => "(unreliable reporter)"); const emptyObjectType = createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, emptyArray); const emptyJsxObjectType = createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, emptyArray); @@ -1029,7 +1041,6 @@ namespace ts { let _jsxNamespace: __String; let _jsxFactoryEntity: EntityName | undefined; - let outofbandVarianceMarkerHandler: ((onlyUnreliable: boolean) => void) | undefined; const subtypeRelation = new Map(); const strictSubtypeRelation = new Map(); @@ -1061,6 +1072,15 @@ namespace ts { return checker; + function getCachedType(key: string | undefined) { + return key ? cachedTypes.get(key) : undefined; + } + + function setCachedType(key: string | undefined, type: Type) { + if (key) cachedTypes.set(key, type); + return type; + } + function getJsxNamespace(location: Node | undefined): __String { if (location) { const file = getSourceFileOfNode(location); @@ -1406,7 +1426,7 @@ namespace ts { function mergeSymbolTable(target: SymbolTable, source: SymbolTable, unidirectional = false) { source.forEach((sourceSymbol, id) => { const targetSymbol = target.get(id); - target.set(id, targetSymbol ? mergeSymbol(targetSymbol, sourceSymbol, unidirectional) : sourceSymbol); + target.set(id, targetSymbol ? mergeSymbol(targetSymbol, sourceSymbol, unidirectional) : getMergedSymbol(sourceSymbol)); }); } @@ -1835,7 +1855,7 @@ namespace ts { let result: Symbol | undefined; let lastLocation: Node | undefined; let lastSelfReferenceLocation: Node | undefined; - let propertyWithInvalidInitializer: Node | undefined; + let propertyWithInvalidInitializer: PropertyDeclaration | undefined; let associatedDeclarationForContainingInitializerOrBindingName: ParameterDeclaration | BindingElement | undefined; let withinDeferredContext = false; const errorLocation = location; @@ -1969,6 +1989,7 @@ namespace ts { if (ctor && ctor.locals) { if (lookup(ctor.locals, name, meaning & SymbolFlags.Value)) { // Remember the property node, it will be used later to report appropriate error + Debug.assertNode(location, isPropertyDeclaration); propertyWithInvalidInitializer = location; } } @@ -2165,11 +2186,31 @@ namespace ts { } } } + + // The invalid initializer error is needed in two situation: + // 1. When result is undefined, after checking for a missing "this." + // 2. When result is defined + function checkAndReportErrorForInvalidInitializer() { + if (propertyWithInvalidInitializer && !(useDefineForClassFields && getEmitScriptTarget(compilerOptions) >= ScriptTarget.ES2022)) { + // We have a match, but the reference occurred within a property initializer and the identifier also binds + // to a local variable in the constructor where the code will be emitted. Note that this is actually allowed + // with ESNext+useDefineForClassFields because the scope semantics are different. + error(errorLocation, + errorLocation && propertyWithInvalidInitializer.type && textRangeContainsPositionInclusive(propertyWithInvalidInitializer.type, errorLocation.pos) + ? Diagnostics.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor + : Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor, + declarationNameToString(propertyWithInvalidInitializer.name), diagnosticName(nameArg!)); + return true; + } + return false; + } + if (!result) { if (nameNotFoundMessage) { addLazyDiagnostic(() => { if (!errorLocation || !checkAndReportErrorForMissingPrefix(errorLocation, name, nameArg!) && // TODO: GH#18217 + !checkAndReportErrorForInvalidInitializer() && !checkAndReportErrorForExtendingInterface(errorLocation) && !checkAndReportErrorForUsingTypeAsNamespace(errorLocation, name, meaning) && !checkAndReportErrorForExportingPrimitiveType(errorLocation, name) && @@ -2177,7 +2218,16 @@ namespace ts { !checkAndReportErrorForUsingNamespaceModuleAsValue(errorLocation, name, meaning) && !checkAndReportErrorForUsingValueAsType(errorLocation, name, meaning)) { let suggestion: Symbol | undefined; - if (getSpellingSuggestions && suggestionCount < maximumSuggestionCount) { + let suggestedLib: string | undefined; + // Report missing lib first + if (nameArg) { + suggestedLib = getSuggestedLibForNonExistentName(nameArg); + if (suggestedLib) { + error(errorLocation, nameNotFoundMessage, diagnosticName(nameArg), suggestedLib); + } + } + // then spelling suggestions + if (!suggestedLib && getSpellingSuggestions && suggestionCount < maximumSuggestionCount) { suggestion = getSuggestedSymbolForNonexistentSymbol(originalLocation, name, meaning); const isGlobalScopeAugmentationDeclaration = suggestion?.valueDeclaration && isAmbientModule(suggestion.valueDeclaration) && isGlobalScopeAugmentation(suggestion.valueDeclaration); if (isGlobalScopeAugmentationDeclaration) { @@ -2199,16 +2249,9 @@ namespace ts { } } } - if (!suggestion) { - if (nameArg) { - const lib = getSuggestedLibForNonExistentName(nameArg); - if (lib) { - error(errorLocation, nameNotFoundMessage, diagnosticName(nameArg), lib); - } - else { - error(errorLocation, nameNotFoundMessage, diagnosticName(nameArg)); - } - } + // And then fall back to unspecified "not found" + if (!suggestion && !suggestedLib && nameArg) { + error(errorLocation, nameNotFoundMessage, diagnosticName(nameArg)); } suggestionCount++; } @@ -2216,14 +2259,7 @@ namespace ts { } return undefined; } - - if (propertyWithInvalidInitializer && !(getEmitScriptTarget(compilerOptions) === ScriptTarget.ESNext && useDefineForClassFields)) { - // We have a match, but the reference occurred within a property initializer and the identifier also binds - // to a local variable in the constructor where the code will be emitted. Note that this is actually allowed - // with ESNext+useDefineForClassFields because the scope semantics are different. - const propertyName = (propertyWithInvalidInitializer as PropertyDeclaration).name; - error(errorLocation, Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor, - declarationNameToString(propertyName), diagnosticName(nameArg!)); + else if (checkAndReportErrorForInvalidInitializer()) { return undefined; } @@ -2792,7 +2828,7 @@ namespace ts { if (exportAssignment) { addRelatedInfo(err, createDiagnosticForNode( exportAssignment, - Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag, + Diagnostics.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag, compilerOptionName )); } @@ -3103,11 +3139,6 @@ namespace ts { return getNodeLinks(expression).resolvedSymbol; } - function getTargetOfPropertyAssignment(node: PropertyAssignment, dontRecursivelyResolve: boolean): Symbol | undefined { - const expression = node.initializer; - return getTargetOfAliasLikeExpression(expression, dontRecursivelyResolve); - } - function getTargetOfAccessExpression(node: AccessExpression, dontRecursivelyResolve: boolean): Symbol | undefined { if (!(isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === SyntaxKind.EqualsToken)) { return undefined; @@ -3140,7 +3171,7 @@ namespace ts { case SyntaxKind.ShorthandPropertyAssignment: return resolveEntityName((node as ShorthandPropertyAssignment).name, SymbolFlags.Value | SymbolFlags.Type | SymbolFlags.Namespace, /*ignoreErrors*/ true, dontRecursivelyResolve); case SyntaxKind.PropertyAssignment: - return getTargetOfPropertyAssignment(node as PropertyAssignment, dontRecursivelyResolve); + return getTargetOfAliasLikeExpression((node as PropertyAssignment).initializer, dontRecursivelyResolve); case SyntaxKind.ElementAccessExpression: case SyntaxKind.PropertyAccessExpression: return getTargetOfAccessExpression(node as AccessExpression, dontRecursivelyResolve); @@ -3585,7 +3616,51 @@ namespace ts { // An override clause will take effect for type-only imports and import types, and allows importing the types across formats, regardless of // normal mode restrictions if (isSyncImport && sourceFile.impliedNodeFormat === ModuleKind.ESNext && !getResolutionModeOverrideForClause(overrideClause)) { - error(errorNode, Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead, moduleReference); + if (findAncestor(location, isImportEqualsDeclaration)) { + // ImportEquals in a ESM file resolving to another ESM file + error(errorNode, Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead, moduleReference); + } + else { + // CJS file resolving to an ESM file + let diagnosticDetails; + const ext = tryGetExtensionFromPath(currentSourceFile.fileName); + if (ext === Extension.Ts || ext === Extension.Js || ext === Extension.Tsx || ext === Extension.Jsx) { + const scope = currentSourceFile.packageJsonScope; + const targetExt = ext === Extension.Ts ? Extension.Mts : ext === Extension.Js ? Extension.Mjs : undefined; + if (scope && !scope.packageJsonContent.type) { + if (targetExt) { + diagnosticDetails = chainDiagnosticMessages( + /*details*/ undefined, + Diagnostics.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1, + targetExt, + combinePaths(scope.packageDirectory, "package.json")); + } + else { + diagnosticDetails = chainDiagnosticMessages( + /*details*/ undefined, + Diagnostics.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0, + combinePaths(scope.packageDirectory, "package.json")); + } + } + else { + if (targetExt) { + diagnosticDetails = chainDiagnosticMessages( + /*details*/ undefined, + Diagnostics.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module, + targetExt); + } + else { + diagnosticDetails = chainDiagnosticMessages( + /*details*/ undefined, + Diagnostics.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module); + } + } + } + diagnostics.add(createDiagnosticForNodeFromMessageChain(errorNode, chainDiagnosticMessages( + diagnosticDetails, + Diagnostics.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead, + moduleReference))); + } } } // merged symbol is module declaration symbol combined with all augmentations @@ -4656,13 +4731,25 @@ namespace ts { && isDeclarationVisible(declaration.parent)) { return addVisibleAlias(declaration, declaration); } - else if (symbol.flags & SymbolFlags.Alias && isBindingElement(declaration) && isInJSFile(declaration) && declaration.parent?.parent // exported import-like top-level JS require statement - && isVariableDeclaration(declaration.parent.parent) - && declaration.parent.parent.parent?.parent && isVariableStatement(declaration.parent.parent.parent.parent) - && !hasSyntacticModifier(declaration.parent.parent.parent.parent, ModifierFlags.Export) - && declaration.parent.parent.parent.parent.parent // check if the thing containing the variable statement is visible (ie, the file) - && isDeclarationVisible(declaration.parent.parent.parent.parent.parent)) { - return addVisibleAlias(declaration, declaration.parent.parent.parent.parent); + else if (isBindingElement(declaration)) { + if (symbol.flags & SymbolFlags.Alias && isInJSFile(declaration) && declaration.parent?.parent // exported import-like top-level JS require statement + && isVariableDeclaration(declaration.parent.parent) + && declaration.parent.parent.parent?.parent && isVariableStatement(declaration.parent.parent.parent.parent) + && !hasSyntacticModifier(declaration.parent.parent.parent.parent, ModifierFlags.Export) + && declaration.parent.parent.parent.parent.parent // check if the thing containing the variable statement is visible (ie, the file) + && isDeclarationVisible(declaration.parent.parent.parent.parent.parent)) { + return addVisibleAlias(declaration, declaration.parent.parent.parent.parent); + } + else if (symbol.flags & SymbolFlags.BlockScopedVariable) { + const variableStatement = findAncestor(declaration, isVariableStatement)!; + if (hasSyntacticModifier(variableStatement, ModifierFlags.Export)) { + return true; + } + if (!isDeclarationVisible(variableStatement.parent)) { + return false; + } + return addVisibleAlias(declaration, variableStatement); + } } // Declaration is not visible @@ -4905,6 +4992,13 @@ namespace ts { } function typeToTypeNodeHelper(type: Type, context: NodeBuilderContext): TypeNode { + const savedFlags = context.flags; + const typeNode = typeToTypeNodeWorker(type, context); + context.flags = savedFlags; + return typeNode; + } + + function typeToTypeNodeWorker(type: Type, context: NodeBuilderContext): TypeNode { if (cancellationToken && cancellationToken.throwIfCancellationRequested) { cancellationToken.throwIfCancellationRequested(); } @@ -5164,7 +5258,7 @@ namespace ts { const name = typeParameterToName(newParam, context); const newTypeVariable = factory.createTypeReferenceNode(name); context.approximateLength += 37; // 15 each for two added conditionals, 7 for an added infer type - const newMapper = prependTypeMapping(type.root.checkType, newParam, type.combinedMapper || type.mapper); + const newMapper = prependTypeMapping(type.root.checkType, newParam, type.mapper); const saveInferTypeParameters = context.inferTypeParameters; context.inferTypeParameters = type.root.inferTypeParameters; const extendsTypeNode = typeToTypeNodeHelper(instantiateType(type.root.extendsType, newMapper), context); @@ -5218,6 +5312,11 @@ namespace ts { return typeToTypeNodeHelper(type, context); } + function isHomomorphicMappedTypeWithNonHomomorphicInstantiation(type: MappedType) { + return isMappedTypeWithKeyofConstraintDeclaration(type) + && !(getModifiersTypeFromMappedType(type).flags & TypeFlags.TypeParameter); + } + function createMappedTypeNodeFromType(type: MappedType) { Debug.assert(!!(type.flags & TypeFlags.Object)); const readonlyToken = type.declaration.readonlyToken ? factory.createToken(type.declaration.readonlyToken.kind) as ReadonlyKeyword | PlusToken | MinusToken : undefined; @@ -5227,7 +5326,7 @@ namespace ts { if (isMappedTypeWithKeyofConstraintDeclaration(type)) { // We have a { [P in keyof T]: X } // We do this to ensure we retain the toplevel keyof-ness of the type which may be lost due to keyof distribution during `getConstraintTypeFromMappedType` - if (!(getModifiersTypeFromMappedType(type).flags & TypeFlags.TypeParameter) && context.flags & NodeBuilderFlags.GenerateNamesForShadowedTypeParams) { + if (isHomomorphicMappedTypeWithNonHomomorphicInstantiation(type) && context.flags & NodeBuilderFlags.GenerateNamesForShadowedTypeParams) { const newParam = createTypeParameter(createSymbol(SymbolFlags.TypeParameter, "T" as __String)); const name = typeParameterToName(newParam, context); newTypeVariable = factory.createTypeReferenceNode(name); @@ -5243,13 +5342,14 @@ namespace ts { const mappedTypeNode = factory.createMappedTypeNode(readonlyToken, typeParameterNode, nameTypeNode, questionToken, templateTypeNode, /*members*/ undefined); context.approximateLength += 10; const result = setEmitFlags(mappedTypeNode, EmitFlags.SingleLine); - if (isMappedTypeWithKeyofConstraintDeclaration(type) && !(getModifiersTypeFromMappedType(type).flags & TypeFlags.TypeParameter) && context.flags & NodeBuilderFlags.GenerateNamesForShadowedTypeParams) { + if (isHomomorphicMappedTypeWithNonHomomorphicInstantiation(type) && context.flags & NodeBuilderFlags.GenerateNamesForShadowedTypeParams) { // homomorphic mapped type with a non-homomorphic naive inlining // wrap it with a conditional like `SomeModifiersType extends infer U ? {..the mapped type...} : never` to ensure the resulting // type stays homomorphic + const originalConstraint = instantiateType(getConstraintOfTypeParameter(getTypeFromTypeNode((type.declaration.typeParameter.constraint! as TypeOperatorNode).type) as TypeParameter) || unknownType, type.mapper); return factory.createConditionalTypeNode( typeToTypeNodeHelper(getModifiersTypeFromMappedType(type), context), - factory.createInferTypeNode(factory.createTypeParameterDeclaration(/*modifiers*/ undefined, factory.cloneNode(newTypeVariable!.typeName) as Identifier)), + factory.createInferTypeNode(factory.createTypeParameterDeclaration(/*modifiers*/ undefined, factory.cloneNode(newTypeVariable!.typeName) as Identifier, originalConstraint.flags & TypeFlags.Unknown ? undefined : typeToTypeNodeHelper(originalConstraint, context))), result, factory.createKeywordTypeNode(SyntaxKind.NeverKeyword) ); @@ -5869,7 +5969,7 @@ namespace ts { const expandedParams = getExpandedParameters(signature, /*skipUnionExpanding*/ true)[0]; // If the expanded parameter list had a variadic in a non-trailing position, don't expand it const parameters = (some(expandedParams, p => p !== expandedParams[expandedParams.length - 1] && !!(getCheckFlags(p) & CheckFlags.RestParameter)) ? signature.parameters : expandedParams).map(parameter => symbolToParameterDeclaration(parameter, context, kind === SyntaxKind.Constructor, options?.privateSymbolVisitor, options?.bundledImports)); - const thisParameter = tryGetThisParameterDeclaration(signature, context); + const thisParameter = context.flags & NodeBuilderFlags.OmitThisParameter ? undefined : tryGetThisParameterDeclaration(signature, context); if (thisParameter) { parameters.unshift(thisParameter); } @@ -7092,7 +7192,7 @@ namespace ts { } } - function serializeSymbol(symbol: Symbol, isPrivate: boolean, propertyAsAlias: boolean) { + function serializeSymbol(symbol: Symbol, isPrivate: boolean, propertyAsAlias: boolean): void { // cache visited list based on merged symbol, since we want to use the unmerged top-level symbol, but // still skip reserializing it if we encounter the merged product later on const visitedSym = getMergedSymbol(symbol); @@ -7105,12 +7205,11 @@ namespace ts { if (skipMembershipCheck || (!!length(symbol.declarations) && some(symbol.declarations, d => !!findAncestor(d, n => n === enclosingDeclaration)))) { const oldContext = context; context = cloneNodeBuilderContext(context); - const result = serializeSymbolWorker(symbol, isPrivate, propertyAsAlias); + serializeSymbolWorker(symbol, isPrivate, propertyAsAlias); if (context.reportedDiagnostic) { oldcontext.reportedDiagnostic = context.reportedDiagnostic; // hoist diagnostic result into outer context } context = oldContext; - return result; } } @@ -7124,7 +7223,7 @@ namespace ts { // If it's a property: emit `export default _default` with a `_default` prop // If it's a class/interface/function: emit a class/interface/function with a `default` modifier // These forms can merge, eg (`export default 12; export default interface A {}`) - function serializeSymbolWorker(symbol: Symbol, isPrivate: boolean, propertyAsAlias: boolean) { + function serializeSymbolWorker(symbol: Symbol, isPrivate: boolean, propertyAsAlias: boolean): void { const symbolName = unescapeLeadingUnderscores(symbol.escapedName); const isDefault = symbol.escapedName === InternalSymbolName.Default; if (isPrivate && !(context.flags & NodeBuilderFlags.AllowAnonymousIdentifier) && isStringANonContextualKeyword(symbolName) && !isDefault) { @@ -9006,10 +9105,8 @@ namespace ts { return getReturnTypeOfSignature(getterSignature); } } - if (isInJSFile(declaration)) { - const type = getParameterTypeOfTypeTag(func, declaration); - if (type) return type; - } + const parameterTypeOfTypeTag = getParameterTypeOfTypeTag(func, declaration); + if (parameterTypeOfTypeTag) return parameterTypeOfTypeTag; // Use contextual parameter type if one is available const type = declaration.symbol.escapedName === InternalSymbolName.This ? getContextualThisParameterType(func) : getContextuallyTypedParameterType(declaration); if (type) { @@ -9333,7 +9430,7 @@ namespace ts { } (resolvedSymbol || symbol).exports!.forEach((s, name) => { const exportedMember = members.get(name)!; - if (exportedMember && exportedMember !== s) { + if (exportedMember && exportedMember !== s && !(s.flags & SymbolFlags.Alias)) { if (s.flags & SymbolFlags.Value && exportedMember.flags & SymbolFlags.Value) { // If the member has an additional value-like declaration, union the types from the two declarations, // but issue an error if they occurred in two different files. The purpose is to support a JS file with @@ -9441,11 +9538,7 @@ namespace ts { if (reportErrors && !declarationBelongsToPrivateAmbientMember(element)) { reportImplicitAny(element, anyType); } - // When we're including the pattern in the type (an indication we're obtaining a contextual type), we - // use the non-inferrable any type. Inference will never directly infer this type, but it is possible - // to infer a type that contains it, e.g. for a binding pattern like [foo] or { foo }. In such cases, - // widening of the binding pattern type substitutes a regular any for the non-inferrable any. - return includePatternInType ? nonInferrableAnyType : anyType; + return anyType; } // Return the type implied by an object binding pattern @@ -10500,7 +10593,7 @@ namespace ts { error(declaration.typeExpression.type, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol)); } else { - error(isNamedDeclaration(declaration) ? declaration.name : declaration || declaration, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol)); + error(isNamedDeclaration(declaration) ? declaration.name || declaration : declaration, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol)); } } links.declaredType = type; @@ -11887,6 +11980,9 @@ namespace ts { else if ((type as MappedType).objectFlags & ObjectFlags.Mapped) { resolveMappedTypeMembers(type as MappedType); } + else { + Debug.fail("Unhandled object type " + Debug.formatObjectFlags(type.objectFlags)); + } } else if (type.flags & TypeFlags.Union) { resolveUnionTypeMembers(type as UnionType); @@ -11894,6 +11990,9 @@ namespace ts { else if (type.flags & TypeFlags.Intersection) { resolveIntersectionTypeMembers(type as IntersectionType); } + else { + Debug.fail("Unhandled type " + Debug.formatTypeFlags(type.flags)); + } } return type as ResolvedType; } @@ -12109,7 +12208,8 @@ namespace ts { } } } - return getIntersectionType(constraints); + // The source types were normalized; ensure the result is normalized too. + return getNormalizedType(getIntersectionType(constraints), /*writing*/ false); } return undefined; } @@ -12734,12 +12834,14 @@ namespace ts { // Return list of type parameters with duplicates removed (duplicate identifier errors are generated in the actual // type checking functions). - function getTypeParametersFromDeclaration(declaration: DeclarationWithTypeParameters): TypeParameter[] | undefined { + function getTypeParametersFromDeclaration(declaration: DeclarationWithTypeParameters): readonly TypeParameter[] | undefined { let result: TypeParameter[] | undefined; for (const node of getEffectiveTypeParameterDeclarations(declaration)) { result = appendIfUnique(result, getDeclaredTypeOfTypeParameter(node.symbol)); } - return result; + return result?.length ? result + : isFunctionDeclaration(declaration) ? getSignatureOfTypeTag(declaration)?.typeParameters + : undefined; } function symbolsToArray(symbols: SymbolTable): Symbol[] { @@ -13053,7 +13155,14 @@ namespace ts { continue; } } - result.push(getSignatureFromDeclaration(decl)); + // If this is a function or method declaration, get the signature from the @type tag for the sake of optional parameters. + // Exclude contextually-typed kinds because we already apply the @type tag to the context, plus applying it here to the initializer would supress checks that the two are compatible. + result.push( + (!isFunctionExpressionOrArrowFunction(decl) && + !isObjectLiteralMethod(decl) && + getSignatureOfTypeTag(decl)) || + getSignatureFromDeclaration(decl) + ); } return result; } @@ -13088,7 +13197,7 @@ namespace ts { else { const type = signature.declaration && getEffectiveReturnTypeNode(signature.declaration); let jsdocPredicate: TypePredicate | undefined; - if (!type && isInJSFile(signature.declaration)) { + if (!type) { const jsdocSignature = getSignatureOfTypeTag(signature.declaration!); if (jsdocSignature && signature !== jsdocSignature) { jsdocPredicate = getTypePredicateOfSignature(jsdocSignature); @@ -13375,7 +13484,9 @@ namespace ts { // type Foo = [T, U]; // type Bar = T extends Foo ? Foo : T; // the instantiated constraint for U is X, so we discard that inference. - const mapper = createTypeMapper(typeParameters, getEffectiveTypeArguments(typeReference, typeParameters)); + const mapper = makeDeferredTypeMapper(typeParameters, typeParameters.map((_, index) => () => { + return getEffectiveTypeArgumentAtIndex(typeReference, typeParameters, index); + })); const constraint = instantiateType(declaredConstraint, mapper); if (constraint !== typeParameter) { inferences = append(inferences, constraint); @@ -13482,12 +13593,12 @@ namespace ts { // This function is used to propagate certain flags when creating new object type references and union types. // It is only necessary to do so if a constituent type might be the undefined type, the null type, the type - // of an object literal or the anyFunctionType. This is because there are operations in the type checker + // of an object literal or a non-inferrable type. This is because there are operations in the type checker // that care about the presence of such types at arbitrary depth in a containing type. - function getPropagatingFlagsOfTypes(types: readonly Type[], excludeKinds: TypeFlags): ObjectFlags { + function getPropagatingFlagsOfTypes(types: readonly Type[], excludeKinds?: TypeFlags): ObjectFlags { let result: ObjectFlags = 0; for (const type of types) { - if (!(type.flags & excludeKinds)) { + if (excludeKinds === undefined || !(type.flags & excludeKinds)) { result |= getObjectFlags(type); } } @@ -13500,7 +13611,7 @@ namespace ts { if (!type) { type = createObjectType(ObjectFlags.Reference, target.symbol) as TypeReference; target.instantiations.set(id, type); - type.objectFlags |= typeArguments ? getPropagatingFlagsOfTypes(typeArguments, /*excludeKinds*/ 0) : 0; + type.objectFlags |= typeArguments ? getPropagatingFlagsOfTypes(typeArguments) : 0; type.target = target; type.resolvedTypeArguments = typeArguments; } @@ -15278,20 +15389,24 @@ namespace ts { * type parameters in the union with a special never type that is treated as a literal in `getReducedType`, we can cause the `getReducedType` logic * to reduce the resulting type if possible (since only intersections with conflicting literal-typed properties are reducible). */ - function isPossiblyReducibleByInstantiation(type: UnionType): boolean { - return some(type.types, t => { - const uniqueFilled = getUniqueLiteralFilledInstantiation(t); - return getReducedType(uniqueFilled) !== uniqueFilled; - }); + function isPossiblyReducibleByInstantiation(type: Type): boolean { + const uniqueFilled = getUniqueLiteralFilledInstantiation(type); + return getReducedType(uniqueFilled) !== uniqueFilled; + } + + function shouldDeferIndexType(type: Type) { + return !!(type.flags & TypeFlags.InstantiableNonPrimitive || + isGenericTupleType(type) || + isGenericMappedType(type) && !hasDistributiveNameType(type) || + type.flags & TypeFlags.Union && some((type as UnionType).types, isPossiblyReducibleByInstantiation) || + type.flags & TypeFlags.Intersection && maybeTypeOfKind(type, TypeFlags.Instantiable) && some((type as IntersectionType).types, isEmptyAnonymousObjectType)); } function getIndexType(type: Type, stringsOnly = keyofStringsOnly, noIndexSignatures?: boolean): Type { type = getReducedType(type); - return type.flags & TypeFlags.Union ? isPossiblyReducibleByInstantiation(type as UnionType) - ? getIndexTypeForGenericType(type as InstantiableType | UnionOrIntersectionType, stringsOnly) - : getIntersectionType(map((type as UnionType).types, t => getIndexType(t, stringsOnly, noIndexSignatures))) : + return shouldDeferIndexType(type) ? getIndexTypeForGenericType(type as InstantiableType | UnionOrIntersectionType, stringsOnly) : + type.flags & TypeFlags.Union ? getIntersectionType(map((type as UnionType).types, t => getIndexType(t, stringsOnly, noIndexSignatures))) : type.flags & TypeFlags.Intersection ? getUnionType(map((type as IntersectionType).types, t => getIndexType(t, stringsOnly, noIndexSignatures))) : - type.flags & TypeFlags.InstantiableNonPrimitive || isGenericTupleType(type) || isGenericMappedType(type) && !hasDistributiveNameType(type) ? getIndexTypeForGenericType(type as InstantiableType | UnionOrIntersectionType, stringsOnly) : getObjectFlags(type) & ObjectFlags.Mapped ? getIndexTypeForMappedType(type as MappedType, stringsOnly, noIndexSignatures) : type === wildcardType ? wildcardType : type.flags & TypeFlags.Unknown ? neverType : @@ -15560,10 +15675,15 @@ namespace ts { getFlowTypeOfReference(accessExpression, propType) : propType; } - if (everyType(objectType, isTupleType) && isNumericLiteralName(propName) && +propName >= 0) { + if (everyType(objectType, isTupleType) && isNumericLiteralName(propName)) { + const index = +propName; if (accessNode && everyType(objectType, t => !(t as TupleTypeReference).target.hasRestElement) && !(accessFlags & AccessFlags.NoTupleBoundsCheck)) { const indexNode = getIndexNodeForAccessExpression(accessNode); if (isTupleType(objectType)) { + if (index < 0) { + error(indexNode, Diagnostics.A_tuple_type_cannot_be_indexed_with_a_negative_value); + return undefinedType; + } error(indexNode, Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2, typeToString(objectType), getTypeReferenceArity(objectType), unescapeLeadingUnderscores(propName)); } @@ -15571,11 +15691,13 @@ namespace ts { error(indexNode, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(propName), typeToString(objectType)); } } - errorIfWritingToReadonlyIndex(getIndexInfoOfType(objectType, numberType)); - return mapType(objectType, t => { - const restType = getRestTypeOfTupleType(t as TupleTypeReference) || undefinedType; - return accessFlags & AccessFlags.IncludeUndefined ? getUnionType([restType, undefinedType]) : restType; - }); + if (index >= 0) { + errorIfWritingToReadonlyIndex(getIndexInfoOfType(objectType, numberType)); + return mapType(objectType, t => { + const restType = getRestTypeOfTupleType(t as TupleTypeReference) || undefinedType; + return accessFlags & AccessFlags.IncludeUndefined ? getUnionType([restType, undefinedType]) : restType; + }); + } } } if (!(indexType.flags & TypeFlags.Nullable) && isTypeAssignableToKind(indexType, TypeFlags.StringLike | TypeFlags.NumberLike | TypeFlags.ESSymbolLike)) { @@ -16260,6 +16382,7 @@ namespace ts { links.resolvedSymbol = unknownSymbol; return links.resolvedType = errorType; } + const isExportEquals = !!innerModuleSymbol.exports?.get(InternalSymbolName.ExportEquals); const moduleSymbol = resolveExternalModuleSymbol(innerModuleSymbol, /*dontResolveAlias*/ false); if (!nodeIsMissing(node.qualifier)) { const nameStack: Identifier[] = getIdentifierChain(node.qualifier!); @@ -16271,9 +16394,11 @@ namespace ts { // That, in turn, ultimately uses `getPropertyOfType` on the type of the symbol, which differs slightly from // the `exports` lookup process that only looks up namespace members which is used for most type references const mergedResolvedSymbol = getMergedSymbol(resolveSymbol(currentNamespace)); - const next = node.isTypeOf + const symbolFromVariable = node.isTypeOf || isInJSFile(node) && isExportEquals ? getPropertyOfType(getTypeOfSymbol(mergedResolvedSymbol), current.escapedText, /*skipObjectFunctionPropertyAugment*/ false, /*includeTypeOnlyMembers*/ true) - : getSymbol(getExportsOfSymbol(mergedResolvedSymbol), current.escapedText, meaning); + : undefined; + const symbolFromModule = node.isTypeOf ? undefined : getSymbol(getExportsOfSymbol(mergedResolvedSymbol), current.escapedText, meaning); + const next = symbolFromModule ?? symbolFromVariable; if (!next) { error(current, Diagnostics.Namespace_0_has_no_exported_member_1, getFullyQualifiedName(currentNamespace), declarationNameToString(current)); return links.resolvedType = errorType; @@ -16814,7 +16939,7 @@ namespace ts { switch (mapper.kind) { case TypeMapKind.Simple: return type === mapper.source ? mapper.target : type; - case TypeMapKind.Array: + case TypeMapKind.Array: { const sources = mapper.sources; const targets = mapper.targets; for (let i = 0; i < sources.length; i++) { @@ -16823,6 +16948,17 @@ namespace ts { } } return type; + } + case TypeMapKind.Deferred: { + const sources = mapper.sources; + const targets = mapper.targets; + for (let i = 0; i < sources.length; i++) { + if (type === sources[i]) { + return targets[i](); + } + } + return type; + } case TypeMapKind.Function: return mapper.func(type); case TypeMapKind.Composite: @@ -16833,19 +16969,23 @@ namespace ts { } function makeUnaryTypeMapper(source: Type, target: Type): TypeMapper { - return { kind: TypeMapKind.Simple, source, target }; + return Debug.attachDebugPrototypeIfDebug({ kind: TypeMapKind.Simple, source, target }); } function makeArrayTypeMapper(sources: readonly TypeParameter[], targets: readonly Type[] | undefined): TypeMapper { - return { kind: TypeMapKind.Array, sources, targets }; + return Debug.attachDebugPrototypeIfDebug({ kind: TypeMapKind.Array, sources, targets }); } - function makeFunctionTypeMapper(func: (t: Type) => Type): TypeMapper { - return { kind: TypeMapKind.Function, func }; + function makeFunctionTypeMapper(func: (t: Type) => Type, debugInfo: () => string): TypeMapper { + return Debug.attachDebugPrototypeIfDebug({ kind: TypeMapKind.Function, func, debugInfo: Debug.isDebugging ? debugInfo : undefined }); + } + + function makeDeferredTypeMapper(sources: readonly TypeParameter[], targets: (() => Type)[]) { + return Debug.attachDebugPrototypeIfDebug({ kind: TypeMapKind.Deferred, sources, targets }); } function makeCompositeTypeMapper(kind: TypeMapKind.Composite | TypeMapKind.Merged, mapper1: TypeMapper, mapper2: TypeMapper): TypeMapper { - return { kind, mapper1, mapper2 }; + return Debug.attachDebugPrototypeIfDebug({ kind, mapper1, mapper2 }); } function createTypeEraser(sources: readonly TypeParameter[]): TypeMapper { @@ -16857,7 +16997,8 @@ namespace ts { * This is used during inference when instantiating type parameter defaults. */ function createBackreferenceMapper(context: InferenceContext, index: number): TypeMapper { - return makeFunctionTypeMapper(t => findIndex(context.inferences, info => info.typeParameter === t) >= index ? unknownType : t); + const forwardInferences = context.inferences.slice(index); + return createTypeMapper(map(forwardInferences, i => i.typeParameter), map(forwardInferences, () => unknownType)); } function combineTypeMappers(mapper1: TypeMapper | undefined, mapper2: TypeMapper): TypeMapper { @@ -17159,6 +17300,7 @@ namespace ts { result.mapper = mapper; result.aliasSymbol = aliasSymbol || type.aliasSymbol; result.aliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(type.aliasTypeArguments, mapper); + result.objectFlags |= result.aliasTypeArguments ? getPropagatingFlagsOfTypes(result.aliasTypeArguments) : 0; return result; } @@ -17373,8 +17515,7 @@ namespace ts { } function isContextSensitiveFunctionLikeDeclaration(node: FunctionLikeDeclaration): boolean { - return (!isFunctionDeclaration(node) || isInJSFile(node) && !!getTypeForDeclarationFromJSDocComment(node)) && - (hasContextSensitiveParameters(node) || hasContextSensitiveReturnExpression(node)); + return hasContextSensitiveParameters(node) || hasContextSensitiveReturnExpression(node); } function hasContextSensitiveReturnExpression(node: FunctionLikeDeclaration) { @@ -17383,7 +17524,7 @@ namespace ts { } function isContextSensitiveFunctionOrObjectLiteralMethod(func: Node): func is FunctionExpression | ArrowFunction | MethodDeclaration { - return (isInJSFile(func) && isFunctionDeclaration(func) || isFunctionExpressionOrArrowFunction(func) || isObjectLiteralMethod(func)) && + return (isFunctionExpressionOrArrowFunction(func) || isObjectLiteralMethod(func)) && isContextSensitiveFunctionLikeDeclaration(func); } @@ -18760,7 +18901,8 @@ namespace ts { } } - const isPerformingCommonPropertyChecks = relation !== comparableRelation && !(intersectionState & IntersectionState.Target) && + const isPerformingCommonPropertyChecks = (relation !== comparableRelation || relation === comparableRelation && isLiteralType(source)) && + !(intersectionState & IntersectionState.Target) && source.flags & (TypeFlags.Primitive | TypeFlags.Object | TypeFlags.Intersection) && source !== globalObjectType && target.flags & (TypeFlags.Object | TypeFlags.Intersection) && isWeakType(target) && (getPropertiesOfType(source).length > 0 || typeHasCallOrConstructSignatures(source)); @@ -19223,10 +19365,10 @@ namespace ts { // We're in the middle of variance checking - integrate any unmeasurable/unreliable flags from this cached component const saved = entry & RelationComparisonResult.ReportsMask; if (saved & RelationComparisonResult.ReportsUnmeasurable) { - instantiateType(source, makeFunctionTypeMapper(reportUnmeasurableMarkers)); + instantiateType(source, reportUnmeasurableMapper); } if (saved & RelationComparisonResult.ReportsUnreliable) { - instantiateType(source, makeFunctionTypeMapper(reportUnreliableMarkers)); + instantiateType(source, reportUnreliableMapper); } } return entry & RelationComparisonResult.Succeeded ? Ternary.True : Ternary.False; @@ -19327,13 +19469,41 @@ namespace ts { } function structuredTypeRelatedTo(source: Type, target: Type, reportErrors: boolean, intersectionState: IntersectionState): Ternary { + const saveErrorInfo = captureErrorCalculationState(); + let result = structuredTypeRelatedToWorker(source, target, reportErrors, intersectionState, saveErrorInfo); + if (!result && (source.flags & TypeFlags.Intersection || source.flags & TypeFlags.TypeParameter && target.flags & TypeFlags.Union)) { + // The combined constraint of an intersection type is the intersection of the constraints of + // the constituents. When an intersection type contains instantiable types with union type + // constraints, there are situations where we need to examine the combined constraint. One is + // when the target is a union type. Another is when the intersection contains types belonging + // to one of the disjoint domains. For example, given type variables T and U, each with the + // constraint 'string | number', the combined constraint of 'T & U' is 'string | number' and + // we need to check this constraint against a union on the target side. Also, given a type + // variable V constrained to 'string | number', 'V & number' has a combined constraint of + // 'string & number | number & number' which reduces to just 'number'. + // This also handles type parameters, as a type parameter with a union constraint compared against a union + // needs to have its constraint hoisted into an intersection with said type parameter, this way + // the type param can be compared with itself in the target (with the influence of its constraint to match other parts) + // For example, if `T extends 1 | 2` and `U extends 2 | 3` and we compare `T & U` to `T & U & (1 | 2 | 3)` + const constraint = getEffectiveConstraintOfIntersection(source.flags & TypeFlags.Intersection ? (source as IntersectionType).types: [source], !!(target.flags & TypeFlags.Union)); + if (constraint && everyType(constraint, c => c !== source)) { // Skip comparison if expansion contains the source itself + // TODO: Stack errors so we get a pyramid for the "normal" comparison above, _and_ a second for this + result = isRelatedTo(constraint, target, RecursionFlags.Source, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState); + } + } + if (result) { + resetErrorInfo(saveErrorInfo); + } + return result; + } + + function structuredTypeRelatedToWorker(source: Type, target: Type, reportErrors: boolean, intersectionState: IntersectionState, saveErrorInfo: ReturnType): Ternary { if (intersectionState & IntersectionState.PropertyCheck) { return propertiesRelatedTo(source, target, reportErrors, /*excludedProperties*/ undefined, IntersectionState.None); } let result: Ternary; let originalErrorInfo: DiagnosticMessageChain | undefined; let varianceCheckFailed = false; - const saveErrorInfo = captureErrorCalculationState(); let sourceFlags = source.flags; const targetFlags = target.flags; if (relation === identityRelation) { @@ -19379,29 +19549,6 @@ namespace ts { if (result = unionOrIntersectionRelatedTo(source, target, reportErrors, intersectionState)) { return result; } - if (source.flags & TypeFlags.Intersection || source.flags & TypeFlags.TypeParameter && target.flags & TypeFlags.Union) { - // The combined constraint of an intersection type is the intersection of the constraints of - // the constituents. When an intersection type contains instantiable types with union type - // constraints, there are situations where we need to examine the combined constraint. One is - // when the target is a union type. Another is when the intersection contains types belonging - // to one of the disjoint domains. For example, given type variables T and U, each with the - // constraint 'string | number', the combined constraint of 'T & U' is 'string | number' and - // we need to check this constraint against a union on the target side. Also, given a type - // variable V constrained to 'string | number', 'V & number' has a combined constraint of - // 'string & number | number & number' which reduces to just 'number'. - // This also handles type parameters, as a type parameter with a union constraint compared against a union - // needs to have its constraint hoisted into an intersection with said type parameter, this way - // the type param can be compared with itself in the target (with the influence of its constraint to match other parts) - // For example, if `T extends 1 | 2` and `U extends 2 | 3` and we compare `T & U` to `T & U & (1 | 2 | 3)` - const constraint = getEffectiveConstraintOfIntersection(source.flags & TypeFlags.Intersection ? (source as IntersectionType).types: [source], !!(target.flags & TypeFlags.Union)); - if (constraint && everyType(constraint, c => c !== source)) { // Skip comparison if expansion contains the source itself - // TODO: Stack errors so we get a pyramid for the "normal" comparison above, _and_ a second for this - if (result = isRelatedTo(constraint, target, RecursionFlags.Source, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState)) { - resetErrorInfo(saveErrorInfo); - return result; - } - } - } // The ordered decomposition above doesn't handle all cases. Specifically, we also need to handle: // Source is instantiable (e.g. source has union or intersection constraint). // Source is an object, target is a union (e.g. { a, b: boolean } <=> { a, b: true } | { a, b: false }). @@ -19531,7 +19678,6 @@ namespace ts { result &= isRelatedTo((source as IndexedAccessType).indexType, (target as IndexedAccessType).indexType, RecursionFlags.Both, reportErrors); } if (result) { - resetErrorInfo(saveErrorInfo); return result; } if (reportErrors) { @@ -19553,7 +19699,7 @@ namespace ts { // create a new chain for the constraint error resetErrorInfo(saveErrorInfo); } - if (result = isRelatedTo(source, constraint, RecursionFlags.Target, reportErrors)) { + if (result = isRelatedTo(source, constraint, RecursionFlags.Target, reportErrors, /* headMessage */ undefined, intersectionState)) { return result; } // prefer the shorter chain of the constraint comparison chain, and the direct comparison chain @@ -19636,7 +19782,6 @@ namespace ts { // If we reach 10 levels of nesting for the same conditional type, assume it is an infinitely expanding recursive // conditional type and bail out with a Ternary.Maybe result. if (isDeeplyNestedType(target, targetStack, targetDepth, 10)) { - resetErrorInfo(saveErrorInfo); return Ternary.Maybe; } const c = target as ConditionalType; @@ -19651,7 +19796,6 @@ namespace ts { if (result = skipTrue ? Ternary.True : isRelatedTo(source, getTrueTypeFromConditionalType(c), RecursionFlags.Target, /*reportErrors*/ false)) { result &= skipFalse ? Ternary.True : isRelatedTo(source, getFalseTypeFromConditionalType(c), RecursionFlags.Target, /*reportErrors*/ false); if (result) { - resetErrorInfo(saveErrorInfo); return result; } } @@ -19664,7 +19808,7 @@ namespace ts { } // Report unreliable variance for type variables referenced in template literal type placeholders. // For example, `foo-${number}` is related to `foo-${string}` even though number isn't related to string. - instantiateType(source, makeFunctionTypeMapper(reportUnreliableMarkers)); + instantiateType(source, reportUnreliableMapper); } if (isTypeMatchedByTemplateLiteralType(source, target as TemplateLiteralType)) { return Ternary.True; @@ -19684,12 +19828,10 @@ namespace ts { const constraint = getConstraintOfType(source as TypeVariable) || unknownType; // hi-speed no-this-instantiation check (less accurate, but avoids costly `this`-instantiation when the constraint will suffice), see #28231 for report on why this is needed if (result = isRelatedTo(constraint, target, RecursionFlags.Source, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState)) { - resetErrorInfo(saveErrorInfo); return result; } // slower, fuller, this-instantiated check (necessary when comparing raw `this` types from base classes), see `subclassWithPolymorphicThisIsAssignable.ts` test for example else if (result = isRelatedTo(getTypeWithThisArgument(constraint, source), target, RecursionFlags.Source, reportErrors && constraint !== unknownType && !(targetFlags & sourceFlags & TypeFlags.TypeParameter), /*headMessage*/ undefined, intersectionState)) { - resetErrorInfo(saveErrorInfo); return result; } if (isMappedTypeGenericIndexedAccess(source)) { @@ -19698,7 +19840,6 @@ namespace ts { const indexConstraint = getConstraintOfType((source as IndexedAccessType).indexType); if (indexConstraint) { if (result = isRelatedTo(getIndexedAccessType((source as IndexedAccessType).objectType, indexConstraint), target, RecursionFlags.Source, reportErrors)) { - resetErrorInfo(saveErrorInfo); return result; } } @@ -19707,7 +19848,6 @@ namespace ts { } else if (sourceFlags & TypeFlags.Index) { if (result = isRelatedTo(keyofConstraintType, target, RecursionFlags.Source, reportErrors)) { - resetErrorInfo(saveErrorInfo); return result; } } @@ -19715,7 +19855,6 @@ namespace ts { if (!(targetFlags & TypeFlags.TemplateLiteral)) { const constraint = getBaseConstraintOfType(source); if (constraint && constraint !== source && (result = isRelatedTo(constraint, target, RecursionFlags.Source, reportErrors))) { - resetErrorInfo(saveErrorInfo); return result; } } @@ -19726,14 +19865,12 @@ namespace ts { return Ternary.False; } if (result = isRelatedTo((source as StringMappingType).type, (target as StringMappingType).type, RecursionFlags.Both, reportErrors)) { - resetErrorInfo(saveErrorInfo); return result; } } else { const constraint = getBaseConstraintOfType(source); if (constraint && (result = isRelatedTo(constraint, target, RecursionFlags.Source, reportErrors))) { - resetErrorInfo(saveErrorInfo); return result; } } @@ -19742,7 +19879,6 @@ namespace ts { // If we reach 10 levels of nesting for the same conditional type, assume it is an infinitely expanding recursive // conditional type and bail out with a Ternary.Maybe result. if (isDeeplyNestedType(source, sourceStack, sourceDepth, 10)) { - resetErrorInfo(saveErrorInfo); return Ternary.Maybe; } if (targetFlags & TypeFlags.Conditional) { @@ -19765,7 +19901,6 @@ namespace ts { result &= isRelatedTo(getFalseTypeFromConditionalType(source as ConditionalType), getFalseTypeFromConditionalType(target as ConditionalType), RecursionFlags.Both, reportErrors); } if (result) { - resetErrorInfo(saveErrorInfo); return result; } } @@ -19776,7 +19911,6 @@ namespace ts { const distributiveConstraint = hasNonCircularBaseConstraint(source) ? getConstraintOfDistributiveConditionalType(source as ConditionalType) : undefined; if (distributiveConstraint) { if (result = isRelatedTo(distributiveConstraint, target, RecursionFlags.Source, reportErrors)) { - resetErrorInfo(saveErrorInfo); return result; } } @@ -19787,7 +19921,6 @@ namespace ts { const defaultConstraint = getDefaultConstraintOfConditionalType(source as ConditionalType); if (defaultConstraint) { if (result = isRelatedTo(defaultConstraint, target, RecursionFlags.Source, reportErrors)) { - resetErrorInfo(saveErrorInfo); return result; } } @@ -19800,7 +19933,6 @@ namespace ts { if (isGenericMappedType(target)) { if (isGenericMappedType(source)) { if (result = mappedTypeRelatedTo(source, target, reportErrors)) { - resetErrorInfo(saveErrorInfo); return result; } } @@ -19940,20 +20072,6 @@ namespace ts { } } - function reportUnmeasurableMarkers(p: TypeParameter) { - if (outofbandVarianceMarkerHandler && (p === markerSuperType || p === markerSubType || p === markerOtherType)) { - outofbandVarianceMarkerHandler(/*onlyUnreliable*/ false); - } - return p; - } - - function reportUnreliableMarkers(p: TypeParameter) { - if (outofbandVarianceMarkerHandler && (p === markerSuperType || p === markerSubType || p === markerOtherType)) { - outofbandVarianceMarkerHandler(/*onlyUnreliable*/ true); - } - return p; - } - // A type [P in S]: X is related to a type [Q in T]: Y if T is related to S and X' is // related to Y, where X' is an instantiation of X in which P is replaced with Q. Notice // that S and T are contra-variant whereas X and Y are co-variant. @@ -19963,7 +20081,7 @@ namespace ts { if (modifiersRelated) { let result: Ternary; const targetConstraint = getConstraintTypeFromMappedType(target); - const sourceConstraint = instantiateType(getConstraintTypeFromMappedType(source), makeFunctionTypeMapper(getCombinedMappedTypeOptionality(source) < 0 ? reportUnmeasurableMarkers : reportUnreliableMarkers)); + const sourceConstraint = instantiateType(getConstraintTypeFromMappedType(source), getCombinedMappedTypeOptionality(source) < 0 ? reportUnmeasurableMapper : reportUnreliableMapper); if (result = isRelatedTo(targetConstraint, sourceConstraint, RecursionFlags.Both, reportErrors)) { const mapper = createTypeMapper([getTypeParameterFromMappedType(source)], [getTypeParameterFromMappedType(target)]); if (instantiateType(getNameTypeFromMappedType(source), mapper) === instantiateType(getNameTypeFromMappedType(target), mapper)) { @@ -20510,7 +20628,7 @@ namespace ts { */ function signatureRelatedTo(source: Signature, target: Signature, erase: boolean, reportErrors: boolean, incompatibleReporter: (source: Type, target: Type) => void): Ternary { return compareSignaturesRelated(erase ? getErasedSignature(source) : source, erase ? getErasedSignature(target) : target, - relation === strictSubtypeRelation ? SignatureCheckMode.StrictArity : 0, reportErrors, reportError, incompatibleReporter, isRelatedToWorker, makeFunctionTypeMapper(reportUnreliableMarkers)); + relation === strictSubtypeRelation ? SignatureCheckMode.StrictArity : 0, reportErrors, reportError, incompatibleReporter, isRelatedToWorker, reportUnreliableMapper); } function signaturesIdenticalTo(source: Type, target: Type, kind: SignatureKind): Ternary { @@ -20825,7 +20943,7 @@ namespace ts { variances.push(variance); } links.variances = variances; - tracing?.pop(); + tracing?.pop({ variances: variances.map(Debug.formatVariance) }); } return links.variances; } @@ -21180,39 +21298,35 @@ namespace ts { function literalTypesWithSameBaseType(types: Type[]): boolean { let commonBaseType: Type | undefined; for (const t of types) { - const baseType = getBaseTypeOfLiteralType(t); - if (!commonBaseType) { - commonBaseType = baseType; - } - if (baseType === t || baseType !== commonBaseType) { - return false; + if (!(t.flags & TypeFlags.Never)) { + const baseType = getBaseTypeOfLiteralType(t); + commonBaseType ??= baseType; + if (baseType === t || baseType !== commonBaseType) { + return false; + } } } return true; } - // When the candidate types are all literal types with the same base type, return a union - // of those literal types. Otherwise, return the leftmost type for which no type to the - // right is a supertype. - function getSupertypeOrUnion(types: Type[]): Type { - if (types.length === 1) { - return types[0]; - } - return literalTypesWithSameBaseType(types) ? - getUnionType(types) : - reduceLeft(types, (s, t) => isTypeSubtypeOf(s, t) ? t : s)!; + function getCombinedTypeFlags(types: Type[]): TypeFlags { + return reduceLeft(types, (flags, t) => flags | (t.flags & TypeFlags.Union ? getCombinedTypeFlags((t as UnionType).types) : t.flags), 0); } function getCommonSupertype(types: Type[]): Type { - if (!strictNullChecks) { - return getSupertypeOrUnion(types); + if (types.length === 1) { + return types[0]; } - const primaryTypes = filter(types, t => !(t.flags & TypeFlags.Nullable)); - if (primaryTypes.length) { - const supertypeOrUnion = getSupertypeOrUnion(primaryTypes); - return primaryTypes === types ? supertypeOrUnion : getUnionType([supertypeOrUnion, ...filter(types, t => !!(t.flags & TypeFlags.Nullable))]); - } - return getUnionType(types, UnionReduction.Subtype); + // Remove nullable types from each of the candidates. + const primaryTypes = strictNullChecks ? sameMap(types, t => filterType(t, u => !(u.flags & TypeFlags.Nullable))) : types; + // When the candidate types are all literal types with the same base type, return a union + // of those literal types. Otherwise, return the leftmost type for which no type to the + // right is a supertype. + const superTypeOrUnion = literalTypesWithSameBaseType(primaryTypes) ? + getUnionType(primaryTypes) : + reduceLeft(primaryTypes, (s, t) => isTypeSubtypeOf(s, t) ? t : s)!; + // Add any nullable types that occurred in the candidates back to the result. + return primaryTypes === types ? superTypeOrUnion : getNullableType(superTypeOrUnion, getCombinedTypeFlags(types) & TypeFlags.Nullable); } // Return the leftmost type for which no type to the right is a subtype. @@ -21335,10 +21449,15 @@ namespace ts { type.flags & TypeFlags.NumberLiteral ? numberType : type.flags & TypeFlags.BigIntLiteral ? bigintType : type.flags & TypeFlags.BooleanLiteral ? booleanType : - type.flags & TypeFlags.Union ? mapType(type as UnionType, getBaseTypeOfLiteralType) : + type.flags & TypeFlags.Union ? getBaseTypeOfLiteralTypeUnion(type as UnionType) : type; } + function getBaseTypeOfLiteralTypeUnion(type: UnionType) { + const key = `B${getTypeId(type)}`; + return getCachedType(key) ?? setCachedType(key, mapType(type, getBaseTypeOfLiteralType)); + } + function getWidenedLiteralType(type: Type): Type { return type.flags & TypeFlags.EnumLiteral && isFreshLiteralType(type) ? getBaseTypeOfEnumLiteralType(type as LiteralType) : type.flags & TypeFlags.StringLiteral && isFreshLiteralType(type) ? stringType : @@ -21359,7 +21478,7 @@ namespace ts { if (!isLiteralOfContextualType(type, contextualType)) { type = getWidenedUniqueESSymbolType(getWidenedLiteralType(type)); } - return type; + return getRegularTypeOfLiteralType(type); } function getWidenedLiteralLikeTypeForContextualReturnTypeIfNeeded(type: Type | undefined, contextualSignatureReturnType: Type | undefined, isAsync: boolean) { @@ -21895,28 +22014,31 @@ namespace ts { signature, flags, compareTypes, - mapper: makeFunctionTypeMapper(t => mapToInferredType(context, t, /*fix*/ true)), - nonFixingMapper: makeFunctionTypeMapper(t => mapToInferredType(context, t, /*fix*/ false)), + mapper: reportUnmeasurableMapper, // initialize to a noop mapper so the context object is available, but the underlying object shape is right upon construction + nonFixingMapper: reportUnmeasurableMapper, }; + context.mapper = makeFixingMapperForContext(context); + context.nonFixingMapper = makeNonFixingMapperForContext(context); return context; } - function mapToInferredType(context: InferenceContext, t: Type, fix: boolean): Type { - const inferences = context.inferences; - for (let i = 0; i < inferences.length; i++) { - const inference = inferences[i]; - if (t === inference.typeParameter) { - if (fix && !inference.isFixed) { - // Before we commit to a particular inference (and thus lock out any further inferences), - // we infer from any intra-expression inference sites we have collected. - inferFromIntraExpressionSites(context); - clearCachedInferences(inferences); - inference.isFixed = true; - } - return getInferredType(context, i); + function makeFixingMapperForContext(context: InferenceContext) { + return makeDeferredTypeMapper(map(context.inferences, i => i.typeParameter), map(context.inferences, (inference, i) => () => { + if (!inference.isFixed) { + // Before we commit to a particular inference (and thus lock out any further inferences), + // we infer from any intra-expression inference sites we have collected. + inferFromIntraExpressionSites(context); + clearCachedInferences(context.inferences); + inference.isFixed = true; } - } - return t; + return getInferredType(context, i); + })); + } + + function makeNonFixingMapperForContext(context: InferenceContext) { + return makeDeferredTypeMapper(map(context.inferences, i => i.typeParameter), map(context.inferences, (_, i) => () => { + return getInferredType(context, i); + })); } function clearCachedInferences(inferences: InferenceInfo[]) { @@ -22399,10 +22521,13 @@ namespace ts { propagationType = savePropagationType; return; } - if (source.aliasSymbol && source.aliasTypeArguments && source.aliasSymbol === target.aliasSymbol) { - // Source and target are types originating in the same generic type alias declaration. - // Simply infer from source type arguments to target type arguments. - inferFromTypeArguments(source.aliasTypeArguments, target.aliasTypeArguments!, getAliasVariances(source.aliasSymbol)); + if (source.aliasSymbol && source.aliasSymbol === target.aliasSymbol) { + if (source.aliasTypeArguments) { + // Source and target are types originating in the same generic type alias declaration. + // Simply infer from source type arguments to target type arguments. + inferFromTypeArguments(source.aliasTypeArguments, target.aliasTypeArguments!, getAliasVariances(source.aliasSymbol)); + } + // And if there weren't any type arguments, there's no reason to run inference as the types must be the same. return; } if (source === target && source.flags & TypeFlags.UnionOrIntersection) { @@ -22458,18 +22583,26 @@ namespace ts { target = getActualTypeVariable(target); } if (target.flags & TypeFlags.TypeVariable) { - // If target is a type parameter, make an inference, unless the source type contains - // the anyFunctionType (the wildcard type that's used to avoid contextually typing functions). - // Because the anyFunctionType is internal, it should not be exposed to the user by adding - // it as an inference candidate. Hopefully, a better candidate will come along that does - // not contain anyFunctionType when we come back to this argument for its second round - // of inference. Also, we exclude inferences for silentNeverType (which is used as a wildcard - // when constructing types from type parameters that had no inference candidates). - if (source === nonInferrableAnyType || source === silentNeverType || (priority & InferencePriority.ReturnType && (source === autoType || source === autoArrayType)) || isFromInferenceBlockedSource(source)) { + // Skip inference if the source is "blocked", which is used by the language service to + // prevent inference on nodes currently being edited. + if (isFromInferenceBlockedSource(source)) { return; } const inference = getInferenceInfoForType(target); if (inference) { + // If target is a type parameter, make an inference, unless the source type contains + // a "non-inferrable" type. Types with this flag set are markers used to prevent inference. + // + // For example: + // - anyFunctionType is a wildcard type that's used to avoid contextually typing functions; + // it's internal, so should not be exposed to the user by adding it as a candidate. + // - autoType (and autoArrayType) is a special "any" used in control flow; like anyFunctionType, + // it's internal and should not be observable. + // - silentNeverType is returned by getInferredType when instantiating a generic function for + // inference (and a type variable has no mapping). + // + // This flag is infectious; if we produce Box (where never is silentNeverType), Box is + // also non-inferrable. if (getObjectFlags(source) & ObjectFlags.NonInferrableType) { return; } @@ -22527,15 +22660,11 @@ namespace ts { inferFromTypeArguments(getTypeArguments(source as TypeReference), getTypeArguments(target as TypeReference), getVariances((source as TypeReference).target)); } else if (source.flags & TypeFlags.Index && target.flags & TypeFlags.Index) { - contravariant = !contravariant; - inferFromTypes((source as IndexType).type, (target as IndexType).type); - contravariant = !contravariant; + inferFromContravariantTypes((source as IndexType).type, (target as IndexType).type); } else if ((isLiteralType(source) || source.flags & TypeFlags.String) && target.flags & TypeFlags.Index) { const empty = createEmptyObjectTypeFromStringLiteral(source); - contravariant = !contravariant; - inferWithPriority(empty, (target as IndexType).type, InferencePriority.LiteralKeyof); - contravariant = !contravariant; + inferFromContravariantTypesWithPriority(empty, (target as IndexType).type, InferencePriority.LiteralKeyof); } else if (source.flags & TypeFlags.IndexedAccess && target.flags & TypeFlags.IndexedAccess) { inferFromTypes((source as IndexedAccessType).objectType, (target as IndexedAccessType).objectType); @@ -22548,10 +22677,7 @@ namespace ts { } else if (source.flags & TypeFlags.Substitution) { inferFromTypes((source as SubstitutionType).baseType, target); - const oldPriority = priority; - priority |= InferencePriority.SubstituteSource; - inferFromTypes((source as SubstitutionType).substitute, target); // Make substitute inference at a lower priority - priority = oldPriority; + inferWithPriority((source as SubstitutionType).substitute, target, InferencePriority.SubstituteSource); // Make substitute inference at a lower priority } else if (target.flags & TypeFlags.Conditional) { invokeOnce(source, target, inferToConditionalType); @@ -22602,6 +22728,20 @@ namespace ts { priority = savePriority; } + function inferFromContravariantTypesWithPriority(source: Type, target: Type, newPriority: InferencePriority) { + const savePriority = priority; + priority |= newPriority; + inferFromContravariantTypes(source, target); + priority = savePriority; + } + + function inferToMultipleTypesWithPriority(source: Type, targets: Type[], targetFlags: TypeFlags, newPriority: InferencePriority) { + const savePriority = priority; + priority |= newPriority; + inferToMultipleTypes(source, targets, targetFlags); + priority = savePriority; + } + function invokeOnce(source: Type, target: Type, action: (source: Type, target: Type) => void) { const key = source.id + "," + target.id; const status = visited && visited.get(key); @@ -22665,10 +22805,14 @@ namespace ts { } function inferFromContravariantTypes(source: Type, target: Type) { + contravariant = !contravariant; + inferFromTypes(source, target); + contravariant = !contravariant; + } + + function inferFromContravariantTypesIfStrictFunctionTypes(source: Type, target: Type) { if (strictFunctionTypes || priority & InferencePriority.AlwaysStrict) { - contravariant = !contravariant; - inferFromTypes(source, target); - contravariant = !contravariant; + inferFromContravariantTypes(source, target); } else { inferFromTypes(source, target); @@ -22831,11 +22975,8 @@ namespace ts { inferFromTypes(getFalseTypeFromConditionalType(source as ConditionalType), getFalseTypeFromConditionalType(target)); } else { - const savePriority = priority; - priority |= contravariant ? InferencePriority.ContravariantConditional : 0; const targetTypes = [getTrueTypeFromConditionalType(target), getFalseTypeFromConditionalType(target)]; - inferToMultipleTypes(source, targetTypes, target.flags); - priority = savePriority; + inferToMultipleTypesWithPriority(source, targetTypes, target.flags, contravariant ? InferencePriority.ContravariantConditional : 0); } } @@ -23020,21 +23161,18 @@ namespace ts { const sourceLen = sourceSignatures.length; const targetLen = targetSignatures.length; const len = sourceLen < targetLen ? sourceLen : targetLen; - const skipParameters = !!(getObjectFlags(source) & ObjectFlags.NonInferrableType); for (let i = 0; i < len; i++) { - inferFromSignature(getBaseSignature(sourceSignatures[sourceLen - len + i]), getErasedSignature(targetSignatures[targetLen - len + i]), skipParameters); + inferFromSignature(getBaseSignature(sourceSignatures[sourceLen - len + i]), getErasedSignature(targetSignatures[targetLen - len + i])); } } - function inferFromSignature(source: Signature, target: Signature, skipParameters: boolean) { - if (!skipParameters) { - const saveBivariant = bivariant; - const kind = target.declaration ? target.declaration.kind : SyntaxKind.Unknown; - // Once we descend into a bivariant signature we remain bivariant for all nested inferences - bivariant = bivariant || kind === SyntaxKind.MethodDeclaration || kind === SyntaxKind.MethodSignature || kind === SyntaxKind.Constructor; - applyToParameterTypes(source, target, inferFromContravariantTypes); - bivariant = saveBivariant; - } + function inferFromSignature(source: Signature, target: Signature) { + const saveBivariant = bivariant; + const kind = target.declaration ? target.declaration.kind : SyntaxKind.Unknown; + // Once we descend into a bivariant signature we remain bivariant for all nested inferences + bivariant = bivariant || kind === SyntaxKind.MethodDeclaration || kind === SyntaxKind.MethodSignature || kind === SyntaxKind.Constructor; + applyToParameterTypes(source, target, inferFromContravariantTypesIfStrictFunctionTypes); + bivariant = saveBivariant; applyToReturnTypes(source, target, inferFromTypes); } @@ -23305,6 +23443,15 @@ namespace ts { const key = getFlowCacheKey((node as AccessExpression).expression, declaredType, initialType, flowContainer); return key && key + "." + propName; } + break; + case SyntaxKind.ObjectBindingPattern: + case SyntaxKind.ArrayBindingPattern: + case SyntaxKind.FunctionDeclaration: + case SyntaxKind.FunctionExpression: + case SyntaxKind.ArrowFunction: + case SyntaxKind.MethodDeclaration: + // Handle pseudo-references originating in getNarrowedTypeOfSymbol. + return `${getNodeId(node)}#${getTypeId(declaredType)}`; } return undefined; } @@ -23571,23 +23718,25 @@ namespace ts { // For example, when a variable of type number | string | boolean is assigned a value of type number | boolean, // we remove type string. function getAssignmentReducedType(declaredType: UnionType, assignedType: Type) { - if (declaredType !== assignedType) { - if (assignedType.flags & TypeFlags.Never) { - return assignedType; - } - let reducedType = filterType(declaredType, t => typeMaybeAssignableTo(assignedType, t)); - if (assignedType.flags & TypeFlags.BooleanLiteral && isFreshLiteralType(assignedType)) { - reducedType = mapType(reducedType, getFreshTypeOfLiteralType); // Ensure that if the assignment is a fresh type, that we narrow to fresh types - } - // Our crude heuristic produces an invalid result in some cases: see GH#26130. - // For now, when that happens, we give up and don't narrow at all. (This also - // means we'll never narrow for erroneous assignments where the assigned type - // is not assignable to the declared type.) - if (isTypeAssignableTo(assignedType, reducedType)) { - return reducedType; - } + if (declaredType === assignedType) { + return declaredType; } - return declaredType; + if (assignedType.flags & TypeFlags.Never) { + return assignedType; + } + const key = `A${getTypeId(declaredType)},${getTypeId(assignedType)}`; + return getCachedType(key) ?? setCachedType(key, getAssignmentReducedTypeWorker(declaredType, assignedType)); + } + + function getAssignmentReducedTypeWorker(declaredType: UnionType, assignedType: Type) { + const filteredType = filterType(declaredType, t => typeMaybeAssignableTo(assignedType, t)); + // Ensure that we narrow to fresh types if the assignment is a fresh boolean literal type. + const reducedType = assignedType.flags & TypeFlags.BooleanLiteral && isFreshLiteralType(assignedType) ? mapType(filteredType, getFreshTypeOfLiteralType) : filteredType; + // Our crude heuristic produces an invalid result in some cases: see GH#26130. + // For now, when that happens, we give up and don't narrow at all. (This also + // means we'll never narrow for erroneous assignments where the assigned type + // is not assignable to the declared type.) + return isTypeAssignableTo(assignedType, reducedType) ? reducedType : declaredType; } function isFunctionObjectType(type: ObjectType): boolean { @@ -24576,7 +24725,7 @@ namespace ts { } // for (const _ in ref) acts as a nonnull on ref if (isVariableDeclaration(node) && node.parent.parent.kind === SyntaxKind.ForInStatement && isMatchingReference(reference, node.parent.parent.expression)) { - return getNonNullableTypeIfNeeded(getTypeFromFlowType(getTypeAtFlowNode(flow.antecedent))); + return getNonNullableTypeIfNeeded(finalizeEvolvingArrayType(getTypeFromFlowType(getTypeAtFlowNode(flow.antecedent)))); } // Assignment doesn't affect reference return undefined; @@ -25081,7 +25230,7 @@ namespace ts { const targetType = hasStaticModifier(Debug.checkDefined(symbol.valueDeclaration, "should always have a declaration")) ? getTypeOfSymbol(classSymbol) as InterfaceType : getDeclaredTypeOfSymbol(classSymbol); - return getNarrowedType(type, targetType, assumeTrue, isTypeDerivedFrom); + return getNarrowedType(type, targetType, assumeTrue, /*checkDerived*/ true); } function narrowTypeByOptionalChainContainment(type: Type, operator: SyntaxKind, value: Expression, assumeTrue: boolean): Type { @@ -25355,31 +25504,49 @@ namespace ts { if (!nonConstructorTypeInUnion) return type; } - return getNarrowedType(type, targetType, assumeTrue, isTypeDerivedFrom); + return getNarrowedType(type, targetType, assumeTrue, /*checkDerived*/ true); } - function getNarrowedType(type: Type, candidate: Type, assumeTrue: boolean, isRelated: (source: Type, target: Type) => boolean) { + function getNarrowedType(type: Type, candidate: Type, assumeTrue: boolean, checkDerived: boolean) { + const key = type.flags & TypeFlags.Union ? `N${getTypeId(type)},${getTypeId(candidate)},${(assumeTrue ? 1 : 0) | (checkDerived ? 2 : 0)}` : undefined; + return getCachedType(key) ?? setCachedType(key, getNarrowedTypeWorker(type, candidate, assumeTrue, checkDerived)); + } + + function getNarrowedTypeWorker(type: Type, candidate: Type, assumeTrue: boolean, checkDerived: boolean) { + const isRelated = checkDerived ? isTypeDerivedFrom : isTypeSubtypeOf; if (!assumeTrue) { return filterType(type, t => !isRelated(t, candidate)); } - // If the current type is a union type, remove all constituents that couldn't be instances of - // the candidate type. If one or more constituents remain, return a union of those. - if (type.flags & TypeFlags.Union) { - const assignableType = filterType(type, t => isRelated(t, candidate)); - if (!(assignableType.flags & TypeFlags.Never)) { - return assignableType; - } + if (type.flags & TypeFlags.AnyOrUnknown) { + return candidate; } - - // If the candidate type is a subtype of the target type, narrow to the candidate type. - // Otherwise, if the target type is assignable to the candidate type, keep the target type. - // Otherwise, if the candidate type is assignable to the target type, narrow to the candidate - // type. Otherwise, the types are completely unrelated, so narrow to an intersection of the - // two types. - return isTypeSubtypeOf(candidate, type) ? candidate : - isTypeAssignableTo(type, candidate) ? type : - isTypeAssignableTo(candidate, type) ? candidate : - getIntersectionType([type, candidate]); + // We first attempt to filter the current type, narrowing constituents as appropriate and removing + // constituents that are unrelated to the candidate. + const keyPropertyName = type.flags & TypeFlags.Union ? getKeyPropertyName(type as UnionType) : undefined; + const narrowedType = mapType(candidate, c => { + // If a discriminant property is available, use that to reduce the type. + const discriminant = keyPropertyName && getTypeOfPropertyOfType(c, keyPropertyName); + const matching = discriminant && getConstituentTypeForKeyType(type as UnionType, discriminant); + // For each constituent t in the current type, if t and and c are directly related, pick the most + // specific of the two. When t and c are related in both directions, we prefer c for type predicates + // because that is the asserted type, but t for `instanceof` because generics aren't reflected in + // prototype object types. + const directlyRelated = mapType(matching || type, checkDerived ? + t => isTypeDerivedFrom(t, c) ? t : isTypeDerivedFrom(c, t) ? c : neverType : + t => isTypeSubtypeOf(c, t) ? c : isTypeSubtypeOf(t, c) ? t : neverType); + // If no constituents are directly related, create intersections for any generic constituents that + // are related by constraint. + return directlyRelated.flags & TypeFlags.Never ? + mapType(type, t => maybeTypeOfKind(t, TypeFlags.Instantiable) && isRelated(c, getBaseConstraintOfType(t) || unknownType) ? getIntersectionType([t, c]) : neverType) : + directlyRelated; + }); + // If filtering produced a non-empty type, return that. Otherwise, pick the most specific of the two + // based on assignability, or as a last resort produce an intersection. + return !(narrowedType.flags & TypeFlags.Never) ? narrowedType : + isTypeSubtypeOf(candidate, type) ? candidate : + isTypeAssignableTo(type, candidate) ? type : + isTypeAssignableTo(candidate, type) ? candidate : + getIntersectionType([type, candidate]); } function narrowTypeByCallExpression(type: Type, callExpression: CallExpression, assumeTrue: boolean): Type { @@ -25409,7 +25576,7 @@ namespace ts { const predicateArgument = getTypePredicateArgument(predicate, callExpression); if (predicateArgument) { if (isMatchingReference(reference, predicateArgument)) { - return getNarrowedType(type, predicate.type, assumeTrue, isTypeSubtypeOf); + return getNarrowedType(type, predicate.type, assumeTrue, /*checkDerived*/ false); } if (strictNullChecks && assumeTrue && optionalChainContainsReference(predicateArgument, reference) && !(getTypeFacts(predicate.type) & TypeFacts.EQUndefined)) { @@ -25417,7 +25584,7 @@ namespace ts { } const access = getDiscriminantPropertyAccess(predicateArgument, type); if (access) { - return narrowTypeByDiscriminant(type, access, t => getNarrowedType(t, predicate.type!, assumeTrue, isTypeSubtypeOf)); + return narrowTypeByDiscriminant(type, access, t => getNarrowedType(t, predicate.type!, assumeTrue, /*checkDerived*/ false)); } } } @@ -25607,7 +25774,7 @@ namespace ts { !((isJsxOpeningElement(node.parent) || isJsxSelfClosingElement(node.parent)) && node.parent.tagName === node) && (checkMode && checkMode & CheckMode.RestBindingElement ? getContextualType(node, ContextFlags.SkipBindingPatterns) - : getContextualType(node)); + : getContextualType(node, /*contextFlags*/ undefined)); return contextualType && !isGenericType(contextualType); } @@ -25780,9 +25947,7 @@ namespace ts { return getTypeOfSymbol(symbol); } - // We should only mark aliases as referenced if there isn't a local value declaration - // for the symbol. Also, don't mark any property access expression LHS - checkPropertyAccessExpression will handle that - if (!(node.parent && isPropertyAccessExpression(node.parent) && node.parent.expression === node)) { + if (shouldMarkIdentifierAliasReferenced(node)) { markAliasReferenced(symbol, node); } @@ -25930,6 +26095,25 @@ namespace ts { return assignmentKind ? getBaseTypeOfLiteralType(flowType) : flowType; } + function shouldMarkIdentifierAliasReferenced(node: Identifier): boolean { + const parent = node.parent; + if (parent) { + // A property access expression LHS? checkPropertyAccessExpression will handle that. + if (isPropertyAccessExpression(parent) && parent.expression === node) { + return false; + } + // Next two check for an identifier inside a type only export. + if (isExportSpecifier(parent) && parent.isTypeOnly) { + return false; + } + const greatGrandparent = parent.parent?.parent; + if (greatGrandparent && isExportDeclaration(greatGrandparent) && greatGrandparent.isTypeOnly) { + return false; + } + } + return true; + } + function isInsideFunctionOrInstancePropertyInitializer(node: Node, threshold: Node): boolean { return !!findAncestor(node, n => n === threshold ? "quit" : isFunctionLike(n) || ( n.parent && isPropertyDeclaration(n.parent) && !hasStaticModifier(n.parent) && n.parent.initializer === n @@ -26539,7 +26723,7 @@ namespace ts { // We have an object literal method. Check if the containing object literal has a contextual type // that includes a ThisType. If so, T is the contextual type for 'this'. We continue looking in // any directly enclosing object literals. - const contextualType = getApparentTypeOfContextualType(containingLiteral); + const contextualType = getApparentTypeOfContextualType(containingLiteral, /*contextFlags*/ undefined); let literal = containingLiteral; let type = contextualType; while (type) { @@ -26551,7 +26735,7 @@ namespace ts { break; } literal = literal.parent.parent as ObjectLiteralExpression; - type = getApparentTypeOfContextualType(literal); + type = getApparentTypeOfContextualType(literal, /*contextFlags*/ undefined); } // There was no contextual ThisType for the containing object literal, so the contextual type // for 'this' is the non-null form of the contextual type for the containing object literal or @@ -26611,7 +26795,7 @@ namespace ts { } } - function getContextualTypeForVariableLikeDeclaration(declaration: VariableLikeDeclaration): Type | undefined { + function getContextualTypeForVariableLikeDeclaration(declaration: VariableLikeDeclaration, contextFlags: ContextFlags | undefined): Type | undefined { const typeNode = getEffectiveTypeAnnotationNode(declaration); if (typeNode) { return getTypeFromTypeNode(typeNode); @@ -26620,19 +26804,19 @@ namespace ts { case SyntaxKind.Parameter: return getContextuallyTypedParameterType(declaration); case SyntaxKind.BindingElement: - return getContextualTypeForBindingElement(declaration); + return getContextualTypeForBindingElement(declaration, contextFlags); case SyntaxKind.PropertyDeclaration: if (isStatic(declaration)) { - return getContextualTypeForStaticPropertyDeclaration(declaration); + return getContextualTypeForStaticPropertyDeclaration(declaration, contextFlags); } // By default, do nothing and return undefined - only the above cases have context implied by a parent } } - function getContextualTypeForBindingElement(declaration: BindingElement): Type | undefined { + function getContextualTypeForBindingElement(declaration: BindingElement, contextFlags: ContextFlags | undefined): Type | undefined { const parent = declaration.parent.parent; const name = declaration.propertyName || declaration.name; - const parentType = getContextualTypeForVariableLikeDeclaration(parent) || + const parentType = getContextualTypeForVariableLikeDeclaration(parent, contextFlags) || parent.kind !== SyntaxKind.BindingElement && parent.initializer && checkDeclarationInitializer(parent, declaration.dotDotDotToken ? CheckMode.RestBindingElement : CheckMode.Normal); if (!parentType || isBindingPattern(name) || isComputedNonLiteralName(name)) return undefined; if (parent.name.kind === SyntaxKind.ArrayBindingPattern) { @@ -26647,8 +26831,8 @@ namespace ts { } } - function getContextualTypeForStaticPropertyDeclaration(declaration: PropertyDeclaration): Type | undefined { - const parentType = isExpression(declaration.parent) && getContextualType(declaration.parent); + function getContextualTypeForStaticPropertyDeclaration(declaration: PropertyDeclaration, contextFlags: ContextFlags | undefined): Type | undefined { + const parentType = isExpression(declaration.parent) && getContextualType(declaration.parent, contextFlags); if (!parentType) return undefined; return getTypeOfPropertyOfContextualType(parentType, getSymbolOfNode(declaration).escapedName); } @@ -26661,10 +26845,10 @@ namespace ts { // the contextual type of an initializer expression is the type implied by the binding pattern. // Otherwise, in a binding pattern inside a variable or parameter declaration, // the contextual type of an initializer expression is the type annotation of the containing declaration, if present. - function getContextualTypeForInitializerExpression(node: Expression, contextFlags?: ContextFlags): Type | undefined { + function getContextualTypeForInitializerExpression(node: Expression, contextFlags: ContextFlags | undefined): Type | undefined { const declaration = node.parent as VariableLikeDeclaration; if (hasInitializer(declaration) && node === declaration.initializer) { - const result = getContextualTypeForVariableLikeDeclaration(declaration); + const result = getContextualTypeForVariableLikeDeclaration(declaration, contextFlags); if (result) { return result; } @@ -26675,19 +26859,22 @@ namespace ts { return undefined; } - function getContextualTypeForReturnExpression(node: Expression): Type | undefined { + function getContextualTypeForReturnExpression(node: Expression, contextFlags: ContextFlags | undefined): Type | undefined { const func = getContainingFunction(node); if (func) { - let contextualReturnType = getContextualReturnType(func); + let contextualReturnType = getContextualReturnType(func, contextFlags); if (contextualReturnType) { const functionFlags = getFunctionFlags(func); if (functionFlags & FunctionFlags.Generator) { // Generator or AsyncGenerator function - const use = functionFlags & FunctionFlags.Async ? IterationUse.AsyncGeneratorReturnType : IterationUse.GeneratorReturnType; - const iterationTypes = getIterationTypesOfIterable(contextualReturnType, use, /*errorNode*/ undefined); - if (!iterationTypes) { + const isAsyncGenerator = (functionFlags & FunctionFlags.Async) !== 0; + if (contextualReturnType.flags & TypeFlags.Union) { + contextualReturnType = filterType(contextualReturnType, type => !!getIterationTypeOfGeneratorFunctionReturnType(IterationTypeKind.Return, type, isAsyncGenerator)); + } + const iterationReturnType = getIterationTypeOfGeneratorFunctionReturnType(IterationTypeKind.Return, contextualReturnType, (functionFlags & FunctionFlags.Async) !== 0); + if (!iterationReturnType) { return undefined; } - contextualReturnType = iterationTypes.returnType; + contextualReturnType = iterationReturnType; // falls through to unwrap Promise for AsyncGenerators } @@ -26703,7 +26890,7 @@ namespace ts { return undefined; } - function getContextualTypeForAwaitOperand(node: AwaitExpression, contextFlags?: ContextFlags): Type | undefined { + function getContextualTypeForAwaitOperand(node: AwaitExpression, contextFlags: ContextFlags | undefined): Type | undefined { const contextualType = getContextualType(node, contextFlags); if (contextualType) { const contextualAwaitedType = getAwaitedTypeNoAlias(contextualType); @@ -26712,15 +26899,19 @@ namespace ts { return undefined; } - function getContextualTypeForYieldOperand(node: YieldExpression): Type | undefined { + function getContextualTypeForYieldOperand(node: YieldExpression, contextFlags: ContextFlags | undefined): Type | undefined { const func = getContainingFunction(node); if (func) { const functionFlags = getFunctionFlags(func); - const contextualReturnType = getContextualReturnType(func); + let contextualReturnType = getContextualReturnType(func, contextFlags); if (contextualReturnType) { + const isAsyncGenerator = (functionFlags & FunctionFlags.Async) !== 0; + if (!node.asteriskToken && contextualReturnType.flags & TypeFlags.Union) { + contextualReturnType = filterType(contextualReturnType, type => !!getIterationTypeOfGeneratorFunctionReturnType(IterationTypeKind.Return, type, isAsyncGenerator)); + } return node.asteriskToken ? contextualReturnType - : getIterationTypeOfGeneratorFunctionReturnType(IterationTypeKind.Yield, contextualReturnType, (functionFlags & FunctionFlags.Async) !== 0); + : getIterationTypeOfGeneratorFunctionReturnType(IterationTypeKind.Yield, contextualReturnType, isAsyncGenerator); } } @@ -26745,7 +26936,7 @@ namespace ts { function getContextualIterationType(kind: IterationTypeKind, functionDecl: SignatureDeclaration): Type | undefined { const isAsync = !!(getFunctionFlags(functionDecl) & FunctionFlags.Async); - const contextualReturnType = getContextualReturnType(functionDecl); + const contextualReturnType = getContextualReturnType(functionDecl, /*contextFlags*/ undefined); if (contextualReturnType) { return getIterationTypeOfGeneratorFunctionReturnType(kind, contextualReturnType, isAsync) || undefined; @@ -26754,7 +26945,7 @@ namespace ts { return undefined; } - function getContextualReturnType(functionDecl: SignatureDeclaration): Type | undefined { + function getContextualReturnType(functionDecl: SignatureDeclaration, contextFlags: ContextFlags | undefined): Type | undefined { // If the containing function has a return type annotation, is a constructor, or is a get accessor whose // corresponding set accessor has a type annotation, return statements in the function are contextually typed const returnType = getReturnTypeFromAnnotation(functionDecl); @@ -26769,7 +26960,7 @@ namespace ts { } const iife = getImmediatelyInvokedFunctionExpression(functionDecl); if (iife) { - return getContextualType(iife); + return getContextualType(iife, contextFlags); } return undefined; } @@ -26809,7 +27000,7 @@ namespace ts { return undefined; } - function getContextualTypeForBinaryOperand(node: Expression, contextFlags?: ContextFlags): Type | undefined { + function getContextualTypeForBinaryOperand(node: Expression, contextFlags: ContextFlags | undefined): Type | undefined { const binaryExpression = node.parent as BinaryExpression; const { left, operatorToken, right } = binaryExpression; switch (operatorToken.kind) { @@ -26851,6 +27042,14 @@ namespace ts { const lhsType = getTypeOfExpression(e.expression); return isPrivateIdentifier(e.name) ? tryGetPrivateIdentifierPropertyOfType(lhsType, e.name) : getPropertyOfType(lhsType, e.name.escapedText); } + if (isElementAccessExpression(e)) { + const propType = checkExpressionCached(e.argumentExpression); + if (!isTypeUsableAsPropertyName(propType)) { + return undefined; + } + const lhsType = getTypeOfExpression(e.expression); + return getPropertyOfType(lhsType, getPropertyNameFromType(propType)); + } return undefined; function tryGetPrivateIdentifierPropertyOfType(type: Type, id: PrivateIdentifier) { @@ -26917,9 +27116,11 @@ namespace ts { case AssignmentDeclarationKind.ExportsProperty: case AssignmentDeclarationKind.Prototype: case AssignmentDeclarationKind.PrototypeProperty: - let valueDeclaration = binaryExpression.left.symbol?.valueDeclaration; - // falls through case AssignmentDeclarationKind.ModuleExports: + let valueDeclaration: Declaration | undefined; + if (kind !== AssignmentDeclarationKind.ModuleExports) { + valueDeclaration = binaryExpression.left.symbol?.valueDeclaration; + } valueDeclaration ||= binaryExpression.symbol?.valueDeclaration; const annotated = valueDeclaration && getEffectiveTypeAnnotationNode(valueDeclaration); return annotated ? getTypeFromTypeNode(annotated) : undefined; @@ -26970,27 +27171,7 @@ namespace ts { } function getTypeOfPropertyOfContextualType(type: Type, name: __String, nameType?: Type) { - return mapType(type, (t): Type | undefined => { - if (t.flags & TypeFlags.Intersection) { - const intersection = t as IntersectionType; - let newTypes = mapDefined(intersection.types, getTypeOfConcretePropertyOfContextualType); - if (newTypes.length > 0) { - return getIntersectionType(newTypes); - } - newTypes = mapDefined(intersection.types, getTypeOfApplicableIndexInfoOfContextualType); - if (newTypes.length > 0) { - return getIntersectionType(newTypes); - } - return undefined; - } - const concretePropertyType = getTypeOfConcretePropertyOfContextualType(t); - if (concretePropertyType) { - return concretePropertyType; - } - return getTypeOfApplicableIndexInfoOfContextualType(t); - }, /*noReductions*/ true); - - function getTypeOfConcretePropertyOfContextualType(t: Type) { + return mapType(type, t => { if (isGenericMappedType(t) && !t.declaration.nameType) { const constraint = getConstraintTypeFromMappedType(t); const constraintOfConstraint = getBaseConstraintOfType(constraint) || constraint; @@ -26998,9 +27179,8 @@ namespace ts { if (isTypeAssignableTo(propertyNameType, constraintOfConstraint)) { return substituteIndexedMappedType(t, propertyNameType); } - return undefined; } - if (t.flags & TypeFlags.StructuredType) { + else if (t.flags & TypeFlags.StructuredType) { const prop = getPropertyOfType(t, name); if (prop) { return isCircularMappedProperty(prop) ? undefined : getTypeOfSymbol(prop); @@ -27011,21 +27191,16 @@ namespace ts { return restType; } } + return findApplicableIndexInfo(getIndexInfosOfStructuredType(t), nameType || getStringLiteralType(unescapeLeadingUnderscores(name)))?.type; } return undefined; - } - function getTypeOfApplicableIndexInfoOfContextualType(t: Type) { - if (!(t.flags & TypeFlags.StructuredType)) { - return undefined; - } - return findApplicableIndexInfo(getIndexInfosOfStructuredType(t), nameType || getStringLiteralType(unescapeLeadingUnderscores(name)))?.type; - } + }, /*noReductions*/ true); } // In an object literal contextually typed by a type T, the contextual type of a property assignment is the type of // the matching property in T, if one exists. Otherwise, it is the type of the numeric index signature in T, if one // exists. Otherwise, it is the type of the string index signature in T, if one exists. - function getContextualTypeForObjectLiteralMethod(node: MethodDeclaration, contextFlags?: ContextFlags): Type | undefined { + function getContextualTypeForObjectLiteralMethod(node: MethodDeclaration, contextFlags: ContextFlags | undefined): Type | undefined { Debug.assert(isObjectLiteralMethod(node)); if (node.flags & NodeFlags.InWithStatement) { // We cannot answer semantic questions within a with block, do not proceed any further @@ -27034,9 +27209,9 @@ namespace ts { return getContextualTypeForObjectLiteralElement(node, contextFlags); } - function getContextualTypeForObjectLiteralElement(element: ObjectLiteralElementLike, contextFlags?: ContextFlags) { + function getContextualTypeForObjectLiteralElement(element: ObjectLiteralElementLike, contextFlags: ContextFlags | undefined) { const objectLiteral = element.parent as ObjectLiteralExpression; - const propertyAssignmentType = isPropertyAssignment(element) && getContextualTypeForVariableLikeDeclaration(element); + const propertyAssignmentType = isPropertyAssignment(element) && getContextualTypeForVariableLikeDeclaration(element, contextFlags); if (propertyAssignmentType) { return propertyAssignmentType; } @@ -27072,12 +27247,12 @@ namespace ts { } // In a contextually typed conditional expression, the true/false expressions are contextually typed by the same type. - function getContextualTypeForConditionalOperand(node: Expression, contextFlags?: ContextFlags): Type | undefined { + function getContextualTypeForConditionalOperand(node: Expression, contextFlags: ContextFlags | undefined): Type | undefined { const conditional = node.parent as ConditionalExpression; return node === conditional.whenTrue || node === conditional.whenFalse ? getContextualType(conditional, contextFlags) : undefined; } - function getContextualTypeForChildJsxExpression(node: JsxElement, child: JsxChild, contextFlags?: ContextFlags) { + function getContextualTypeForChildJsxExpression(node: JsxElement, child: JsxChild, contextFlags: ContextFlags | undefined) { const attributesType = getApparentTypeOfContextualType(node.openingElement.tagName, contextFlags); // JSX expression is in children of JSX Element, we will look for an "children" attribute (we get the name from JSX.ElementAttributesProperty) const jsxChildrenPropertyName = getJsxElementChildrenPropertyName(getJsxNamespaceAt(node)); @@ -27097,7 +27272,7 @@ namespace ts { }, /*noReductions*/ true)); } - function getContextualTypeForJsxExpression(node: JsxExpression, contextFlags?: ContextFlags): Type | undefined { + function getContextualTypeForJsxExpression(node: JsxExpression, contextFlags: ContextFlags | undefined): Type | undefined { const exprParent = node.parent; return isJsxAttributeLike(exprParent) ? getContextualType(node, contextFlags) @@ -27106,7 +27281,7 @@ namespace ts { : undefined; } - function getContextualTypeForJsxAttribute(attribute: JsxAttribute | JsxSpreadAttribute, contextFlags?: ContextFlags): Type | undefined { + function getContextualTypeForJsxAttribute(attribute: JsxAttribute | JsxSpreadAttribute, contextFlags: ContextFlags | undefined): Type | undefined { // When we trying to resolve JsxOpeningLikeElement as a stateless function element, we will already give its attributes a contextual type // which is a type of the parameter of the signature we are trying out. // If there is no contextual type (e.g. we are trying to resolve stateful component), get attributes type from resolving element's tagName @@ -27182,7 +27357,7 @@ namespace ts { // Return the contextual type for a given expression node. During overload resolution, a contextual type may temporarily // be "pushed" onto a node using the contextualType property. - function getApparentTypeOfContextualType(node: Expression | MethodDeclaration, contextFlags?: ContextFlags): Type | undefined { + function getApparentTypeOfContextualType(node: Expression | MethodDeclaration, contextFlags: ContextFlags | undefined): Type | undefined { const contextualType = isObjectLiteralMethod(node) ? getContextualTypeForObjectLiteralMethod(node, contextFlags) : getContextualType(node, contextFlags); @@ -27197,7 +27372,7 @@ namespace ts { // If the given contextual type contains instantiable types and if a mapper representing // return type inferences is available, instantiate those types using that mapper. - function instantiateContextualType(contextualType: Type | undefined, node: Node, contextFlags?: ContextFlags): Type | undefined { + function instantiateContextualType(contextualType: Type | undefined, node: Node, contextFlags: ContextFlags | undefined): Type | undefined { if (contextualType && maybeTypeOfKind(contextualType, TypeFlags.Instantiable)) { const inferenceContext = getInferenceContext(node); // If no inferences have been made, nothing is gained from instantiating as type parameters @@ -27254,7 +27429,7 @@ namespace ts { * @param node the expression whose contextual type will be returned. * @returns the contextual type of an expression. */ - function getContextualType(node: Expression, contextFlags?: ContextFlags): Type | undefined { + function getContextualType(node: Expression, contextFlags: ContextFlags | undefined): Type | undefined { if (node.flags & NodeFlags.InWithStatement) { // We cannot answer semantic questions within a with block, do not proceed any further return undefined; @@ -27272,9 +27447,9 @@ namespace ts { return getContextualTypeForInitializerExpression(node, contextFlags); case SyntaxKind.ArrowFunction: case SyntaxKind.ReturnStatement: - return getContextualTypeForReturnExpression(node); + return getContextualTypeForReturnExpression(node, contextFlags); case SyntaxKind.YieldExpression: - return getContextualTypeForYieldOperand(parent as YieldExpression); + return getContextualTypeForYieldOperand(parent as YieldExpression, contextFlags); case SyntaxKind.AwaitExpression: return getContextualTypeForAwaitOperand(parent as AwaitExpression, contextFlags); case SyntaxKind.CallExpression: @@ -27323,7 +27498,7 @@ namespace ts { return undefined; function tryFindWhenConstTypeReference(node: Expression) { - return getContextualType(node); + return getContextualType(node, contextFlags); } } @@ -27332,7 +27507,7 @@ namespace ts { return ancestor && ancestor.inferenceContext!; } - function getContextualJsxElementAttributesType(node: JsxOpeningLikeElement, contextFlags?: ContextFlags) { + function getContextualJsxElementAttributesType(node: JsxOpeningLikeElement, contextFlags: ContextFlags | undefined) { if (isJsxOpeningElement(node) && node.parent.contextualType && contextFlags !== ContextFlags.Completions) { // Contextually applied type is moved from attributes up to the outer jsx attributes so when walking up from the children they get hit // _However_ to hit them from the _attributes_ we must look for them here; otherwise we'll used the declared type @@ -27454,12 +27629,15 @@ namespace ts { if (!isErrorType(intrinsicClassAttribs)) { const typeParams = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(intrinsicClassAttribs.symbol); const hostClassType = getReturnTypeOfSignature(sig); - apparentAttributesType = intersectTypes( - typeParams - ? createTypeReference(intrinsicClassAttribs as GenericType, fillMissingTypeArguments([hostClassType], typeParams, getMinTypeArgumentCount(typeParams), isInJSFile(context))) - : intrinsicClassAttribs, - apparentAttributesType - ); + let libraryManagedAttributeType: Type; + if (typeParams) { + // apply JSX.IntrinsicClassElements + const inferredArgs = fillMissingTypeArguments([hostClassType], typeParams, getMinTypeArgumentCount(typeParams), isInJSFile(context)); + libraryManagedAttributeType = instantiateType(intrinsicClassAttribs, createTypeMapper(typeParams, inferredArgs)); + } + // or JSX.IntrinsicClassElements has no generics. + else libraryManagedAttributeType = intrinsicClassAttribs; + apparentAttributesType = intersectTypes(libraryManagedAttributeType, apparentAttributesType); } const intrinsicAttribs = getJsxType(JsxNames.IntrinsicAttributes, context); @@ -27664,7 +27842,7 @@ namespace ts { const elementCount = elements.length; const elementTypes: Type[] = []; const elementFlags: ElementFlags[] = []; - const contextualType = getApparentTypeOfContextualType(node); + const contextualType = getApparentTypeOfContextualType(node, /*contextFlags*/ undefined); const inDestructuringPattern = isAssignmentTarget(node); const inConstContext = isConstContext(node); let hasOmittedExpression = false; @@ -27845,7 +28023,7 @@ namespace ts { let propertiesArray: Symbol[] = []; let spread: Type = emptyObjectType; - const contextualType = getApparentTypeOfContextualType(node); + const contextualType = getApparentTypeOfContextualType(node, /*contextFlags*/ undefined); const contextualTypeHasPattern = contextualType && contextualType.pattern && (contextualType.pattern.kind === SyntaxKind.ObjectBindingPattern || contextualType.pattern.kind === SyntaxKind.ObjectLiteralExpression); const inConstContext = isConstContext(node); @@ -28009,16 +28187,31 @@ namespace ts { // If object literal is contextually typed by the implied type of a binding pattern, augment the result // type with those properties for which the binding pattern specifies a default value. // If the object literal is spread into another object literal, skip this step and let the top-level object - // literal handle it instead. - if (contextualTypeHasPattern && node.parent.kind !== SyntaxKind.SpreadAssignment) { - for (const prop of getPropertiesOfType(contextualType)) { - if (!propertiesTable.get(prop.escapedName) && !getPropertyOfType(spread, prop.escapedName)) { - if (!(prop.flags & SymbolFlags.Optional)) { - error(prop.valueDeclaration || (prop as TransientSymbol).bindingElement, - Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value); + // literal handle it instead. Note that this might require full traversal to the root pattern's parent + // as it's the guaranteed to be the common ancestor of the pattern node and the current object node. + // It's not possible to check if the immediate parent node is a spread assignment + // since the type flows in non-obvious ways through conditional expressions, IIFEs and more. + if (contextualTypeHasPattern) { + const rootPatternParent = findAncestor(contextualType.pattern!.parent, n => + n.kind === SyntaxKind.VariableDeclaration || + n.kind === SyntaxKind.BinaryExpression || + n.kind === SyntaxKind.Parameter + ); + const spreadOrOutsideRootObject = findAncestor(node, n => + n === rootPatternParent || + n.kind === SyntaxKind.SpreadAssignment + )!; + + if (spreadOrOutsideRootObject.kind !== SyntaxKind.SpreadAssignment) { + for (const prop of getPropertiesOfType(contextualType)) { + if (!propertiesTable.get(prop.escapedName) && !getPropertyOfType(spread, prop.escapedName)) { + if (!(prop.flags & SymbolFlags.Optional)) { + error(prop.valueDeclaration || (prop as TransientSymbol).bindingElement, + Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value); + } + propertiesTable.set(prop.escapedName, prop); + propertiesArray.push(prop); } - propertiesTable.set(prop.escapedName, prop); - propertiesArray.push(prop); } } } @@ -28214,7 +28407,7 @@ namespace ts { error(attributes, Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten, unescapeLeadingUnderscores(jsxChildrenPropertyName)); } - const contextualType = getApparentTypeOfContextualType(openingLikeElement.attributes); + const contextualType = getApparentTypeOfContextualType(openingLikeElement.attributes, /*contextFlags*/ undefined); const childrenContextualType = contextualType && getTypeOfPropertyOfContextualType(contextualType, jsxChildrenPropertyName); // If there are children in the body of JSX element, create dummy attribute "children" with the union of children types so that it will pass the attribute checking process const childrenPropSymbol = createSymbol(SymbolFlags.Property, jsxChildrenPropertyName); @@ -30688,7 +30881,7 @@ namespace ts { let typeArguments: NodeArray | undefined; - if (!isDecorator) { + if (!isDecorator && !isSuperCall(node)) { typeArguments = (node as CallExpression).typeArguments; // We already perform checking on the type arguments on the class declaration itself. @@ -30962,7 +31155,7 @@ namespace ts { argCheckMode = checkMode & CheckMode.IsForStringLiteralArgumentCompletions; if (inferenceContext) { const typeArgumentTypes = inferTypeArguments(node, candidate, args, argCheckMode, inferenceContext); - checkCandidate = getSignatureInstantiation(candidate, typeArgumentTypes, isInJSFile(candidate.declaration), inferenceContext && inferenceContext.inferredTypeParameters); + checkCandidate = getSignatureInstantiation(candidate, typeArgumentTypes, isInJSFile(candidate.declaration), inferenceContext.inferredTypeParameters); // If the original signature has a generic rest type, instantiation may produce a // signature with different arity and we need to perform another arity check. if (getNonArrayRestType(candidate) && !hasCorrectArity(node, args, checkCandidate, signatureHelpTrailingComma)) { @@ -31207,7 +31400,7 @@ namespace ts { // returns a function type, we choose to defer processing. This narrowly permits function composition // operators to flow inferences through return types, but otherwise processes calls right away. We // use the resolvingSignature singleton to indicate that we deferred processing. This result will be - // propagated out and eventually turned into nonInferrableType (a type that is assignable to anything and + // propagated out and eventually turned into silentNeverType (a type that is assignable to anything and // from which we never make inferences). if (checkMode & CheckMode.SkipGenericFunctions && !node.typeArguments && callSignatures.some(isGenericFunctionReturningFunction)) { skippedGenericFunction(node, checkMode); @@ -31729,12 +31922,15 @@ namespace ts { return false; } const func = isFunctionDeclaration(node) || isFunctionExpression(node) ? node : - isVariableDeclaration(node) && node.initializer && isFunctionExpression(node.initializer) ? node.initializer : + (isVariableDeclaration(node) || isPropertyAssignment(node)) && node.initializer && isFunctionExpression(node.initializer) ? node.initializer : undefined; if (func) { - // If the node has a @class tag, treat it like a constructor. + // If the node has a @class or @constructor tag, treat it like a constructor. if (getJSDocClassTag(node)) return true; + // If the node is a property of an object literal. + if (isPropertyAssignment(walkUpParenthesizedExpressions(func.parent))) return false; + // If the symbol of the node has members, treat it like a constructor. const symbol = getSymbolOfNode(func); return !!symbol?.members?.size; @@ -31842,8 +32038,8 @@ namespace ts { const signature = getResolvedSignature(node, /*candidatesOutArray*/ undefined, checkMode); if (signature === resolvingSignature) { // CheckMode.SkipGenericFunctions is enabled and this is a call to a generic function that - // returns a function type. We defer checking and return nonInferrableType. - return nonInferrableType; + // returns a function type. We defer checking and return silentNeverType. + return silentNeverType; } checkDeprecatedSignature(signature, node); @@ -32512,17 +32708,6 @@ namespace ts { } } } - const restType = getEffectiveRestType(context); - if (restType && restType.flags & TypeFlags.TypeParameter) { - // The contextual signature has a generic rest parameter. We first instantiate the contextual - // signature (without fixing type parameters) and assign types to contextually typed parameters. - const instantiatedContext = instantiateSignature(context, inferenceContext.nonFixingMapper); - assignContextualParameterTypes(signature, instantiatedContext); - // We then infer from a tuple type representing the parameters that correspond to the contextual - // rest parameter. - const restPos = getParameterCount(context) - 1; - inferTypes(inferenceContext.inferences, getRestTypeAtPosition(signature, restPos), restType); - } } function assignContextualParameterTypes(signature: Signature, context: Signature) { @@ -32729,7 +32914,7 @@ namespace ts { const contextualSignature = getContextualSignatureForFunctionLikeDeclaration(func); const contextualType = !contextualSignature ? undefined : contextualSignature === getSignatureFromDeclaration(func) ? isGenerator ? undefined : returnType : - instantiateContextualType(getReturnTypeOfSignature(contextualSignature), func); + instantiateContextualType(getReturnTypeOfSignature(contextualSignature), func, /*contextFlags*/ undefined); if (isGenerator) { yieldType = getWidenedLiteralLikeTypeForContextualIterationTypeIfNeeded(yieldType, contextualType, IterationTypeKind.Yield, isAsync); returnType = getWidenedLiteralLikeTypeForContextualIterationTypeIfNeeded(returnType, contextualType, IterationTypeKind.Return, isAsync); @@ -32811,7 +32996,7 @@ namespace ts { nextType = iterationTypes && iterationTypes.nextType; } else { - nextType = getContextualType(yieldExpression); + nextType = getContextualType(yieldExpression, /*contextFlags*/ undefined); } if (nextType) pushIfUnique(nextTypes, nextType); }); @@ -33038,10 +33223,15 @@ namespace ts { if (isContextSensitive(node)) { if (contextualSignature) { const inferenceContext = getInferenceContext(node); + let instantiatedContextualSignature: Signature | undefined; if (checkMode && checkMode & CheckMode.Inferential) { inferFromAnnotatedParameters(signature, contextualSignature, inferenceContext!); + const restType = getEffectiveRestType(contextualSignature); + if (restType && restType.flags & TypeFlags.TypeParameter) { + instantiatedContextualSignature = instantiateSignature(contextualSignature, inferenceContext!.nonFixingMapper); + } } - const instantiatedContextualSignature = inferenceContext ? + instantiatedContextualSignature ||= inferenceContext ? instantiateSignature(contextualSignature, inferenceContext.mapper) : contextualSignature; assignContextualParameterTypes(signature, instantiatedContextualSignature); } @@ -33369,7 +33559,7 @@ namespace ts { error(node.operand, Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, tokenToString(node.operator)); } if (node.operator === SyntaxKind.PlusToken) { - if (maybeTypeOfKind(operandType, TypeFlags.BigIntLike)) { + if (maybeTypeOfKindConsideringBaseConstraint(operandType, TypeFlags.BigIntLike)) { error(node.operand, Diagnostics.Operator_0_cannot_be_applied_to_type_1, tokenToString(node.operator), typeToString(getBaseTypeOfLiteralType(operandType))); } return numberType; @@ -33869,7 +34059,11 @@ namespace ts { const operator = operatorToken.kind; if (operator === SyntaxKind.AmpersandAmpersandToken || operator === SyntaxKind.BarBarToken || operator === SyntaxKind.QuestionQuestionToken) { if (operator === SyntaxKind.AmpersandAmpersandToken) { - const parent = walkUpParenthesizedExpressions(node.parent); + let parent = node.parent; + while (parent.kind === SyntaxKind.ParenthesizedExpression + || isBinaryExpression(parent) && (parent.operatorToken.kind === SyntaxKind.AmpersandAmpersandToken || parent.operatorToken.kind === SyntaxKind.BarBarToken)) { + parent = parent.parent; + } checkTestingKnownTruthyCallableOrAwaitableType(node.left, isIfStatement(parent) ? parent.thenStatement : undefined); } checkTruthinessOfType(leftType, node.left); @@ -34433,7 +34627,7 @@ namespace ts { type = anyType; addLazyDiagnostic(() => { if (noImplicitAny && !expressionResultIsUnused(node)) { - const contextualType = getContextualType(node); + const contextualType = getContextualType(node, /*contextFlags*/ undefined); if (!contextualType || isTypeAny(contextualType)) { error(node, Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation); } @@ -34478,7 +34672,7 @@ namespace ts { texts.push(span.literal.text); types.push(isTypeAssignableTo(type, templateConstraintType) ? type : stringType); } - return isConstContext(node) || isTemplateLiteralContext(node) || someType(getContextualType(node) || unknownType, isTemplateLiteralContextualType) ? getTemplateLiteralType(texts, types) : stringType; + return isConstContext(node) || isTemplateLiteralContext(node) || someType(getContextualType(node, /*contextFlags*/ undefined) || unknownType, isTemplateLiteralContextualType) ? getTemplateLiteralType(texts, types) : stringType; } function isTemplateLiteralContextualType(type: Type): boolean { @@ -34509,7 +34703,7 @@ namespace ts { // We strip literal freshness when an appropriate contextual type is present such that contextually typed // literals always preserve their literal types (otherwise they might widen during type inference). An alternative // here would be to not mark contextually typed literals as fresh in the first place. - const result = maybeTypeOfKind(type, TypeFlags.Literal) && isLiteralOfContextualType(type, instantiateContextualType(contextualType, node)) ? + const result = maybeTypeOfKind(type, TypeFlags.Literal) && isLiteralOfContextualType(type, instantiateContextualType(contextualType, node, /*contextFlags*/ undefined)) ? getRegularTypeOfLiteralType(type) : type; return result; } @@ -34636,7 +34830,7 @@ namespace ts { const type = checkExpression(node, checkMode, forceTuple); return isConstContext(node) || isCommonJsExportedExpression(node) ? getRegularTypeOfLiteralType(type) : isTypeAssertion(node) ? type : - getWidenedLiteralLikeTypeForContextualType(type, instantiateContextualType(arguments.length === 2 ? getContextualType(node) : contextualType, node)); + getWidenedLiteralLikeTypeForContextualType(type, instantiateContextualType(arguments.length === 2 ? getContextualType(node, /*contextFlags*/ undefined) : contextualType, node, /*contextFlags*/ undefined)); } function checkPropertyAssignment(node: PropertyAssignment, checkMode?: CheckMode): Type { @@ -35095,12 +35289,14 @@ namespace ts { error(node, Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types); } else if (modifiers === ModifierFlags.In || modifiers === ModifierFlags.Out) { + tracing?.push(tracing.Phase.CheckTypes, "checkTypeParameterDeferred", { parent: getTypeId(getDeclaredTypeOfSymbol(symbol)), id: getTypeId(typeParameter) }); const source = createMarkerType(symbol, typeParameter, modifiers === ModifierFlags.Out ? markerSubTypeForCheck : markerSuperTypeForCheck); const target = createMarkerType(symbol, typeParameter, modifiers === ModifierFlags.Out ? markerSuperTypeForCheck : markerSubTypeForCheck); const saveVarianceTypeParameter = typeParameter; varianceTypeParameter = typeParameter; checkTypeAssignableTo(source, target, node, Diagnostics.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation); varianceTypeParameter = saveVarianceTypeParameter; + tracing?.pop(); } } } @@ -35123,7 +35319,7 @@ namespace ts { error(node.name, Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name); } } - if (node.questionToken && isBindingPattern(node.name) && (func as FunctionLikeDeclaration).body) { + if ((node.questionToken || isJSDocOptionalParameter(node)) && isBindingPattern(node.name) && (func as FunctionLikeDeclaration).body) { error(node, Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature); } if (node.name && isIdentifier(node.name) && (node.name.escapedText === "this" || node.name.escapedText === "new")) { @@ -35755,6 +35951,13 @@ namespace ts { checkDecorators(node); } + function getEffectiveTypeArgumentAtIndex(node: TypeReferenceNode | ExpressionWithTypeArguments, typeParameters: readonly TypeParameter[], index: number): Type { + if (index < typeParameters.length) { + return getTypeFromTypeNode(node.typeArguments![index]); + } + return getEffectiveTypeArguments(node, typeParameters)[index]; + } + function getEffectiveTypeArguments(node: TypeReferenceNode | ExpressionWithTypeArguments, typeParameters: readonly TypeParameter[]): Type[] { return fillMissingTypeArguments(map(node.typeArguments!, getTypeFromTypeNode), typeParameters, getMinTypeArgumentCount(typeParameters), isInJSFile(node)); @@ -36589,6 +36792,39 @@ namespace ts { type; } + function isAwaitedTypeNeeded(type: Type) { + // If this is already an `Awaited`, we shouldn't wrap it. This helps to avoid `Awaited>` in higher-order. + if (isTypeAny(type) || isAwaitedTypeInstantiation(type)) { + return false; + } + + // We only need `Awaited` if `T` contains possibly non-primitive types. + if (isGenericObjectType(type)) { + const baseConstraint = getBaseConstraintOfType(type); + // We only need `Awaited` if `T` is a type variable that has no base constraint, or the base constraint of `T` is `any`, `unknown`, `{}`, `object`, + // or is promise-like. + if (baseConstraint ? + baseConstraint.flags & TypeFlags.AnyOrUnknown || isEmptyObjectType(baseConstraint) || isThenableType(baseConstraint) : + maybeTypeOfKind(type, TypeFlags.TypeVariable)) { + return true; + } + } + + return false; + } + + function tryCreateAwaitedType(type: Type): Type | undefined { + // Nothing to do if `Awaited` doesn't exist + const awaitedSymbol = getGlobalAwaitedSymbol(/*reportErrors*/ true); + if (awaitedSymbol) { + // Unwrap unions that may contain `Awaited`, otherwise its possible to manufacture an `Awaited | U>` where + // an `Awaited` would suffice. + return getTypeAliasInstantiation(awaitedSymbol, [unwrapAwaitedType(type)]); + } + + return undefined; + } + function createAwaitedTypeIfNeeded(type: Type): Type { // We wrap type `T` in `Awaited` based on the following conditions: // - `T` is not already an `Awaited`, and @@ -36598,28 +36834,10 @@ namespace ts { // - The base constraint of `T` is `any`, `unknown`, `object`, or `{}`, or // - The base constraint of `T` is an object type with a callable `then` method. - if (isTypeAny(type)) { - return type; - } - - // If this is already an `Awaited`, just return it. This helps to avoid `Awaited>` in higher-order. - if (isAwaitedTypeInstantiation(type)) { - return type; - } - - // Only instantiate `Awaited` if `T` contains possibly non-primitive types. - if (isGenericObjectType(type)) { - const baseConstraint = getBaseConstraintOfType(type); - // Only instantiate `Awaited` if `T` has no base constraint, or the base constraint of `T` is `any`, `unknown`, `{}`, `object`, - // or is promise-like. - if (!baseConstraint || (baseConstraint.flags & TypeFlags.AnyOrUnknown) || isEmptyObjectType(baseConstraint) || isThenableType(baseConstraint)) { - // Nothing to do if `Awaited` doesn't exist - const awaitedSymbol = getGlobalAwaitedSymbol(/*reportErrors*/ true); - if (awaitedSymbol) { - // Unwrap unions that may contain `Awaited`, otherwise its possible to manufacture an `Awaited | U>` where - // an `Awaited` would suffice. - return getTypeAliasInstantiation(awaitedSymbol, [unwrapAwaitedType(type)]); - } + if (isAwaitedTypeNeeded(type)) { + const awaitedType = tryCreateAwaitedType(type); + if (awaitedType) { + return awaitedType; } } @@ -36665,8 +36883,25 @@ namespace ts { // For a union, get a union of the awaited types of each constituent. if (type.flags & TypeFlags.Union) { + if (awaitedTypeStack.lastIndexOf(type.id) >= 0) { + if (errorNode) { + error(errorNode, Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method); + } + return undefined; + } + const mapper = errorNode ? (constituentType: Type) => getAwaitedTypeNoAlias(constituentType, errorNode, diagnosticMessage, arg0) : getAwaitedTypeNoAlias; - return typeAsAwaitable.awaitedTypeOfType = mapType(type, mapper); + + awaitedTypeStack.push(type.id); + const mapped = mapType(type, mapper); + awaitedTypeStack.pop(); + + return typeAsAwaitable.awaitedTypeOfType = mapped; + } + + // If `type` is generic and should be wrapped in `Awaited`, return it. + if (isAwaitedTypeNeeded(type)) { + return typeAsAwaitable.awaitedTypeOfType = type; } const thisTypeForErrorOut: { value: Type | undefined } = { value: undefined }; @@ -38677,13 +38912,22 @@ namespace ts { } if (!(type.flags & TypeFlags.Union)) { - const iterationTypes = getIterationTypesOfIterableWorker(type, use, errorNode); + const errorOutputContainer: { errors: Diagnostic[] | undefined } | undefined = errorNode ? { errors: undefined } : undefined; + const iterationTypes = getIterationTypesOfIterableWorker(type, use, errorNode, errorOutputContainer); if (iterationTypes === noIterationTypes) { if (errorNode) { - reportTypeNotIterableError(errorNode, type, !!(use & IterationUse.AllowsAsyncIterablesFlag)); + const rootDiag = reportTypeNotIterableError(errorNode, type, !!(use & IterationUse.AllowsAsyncIterablesFlag)); + if (errorOutputContainer?.errors) { + addRelatedInfo(rootDiag, ...errorOutputContainer.errors); + } } return undefined; } + else if (errorOutputContainer?.errors?.length) { + for (const diag of errorOutputContainer.errors) { + diagnostics.add(diag); + } + } return iterationTypes; } @@ -38693,17 +38937,25 @@ namespace ts { let allIterationTypes: IterationTypes[] | undefined; for (const constituent of (type as UnionType).types) { - const iterationTypes = getIterationTypesOfIterableWorker(constituent, use, errorNode); + const errorOutputContainer: { errors: Diagnostic[] | undefined } | undefined = errorNode ? { errors: undefined } : undefined; + const iterationTypes = getIterationTypesOfIterableWorker(constituent, use, errorNode, errorOutputContainer); if (iterationTypes === noIterationTypes) { if (errorNode) { - reportTypeNotIterableError(errorNode, type, !!(use & IterationUse.AllowsAsyncIterablesFlag)); + const rootDiag = reportTypeNotIterableError(errorNode, type, !!(use & IterationUse.AllowsAsyncIterablesFlag)); + if (errorOutputContainer?.errors) { + addRelatedInfo(rootDiag, ...errorOutputContainer.errors); + } } setCachedIterationTypes(type, cacheKey, noIterationTypes); return undefined; } - else { - allIterationTypes = append(allIterationTypes, iterationTypes); + else if (errorOutputContainer?.errors?.length) { + for (const diag of errorOutputContainer.errors) { + diagnostics.add(diag); + } } + + allIterationTypes = append(allIterationTypes, iterationTypes); } const iterationTypes = allIterationTypes ? combineIterationTypes(allIterationTypes) : noIterationTypes; @@ -38735,53 +38987,69 @@ namespace ts { * NOTE: You probably don't want to call this directly and should be calling * `getIterationTypesOfIterable` instead. */ - function getIterationTypesOfIterableWorker(type: Type, use: IterationUse, errorNode: Node | undefined) { + function getIterationTypesOfIterableWorker(type: Type, use: IterationUse, errorNode: Node | undefined, errorOutputContainer: { errors: Diagnostic[] | undefined } | undefined) { if (isTypeAny(type)) { return anyIterationTypes; } + // If we are reporting errors and encounter a cached `noIterationTypes`, we should ignore the cached value and continue as if nothing was cached. + // In addition, we should not cache any new results for this call. + let noCache = false; + if (use & IterationUse.AllowsAsyncIterablesFlag) { const iterationTypes = getIterationTypesOfIterableCached(type, asyncIterationTypesResolver) || getIterationTypesOfIterableFast(type, asyncIterationTypesResolver); if (iterationTypes) { - return use & IterationUse.ForOfFlag ? - getAsyncFromSyncIterationTypes(iterationTypes, errorNode) : - iterationTypes; + if (iterationTypes === noIterationTypes && errorNode) { + // ignore the cached value + noCache = true; + } + else { + return use & IterationUse.ForOfFlag ? + getAsyncFromSyncIterationTypes(iterationTypes, errorNode) : + iterationTypes; + } } } if (use & IterationUse.AllowsSyncIterablesFlag) { - const iterationTypes = + let iterationTypes = getIterationTypesOfIterableCached(type, syncIterationTypesResolver) || getIterationTypesOfIterableFast(type, syncIterationTypesResolver); if (iterationTypes) { - if (use & IterationUse.AllowsAsyncIterablesFlag) { - // for a sync iterable in an async context, only use the cached types if they are valid. - if (iterationTypes !== noIterationTypes) { - return setCachedIterationTypes(type, "iterationTypesOfAsyncIterable", getAsyncFromSyncIterationTypes(iterationTypes, errorNode)); - } + if (iterationTypes === noIterationTypes && errorNode) { + // ignore the cached value + noCache = true; } else { - return iterationTypes; + if (use & IterationUse.AllowsAsyncIterablesFlag) { + // for a sync iterable in an async context, only use the cached types if they are valid. + if (iterationTypes !== noIterationTypes) { + iterationTypes = getAsyncFromSyncIterationTypes(iterationTypes, errorNode); + return noCache ? iterationTypes : setCachedIterationTypes(type, "iterationTypesOfAsyncIterable", iterationTypes); + } + } + else { + return iterationTypes; + } } } } if (use & IterationUse.AllowsAsyncIterablesFlag) { - const iterationTypes = getIterationTypesOfIterableSlow(type, asyncIterationTypesResolver, errorNode); + const iterationTypes = getIterationTypesOfIterableSlow(type, asyncIterationTypesResolver, errorNode, errorOutputContainer, noCache); if (iterationTypes !== noIterationTypes) { return iterationTypes; } } if (use & IterationUse.AllowsSyncIterablesFlag) { - const iterationTypes = getIterationTypesOfIterableSlow(type, syncIterationTypesResolver, errorNode); + let iterationTypes = getIterationTypesOfIterableSlow(type, syncIterationTypesResolver, errorNode, errorOutputContainer, noCache); if (iterationTypes !== noIterationTypes) { if (use & IterationUse.AllowsAsyncIterablesFlag) { - return setCachedIterationTypes(type, "iterationTypesOfAsyncIterable", iterationTypes - ? getAsyncFromSyncIterationTypes(iterationTypes, errorNode) - : noIterationTypes); + iterationTypes = getAsyncFromSyncIterationTypes(iterationTypes, errorNode); + return noCache ? iterationTypes : setCachedIterationTypes(type, "iterationTypesOfAsyncIterable", iterationTypes); } else { return iterationTypes; @@ -38806,7 +39074,7 @@ namespace ts { function getIterationTypesOfGlobalIterableType(globalType: Type, resolver: IterationTypesResolver) { const globalIterationTypes = getIterationTypesOfIterableCached(globalType, resolver) || - getIterationTypesOfIterableSlow(globalType, resolver, /*errorNode*/ undefined); + getIterationTypesOfIterableSlow(globalType, resolver, /*errorNode*/ undefined, /*errorOutputContainer*/ undefined, /*noCache*/ false); return globalIterationTypes === noIterationTypes ? defaultIterationTypes : globalIterationTypes; } @@ -38864,28 +39132,28 @@ namespace ts { * NOTE: You probably don't want to call this directly and should be calling * `getIterationTypesOfIterable` instead. */ - function getIterationTypesOfIterableSlow(type: Type, resolver: IterationTypesResolver, errorNode: Node | undefined) { + function getIterationTypesOfIterableSlow(type: Type, resolver: IterationTypesResolver, errorNode: Node | undefined, errorOutputContainer: { errors: Diagnostic[] | undefined } | undefined, noCache: boolean) { const method = getPropertyOfType(type, getPropertyNameForKnownSymbolName(resolver.iteratorSymbolName)); const methodType = method && !(method.flags & SymbolFlags.Optional) ? getTypeOfSymbol(method) : undefined; if (isTypeAny(methodType)) { - return setCachedIterationTypes(type, resolver.iterableCacheKey, anyIterationTypes); + return noCache ? anyIterationTypes : setCachedIterationTypes(type, resolver.iterableCacheKey, anyIterationTypes); } const signatures = methodType ? getSignaturesOfType(methodType, SignatureKind.Call) : undefined; if (!some(signatures)) { - return setCachedIterationTypes(type, resolver.iterableCacheKey, noIterationTypes); + return noCache ? noIterationTypes : setCachedIterationTypes(type, resolver.iterableCacheKey, noIterationTypes); } const iteratorType = getIntersectionType(map(signatures, getReturnTypeOfSignature)); - const iterationTypes = getIterationTypesOfIterator(iteratorType, resolver, errorNode) ?? noIterationTypes; - return setCachedIterationTypes(type, resolver.iterableCacheKey, iterationTypes); + const iterationTypes = getIterationTypesOfIteratorWorker(iteratorType, resolver, errorNode, errorOutputContainer, noCache) ?? noIterationTypes; + return noCache ? iterationTypes : setCachedIterationTypes(type, resolver.iterableCacheKey, iterationTypes); } - function reportTypeNotIterableError(errorNode: Node, type: Type, allowAsyncIterables: boolean): void { + function reportTypeNotIterableError(errorNode: Node, type: Type, allowAsyncIterables: boolean): Diagnostic { const message = allowAsyncIterables ? Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator : Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator; - errorAndMaybeSuggestAwait(errorNode, !!getAwaitedTypeOfPromise(type), message, typeToString(type)); + return errorAndMaybeSuggestAwait(errorNode, !!getAwaitedTypeOfPromise(type), message, typeToString(type)); } /** @@ -38894,15 +39162,34 @@ namespace ts { * If we successfully found the *yield*, *return*, and *next* types, an `IterationTypes` * record is returned. Otherwise, `undefined` is returned. */ - function getIterationTypesOfIterator(type: Type, resolver: IterationTypesResolver, errorNode: Node | undefined) { + function getIterationTypesOfIterator(type: Type, resolver: IterationTypesResolver, errorNode: Node | undefined, errorOutputContainer: { errors: Diagnostic[] | undefined } | undefined) { + return getIterationTypesOfIteratorWorker(type, resolver, errorNode, errorOutputContainer, /*noCache*/ false); + } + + /** + * Gets the *yield*, *return*, and *next* types from an `Iterator`-like or `AsyncIterator`-like type. + * + * If we successfully found the *yield*, *return*, and *next* types, an `IterationTypes` + * record is returned. Otherwise, `undefined` is returned. + * + * NOTE: You probably don't want to call this directly and should be calling + * `getIterationTypesOfIterator` instead. + */ + function getIterationTypesOfIteratorWorker(type: Type, resolver: IterationTypesResolver, errorNode: Node | undefined, errorOutputContainer: { errors: Diagnostic[] | undefined } | undefined, noCache: boolean) { if (isTypeAny(type)) { return anyIterationTypes; } - const iterationTypes = + let iterationTypes = getIterationTypesOfIteratorCached(type, resolver) || - getIterationTypesOfIteratorFast(type, resolver) || - getIterationTypesOfIteratorSlow(type, resolver, errorNode); + getIterationTypesOfIteratorFast(type, resolver); + + if (iterationTypes === noIterationTypes && errorNode) { + iterationTypes = undefined; + noCache = true; + } + + iterationTypes ??= getIterationTypesOfIteratorSlow(type, resolver, errorNode, errorOutputContainer, noCache); return iterationTypes === noIterationTypes ? undefined : iterationTypes; } @@ -38943,7 +39230,7 @@ namespace ts { // and `undefined` in our libs by default, a custom lib *could* use different definitions. const globalIterationTypes = getIterationTypesOfIteratorCached(globalType, resolver) || - getIterationTypesOfIteratorSlow(globalType, resolver, /*errorNode*/ undefined); + getIterationTypesOfIteratorSlow(globalType, resolver, /*errorNode*/ undefined, /*errorOutputContainer*/ undefined, /*noCache*/ false); const { returnType, nextType } = globalIterationTypes === noIterationTypes ? defaultIterationTypes : globalIterationTypes; return setCachedIterationTypes(type, resolver.iteratorCacheKey, createIterationTypes(yieldType, returnType, nextType)); } @@ -39024,7 +39311,7 @@ namespace ts { * If we successfully found the *yield*, *return*, and *next* types, an `IterationTypes` * record is returned. Otherwise, we return `undefined`. */ - function getIterationTypesOfMethod(type: Type, resolver: IterationTypesResolver, methodName: "next" | "return" | "throw", errorNode: Node | undefined): IterationTypes | undefined { + function getIterationTypesOfMethod(type: Type, resolver: IterationTypesResolver, methodName: "next" | "return" | "throw", errorNode: Node | undefined, errorOutputContainer: { errors: Diagnostic[] | undefined } | undefined): IterationTypes | undefined { const method = getPropertyOfType(type, methodName as __String); // Ignore 'return' or 'throw' if they are missing. @@ -39048,9 +39335,15 @@ namespace ts { const diagnostic = methodName === "next" ? resolver.mustHaveANextMethodDiagnostic : resolver.mustBeAMethodDiagnostic; - error(errorNode, diagnostic, methodName); + if (errorOutputContainer) { + errorOutputContainer.errors ??= []; + errorOutputContainer.errors.push(createDiagnosticForNode(errorNode, diagnostic, methodName)); + } + else { + error(errorNode, diagnostic, methodName); + } } - return methodName === "next" ? anyIterationTypes : undefined; + return methodName === "next" ? noIterationTypes : undefined; } // If the method signature comes exclusively from the global iterator or generator type, @@ -39109,7 +39402,13 @@ namespace ts { const iterationTypes = getIterationTypesOfIteratorResult(resolvedMethodReturnType); if (iterationTypes === noIterationTypes) { if (errorNode) { - error(errorNode, resolver.mustHaveAValueDiagnostic, methodName); + if (errorOutputContainer) { + errorOutputContainer.errors ??= []; + errorOutputContainer.errors.push(createDiagnosticForNode(errorNode, resolver.mustHaveAValueDiagnostic, methodName)); + } + else { + error(errorNode, resolver.mustHaveAValueDiagnostic, methodName); + } } yieldType = anyType; returnTypes = append(returnTypes, anyType); @@ -39132,13 +39431,13 @@ namespace ts { * NOTE: You probably don't want to call this directly and should be calling * `getIterationTypesOfIterator` instead. */ - function getIterationTypesOfIteratorSlow(type: Type, resolver: IterationTypesResolver, errorNode: Node | undefined) { + function getIterationTypesOfIteratorSlow(type: Type, resolver: IterationTypesResolver, errorNode: Node | undefined, errorOutputContainer: { errors: Diagnostic[] | undefined } | undefined, noCache: boolean) { const iterationTypes = combineIterationTypes([ - getIterationTypesOfMethod(type, resolver, "next", errorNode), - getIterationTypesOfMethod(type, resolver, "return", errorNode), - getIterationTypesOfMethod(type, resolver, "throw", errorNode), + getIterationTypesOfMethod(type, resolver, "next", errorNode, errorOutputContainer), + getIterationTypesOfMethod(type, resolver, "return", errorNode, errorOutputContainer), + getIterationTypesOfMethod(type, resolver, "throw", errorNode, errorOutputContainer), ]); - return setCachedIterationTypes(type, resolver.iteratorCacheKey, iterationTypes); + return noCache ? iterationTypes : setCachedIterationTypes(type, resolver.iteratorCacheKey, iterationTypes); } /** @@ -39163,7 +39462,7 @@ namespace ts { const use = isAsyncGenerator ? IterationUse.AsyncGeneratorReturnType : IterationUse.GeneratorReturnType; const resolver = isAsyncGenerator ? asyncIterationTypesResolver : syncIterationTypesResolver; return getIterationTypesOfIterable(type, use, /*errorNode*/ undefined) || - getIterationTypesOfIterator(type, resolver, /*errorNode*/ undefined); + getIterationTypesOfIterator(type, resolver, /*errorNode*/ undefined, /*errorOutputContainer*/ undefined); } function checkBreakOrContinueStatement(node: BreakOrContinueStatement) { @@ -39176,9 +39475,14 @@ namespace ts { function unwrapReturnType(returnType: Type, functionFlags: FunctionFlags) { const isGenerator = !!(functionFlags & FunctionFlags.Generator); const isAsync = !!(functionFlags & FunctionFlags.Async); - return isGenerator ? getIterationTypeOfGeneratorFunctionReturnType(IterationTypeKind.Return, returnType, isAsync) || errorType : - isAsync ? getAwaitedTypeNoAlias(returnType) || errorType : - returnType; + if (isGenerator) { + const returnIterationType = getIterationTypeOfGeneratorFunctionReturnType(IterationTypeKind.Return, returnType, isAsync); + if (!returnIterationType) { + return errorType; + } + return isAsync ? getAwaitedTypeNoAlias(unwrapAwaitedType(returnIterationType)) : returnIterationType; + } + return isAsync ? getAwaitedTypeNoAlias(returnType) || errorType : returnType; } function isUnwrappedReturnTypeVoidOrAny(func: SignatureDeclaration, returnType: Type): boolean { @@ -39417,8 +39721,9 @@ namespace ts { } const indexInfos = getApplicableIndexInfos(type, propNameType); const interfaceDeclaration = getObjectFlags(type) & ObjectFlags.Interface ? getDeclarationOfKind(type.symbol, SyntaxKind.InterfaceDeclaration) : undefined; - const localPropDeclaration = declaration && declaration.kind === SyntaxKind.BinaryExpression || - name && name.kind === SyntaxKind.ComputedPropertyName || getParentOfSymbol(prop) === type.symbol ? declaration : undefined; + const propDeclaration = declaration && declaration.kind === SyntaxKind.BinaryExpression || + name && name.kind === SyntaxKind.ComputedPropertyName ? declaration : undefined; + const localPropDeclaration = getParentOfSymbol(prop) === type.symbol ? declaration : undefined; for (const info of indexInfos) { const localIndexDeclaration = info.declaration && getParentOfSymbol(getSymbolOfNode(info.declaration)) === type.symbol ? info.declaration : undefined; // We check only when (a) the property is declared in the containing type, or (b) the applicable index signature is declared @@ -39427,8 +39732,12 @@ namespace ts { const errorNode = localPropDeclaration || localIndexDeclaration || (interfaceDeclaration && !some(getBaseTypes(type as InterfaceType), base => !!getPropertyOfObjectType(base, prop.escapedName) && !!getIndexTypeOfType(base, info.keyType)) ? interfaceDeclaration : undefined); if (errorNode && !isTypeAssignableTo(propType, info.type)) { - error(errorNode, Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3, + const diagnostic = createError(errorNode, Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3, symbolToString(prop), typeToString(propType), typeToString(info.keyType), typeToString(info.type)); + if (propDeclaration && errorNode !== propDeclaration) { + addRelatedInfo(diagnostic, createDiagnosticForNode(propDeclaration, Diagnostics._0_is_declared_here, symbolToString(prop))); + } + diagnostics.add(diagnostic); } } } @@ -41265,7 +41574,9 @@ namespace ts { error(exportedName, Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, idText(exportedName)); } else { - markExportAsReferenced(node); + if (!node.isTypeOnly && !node.parent.parent.isTypeOnly) { + markExportAsReferenced(node); + } const target = symbol && (symbol.flags & SymbolFlags.Alias ? resolveAlias(symbol) : symbol); if (!target || target === unknownSymbol || target.flags & SymbolFlags.Value) { checkExpressionCached(node.propertyName || node.name); @@ -42264,6 +42575,12 @@ namespace ts { return resolveJSDocMemberName(name, /*ignoreErrors*/ false, getSymbolOfNode(container)); } } + if (result && isJSDoc) { + const container = getJSDocHost(name); + if (container && isEnumMember(container) && container === result.valueDeclaration) { + return resolveEntityName(name, meaning, /*ignoreErrors*/ true, /* dontResolveAlias */ true, getSourceFileOfNode(container)) || result; + } + } return result; } else if (isPrivateIdentifier(name)) { @@ -44933,9 +45250,6 @@ namespace ts { else { return grammarErrorOnNode(initializer, Diagnostics.Initializers_are_not_allowed_in_ambient_contexts); } - if (!isConstOrReadonly || isInvalidInitializer) { - return grammarErrorOnNode(initializer, Diagnostics.Initializers_are_not_allowed_in_ambient_contexts); - } } } diff --git a/src/compiler/core.ts b/src/compiler/core.ts index 9ae196feefa..934f5ace849 100644 --- a/src/compiler/core.ts +++ b/src/compiler/core.ts @@ -778,19 +778,24 @@ namespace ts { return [] as any as SortedArray; // TODO: GH#19873 } - export function insertSorted(array: SortedArray, insert: T, compare: Comparer, allowDuplicates?: boolean): void { + export function insertSorted(array: SortedArray, insert: T, compare: Comparer, allowDuplicates?: boolean): boolean { if (array.length === 0) { array.push(insert); - return; + return true; } const insertIndex = binarySearch(array, insert, identity, compare); if (insertIndex < 0) { array.splice(~insertIndex, 0, insert); + return true; } - else if (allowDuplicates) { + + if (allowDuplicates) { array.splice(insertIndex, 0, insert); + return true; } + + return false; } export function sortAndDeduplicate(array: readonly string[]): SortedReadonlyArray; @@ -1113,6 +1118,13 @@ namespace ts { : undefined; } + /** + * Returns the only element of an array if it contains only one element; throws otherwise. + */ + export function single(array: readonly T[]): T { + return Debug.checkDefined(singleOrUndefined(array)); + } + /** * Returns the only element of an array if it contains only one element; otherwise, returns the * array. @@ -1724,6 +1736,11 @@ namespace ts { /** Does nothing. */ export function noop(_?: unknown): void { } + export const noopPush: Push = { + push: noop, + length: 0 + }; + /** Do nothing and return false */ export function returnFalse(): false { return false; @@ -2105,7 +2122,7 @@ namespace ts { * and 1 insertion/deletion at 3 characters) */ export function getSpellingSuggestion(name: string, candidates: T[], getName: (candidate: T) => string | undefined): T | undefined { - const maximumLengthDifference = Math.min(2, Math.floor(name.length * 0.34)); + const maximumLengthDifference = Math.max(2, Math.floor(name.length * 0.34)); let bestDistance = Math.floor(name.length * 0.4) + 1; // If the best result is worse than this, don't bother. let bestCandidate: T | undefined; for (const candidate of candidates) { diff --git a/src/compiler/corePublic.ts b/src/compiler/corePublic.ts index aabd9ac8333..45f30782402 100644 --- a/src/compiler/corePublic.ts +++ b/src/compiler/corePublic.ts @@ -1,7 +1,7 @@ namespace ts { // WARNING: The script `configurePrerelease.ts` uses a regexp to parse out these values. // If changing the text in this section, be sure to test `configurePrerelease` too. - export const versionMajorMinor = "4.8"; + export const versionMajorMinor = "4.9"; // The following is baselined as a literal template type without intervention /** The version of the TypeScript compiler release */ // eslint-disable-next-line @typescript-eslint/no-inferrable-types @@ -124,45 +124,34 @@ namespace ts { /** * Returns the native Map implementation if it is available and compatible (i.e. supports iteration). */ - export function tryGetNativeMap(): MapConstructor | undefined { + export function tryGetNativeMap(): MapConstructor { // Internet Explorer's Map doesn't support iteration, so don't use it. const gMap = globals?.Map; // eslint-disable-next-line no-in-operator - return typeof gMap !== "undefined" && "entries" in gMap.prototype && new gMap([[0, 0]]).size === 1 ? gMap : undefined; + const constructor = typeof gMap !== "undefined" && "entries" in gMap.prototype && new gMap([[0, 0]]).size === 1 ? gMap : undefined; + if (!constructor) { + throw new Error("No compatible Map implementation found."); + } + return constructor; } /** * Returns the native Set implementation if it is available and compatible (i.e. supports iteration). */ - export function tryGetNativeSet(): SetConstructor | undefined { + export function tryGetNativeSet(): SetConstructor { // Internet Explorer's Set doesn't support iteration, so don't use it. const gSet = globals?.Set; // eslint-disable-next-line no-in-operator - return typeof gSet !== "undefined" && "entries" in gSet.prototype && new gSet([0]).size === 1 ? gSet : undefined; + const constructor = typeof gSet !== "undefined" && "entries" in gSet.prototype && new gSet([0]).size === 1 ? gSet : undefined; + if (!constructor) { + throw new Error("No compatible Set implementation found."); + } + return constructor; } } /* @internal */ - export const Map = getCollectionImplementation("Map", "tryGetNativeMap", "createMapShim"); + export const Map = NativeCollections.tryGetNativeMap(); /* @internal */ - export const Set = getCollectionImplementation("Set", "tryGetNativeSet", "createSetShim"); - - /* @internal */ - type GetIteratorCallback = | ReadonlyESMap | undefined>(iterable: I) => Iterator< - I extends ReadonlyESMap ? [K, V] : - I extends ReadonlySet ? T : - I extends readonly (infer T)[] ? T : - I extends undefined ? undefined : - never>; - - /* @internal */ - function getCollectionImplementation< - K1 extends MatchingKeys any>, - K2 extends MatchingKeys ReturnType<(typeof NativeCollections)[K1]>> - >(name: string, nativeFactory: K1, shimFactory: K2): NonNullable> { - // NOTE: ts.ShimCollections will be defined for typescriptServices.js but not for tsc.js, so we must test for it. - const constructor = NativeCollections[nativeFactory]() ?? ShimCollections?.[shimFactory](getIterator); - if (constructor) return constructor as NonNullable>; - throw new Error(`TypeScript requires an environment that provides a compatible native ${name} implementation.`); - } + export const Set = NativeCollections.tryGetNativeSet(); } diff --git a/src/compiler/debug.ts b/src/compiler/debug.ts index d4644cd769b..4f9d8dd5543 100644 --- a/src/compiler/debug.ts +++ b/src/compiler/debug.ts @@ -394,6 +394,22 @@ namespace ts { return formatEnum(flags, (ts as any).FlowFlags, /*isFlags*/ true); } + export function formatRelationComparisonResult(result: RelationComparisonResult | undefined): string { + return formatEnum(result, (ts as any).RelationComparisonResult, /*isFlags*/ true); + } + + export function formatCheckMode(mode: CheckMode | undefined): string { + return formatEnum(mode, (ts as any).CheckMode, /*isFlags*/ true); + } + + export function formatSignatureCheckMode(mode: SignatureCheckMode | undefined): string { + return formatEnum(mode, (ts as any).SignatureCheckMode, /*isFlags*/ true); + } + + export function formatTypeFacts(facts: TypeFacts | undefined): string { + return formatEnum(facts, (ts as any).TypeFacts, /*isFlags*/ true); + } + let isDebugInfoEnabled = false; interface ExtendedDebugModule { @@ -748,5 +764,53 @@ namespace ts { const deprecation = createDeprecation(options?.name ?? getFunctionName(func), options); return wrapFunction(deprecation, func); } + + export function formatVariance(varianceFlags: VarianceFlags) { + const variance = varianceFlags & VarianceFlags.VarianceMask; + let result = + variance === VarianceFlags.Invariant ? "in out" : + variance === VarianceFlags.Bivariant ? "[bivariant]" : + variance === VarianceFlags.Contravariant ? "in" : + variance === VarianceFlags.Covariant ? "out" : + variance === VarianceFlags.Independent ? "[independent]" : ""; + if (varianceFlags & VarianceFlags.Unmeasurable) { + result += " (unmeasurable)"; + } + else if (varianceFlags & VarianceFlags.Unreliable) { + result += " (unreliable)"; + } + return result; + } + + export type DebugType = Type & { __debugTypeToString(): string }; // eslint-disable-line @typescript-eslint/naming-convention + export class DebugTypeMapper { + declare kind: TypeMapKind; + __debugToString(): string { // eslint-disable-line @typescript-eslint/naming-convention + type(this); + switch (this.kind) { + case TypeMapKind.Function: return this.debugInfo?.() || "(function mapper)"; + case TypeMapKind.Simple: return `${(this.source as DebugType).__debugTypeToString()} -> ${(this.target as DebugType).__debugTypeToString()}`; + case TypeMapKind.Array: return zipWith( + this.sources as readonly DebugType[], + this.targets as readonly DebugType[] || map(this.sources, () => "any"), + (s, t) => `${s.__debugTypeToString()} -> ${typeof t === "string" ? t : t.__debugTypeToString()}`).join(", "); + case TypeMapKind.Deferred: return zipWith( + this.sources, + this.targets, + (s, t) => `${(s as DebugType).__debugTypeToString()} -> ${(t() as DebugType).__debugTypeToString()}`).join(", "); + case TypeMapKind.Merged: + case TypeMapKind.Composite: return `m1: ${(this.mapper1 as unknown as DebugTypeMapper).__debugToString().split("\n").join("\n ")} +m2: ${(this.mapper2 as unknown as DebugTypeMapper).__debugToString().split("\n").join("\n ")}`; + default: return assertNever(this); + } + } + } + + export function attachDebugPrototypeIfDebug(mapper: TypeMapper): TypeMapper { + if (isDebugging) { + return Object.setPrototypeOf(mapper, DebugTypeMapper.prototype); + } + return mapper; + } } } diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 0c914e1625d..54b131fa32a 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -1464,12 +1464,28 @@ "category": "Message", "code": 1457 }, + "File is ECMAScript module because '{0}' has field \"type\" with value \"module\"": { + "category": "Message", + "code": 1458 + }, + "File is CommonJS module because '{0}' has field \"type\" whose value is not \"module\"": { + "category": "Message", + "code": 1459 + }, + "File is CommonJS module because '{0}' does not have field \"type\"": { + "category": "Message", + "code": 1460 + }, + "File is CommonJS module because 'package.json' was not found": { + "category": "Message", + "code": 1461 + }, "The 'import.meta' meta-property is not allowed in files which will build into CommonJS output.": { "category": "Error", "code": 1470 }, - "Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.": { + "Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead.": { "category": "Error", "code": 1471 }, @@ -1497,6 +1513,30 @@ "category": "Error", "code": 1477 }, + "Identifier or string literal expected.": { + "category": "Error", + "code": 1478 + }, + "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"{0}\")' call instead.": { + "category": "Error", + "code": 1479 + }, + "To convert this file to an ECMAScript module, change its file extension to '{0}' or create a local package.json file with `{ \"type\": \"module\" }`.": { + "category": "Message", + "code": 1480 + }, + "To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field `\"type\": \"module\"` to '{1}'.": { + "category": "Message", + "code": 1481 + }, + "To convert this file to an ECMAScript module, add the field `\"type\": \"module\"` to '{0}'.": { + "category": "Message", + "code": 1482 + }, + "To convert this file to an ECMAScript module, create a local package.json file with `{ \"type\": \"module\" }`.": { + "category": "Message", + "code": 1483 + }, "The types of '{0}' are incompatible between these types.": { "category": "Error", @@ -2356,6 +2396,10 @@ "category": "Error", "code": 2513 }, + "A tuple type cannot be indexed with a negative value.": { + "category": "Error", + "code": 2514 + }, "Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'.": { "category": "Error", "code": 2515 @@ -2633,7 +2677,7 @@ "category": "Error", "code": 2593 }, - "This module is declared with using 'export =', and can only be used with a default import when using the '{0}' flag.": { + "This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag.": { "category": "Error", "code": 2594 }, @@ -3507,6 +3551,10 @@ "category": "Error", "code": 2843 }, + "Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor.": { + "category": "Error", + "code": 2844 + }, "Import declaration '{0}' is using private name '{1}'.": { "category": "Error", @@ -5350,6 +5398,10 @@ "category": "Message", "code": 6400 }, + "Project '{0}' is out of date because there was error reading file '{1}'": { + "category": "Message", + "code": 6401 + }, "The expected type comes from property '{0}' which is declared here on type '{1}'": { "category": "Message", diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 98b7f3cde54..d3008431abe 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -379,7 +379,7 @@ namespace ts { } // Make sure not to write js file and source map file if any of them cannot be written - if ((jsFilePath && host.isEmitBlocked(jsFilePath)) || compilerOptions.noEmit) { + if (host.isEmitBlocked(jsFilePath) || compilerOptions.noEmit) { emitSkipped = true; return; } @@ -652,8 +652,8 @@ namespace ts { } /*@internal*/ - export function getBuildInfo(buildInfoText: string) { - return JSON.parse(buildInfoText) as BuildInfo; + export function getBuildInfo(buildInfoFile: string, buildInfoText: string) { + return readJsonOrUndefined(buildInfoFile, buildInfoText) as BuildInfo | undefined; } /*@internal*/ @@ -712,7 +712,6 @@ namespace ts { useCaseSensitiveFileNames(): boolean; getNewLine(): string; createHash?(data: string): string; - now?(): Date; getBuildInfo?(fileName: string, configFilePath: string | undefined): BuildInfo | undefined; } @@ -752,18 +751,17 @@ namespace ts { ): EmitUsingBuildInfoResult { const createHash = maybeBind(host, host.createHash); const { buildInfoPath, jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath } = getOutputPathsForBundle(config.options, /*forceDtsPaths*/ false); - let buildInfo: BuildInfo; + let buildInfo: BuildInfo | undefined; if (host.getBuildInfo) { // If host directly provides buildinfo we can get it directly. This allows host to cache the buildinfo - const hostBuildInfo = host.getBuildInfo(buildInfoPath!, config.options.configFilePath); - if (!hostBuildInfo) return buildInfoPath!; - buildInfo = hostBuildInfo; + buildInfo = host.getBuildInfo(buildInfoPath!, config.options.configFilePath); } else { const buildInfoText = host.readFile(buildInfoPath!); if (!buildInfoText) return buildInfoPath!; - buildInfo = getBuildInfo(buildInfoText); + buildInfo = getBuildInfo(buildInfoPath!, buildInfoText); } + if (!buildInfo) return buildInfoPath!; if (!buildInfo.bundle || !buildInfo.bundle.js || (declarationFilePath && !buildInfo.bundle.dts)) return buildInfoPath!; const jsFileText = host.readFile(Debug.checkDefined(jsFilePath)); @@ -806,7 +804,7 @@ namespace ts { const emitHost: EmitHost = { getPrependNodes: memoize(() => [...prependNodes, ownPrependInput]), getCanonicalFileName: host.getCanonicalFileName, - getCommonSourceDirectory: () => getNormalizedAbsolutePath(buildInfo.bundle!.commonSourceDirectory, buildInfoDirectory), + getCommonSourceDirectory: () => getNormalizedAbsolutePath(buildInfo!.bundle!.commonSourceDirectory, buildInfoDirectory), getCompilerOptions: () => config.options, getCurrentDirectory: () => host.getCurrentDirectory(), getNewLine: () => host.getNewLine(), @@ -828,14 +826,13 @@ namespace ts { break; case buildInfoPath: const newBuildInfo = data!.buildInfo!; - newBuildInfo.program = buildInfo.program; + newBuildInfo.program = buildInfo!.program; if (newBuildInfo.program && changedDtsText !== undefined && config.options.composite) { // Update the output signature (newBuildInfo.program as ProgramBundleEmitBuildInfo).outSignature = computeSignature(changedDtsText, createHash, changedDtsData); - newBuildInfo.program.dtsChangeTime = getCurrentTime(host).getTime(); } // Update sourceFileInfo - const { js, dts, sourceFiles } = buildInfo.bundle!; + const { js, dts, sourceFiles } = buildInfo!.bundle!; newBuildInfo.bundle!.js!.sources = js!.sources; if (dts) { newBuildInfo.bundle!.dts!.sources = dts.sources; diff --git a/src/compiler/factory/nodeFactory.ts b/src/compiler/factory/nodeFactory.ts index 76a8c405d72..d33559a8a1e 100644 --- a/src/compiler/factory/nodeFactory.ts +++ b/src/compiler/factory/nodeFactory.ts @@ -1188,7 +1188,7 @@ namespace ts { // @api function createDecorator(expression: Expression) { const node = createBaseNode(SyntaxKind.Decorator); - node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression); + node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression, /*optionalChain*/ false); node.transformFlags |= propagateChildFlags(node.expression) | TransformFlags.ContainsTypeScript | @@ -2325,13 +2325,13 @@ namespace ts { // @api function createPropertyAccessExpression(expression: Expression, name: string | Identifier | PrivateIdentifier) { const node = createBaseExpression(SyntaxKind.PropertyAccessExpression); - node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression); + node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression, /*optionalChain*/ false); node.name = asName(name); node.transformFlags = propagateChildFlags(node.expression) | (isIdentifier(node.name) ? propagateIdentifierNameFlags(node.name) : - propagateChildFlags(node.name)); + propagateChildFlags(node.name) | TransformFlags.ContainsPrivateIdentifierInExpression); if (isSuperKeyword(expression)) { // super method calls require a lexical 'this' // super method calls require 'super' hoisting in ES2017 and ES2018 async functions and async generators @@ -2357,7 +2357,7 @@ namespace ts { function createPropertyAccessChain(expression: Expression, questionDotToken: QuestionDotToken | undefined, name: string | Identifier | PrivateIdentifier) { const node = createBaseExpression(SyntaxKind.PropertyAccessExpression); node.flags |= NodeFlags.OptionalChain; - node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression); + node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression, /*optionalChain*/ true); node.questionDotToken = questionDotToken; node.name = asName(name); node.transformFlags |= @@ -2366,7 +2366,7 @@ namespace ts { propagateChildFlags(node.questionDotToken) | (isIdentifier(node.name) ? propagateIdentifierNameFlags(node.name) : - propagateChildFlags(node.name)); + propagateChildFlags(node.name) | TransformFlags.ContainsPrivateIdentifierInExpression); return node; } @@ -2385,7 +2385,7 @@ namespace ts { // @api function createElementAccessExpression(expression: Expression, index: number | Expression) { const node = createBaseExpression(SyntaxKind.ElementAccessExpression); - node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression); + node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression, /*optionalChain*/ false); node.argumentExpression = asExpression(index); node.transformFlags |= propagateChildFlags(node.expression) | @@ -2415,7 +2415,7 @@ namespace ts { function createElementAccessChain(expression: Expression, questionDotToken: QuestionDotToken | undefined, index: number | Expression) { const node = createBaseExpression(SyntaxKind.ElementAccessExpression); node.flags |= NodeFlags.OptionalChain; - node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression); + node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression, /*optionalChain*/ true); node.questionDotToken = questionDotToken; node.argumentExpression = asExpression(index); node.transformFlags |= @@ -2441,7 +2441,7 @@ namespace ts { // @api function createCallExpression(expression: Expression, typeArguments: readonly TypeNode[] | undefined, argumentsArray: readonly Expression[] | undefined) { const node = createBaseExpression(SyntaxKind.CallExpression); - node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression); + node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression, /*optionalChain*/ false); node.typeArguments = asNodeArray(typeArguments); node.arguments = parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(createNodeArray(argumentsArray)); node.transformFlags |= @@ -2476,7 +2476,7 @@ namespace ts { function createCallChain(expression: Expression, questionDotToken: QuestionDotToken | undefined, typeArguments: readonly TypeNode[] | undefined, argumentsArray: readonly Expression[] | undefined) { const node = createBaseExpression(SyntaxKind.CallExpression); node.flags |= NodeFlags.OptionalChain; - node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression); + node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression, /*optionalChain*/ true); node.questionDotToken = questionDotToken; node.typeArguments = asNodeArray(typeArguments); node.arguments = parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(createNodeArray(argumentsArray)); @@ -2535,7 +2535,7 @@ namespace ts { // @api function createTaggedTemplateExpression(tag: Expression, typeArguments: readonly TypeNode[] | undefined, template: TemplateLiteral) { const node = createBaseExpression(SyntaxKind.TaggedTemplateExpression); - node.tag = parenthesizerRules().parenthesizeLeftSideOfAccess(tag); + node.tag = parenthesizerRules().parenthesizeLeftSideOfAccess(tag, /*optionalChain*/ false); node.typeArguments = asNodeArray(typeArguments); node.template = template; node.transformFlags |= @@ -2851,6 +2851,9 @@ namespace ts { else if (isLogicalOrCoalescingAssignmentOperator(operatorKind)) { node.transformFlags |= TransformFlags.ContainsES2021; } + if (operatorKind === SyntaxKind.InKeyword && isPrivateIdentifier(node.left)) { + node.transformFlags |= TransformFlags.ContainsPrivateIdentifierInExpression; + } return node; } @@ -3082,7 +3085,7 @@ namespace ts { // @api function createExpressionWithTypeArguments(expression: Expression, typeArguments: readonly TypeNode[] | undefined) { const node = createBaseNode(SyntaxKind.ExpressionWithTypeArguments); - node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression); + node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression, /*optionalChain*/ false); node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(typeArguments); node.transformFlags |= propagateChildFlags(node.expression) | @@ -3122,7 +3125,7 @@ namespace ts { // @api function createNonNullExpression(expression: Expression) { const node = createBaseExpression(SyntaxKind.NonNullExpression); - node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression); + node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression, /*optionalChain*/ false); node.transformFlags |= propagateChildFlags(node.expression) | TransformFlags.ContainsTypeScript; @@ -3143,7 +3146,7 @@ namespace ts { function createNonNullChain(expression: Expression) { const node = createBaseExpression(SyntaxKind.NonNullExpression); node.flags |= NodeFlags.OptionalChain; - node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression); + node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression, /*optionalChain*/ true); node.transformFlags |= propagateChildFlags(node.expression) | TransformFlags.ContainsTypeScript; @@ -5821,7 +5824,7 @@ namespace ts { } else if (getEmitFlags(callee) & EmitFlags.HelperName) { thisArg = createVoidZero(); - target = parenthesizerRules().parenthesizeLeftSideOfAccess(callee); + target = parenthesizerRules().parenthesizeLeftSideOfAccess(callee, /*optionalChain*/ false); } else if (isPropertyAccessExpression(callee)) { if (shouldBeCapturedInTempVariable(callee.expression, cacheIdentifiers)) { @@ -5868,7 +5871,7 @@ namespace ts { else { // for `a()` target is `a` and thisArg is `void 0` thisArg = createVoidZero(); - target = parenthesizerRules().parenthesizeLeftSideOfAccess(expression); + target = parenthesizerRules().parenthesizeLeftSideOfAccess(expression, /*optionalChain*/ false); } return { target, thisArg }; @@ -6731,7 +6734,7 @@ namespace ts { const getAndCacheBuildInfo = (getText: () => string | undefined) => { if (buildInfo === undefined) { const result = getText(); - buildInfo = result !== undefined ? getBuildInfo(result) : false; + buildInfo = result !== undefined ? getBuildInfo(node.buildInfoPath!, result) ?? false : false; } return buildInfo || undefined; }; diff --git a/src/compiler/factory/parenthesizerRules.ts b/src/compiler/factory/parenthesizerRules.ts index c824c13fd16..b09f1826efd 100644 --- a/src/compiler/factory/parenthesizerRules.ts +++ b/src/compiler/factory/parenthesizerRules.ts @@ -319,7 +319,7 @@ namespace ts { * Wraps an expression in parentheses if it is needed in order to use the expression for * property or element access. */ - function parenthesizeLeftSideOfAccess(expression: Expression): LeftHandSideExpression { + function parenthesizeLeftSideOfAccess(expression: Expression, optionalChain?: boolean): LeftHandSideExpression { // isLeftHandSideExpression is almost the correct criterion for when it is not necessary // to parenthesize the expression before a dot. The known exception is: // @@ -328,7 +328,8 @@ namespace ts { // const emittedExpression = skipPartiallyEmittedExpressions(expression); if (isLeftHandSideExpression(emittedExpression) - && (emittedExpression.kind !== SyntaxKind.NewExpression || (emittedExpression as NewExpression).arguments)) { + && (emittedExpression.kind !== SyntaxKind.NewExpression || (emittedExpression as NewExpression).arguments) + && (optionalChain || !isOptionalChain(emittedExpression))) { // TODO(rbuckton): Verify whether this assertion holds. return expression as LeftHandSideExpression; } diff --git a/src/compiler/moduleNameResolver.ts b/src/compiler/moduleNameResolver.ts index be1a09548fa..39efe7eb052 100644 --- a/src/compiler/moduleNameResolver.ts +++ b/src/compiler/moduleNameResolver.ts @@ -117,7 +117,7 @@ namespace ts { resultFromCache?: ResolvedModuleWithFailedLookupLocations; packageJsonInfoCache: PackageJsonInfoCache | undefined; features: NodeResolutionFeatures; - conditions: string[]; + conditions: readonly string[]; requestContainingDirectory: string | undefined; reportDiagnostic: DiagnosticReporter; } @@ -486,18 +486,7 @@ namespace ts { host: ModuleResolutionHost, cache: ModuleResolutionCache | undefined, ): PackageJsonInfo | undefined { - const moduleResolutionState: ModuleResolutionState = { - compilerOptions: options, - host, - traceEnabled: isTraceEnabled(options, host), - failedLookupLocations: [], - affectingLocations: [], - packageJsonInfoCache: cache?.getPackageJsonInfoCache(), - conditions: emptyArray, - features: NodeResolutionFeatures.None, - requestContainingDirectory: containingDirectory, - reportDiagnostic: noop - }; + const moduleResolutionState = getTemporaryModuleResolutionState(cache?.getPackageJsonInfoCache(), host, options); return forEachAncestorDirectory(containingDirectory, ancestorDirectory => { if (getBaseFileName(ancestorDirectory) !== "node_modules") { @@ -554,6 +543,7 @@ namespace ts { } export interface TypeReferenceDirectiveResolutionCache extends PerDirectoryResolutionCache, PackageJsonInfoCache { + /*@internal*/ clearAllExceptPackageJsonInfoCache(): void; } export interface ModeAwareCache { @@ -581,6 +571,7 @@ namespace ts { export interface ModuleResolutionCache extends PerDirectoryResolutionCache, NonRelativeModuleNameResolutionCache, PackageJsonInfoCache { getPackageJsonInfoCache(): PackageJsonInfoCache; + /*@internal*/ clearAllExceptPackageJsonInfoCache(): void; } /** @@ -595,6 +586,7 @@ namespace ts { /*@internal*/ getPackageJsonInfo(packageJsonPath: string): PackageJsonInfo | boolean | undefined; /*@internal*/ setPackageJsonInfo(packageJsonPath: string, info: PackageJsonInfo | boolean): void; /*@internal*/ entries(): [Path, PackageJsonInfo | boolean][]; + /*@internal*/ getInternalMap(): ESMap | undefined; clear(): void; } @@ -660,7 +652,7 @@ namespace ts { function createPackageJsonInfoCache(currentDirectory: string, getCanonicalFileName: (s: string) => string): PackageJsonInfoCache { let cache: ESMap | undefined; - return { getPackageJsonInfo, setPackageJsonInfo, clear, entries }; + return { getPackageJsonInfo, setPackageJsonInfo, clear, entries, getInternalMap }; function getPackageJsonInfo(packageJsonPath: string) { return cache?.get(toPath(packageJsonPath, currentDirectory, getCanonicalFileName)); } @@ -674,6 +666,9 @@ namespace ts { const iter = cache?.entries(); return iter ? arrayFrom(iter) : []; } + function getInternalMap() { + return cache; + } } function getOrCreateCache(cacheWithRedirects: CacheWithRedirects, redirectedReference: ResolvedProjectReference | undefined, key: string, create: () => T): T { @@ -808,25 +803,30 @@ namespace ts { directoryToModuleNameMap?: CacheWithRedirects>, moduleNameToDirectoryMap?: CacheWithRedirects, ): ModuleResolutionCache { - const preDirectoryResolutionCache = createPerDirectoryResolutionCache(currentDirectory, getCanonicalFileName, directoryToModuleNameMap ||= createCacheWithRedirects(options)); + const perDirectoryResolutionCache = createPerDirectoryResolutionCache(currentDirectory, getCanonicalFileName, directoryToModuleNameMap ||= createCacheWithRedirects(options)); moduleNameToDirectoryMap ||= createCacheWithRedirects(options); const packageJsonInfoCache = createPackageJsonInfoCache(currentDirectory, getCanonicalFileName); return { ...packageJsonInfoCache, - ...preDirectoryResolutionCache, + ...perDirectoryResolutionCache, getOrCreateCacheForModuleName, clear, update, getPackageJsonInfoCache: () => packageJsonInfoCache, + clearAllExceptPackageJsonInfoCache, }; function clear() { - preDirectoryResolutionCache.clear(); - moduleNameToDirectoryMap!.clear(); + clearAllExceptPackageJsonInfoCache(); packageJsonInfoCache.clear(); } + function clearAllExceptPackageJsonInfoCache() { + perDirectoryResolutionCache.clear(); + moduleNameToDirectoryMap!.clear(); + } + function update(options: CompilerOptions) { updateRedirectsMap(options, directoryToModuleNameMap!, moduleNameToDirectoryMap); } @@ -930,19 +930,24 @@ namespace ts { packageJsonInfoCache?: PackageJsonInfoCache | undefined, directoryToModuleNameMap?: CacheWithRedirects>, ): TypeReferenceDirectiveResolutionCache { - const preDirectoryResolutionCache = createPerDirectoryResolutionCache(currentDirectory, getCanonicalFileName, directoryToModuleNameMap ||= createCacheWithRedirects(options)); + const perDirectoryResolutionCache = createPerDirectoryResolutionCache(currentDirectory, getCanonicalFileName, directoryToModuleNameMap ||= createCacheWithRedirects(options)); packageJsonInfoCache ||= createPackageJsonInfoCache(currentDirectory, getCanonicalFileName); return { ...packageJsonInfoCache, - ...preDirectoryResolutionCache, + ...perDirectoryResolutionCache, clear, + clearAllExceptPackageJsonInfoCache, }; function clear() { - preDirectoryResolutionCache.clear(); + clearAllExceptPackageJsonInfoCache(); packageJsonInfoCache!.clear(); } + + function clearAllExceptPackageJsonInfoCache() { + perDirectoryResolutionCache.clear(); + } } export function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache, mode?: ModuleKind.CommonJS | ModuleKind.ESNext): ResolvedModuleWithFailedLookupLocations | undefined { @@ -1692,18 +1697,9 @@ namespace ts { let entrypoints: string[] | undefined; const extensions = resolveJs ? Extensions.JavaScript : Extensions.TypeScript; const features = getDefaultNodeResolutionFeatures(options); - const requireState: ModuleResolutionState = { - compilerOptions: options, - host, - traceEnabled: isTraceEnabled(options, host), - failedLookupLocations: [], - affectingLocations: [], - packageJsonInfoCache: cache?.getPackageJsonInfoCache(), - conditions: ["node", "require", "types"], - features, - requestContainingDirectory: packageJsonInfo.packageDirectory, - reportDiagnostic: noop - }; + const requireState = getTemporaryModuleResolutionState(cache?.getPackageJsonInfoCache(), host, options); + requireState.conditions = ["node", "require", "types"]; + requireState.requestContainingDirectory = packageJsonInfo.packageDirectory; const requireResolution = loadNodeModuleFromDirectoryWorker( extensions, packageJsonInfo.packageDirectory, @@ -1790,7 +1786,23 @@ namespace ts { } /*@internal*/ - interface PackageJsonInfo { + export function getTemporaryModuleResolutionState(packageJsonInfoCache: PackageJsonInfoCache | undefined, host: ModuleResolutionHost, options: CompilerOptions): ModuleResolutionState { + return { + host, + compilerOptions: options, + traceEnabled: isTraceEnabled(options, host), + failedLookupLocations: noopPush, + affectingLocations: noopPush, + packageJsonInfoCache, + features: NodeResolutionFeatures.None, + conditions: emptyArray, + requestContainingDirectory: undefined, + reportDiagnostic: noop + }; + } + + /*@internal*/ + export interface PackageJsonInfo { packageDirectory: string; packageJsonContent: PackageJsonPathFields; versionPaths: VersionPaths | undefined; @@ -1802,31 +1814,7 @@ namespace ts { * A function for locating the package.json scope for a given path */ /*@internal*/ - export function getPackageScopeForPath(fileName: Path, packageJsonInfoCache: PackageJsonInfoCache | undefined, host: ModuleResolutionHost, options: CompilerOptions): PackageJsonInfo | undefined { - const state: { - host: ModuleResolutionHost; - compilerOptions: CompilerOptions; - traceEnabled: boolean; - failedLookupLocations: Push; - affectingLocations: Push; - resultFromCache?: ResolvedModuleWithFailedLookupLocations; - packageJsonInfoCache: PackageJsonInfoCache | undefined; - features: number; - conditions: never[]; - requestContainingDirectory: string | undefined; - reportDiagnostic: DiagnosticReporter - } = { - host, - compilerOptions: options, - traceEnabled: isTraceEnabled(options, host), - failedLookupLocations: [], - affectingLocations: [], - packageJsonInfoCache, - features: 0, - conditions: [], - requestContainingDirectory: undefined, - reportDiagnostic: noop - }; + export function getPackageScopeForPath(fileName: Path, state: ModuleResolutionState): PackageJsonInfo | undefined { const parts = getPathComponents(fileName); parts.pop(); while (parts.length > 0) { @@ -2004,7 +1992,7 @@ namespace ts { function loadModuleFromSelfNameReference(extensions: Extensions, moduleName: string, directory: string, state: ModuleResolutionState, cache: ModuleResolutionCache | undefined, redirectedReference: ResolvedProjectReference | undefined): SearchResult { const useCaseSensitiveFileNames = typeof state.host.useCaseSensitiveFileNames === "function" ? state.host.useCaseSensitiveFileNames() : state.host.useCaseSensitiveFileNames; const directoryPath = toPath(combinePaths(directory, "dummy"), state.host.getCurrentDirectory?.(), createGetCanonicalFileName(useCaseSensitiveFileNames === undefined ? true : useCaseSensitiveFileNames)); - const scope = getPackageScopeForPath(directoryPath, state.packageJsonInfoCache, state.host, state.compilerOptions); + const scope = getPackageScopeForPath(directoryPath, state); if (!scope || !scope.packageJsonContent.exports) { return undefined; } @@ -2066,7 +2054,7 @@ namespace ts { } const useCaseSensitiveFileNames = typeof state.host.useCaseSensitiveFileNames === "function" ? state.host.useCaseSensitiveFileNames() : state.host.useCaseSensitiveFileNames; const directoryPath = toPath(combinePaths(directory, "dummy"), state.host.getCurrentDirectory?.(), createGetCanonicalFileName(useCaseSensitiveFileNames === undefined ? true : useCaseSensitiveFileNames)); - const scope = getPackageScopeForPath(directoryPath, state.packageJsonInfoCache, state.host, state.compilerOptions); + const scope = getPackageScopeForPath(directoryPath, state); if (!scope) { if (state.traceEnabled) { trace(state.host, Diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve, directoryPath); @@ -2092,10 +2080,11 @@ namespace ts { } /** + * @internal * From https://github.com/nodejs/node/blob/8f39f51cbbd3b2de14b9ee896e26421cc5b20121/lib/internal/modules/esm/resolve.js#L722 - * "longest" has some nuance as to what "longest" means in the presence of pattern trailers */ - function comparePatternKeys(a: string, b: string) { + export function comparePatternKeys(a: string, b: string) { const aPatternIndex = a.indexOf("*"); const bPatternIndex = b.indexOf("*"); const baseLenA = aPatternIndex === -1 ? a.length : aPatternIndex + 1; @@ -2361,7 +2350,7 @@ namespace ts { } /* @internal */ - export function isApplicableVersionedTypesKey(conditions: string[], key: string) { + export function isApplicableVersionedTypesKey(conditions: readonly string[], key: string) { if (conditions.indexOf("types") === -1) return false; // only apply versioned types conditions if the types condition is applied if (!startsWith(key, "types@")) return false; const range = VersionRange.tryParse(key.substring("types@".length)); diff --git a/src/compiler/moduleSpecifiers.ts b/src/compiler/moduleSpecifiers.ts index 44d20c9ff59..e38dd465985 100644 --- a/src/compiler/moduleSpecifiers.ts +++ b/src/compiler/moduleSpecifiers.ts @@ -121,7 +121,7 @@ namespace ts.moduleSpecifiers { const info = getInfo(importingSourceFileName, host); const modulePaths = getAllModulePaths(importingSourceFileName, toFileName, host, userPreferences, options); return firstDefined(modulePaths, modulePath => tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, userPreferences, /*packageNameOnly*/ undefined, options.overrideImportMode)) || - getLocalModuleSpecifier(toFileName, info, compilerOptions, host, preferences); + getLocalModuleSpecifier(toFileName, info, compilerOptions, host, options.overrideImportMode || importingSourceFile.impliedNodeFormat, preferences); } export function tryGetModuleSpecifiersFromCache( @@ -257,7 +257,7 @@ namespace ts.moduleSpecifiers { } if (!specifier && !modulePath.isRedirect) { - const local = getLocalModuleSpecifier(modulePath.path, info, compilerOptions, host, preferences); + const local = getLocalModuleSpecifier(modulePath.path, info, compilerOptions, host, options.overrideImportMode || importingSourceFile.impliedNodeFormat, preferences); if (pathIsBareSpecifier(local)) { pathsSpecifiers = append(pathsSpecifiers, local); } @@ -293,7 +293,7 @@ namespace ts.moduleSpecifiers { return { getCanonicalFileName, importingSourceFileName, sourceDirectory }; } - function getLocalModuleSpecifier(moduleFileName: string, info: Info, compilerOptions: CompilerOptions, host: ModuleSpecifierResolutionHost, { ending, relativePreference }: Preferences): string { + function getLocalModuleSpecifier(moduleFileName: string, info: Info, compilerOptions: CompilerOptions, host: ModuleSpecifierResolutionHost, importMode: SourceFile["impliedNodeFormat"], { ending, relativePreference }: Preferences): string { const { baseUrl, paths, rootDirs } = compilerOptions; const { sourceDirectory, getCanonicalFileName } = info; const relativePath = rootDirs && tryGetModuleNameFromRootDirs(rootDirs, moduleFileName, sourceDirectory, getCanonicalFileName, ending, compilerOptions) || @@ -308,9 +308,8 @@ namespace ts.moduleSpecifiers { return relativePath; } - const importRelativeToBaseUrl = removeExtensionAndIndexPostFix(relativeToBaseUrl, ending, compilerOptions); - const fromPaths = paths && tryGetModuleNameFromPaths(removeFileExtension(relativeToBaseUrl), importRelativeToBaseUrl, paths); - const nonRelative = fromPaths === undefined && baseUrl !== undefined ? importRelativeToBaseUrl : fromPaths; + const fromPaths = paths && tryGetModuleNameFromPaths(relativeToBaseUrl, paths, getAllowedEndings(ending, compilerOptions, importMode), host, compilerOptions); + const nonRelative = fromPaths === undefined && baseUrl !== undefined ? removeExtensionAndIndexPostFix(relativeToBaseUrl, ending, compilerOptions) : fromPaths; if (!nonRelative) { return relativePath; } @@ -559,27 +558,100 @@ namespace ts.moduleSpecifiers { } } - function tryGetModuleNameFromPaths(relativeToBaseUrlWithIndex: string, relativeToBaseUrl: string, paths: MapLike): string | undefined { + function getAllowedEndings(preferredEnding: Ending, compilerOptions: CompilerOptions, importMode: SourceFile["impliedNodeFormat"]) { + if (getEmitModuleResolutionKind(compilerOptions) >= ModuleResolutionKind.Node16 && importMode === ModuleKind.ESNext) { + return [Ending.JsExtension]; + } + switch (preferredEnding) { + case Ending.JsExtension: return [Ending.JsExtension, Ending.Minimal, Ending.Index]; + case Ending.Index: return [Ending.Index, Ending.Minimal, Ending.JsExtension]; + case Ending.Minimal: return [Ending.Minimal, Ending.Index, Ending.JsExtension]; + default: Debug.assertNever(preferredEnding); + } + } + + function tryGetModuleNameFromPaths(relativeToBaseUrl: string, paths: MapLike, allowedEndings: Ending[], host: ModuleSpecifierResolutionHost, compilerOptions: CompilerOptions): string | undefined { for (const key in paths) { for (const patternText of paths[key]) { - const pattern = removeFileExtension(normalizePath(patternText)); + const pattern = normalizePath(patternText); const indexOfStar = pattern.indexOf("*"); + // In module resolution, if `pattern` itself has an extension, a file with that extension is looked up directly, + // meaning a '.ts' or '.d.ts' extension is allowed to resolve. This is distinct from the case where a '*' substitution + // causes a module specifier to have an extension, i.e. the extension comes from the module specifier in a JS/TS file + // and matches the '*'. For example: + // + // Module Specifier | Path Mapping (key: [pattern]) | Interpolation | Resolution Action + // ---------------------->------------------------------->--------------------->--------------------------------------------------------------- + // import "@app/foo" -> "@app/*": ["./src/app/*.ts"] -> "./src/app/foo.ts" -> tryFile("./src/app/foo.ts") || [continue resolution algorithm] + // import "@app/foo.ts" -> "@app/*": ["./src/app/*"] -> "./src/app/foo.ts" -> [continue resolution algorithm] + // + // (https://github.com/microsoft/TypeScript/blob/ad4ded80e1d58f0bf36ac16bea71bc10d9f09895/src/compiler/moduleNameResolver.ts#L2509-L2516) + // + // The interpolation produced by both scenarios is identical, but only in the former, where the extension is encoded in + // the path mapping rather than in the module specifier, will we prioritize a file lookup on the interpolation result. + // (In fact, currently, the latter scenario will necessarily fail since no resolution mode recognizes '.ts' as a valid + // extension for a module specifier.) + // + // Here, this means we need to be careful about whether we generate a match from the target filename (typically with a + // .ts extension) or the possible relative module specifiers representing that file: + // + // Filename | Relative Module Specifier Candidates | Path Mapping | Filename Result | Module Specifier Results + // --------------------<----------------------------------------------<------------------------------<-------------------||---------------------------- + // dist/haha.d.ts <- dist/haha, dist/haha.js <- "@app/*": ["./dist/*.d.ts"] <- @app/haha || (none) + // dist/haha.d.ts <- dist/haha, dist/haha.js <- "@app/*": ["./dist/*"] <- (none) || @app/haha, @app/haha.js + // dist/foo/index.d.ts <- dist/foo, dist/foo/index, dist/foo/index.js <- "@app/*": ["./dist/*.d.ts"] <- @app/foo/index || (none) + // dist/foo/index.d.ts <- dist/foo, dist/foo/index, dist/foo/index.js <- "@app/*": ["./dist/*"] <- (none) || @app/foo, @app/foo/index, @app/foo/index.js + // dist/wow.js.js <- dist/wow.js, dist/wow.js.js <- "@app/*": ["./dist/*.js"] <- @app/wow.js || @app/wow, @app/wow.js + // + // The "Filename Result" can be generated only if `pattern` has an extension. Care must be taken that the list of + // relative module specifiers to run the interpolation (a) is actually valid for the module resolution mode, (b) takes + // into account the existence of other files (e.g. 'dist/wow.js' cannot refer to 'dist/wow.js.js' if 'dist/wow.js' + // exists) and (c) that they are ordered by preference. The last row shows that the filename result and module + // specifier results are not mutually exclusive. Note that the filename result is a higher priority in module + // resolution, but as long criteria (b) above is met, I don't think its result needs to be the highest priority result + // in module specifier generation. I have included it last, as it's difficult to tell exactly where it should be + // sorted among the others for a particular value of `importModuleSpecifierEnding`. + const candidates: { ending: Ending | undefined, value: string }[] = allowedEndings.map(ending => ({ + ending, + value: removeExtensionAndIndexPostFix(relativeToBaseUrl, ending, compilerOptions) + })); + if (tryGetExtensionFromPath(pattern)) { + candidates.push({ ending: undefined, value: relativeToBaseUrl }); + } + if (indexOfStar !== -1) { - const prefix = pattern.substr(0, indexOfStar); - const suffix = pattern.substr(indexOfStar + 1); - if (relativeToBaseUrl.length >= prefix.length + suffix.length && - startsWith(relativeToBaseUrl, prefix) && - endsWith(relativeToBaseUrl, suffix) || - !suffix && relativeToBaseUrl === removeTrailingDirectorySeparator(prefix)) { - const matchedStar = relativeToBaseUrl.substr(prefix.length, relativeToBaseUrl.length - suffix.length - prefix.length); - return key.replace("*", matchedStar); + const prefix = pattern.substring(0, indexOfStar); + const suffix = pattern.substring(indexOfStar + 1); + for (const { ending, value } of candidates) { + if (value.length >= prefix.length + suffix.length && + startsWith(value, prefix) && + endsWith(value, suffix) && + validateEnding({ ending, value }) + ) { + const matchedStar = value.substring(prefix.length, value.length - suffix.length); + return key.replace("*", matchedStar); + } } } - else if (pattern === relativeToBaseUrl || pattern === relativeToBaseUrlWithIndex) { + else if ( + some(candidates, c => c.ending !== Ending.Minimal && pattern === c.value) || + some(candidates, c => c.ending === Ending.Minimal && pattern === c.value && validateEnding(c)) + ) { return key; } } } + + function validateEnding({ ending, value }: { ending: Ending | undefined, value: string }) { + // Optimization: `removeExtensionAndIndexPostFix` can query the file system (a good bit) if `ending` is `Minimal`, the basename + // is 'index', and a `host` is provided. To avoid that until it's unavoidable, we ran the function with no `host` above. Only + // here, after we've checked that the minimal ending is indeed a match (via the length and prefix/suffix checks / `some` calls), + // do we check that the host-validated result is consistent with the answer we got before. If it's not, it falls back to the + // `Ending.Index` result, which should already be in the list of candidates if `Minimal` was. (Note: the assumption here is + // that every module resolution mode that supports dropping extensions also supports dropping `/index`. Like literally + // everything else in this file, this logic needs to be updated if that's not true in some future module resolution mode.) + return ending !== Ending.Minimal || value === removeExtensionAndIndexPostFix(relativeToBaseUrl, ending, compilerOptions, host); + } } const enum MatchingMode { @@ -677,10 +749,10 @@ namespace ts.moduleSpecifiers { // Simplify the full file path to something that can be resolved by Node. + const preferences = getPreferences(host, userPreferences, options, importingSourceFile); let moduleSpecifier = path; let isPackageRootPath = false; if (!packageNameOnly) { - const preferences = getPreferences(host, userPreferences, options, importingSourceFile); let packageRootIndex = parts.packageRootIndex; let moduleFileName: string | undefined; while (true) { @@ -732,15 +804,13 @@ namespace ts.moduleSpecifiers { const packageRootPath = path.substring(0, packageRootIndex); const packageJsonPath = combinePaths(packageRootPath, "package.json"); let moduleFileToTry = path; + let maybeBlockedByTypesVersions = false; const cachedPackageJson = host.getPackageJsonInfoCache?.()?.getPackageJsonInfo(packageJsonPath); if (typeof cachedPackageJson === "object" || cachedPackageJson === undefined && host.fileExists(packageJsonPath)) { const packageJsonContent = cachedPackageJson?.packageJsonContent || JSON.parse(host.readFile!(packageJsonPath)!); + const importMode = overrideMode || importingSourceFile.impliedNodeFormat; if (getEmitModuleResolutionKind(options) === ModuleResolutionKind.Node16 || getEmitModuleResolutionKind(options) === ModuleResolutionKind.NodeNext) { - // `conditions` *could* be made to go against `importingSourceFile.impliedNodeFormat` if something wanted to generate - // an ImportEqualsDeclaration in an ESM-implied file or an ImportCall in a CJS-implied file. But since this function is - // usually called to conjure an import out of thin air, we don't have an existing usage to call `getModeForUsageAtIndex` - // with, so for now we just stick with the mode of the file. - const conditions = ["node", overrideMode || importingSourceFile.impliedNodeFormat === ModuleKind.ESNext ? "import" : "require", "types"]; + const conditions = ["node", importMode === ModuleKind.ESNext ? "import" : "require", "types"]; const fromExports = packageJsonContent.exports && typeof packageJsonContent.name === "string" ? tryGetModuleNameFromExports(options, path, packageRootPath, getPackageNameFromTypesPackageName(packageJsonContent.name), packageJsonContent.exports, conditions) : undefined; @@ -760,19 +830,31 @@ namespace ts.moduleSpecifiers { if (versionPaths) { const subModuleName = path.slice(packageRootPath.length + 1); const fromPaths = tryGetModuleNameFromPaths( - removeFileExtension(subModuleName), - removeExtensionAndIndexPostFix(subModuleName, Ending.Minimal, options), - versionPaths.paths + subModuleName, + versionPaths.paths, + getAllowedEndings(preferences.ending, options, importMode), + host, + options ); - if (fromPaths !== undefined) { + if (fromPaths === undefined) { + maybeBlockedByTypesVersions = true; + } + else { moduleFileToTry = combinePaths(packageRootPath, fromPaths); } } // If the file is the main module, it can be imported by the package name const mainFileRelative = packageJsonContent.typings || packageJsonContent.types || packageJsonContent.main || "index.js"; - if (isString(mainFileRelative)) { + if (isString(mainFileRelative) && !(maybeBlockedByTypesVersions && matchPatternOrExact(tryParsePatterns(versionPaths!.paths), mainFileRelative))) { + // The 'main' file is also subject to mapping through typesVersions, and we couldn't come up with a path + // explicitly through typesVersions, so if it matches a key in typesVersions now, it's not reachable. + // (The only way this can happen is if some file in a package that's not resolvable from outside the + // package got pulled into the program anyway, e.g. transitively through a file that *is* reachable. It + // happens very easily in fourslash tests though, since every test file listed gets included. See + // importNameCodeFix_typesVersions.ts for an example.) const mainExportFile = toPath(mainFileRelative, packageRootPath, getCanonicalFileName); if (removeFileExtension(mainExportFile) === removeFileExtension(getCanonicalFileName(moduleFileToTry))) { + // ^ An arbitrary removal of file extension for this comparison is almost certainly wrong return { packageRootPath, moduleFileToTry }; } } diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 44eac873896..e30a73e0935 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -746,6 +746,8 @@ namespace ts { * check specified by `isFileProbablyExternalModule` will be used to set the field. */ setExternalModuleIndicator?: (file: SourceFile) => void; + /*@internal*/ packageJsonLocations?: readonly string[]; + /*@internal*/ packageJsonScope?: PackageJsonInfo; } function setExternalModuleIndicator(sourceFile: SourceFile) { @@ -2780,7 +2782,9 @@ namespace ts { case ParsingContext.ImportOrExportSpecifiers: return parseErrorAtCurrentToken(Diagnostics.Identifier_expected); case ParsingContext.JsxAttributes: return parseErrorAtCurrentToken(Diagnostics.Identifier_expected); case ParsingContext.JsxChildren: return parseErrorAtCurrentToken(Diagnostics.Identifier_expected); - default: return [undefined!]; // TODO: GH#18217 `default: Debug.assertNever(context);` + case ParsingContext.AssertEntries: return parseErrorAtCurrentToken(Diagnostics.Identifier_or_string_literal_expected); // AssertionKey. + case ParsingContext.Count: return Debug.fail("ParsingContext.Count used as a context"); // Not a real context, only a marker. + default: Debug.assertNever(context); } } @@ -3337,7 +3341,7 @@ namespace ts { // BindingElement[?Yield,?Await] // Decorators are parsed in the outer [Await] context, the rest of the parameter is parsed in the function's [Await] context. - const decorators = inOuterAwaitContext ? doInAwaitContext(parseDecorators) : parseDecorators(); + const decorators = inOuterAwaitContext ? doInAwaitContext(parseDecorators) : doOutsideOfAwaitContext(parseDecorators); if (token() === SyntaxKind.ThisKeyword) { const node = factory.createParameterDeclaration( @@ -3631,11 +3635,11 @@ namespace ts { const hasJSDoc = hasPrecedingJSDocComment(); const modifiers = parseModifiers(); if (parseContextualModifier(SyntaxKind.GetKeyword)) { - return parseAccessorDeclaration(pos, hasJSDoc, /*decorators*/ undefined, modifiers, SyntaxKind.GetAccessor); + return parseAccessorDeclaration(pos, hasJSDoc, /*decorators*/ undefined, modifiers, SyntaxKind.GetAccessor, SignatureFlags.Type); } if (parseContextualModifier(SyntaxKind.SetKeyword)) { - return parseAccessorDeclaration(pos, hasJSDoc, /*decorators*/ undefined, modifiers, SyntaxKind.SetAccessor); + return parseAccessorDeclaration(pos, hasJSDoc, /*decorators*/ undefined, modifiers, SyntaxKind.SetAccessor, SignatureFlags.Type); } if (isIndexSignature()) { @@ -5285,12 +5289,15 @@ namespace ts { function parseSuperExpression(): MemberExpression { const pos = getNodePos(); - const expression = parseTokenNode(); + let expression = parseTokenNode(); if (token() === SyntaxKind.LessThanToken) { const startPos = getNodePos(); const typeArguments = tryParse(parseTypeArgumentsInExpression); if (typeArguments !== undefined) { parseErrorAt(startPos, getNodePos(), Diagnostics.super_may_not_use_type_arguments); + if (!isTemplateStartOfTaggedTemplate()) { + expression = factory.createExpressionWithTypeArguments(expression, typeArguments); + } } } @@ -5928,10 +5935,10 @@ namespace ts { const modifiers = parseModifiers(); if (parseContextualModifier(SyntaxKind.GetKeyword)) { - return parseAccessorDeclaration(pos, hasJSDoc, decorators, modifiers, SyntaxKind.GetAccessor); + return parseAccessorDeclaration(pos, hasJSDoc, decorators, modifiers, SyntaxKind.GetAccessor, SignatureFlags.None); } if (parseContextualModifier(SyntaxKind.SetKeyword)) { - return parseAccessorDeclaration(pos, hasJSDoc, decorators, modifiers, SyntaxKind.SetAccessor); + return parseAccessorDeclaration(pos, hasJSDoc, decorators, modifiers, SyntaxKind.SetAccessor, SignatureFlags.None); } const asteriskToken = parseOptionalToken(SyntaxKind.AsteriskToken); @@ -6701,11 +6708,16 @@ namespace ts { } function parseFunctionBlockOrSemicolon(flags: SignatureFlags, diagnosticMessage?: DiagnosticMessage): Block | undefined { - if (token() !== SyntaxKind.OpenBraceToken && canParseSemicolon()) { - parseSemicolon(); - return; + if (token() !== SyntaxKind.OpenBraceToken) { + if (flags & SignatureFlags.Type) { + parseTypeMemberSemicolon(); + return; + } + if (canParseSemicolon()) { + parseSemicolon(); + return; + } } - return parseFunctionBlock(flags, diagnosticMessage); } @@ -6972,12 +6984,12 @@ namespace ts { return parsePropertyDeclaration(pos, hasJSDoc, decorators, modifiers, name, questionToken); } - function parseAccessorDeclaration(pos: number, hasJSDoc: boolean, decorators: NodeArray | undefined, modifiers: NodeArray | undefined, kind: AccessorDeclaration["kind"]): AccessorDeclaration { + function parseAccessorDeclaration(pos: number, hasJSDoc: boolean, decorators: NodeArray | undefined, modifiers: NodeArray | undefined, kind: AccessorDeclaration["kind"], flags: SignatureFlags): AccessorDeclaration { const name = parsePropertyName(); const typeParameters = parseTypeParameters(); const parameters = parseParameters(SignatureFlags.None); const type = parseReturnType(SyntaxKind.ColonToken, /*isType*/ false); - const body = parseFunctionBlockOrSemicolon(SignatureFlags.None); + const body = parseFunctionBlockOrSemicolon(flags); const node = kind === SyntaxKind.GetAccessor ? factory.createGetAccessorDeclaration(combineDecoratorsAndModifiers(decorators, modifiers), name, parameters, type, body) : factory.createSetAccessorDeclaration(combineDecoratorsAndModifiers(decorators, modifiers), name, parameters, body); @@ -7188,11 +7200,11 @@ namespace ts { } if (parseContextualModifier(SyntaxKind.GetKeyword)) { - return parseAccessorDeclaration(pos, hasJSDoc, decorators, modifiers, SyntaxKind.GetAccessor); + return parseAccessorDeclaration(pos, hasJSDoc, decorators, modifiers, SyntaxKind.GetAccessor, SignatureFlags.None); } if (parseContextualModifier(SyntaxKind.SetKeyword)) { - return parseAccessorDeclaration(pos, hasJSDoc, decorators, modifiers, SyntaxKind.SetAccessor); + return parseAccessorDeclaration(pos, hasJSDoc, decorators, modifiers, SyntaxKind.SetAccessor, SignatureFlags.None); } if (token() === SyntaxKind.ConstructorKeyword || token() === SyntaxKind.StringLiteral) { diff --git a/src/compiler/path.ts b/src/compiler/path.ts index ebc837feb33..86bafd8f785 100644 --- a/src/compiler/path.ts +++ b/src/compiler/path.ts @@ -452,12 +452,9 @@ namespace ts { * Normalize path separators, converting `\` into `/`. */ export function normalizeSlashes(path: string): string { - const index = path.indexOf("\\"); - if (index === -1) { - return path; - } - backslashRegExp.lastIndex = index; // prime regex with known position - return path.replace(backslashRegExp, directorySeparator); + return path.indexOf("\\") !== -1 + ? path.replace(backslashRegExp, directorySeparator) + : path; } /** diff --git a/src/compiler/performance.ts b/src/compiler/performance.ts index 3f6c23f2b07..341becea645 100644 --- a/src/compiler/performance.ts +++ b/src/compiler/performance.ts @@ -107,6 +107,28 @@ namespace ts.performance { durations.forEach((duration, measureName) => cb(measureName, duration)); } + export function forEachMark(cb: (markName: string) => void) { + marks.forEach((_time, markName) => cb(markName)); + } + + export function clearMeasures(name?: string) { + if (name !== undefined) durations.delete(name); + else durations.clear(); + performanceImpl?.clearMeasures(name); + } + + export function clearMarks(name?: string) { + if (name !== undefined) { + counts.delete(name); + marks.delete(name); + } + else { + counts.clear(); + marks.clear(); + } + performanceImpl?.clearMarks(name); + } + /** * Indicates whether the performance API is enabled. */ diff --git a/src/compiler/performanceCore.ts b/src/compiler/performanceCore.ts index ac40726ebb2..07492542a5c 100644 --- a/src/compiler/performanceCore.ts +++ b/src/compiler/performanceCore.ts @@ -13,6 +13,8 @@ namespace ts { export interface Performance { mark(name: string): void; measure(name: string, startMark?: string, endMark?: string): void; + clearMeasures(name?: string): void; + clearMarks(name?: string): void; now(): number; timeOrigin: number; } @@ -50,6 +52,8 @@ namespace ts { typeof performance.mark === "function" && typeof performance.measure === "function" && typeof performance.now === "function" && + typeof performance.clearMarks === "function" && + typeof performance.clearMeasures === "function" && typeof PerformanceObserver === "function"; } @@ -73,8 +77,8 @@ namespace ts { try { let performance: Performance; const { performance: nodePerformance, PerformanceObserver } = require("perf_hooks") as typeof import("perf_hooks"); - if (hasRequiredAPI(nodePerformance, PerformanceObserver)) { - performance = nodePerformance; + if (hasRequiredAPI(nodePerformance as unknown as Performance, PerformanceObserver)) { + performance = nodePerformance as unknown as Performance; // There is a bug in Node's performance.measure prior to 12.16.3/13.13.0 that does not // match the Web Performance API specification. Node's implementation did not allow // optional `start` and `end` arguments for `performance.measure`. @@ -95,7 +99,9 @@ namespace ts { if (end === "__performance.measure-fix__") { nodePerformance.clearMarks("__performance.measure-fix__"); } - } + }, + clearMarks(name) { return nodePerformance.clearMarks(name); }, + clearMeasures(name) { return (nodePerformance as unknown as Performance).clearMeasures(name); }, }; } return { diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 6de1792d361..e7c0f363ea8 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -843,6 +843,17 @@ namespace ts { * @returns `undefined` if the path has no relevant implied format, `ModuleKind.ESNext` for esm format, and `ModuleKind.CommonJS` for cjs format */ export function getImpliedNodeFormatForFile(fileName: Path, packageJsonInfoCache: PackageJsonInfoCache | undefined, host: ModuleResolutionHost, options: CompilerOptions): ModuleKind.ESNext | ModuleKind.CommonJS | undefined { + const result = getImpliedNodeFormatForFileWorker(fileName, packageJsonInfoCache, host, options); + return typeof result === "object" ? result.impliedNodeFormat : result; + } + + /*@internal*/ + export function getImpliedNodeFormatForFileWorker( + fileName: Path, + packageJsonInfoCache: PackageJsonInfoCache | undefined, + host: ModuleResolutionHost, + options: CompilerOptions, + ) { switch (getEmitModuleResolutionKind(options)) { case ModuleResolutionKind.Node16: case ModuleResolutionKind.NodeNext: @@ -853,10 +864,14 @@ namespace ts { default: return undefined; } - function lookupFromPackageJson(): ModuleKind.ESNext | ModuleKind.CommonJS { - const scope = getPackageScopeForPath(fileName, packageJsonInfoCache, host, options); - return scope?.packageJsonContent.type === "module" ? ModuleKind.ESNext : ModuleKind.CommonJS; - + function lookupFromPackageJson(): Partial { + const state = getTemporaryModuleResolutionState(packageJsonInfoCache, host, options); + const packageJsonLocations: string[] = []; + state.failedLookupLocations = packageJsonLocations; + state.affectingLocations = packageJsonLocations; + const packageJsonScope = getPackageScopeForPath(fileName, state); + const impliedNodeFormat = packageJsonScope?.packageJsonContent.type === "module" ? ModuleKind.ESNext : ModuleKind.CommonJS; + return { impliedNodeFormat, packageJsonLocations, packageJsonScope }; } } @@ -1236,7 +1251,7 @@ namespace ts { const oldSourceFiles = oldProgram.getSourceFiles(); for (const oldSourceFile of oldSourceFiles) { const newFile = getSourceFileByPath(oldSourceFile.resolvedPath); - if (shouldCreateNewSourceFile || !newFile || + if (shouldCreateNewSourceFile || !newFile || newFile.impliedNodeFormat !== oldSourceFile.impliedNodeFormat || // old file wasn't redirect but new file is (oldSourceFile.resolvedPath === oldSourceFile.path && newFile.resolvedPath !== oldSourceFile.path)) { host.onReleaseOldSourceFile(oldSourceFile, oldProgram.getCompilerOptions(), !!getSourceFileByPath(oldSourceFile.path)); @@ -1492,7 +1507,7 @@ namespace ts { return classifiableNames; } - function resolveModuleNamesReusingOldState(moduleNames: string[], file: SourceFile): readonly ResolvedModuleFull[] { + function resolveModuleNamesReusingOldState(moduleNames: string[], file: SourceFile): readonly (ResolvedModuleFull | undefined)[] { if (structureIsReused === StructureIsReused.Not && !file.ambientModuleNames.length) { // If the old program state does not permit reusing resolutions and `file` does not contain locally defined ambient modules, // the best we can do is fallback to the default logic. @@ -1509,10 +1524,10 @@ namespace ts { // which per above occurred during the current program creation. // Since we assume the filesystem does not change during program creation, // it is safe to reuse resolutions from the earlier call. - const result: ResolvedModuleFull[] = []; + const result: (ResolvedModuleFull | undefined)[] = []; let i = 0; for (const moduleName of moduleNames) { - const resolvedModule = file.resolvedModules.get(moduleName, getModeForResolutionAtIndex(file, i))!; + const resolvedModule = file.resolvedModules.get(moduleName, getModeForResolutionAtIndex(file, i)); i++; result.push(resolvedModule); } @@ -1534,7 +1549,7 @@ namespace ts { * Needs to be reset to undefined before returning, * * ResolvedModuleFull instance: can be reused. */ - let result: ResolvedModuleFull[] | undefined; + let result: (ResolvedModuleFull | undefined)[] | undefined; let reusedNames: string[] | undefined; /** A transient placeholder used to mark predicted resolution in the result list. */ const predictedToResolveToAmbientModuleMarker: ResolvedModuleFull = {} as any; @@ -1602,7 +1617,7 @@ namespace ts { // `result[i]` is either a `ResolvedModuleFull` or a marker. // If it is the former, we can leave it as is. if (result[i] === predictedToResolveToAmbientModuleMarker) { - result[i] = undefined!; // TODO: GH#18217 + result[i] = undefined; } } else { @@ -1711,13 +1726,16 @@ namespace ts { const seenPackageNames = new Map(); for (const oldSourceFile of oldSourceFiles) { + const sourceFileOptions = getCreateSourceFileOptions(oldSourceFile.fileName, moduleResolutionCache, host, options); let newSourceFile = host.getSourceFileByPath - ? host.getSourceFileByPath(oldSourceFile.fileName, oldSourceFile.resolvedPath, getCreateSourceFileOptions(oldSourceFile.fileName, moduleResolutionCache, host, options), /*onError*/ undefined, shouldCreateNewSourceFile) - : host.getSourceFile(oldSourceFile.fileName, getCreateSourceFileOptions(oldSourceFile.fileName, moduleResolutionCache, host, options), /*onError*/ undefined, shouldCreateNewSourceFile); // TODO: GH#18217 + ? host.getSourceFileByPath(oldSourceFile.fileName, oldSourceFile.resolvedPath, sourceFileOptions, /*onError*/ undefined, shouldCreateNewSourceFile || sourceFileOptions.impliedNodeFormat !== oldSourceFile.impliedNodeFormat) + : host.getSourceFile(oldSourceFile.fileName, sourceFileOptions, /*onError*/ undefined, shouldCreateNewSourceFile || sourceFileOptions.impliedNodeFormat !== oldSourceFile.impliedNodeFormat); // TODO: GH#18217 if (!newSourceFile) { return StructureIsReused.Not; } + newSourceFile.packageJsonLocations = sourceFileOptions.packageJsonLocations?.length ? sourceFileOptions.packageJsonLocations : undefined; + newSourceFile.packageJsonScope = sourceFileOptions.packageJsonScope; Debug.assert(!newSourceFile.redirectInfo, "Host should not return a redirect source file from `getSourceFile`"); @@ -1762,43 +1780,43 @@ namespace ts { } if (fileChanged) { + if (oldSourceFile.impliedNodeFormat !== newSourceFile.impliedNodeFormat) { + structureIsReused = StructureIsReused.SafeModules; + } // The `newSourceFile` object was created for the new program. - - if (!arrayIsEqualTo(oldSourceFile.libReferenceDirectives, newSourceFile.libReferenceDirectives, fileReferenceIsEqualTo)) { + else if (!arrayIsEqualTo(oldSourceFile.libReferenceDirectives, newSourceFile.libReferenceDirectives, fileReferenceIsEqualTo)) { // 'lib' references has changed. Matches behavior in changesAffectModuleResolution structureIsReused = StructureIsReused.SafeModules; } - - if (oldSourceFile.hasNoDefaultLib !== newSourceFile.hasNoDefaultLib) { + else if (oldSourceFile.hasNoDefaultLib !== newSourceFile.hasNoDefaultLib) { // value of no-default-lib has changed // this will affect if default library is injected into the list of files structureIsReused = StructureIsReused.SafeModules; } - // check tripleslash references - if (!arrayIsEqualTo(oldSourceFile.referencedFiles, newSourceFile.referencedFiles, fileReferenceIsEqualTo)) { + else if (!arrayIsEqualTo(oldSourceFile.referencedFiles, newSourceFile.referencedFiles, fileReferenceIsEqualTo)) { // tripleslash references has changed structureIsReused = StructureIsReused.SafeModules; } - - // check imports and module augmentations - collectExternalModuleReferences(newSourceFile); - if (!arrayIsEqualTo(oldSourceFile.imports, newSourceFile.imports, moduleNameIsEqualTo)) { - // imports has changed - structureIsReused = StructureIsReused.SafeModules; - } - if (!arrayIsEqualTo(oldSourceFile.moduleAugmentations, newSourceFile.moduleAugmentations, moduleNameIsEqualTo)) { - // moduleAugmentations has changed - structureIsReused = StructureIsReused.SafeModules; - } - if ((oldSourceFile.flags & NodeFlags.PermanentlySetIncrementalFlags) !== (newSourceFile.flags & NodeFlags.PermanentlySetIncrementalFlags)) { - // dynamicImport has changed - structureIsReused = StructureIsReused.SafeModules; - } - - if (!arrayIsEqualTo(oldSourceFile.typeReferenceDirectives, newSourceFile.typeReferenceDirectives, fileReferenceIsEqualTo)) { - // 'types' references has changed - structureIsReused = StructureIsReused.SafeModules; + else { + // check imports and module augmentations + collectExternalModuleReferences(newSourceFile); + if (!arrayIsEqualTo(oldSourceFile.imports, newSourceFile.imports, moduleNameIsEqualTo)) { + // imports has changed + structureIsReused = StructureIsReused.SafeModules; + } + else if (!arrayIsEqualTo(oldSourceFile.moduleAugmentations, newSourceFile.moduleAugmentations, moduleNameIsEqualTo)) { + // moduleAugmentations has changed + structureIsReused = StructureIsReused.SafeModules; + } + else if ((oldSourceFile.flags & NodeFlags.PermanentlySetIncrementalFlags) !== (newSourceFile.flags & NodeFlags.PermanentlySetIncrementalFlags)) { + // dynamicImport has changed + structureIsReused = StructureIsReused.SafeModules; + } + else if (!arrayIsEqualTo(oldSourceFile.typeReferenceDirectives, newSourceFile.typeReferenceDirectives, fileReferenceIsEqualTo)) { + // 'types' references has changed + structureIsReused = StructureIsReused.SafeModules; + } } // tentatively approve the file @@ -2771,13 +2789,15 @@ namespace ts { } } - function createRedirectSourceFile(redirectTarget: SourceFile, unredirected: SourceFile, fileName: string, path: Path, resolvedPath: Path, originalFileName: string): SourceFile { + function createRedirectSourceFile(redirectTarget: SourceFile, unredirected: SourceFile, fileName: string, path: Path, resolvedPath: Path, originalFileName: string, sourceFileOptions: CreateSourceFileOptions): SourceFile { const redirect: SourceFile = Object.create(redirectTarget); redirect.fileName = fileName; redirect.path = path; redirect.resolvedPath = resolvedPath; redirect.originalFileName = originalFileName; redirect.redirectInfo = { redirectTarget, unredirected }; + redirect.packageJsonLocations = sourceFileOptions.packageJsonLocations?.length ? sourceFileOptions.packageJsonLocations : undefined; + redirect.packageJsonScope = sourceFileOptions.packageJsonScope; sourceFilesFoundSearchingNodeModules.set(path, currentNodeModulesDepth > 0); Object.defineProperties(redirect, { id: { @@ -2804,16 +2824,16 @@ namespace ts { return result; } - function getCreateSourceFileOptions(fileName: string, moduleResolutionCache: ModuleResolutionCache | undefined, host: CompilerHost, options: CompilerOptions) { + function getCreateSourceFileOptions(fileName: string, moduleResolutionCache: ModuleResolutionCache | undefined, host: CompilerHost, options: CompilerOptions): CreateSourceFileOptions { // It's a _little odd_ that we can't set `impliedNodeFormat` until the program step - but it's the first and only time we have a resolution cache // and a freshly made source file node on hand at the same time, and we need both to set the field. Persisting the resolution cache all the way // to the check and emit steps would be bad - so we much prefer detecting and storing the format information on the source file node upfront. - const impliedNodeFormat = getImpliedNodeFormatForFile(toPath(fileName), moduleResolutionCache?.getPackageJsonInfoCache(), host, options); - return { - languageVersion: getEmitScriptTarget(options), - impliedNodeFormat, - setExternalModuleIndicator: getSetExternalModuleIndicator(options) - }; + const result = getImpliedNodeFormatForFileWorker(toPath(fileName), moduleResolutionCache?.getPackageJsonInfoCache(), host, options); + const languageVersion = getEmitScriptTarget(options); + const setExternalModuleIndicator = getSetExternalModuleIndicator(options); + return typeof result === "object" ? + { ...result, languageVersion, setExternalModuleIndicator } : + { languageVersion, impliedNodeFormat: result, setExternalModuleIndicator }; } function findSourceFileWorker(fileName: string, isDefaultLib: boolean, ignoreNoDefaultLib: boolean, reason: FileIncludeReason, packageId: PackageId | undefined): SourceFile | undefined { @@ -2906,11 +2926,12 @@ namespace ts { } // We haven't looked for this file, do so now and cache result + const sourceFileOptions = getCreateSourceFileOptions(fileName, moduleResolutionCache, host, options); const file = host.getSourceFile( fileName, - getCreateSourceFileOptions(fileName, moduleResolutionCache, host, options), + sourceFileOptions, hostErrorMessage => addFilePreprocessingFileExplainingDiagnostic(/*file*/ undefined, reason, Diagnostics.Cannot_read_file_0_Colon_1, [fileName, hostErrorMessage]), - shouldCreateNewSourceFile + shouldCreateNewSourceFile || (oldProgram?.getSourceFileByPath(toPath(fileName))?.impliedNodeFormat !== sourceFileOptions.impliedNodeFormat) ); if (packageId) { @@ -2919,7 +2940,7 @@ namespace ts { if (fileFromPackageId) { // Some other SourceFile already exists with this package name and version. // Instead of creating a duplicate, just redirect to the existing one. - const dupFile = createRedirectSourceFile(fileFromPackageId, file!, fileName, path, toPath(fileName), originalFileName); // TODO: GH#18217 + const dupFile = createRedirectSourceFile(fileFromPackageId, file!, fileName, path, toPath(fileName), originalFileName, sourceFileOptions); redirectTargetsMap.add(fileFromPackageId.path, fileName); addFileToFilesByName(dupFile, path, redirectedPath); addFileIncludeReason(dupFile, reason); @@ -2941,6 +2962,8 @@ namespace ts { file.path = path; file.resolvedPath = toPath(fileName); file.originalFileName = originalFileName; + file.packageJsonLocations = sourceFileOptions.packageJsonLocations?.length ? sourceFileOptions.packageJsonLocations : undefined; + file.packageJsonScope = sourceFileOptions.packageJsonScope; addFileIncludeReason(file, reason); if (host.useCaseSensitiveFileNames()) { @@ -3677,7 +3700,7 @@ namespace ts { if (locationReason && fileIncludeReasons?.length === 1) fileIncludeReasons = undefined; const location = locationReason && getReferencedFileLocation(getSourceFileByPath, locationReason); const fileIncludeReasonDetails = fileIncludeReasons && chainDiagnosticMessages(fileIncludeReasons, Diagnostics.The_file_is_in_the_program_because_Colon); - const redirectInfo = file && explainIfFileIsRedirect(file); + const redirectInfo = file && explainIfFileIsRedirectAndImpliedFormat(file); const chain = chainDiagnosticMessages(redirectInfo ? fileIncludeReasonDetails ? [fileIncludeReasonDetails, ...redirectInfo] : redirectInfo : fileIncludeReasonDetails, diagnostic, ...args || emptyArray); return location && isReferenceFileLocation(location) ? createFileDiagnosticFromMessageChain(location.file, location.pos, location.end - location.pos, chain, relatedInfo) : diff --git a/src/compiler/resolutionCache.ts b/src/compiler/resolutionCache.ts index efc0b4c95a1..46130e35659 100644 --- a/src/compiler/resolutionCache.ts +++ b/src/compiler/resolutionCache.ts @@ -20,7 +20,7 @@ namespace ts { startCachingPerDirectoryResolution(): void; - finishCachingPerDirectoryResolution(): void; + finishCachingPerDirectoryResolution(newProgram: Program | undefined, oldProgram: Program | undefined): void; updateTypeRootsWatch(): void; closeTypeRootsWatch(): void; @@ -70,18 +70,19 @@ namespace ts { onDiscoveredSymlink?(): void; } - interface WatcherWithRefCount { + interface FileWatcherOfAffectingLocation { + /** watcher for the lookup */ + watcher: FileWatcher; + resolutions: number; + files: number; + paths: Set; + } + + interface DirectoryWatchesOfFailedLookup { /** watcher for the lookup */ watcher: FileWatcher; /** ref count keeping this watch alive */ refCount: number; - } - - interface FileWatcherOfAffectingLocation extends WatcherWithRefCount { - paths: Set; - } - - interface DirectoryWatchesOfFailedLookup extends WatcherWithRefCount { /** is the directory watched being non recursive */ nonRecursive?: boolean; } @@ -109,7 +110,7 @@ namespace ts { * "c:/", "c:/users", "c:/users/username", "c:/users/username/folderAtRoot", "c:/folderAtRoot" * @param dirPath */ - export function canWatchDirectory(dirPath: Path) { + export function canWatchDirectoryOrFile(dirPath: Path) { const rootLength = getRootLength(dirPath); if (dirPath.length === rootLength) { // Ignore "/", "c:/" @@ -164,9 +165,11 @@ namespace ts { const resolutionsWithFailedLookups: ResolutionWithFailedLookupLocations[] = []; const resolutionsWithOnlyAffectingLocations: ResolutionWithFailedLookupLocations[] = []; const resolvedFileToResolution = createMultiMap(); + const impliedFormatPackageJsons = new Map(); let hasChangedAutomaticTypeDirectiveNames = false; - let affectingPathChecks: Set | undefined; + let affectingPathChecksForFile: Set | undefined; + let affectingPathChecks: Set | undefined; let failedLookupChecks: Set | undefined; let startsWithPathChecks: Set | undefined; let isInDirectoryChecks: Set | undefined; @@ -222,7 +225,7 @@ namespace ts { finishRecordingFilesWithChangedResolutions, // perDirectoryResolvedModuleNames and perDirectoryResolvedTypeReferenceDirectives could be non empty if there was exception during program update // (between startCachingPerDirectoryResolution and finishCachingPerDirectoryResolution) - startCachingPerDirectoryResolution: clearPerDirectoryResolutions, + startCachingPerDirectoryResolution, finishCachingPerDirectoryResolution, resolveModuleNames, getResolvedModuleWithFailedLookupLocationsFromCache, @@ -270,9 +273,10 @@ namespace ts { startsWithPathChecks = undefined; isInDirectoryChecks = undefined; affectingPathChecks = undefined; - // perDirectoryResolvedModuleNames and perDirectoryResolvedTypeReferenceDirectives could be non empty if there was exception during program update - // (between startCachingPerDirectoryResolution and finishCachingPerDirectoryResolution) - clearPerDirectoryResolutions(); + affectingPathChecksForFile = undefined; + moduleResolutionCache.clear(); + typeReferenceDirectiveResolutionCache.clear(); + impliedFormatPackageJsons.clear(); hasChangedAutomaticTypeDirectiveNames = false; } @@ -310,16 +314,42 @@ namespace ts { isFileWithInvalidatedNonRelativeUnresolvedImports(path); } - function clearPerDirectoryResolutions() { - moduleResolutionCache.clear(); - typeReferenceDirectiveResolutionCache.clear(); + function startCachingPerDirectoryResolution() { + moduleResolutionCache.clearAllExceptPackageJsonInfoCache(); + typeReferenceDirectiveResolutionCache.clearAllExceptPackageJsonInfoCache(); + // perDirectoryResolvedModuleNames and perDirectoryResolvedTypeReferenceDirectives could be non empty if there was exception during program update + // (between startCachingPerDirectoryResolution and finishCachingPerDirectoryResolution) nonRelativeExternalModuleResolutions.forEach(watchFailedLookupLocationOfNonRelativeModuleResolutions); nonRelativeExternalModuleResolutions.clear(); } - function finishCachingPerDirectoryResolution() { + function finishCachingPerDirectoryResolution(newProgram: Program | undefined, oldProgram: Program | undefined) { filesWithInvalidatedNonRelativeUnresolvedImports = undefined; - clearPerDirectoryResolutions(); + nonRelativeExternalModuleResolutions.forEach(watchFailedLookupLocationOfNonRelativeModuleResolutions); + nonRelativeExternalModuleResolutions.clear(); + // Update file watches + if (newProgram !== oldProgram) { + newProgram?.getSourceFiles().forEach(newFile => { + const expected = isExternalOrCommonJsModule(newFile) ? newFile.packageJsonLocations?.length ?? 0 : 0; + const existing = impliedFormatPackageJsons.get(newFile.path) ?? emptyArray; + for (let i = existing.length; i < expected; i++) { + createFileWatcherOfAffectingLocation(newFile.packageJsonLocations![i], /*forResolution*/ false); + } + if (existing.length > expected) { + for (let i = expected; i < existing.length; i++) { + fileWatchesOfAffectingLocations.get(existing[i])!.files--; + } + } + if (expected) impliedFormatPackageJsons.set(newFile.path, newFile.packageJsonLocations!); + else impliedFormatPackageJsons.delete(newFile.path); + }); + impliedFormatPackageJsons.forEach((existing, path) => { + if (!newProgram?.getSourceFileByPath(path)) { + existing.forEach(location => fileWatchesOfAffectingLocations.get(location)!.files--); + impliedFormatPackageJsons.delete(path); + } + }); + } directoryWatchesOfFailedLookups.forEach((watcher, path) => { if (watcher.refCount === 0) { directoryWatchesOfFailedLookups.delete(path); @@ -327,11 +357,9 @@ namespace ts { } }); fileWatchesOfAffectingLocations.forEach((watcher, path) => { - if (watcher.refCount === 0) { + if (watcher.files === 0 && watcher.resolutions === 0) { fileWatchesOfAffectingLocations.delete(path); watcher.watcher.close(); - // Ensure when watching symlinked package.json, we can close the actual file watcher only once - watcher.watcher = noopFileWatcher; } }); @@ -617,7 +645,7 @@ namespace ts { // If the directory is node_modules use it to watch, always watch it recursively if (isNodeModulesDirectory(dirPath)) { - return canWatchDirectory(getDirectoryPath(dirPath)) ? { dir, dirPath } : undefined; + return canWatchDirectoryOrFile(getDirectoryPath(dirPath)) ? { dir, dirPath } : undefined; } let nonRecursive = true; @@ -637,7 +665,7 @@ namespace ts { } } - return canWatchDirectory(dirPath) ? { dir: subDirectory || dir, dirPath: subDirectoryPath || dirPath, nonRecursive } : undefined; + return canWatchDirectoryOrFile(dirPath) ? { dir: subDirectory || dir, dirPath: subDirectoryPath || dirPath, nonRecursive } : undefined; } function isPathWithDefaultFailedLookupExtension(path: Path) { @@ -714,47 +742,60 @@ namespace ts { if (addToResolutionsWithOnlyAffectingLocations) resolutionsWithOnlyAffectingLocations.push(resolution); // Watch package json for (const affectingLocation of affectingLocations) { - createFileWatcherOfAffectingLocation(affectingLocation); + createFileWatcherOfAffectingLocation(affectingLocation, /*forResolution*/ true); } } - function createFileWatcherOfAffectingLocation(affectingLocation: string) { - const path = resolutionHost.toPath(affectingLocation); - const fileWatcher = fileWatchesOfAffectingLocations.get(path); + function createFileWatcherOfAffectingLocation(affectingLocation: string, forResolution: boolean) { + const fileWatcher = fileWatchesOfAffectingLocations.get(affectingLocation); if (fileWatcher) { - fileWatcher.refCount++; + if (forResolution) fileWatcher.resolutions++; + else fileWatcher.files++; return; } let locationToWatch = affectingLocation; - let locationToWatchPath = path; if (resolutionHost.realpath) { locationToWatch = resolutionHost.realpath(affectingLocation); - locationToWatchPath = resolutionHost.toPath(locationToWatch); - if (path !== locationToWatchPath) { - const fileWatcher = fileWatchesOfAffectingLocations.get(locationToWatchPath); + if (affectingLocation !== locationToWatch) { + const fileWatcher = fileWatchesOfAffectingLocations.get(locationToWatch); if (fileWatcher) { - fileWatcher.refCount++; - fileWatcher.paths.add(path); - fileWatchesOfAffectingLocations.set(path, fileWatcher); + if (forResolution) fileWatcher.resolutions++; + else fileWatcher.files++; + fileWatcher.paths.add(affectingLocation); + fileWatchesOfAffectingLocations.set(affectingLocation, fileWatcher); return; } } } - const paths = new Set(); - paths.add(locationToWatchPath); - const watcher: FileWatcherOfAffectingLocation = { - watcher: resolutionHost.watchAffectingFileLocation(locationToWatch, (fileName, eventKind) => { - cachedDirectoryStructureHost?.addOrDeleteFile(fileName, path, eventKind); - paths.forEach(path => (affectingPathChecks ||= new Set()).add(path)); + const paths = new Set(); + paths.add(locationToWatch); + let actualWatcher = canWatchDirectoryOrFile(resolutionHost.toPath(locationToWatch)) ? + resolutionHost.watchAffectingFileLocation(locationToWatch, (fileName, eventKind) => { + cachedDirectoryStructureHost?.addOrDeleteFile(fileName, resolutionHost.toPath(locationToWatch), eventKind); + const packageJsonMap = moduleResolutionCache.getPackageJsonInfoCache().getInternalMap(); + paths.forEach(path => { + if (watcher.resolutions) (affectingPathChecks ??= new Set()).add(path); + if (watcher.files) (affectingPathChecksForFile ??= new Set()).add(path); + packageJsonMap?.delete(resolutionHost.toPath(path)); + }); resolutionHost.scheduleInvalidateResolutionsOfFailedLookupLocations(); - }), - refCount: 1, + }) : noopFileWatcher; + const watcher: FileWatcherOfAffectingLocation = { + watcher: actualWatcher !== noopFileWatcher ? { + close: () => { + actualWatcher.close(); + // Ensure when watching symlinked package.json, we can close the actual file watcher only once + actualWatcher = noopFileWatcher; + } + } : actualWatcher, + resolutions: forResolution ? 1 : 0, + files: forResolution ? 0 : 1, paths, }; - fileWatchesOfAffectingLocations.set(locationToWatchPath, watcher); - if (path !== locationToWatchPath) { - fileWatchesOfAffectingLocations.set(path, watcher); - paths.add(path); + fileWatchesOfAffectingLocations.set(locationToWatch, watcher); + if (affectingLocation !== locationToWatch) { + fileWatchesOfAffectingLocations.set(affectingLocation, watcher); + paths.add(affectingLocation); } } @@ -830,8 +871,8 @@ namespace ts { } for (const affectingLocation of affectingLocations) { - const watcher = fileWatchesOfAffectingLocations.get(resolutionHost.toPath(affectingLocation))!; - watcher.refCount--; + const watcher = fileWatchesOfAffectingLocations.get(affectingLocation)!; + watcher.resolutions--; } } @@ -892,7 +933,7 @@ namespace ts { if (resolution.isInvalidated || !canInvalidate(resolution)) continue; resolution.isInvalidated = invalidated = true; for (const containingFilePath of Debug.checkDefined(resolution.files)) { - (filesWithInvalidatedResolutions || (filesWithInvalidatedResolutions = new Set())).add(containingFilePath); + (filesWithInvalidatedResolutions ??= new Set()).add(containingFilePath); // When its a file with inferred types resolution, invalidate type reference directive resolution hasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames || endsWith(containingFilePath, inferredTypesContainingFile); } @@ -964,11 +1005,26 @@ namespace ts { } function invalidateResolutionsOfFailedLookupLocations() { - if (!failedLookupChecks && !startsWithPathChecks && !isInDirectoryChecks && !affectingPathChecks) { - return false; + let invalidated = false; + if (affectingPathChecksForFile) { + resolutionHost.getCurrentProgram()?.getSourceFiles().forEach(f => { + if (some(f.packageJsonLocations, location => affectingPathChecksForFile!.has(location))) { + (filesWithInvalidatedResolutions ??= new Set()).add(f.path); + invalidated = true; + } + }); + affectingPathChecksForFile = undefined; } - let invalidated = invalidateResolutions(resolutionsWithFailedLookups, canInvalidateFailedLookupResolution); + if (!failedLookupChecks && !startsWithPathChecks && !isInDirectoryChecks && !affectingPathChecks) { + return invalidated; + } + + invalidated = invalidateResolutions(resolutionsWithFailedLookups, canInvalidateFailedLookupResolution) || invalidated; + const packageJsonMap = moduleResolutionCache.getPackageJsonInfoCache().getInternalMap(); + if (packageJsonMap && (failedLookupChecks || startsWithPathChecks || isInDirectoryChecks)) { + packageJsonMap.forEach((_value, path) => isInvalidatedFailedLookup(path) ? packageJsonMap.delete(path) : undefined); + } failedLookupChecks = undefined; startsWithPathChecks = undefined; isInDirectoryChecks = undefined; @@ -980,17 +1036,17 @@ namespace ts { function canInvalidateFailedLookupResolution(resolution: ResolutionWithFailedLookupLocations) { if (canInvalidatedFailedLookupResolutionWithAffectingLocation(resolution)) return true; if (!failedLookupChecks && !startsWithPathChecks && !isInDirectoryChecks) return false; - return resolution.failedLookupLocations.some(location => { - const locationPath = resolutionHost.toPath(location); - return failedLookupChecks?.has(locationPath) || - firstDefinedIterator(startsWithPathChecks?.keys() || emptyIterator, fileOrDirectoryPath => startsWith(locationPath, fileOrDirectoryPath) ? true : undefined) || - firstDefinedIterator(isInDirectoryChecks?.keys() || emptyIterator, fileOrDirectoryPath => isInDirectoryPath(fileOrDirectoryPath, locationPath) ? true : undefined); - }); + return resolution.failedLookupLocations.some(location => isInvalidatedFailedLookup(resolutionHost.toPath(location))); + } + + function isInvalidatedFailedLookup(locationPath: Path) { + return failedLookupChecks?.has(locationPath) || + firstDefinedIterator(startsWithPathChecks?.keys() || emptyIterator, fileOrDirectoryPath => startsWith(locationPath, fileOrDirectoryPath) ? true : undefined) || + firstDefinedIterator(isInDirectoryChecks?.keys() || emptyIterator, fileOrDirectoryPath => isInDirectoryPath(fileOrDirectoryPath, locationPath) ? true : undefined); } function canInvalidatedFailedLookupResolutionWithAffectingLocation(resolution: ResolutionWithFailedLookupLocations) { - return !!affectingPathChecks && resolution.affectingLocations.some(location => - affectingPathChecks!.has(resolutionHost.toPath(location))); + return !!affectingPathChecks && resolution.affectingLocations.some(location => affectingPathChecks!.has(location)); } function closeTypeRootsWatch() { @@ -1068,7 +1124,7 @@ namespace ts { function directoryExistsForTypeRootWatch(nodeTypesDirectory: string) { const dir = getDirectoryPath(getDirectoryPath(nodeTypesDirectory)); const dirPath = resolutionHost.toPath(dir); - return dirPath === rootPath || canWatchDirectory(dirPath); + return dirPath === rootPath || canWatchDirectoryOrFile(dirPath); } } diff --git a/src/compiler/sys.ts b/src/compiler/sys.ts index 701276b9da9..b0cc058fd93 100644 --- a/src/compiler/sys.ts +++ b/src/compiler/sys.ts @@ -1088,14 +1088,16 @@ namespace ts { lastDirectoryPart = lastDirectoryPartWithDirectorySeparator.slice(directorySeparator.length); } /** Watcher for the file system entry depending on whether it is missing or present */ - let watcher = !fileSystemEntryExists(fileOrDirectory, entryKind) ? + let watcher: FileWatcher | undefined = !fileSystemEntryExists(fileOrDirectory, entryKind) ? watchMissingFileSystemEntry() : watchPresentFileSystemEntry(); return { close: () => { // Close the watcher (either existing file system entry watcher or missing file system entry watcher) - watcher.close(); - watcher = undefined!; + if (watcher) { + watcher.close(); + watcher = undefined; + } } }; @@ -1438,7 +1440,7 @@ namespace ts { const platform: string = _os.platform(); const useCaseSensitiveFileNames = isFileSystemCaseSensitive(); - const realpathSync = _fs.realpathSync.native ?? _fs.realpathSync; + const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync; const fsSupportsRecursiveFsWatch = isNode4OrLater && (process.platform === "win32" || process.platform === "darwin"); const getCurrentDirectory = memoize(() => process.cwd()); @@ -1887,9 +1889,13 @@ namespace ts { return getAccessibleFileSystemEntries(path).directories.slice(); } + function fsRealPathHandlingLongPath(path: string): string { + return path.length < 260 ? _fs.realpathSync.native(path) : _fs.realpathSync(path); + } + function realpath(path: string): string { try { - return realpathSync(path); + return fsRealpath(path); } catch { return path; diff --git a/src/compiler/tracing.ts b/src/compiler/tracing.ts index 4757ac72e1b..25765b7362a 100644 --- a/src/compiler/tracing.ts +++ b/src/compiler/tracing.ts @@ -131,9 +131,9 @@ namespace ts { // eslint-disable-line one-namespace-per-file } eventStack.push({ phase, name, args, time: 1000 * timestamp(), separateBeginAndEnd }); } - export function pop() { + export function pop(results?: Args) { Debug.assert(eventStack.length > 0); - writeStackEvent(eventStack.length - 1, 1000 * timestamp()); + writeStackEvent(eventStack.length - 1, 1000 * timestamp(), results); eventStack.length--; } export function popAll() { @@ -145,14 +145,15 @@ namespace ts { // eslint-disable-line one-namespace-per-file } // sample every 10ms const sampleInterval = 1000 * 10; - function writeStackEvent(index: number, endTime: number) { + function writeStackEvent(index: number, endTime: number, results?: Args) { const { phase, name, args, time, separateBeginAndEnd } = eventStack[index]; if (separateBeginAndEnd) { + Debug.assert(!results, "`results` are not supported for events with `separateBeginAndEnd`"); writeEvent("E", phase, name, args, /*extras*/ undefined, endTime); } // test if [time,endTime) straddles a sampling point else if (sampleInterval - (time % sampleInterval) <= endTime - time) { - writeEvent("X", phase, name, args, `"dur":${endTime - time}`, time); + writeEvent("X", phase, name, { ...args, results }, `"dur":${endTime - time}`, time); } } diff --git a/src/compiler/transformers/classFields.ts b/src/compiler/transformers/classFields.ts index 7e9f7639264..13ea666881e 100644 --- a/src/compiler/transformers/classFields.ts +++ b/src/compiler/transformers/classFields.ts @@ -576,10 +576,11 @@ namespace ts { function visitPreOrPostfixUnaryExpression(node: PrefixUnaryExpression | PostfixUnaryExpression, valueIsDiscarded: boolean) { if (node.operator === SyntaxKind.PlusPlusToken || node.operator === SyntaxKind.MinusMinusToken) { - if (shouldTransformPrivateElementsOrClassStaticBlocks && isPrivateIdentifierPropertyAccessExpression(node.operand)) { + const operand = skipParentheses(node.operand); + if (shouldTransformPrivateElementsOrClassStaticBlocks && isPrivateIdentifierPropertyAccessExpression(operand)) { let info: PrivateIdentifierInfo | undefined; - if (info = accessPrivateIdentifier(node.operand.name)) { - const receiver = visitNode(node.operand.expression, visitor, isExpression); + if (info = accessPrivateIdentifier(operand.name)) { + const receiver = visitNode(operand.expression, visitor, isExpression); const { readExpression, initializeExpression } = createCopiableReceiverExpr(receiver); let expression: Expression = createPrivateIdentifierAccess(info, readExpression); @@ -601,7 +602,7 @@ namespace ts { } } else if (shouldTransformSuperInStaticInitializers && - isSuperProperty(node.operand) && + isSuperProperty(operand) && currentStaticPropertyDeclarationOrStaticBlock && currentClassLexicalEnvironment) { // converts `++super.a` into `(Reflect.set(_baseTemp, "a", (_a = Reflect.get(_baseTemp, "a", _classTemp), _b = ++_a), _classTemp), _b)` @@ -614,31 +615,31 @@ namespace ts { // converts `super[f()]--` into `(Reflect.set(_baseTemp, _a = f(), (_b = Reflect.get(_baseTemp, _a, _classTemp), _c = _b--), _classTemp), _c)` const { classConstructor, superClassReference, facts } = currentClassLexicalEnvironment; if (facts & ClassFacts.ClassWasDecorated) { - const operand = visitInvalidSuperProperty(node.operand); + const expression = visitInvalidSuperProperty(operand); return isPrefixUnaryExpression(node) ? - factory.updatePrefixUnaryExpression(node, operand) : - factory.updatePostfixUnaryExpression(node, operand); + factory.updatePrefixUnaryExpression(node, expression) : + factory.updatePostfixUnaryExpression(node, expression); } if (classConstructor && superClassReference) { let setterName: Expression | undefined; let getterName: Expression | undefined; - if (isPropertyAccessExpression(node.operand)) { - if (isIdentifier(node.operand.name)) { - getterName = setterName = factory.createStringLiteralFromNode(node.operand.name); + if (isPropertyAccessExpression(operand)) { + if (isIdentifier(operand.name)) { + getterName = setterName = factory.createStringLiteralFromNode(operand.name); } } else { - if (isSimpleInlineableExpression(node.operand.argumentExpression)) { - getterName = setterName = node.operand.argumentExpression; + if (isSimpleInlineableExpression(operand.argumentExpression)) { + getterName = setterName = operand.argumentExpression; } else { getterName = factory.createTempVariable(hoistVariableDeclaration); - setterName = factory.createAssignment(getterName, visitNode(node.operand.argumentExpression, visitor, isExpression)); + setterName = factory.createAssignment(getterName, visitNode(operand.argumentExpression, visitor, isExpression)); } } if (setterName && getterName) { let expression: Expression = factory.createReflectGetCall(superClassReference, getterName, classConstructor); - setTextRange(expression, node.operand); + setTextRange(expression, operand); const temp = valueIsDiscarded ? undefined : factory.createTempVariable(hoistVariableDeclaration); expression = expandPreOrPostfixIncrementOrDecrementExpression(factory, node, expression, hoistVariableDeclaration, temp); diff --git a/src/compiler/transformers/declarations.ts b/src/compiler/transformers/declarations.ts index 30596d5dae8..d64c14b2e0b 100644 --- a/src/compiler/transformers/declarations.ts +++ b/src/compiler/transformers/declarations.ts @@ -1217,14 +1217,18 @@ namespace ts { const previousNeedsDeclare = needsDeclare; switch (input.kind) { - case SyntaxKind.TypeAliasDeclaration: // Type aliases get `declare`d if need be (for legacy support), but that's all - return cleanup(factory.updateTypeAliasDeclaration( + case SyntaxKind.TypeAliasDeclaration: { + needsDeclare = false; + const clean = cleanup(factory.updateTypeAliasDeclaration( input, ensureModifiers(input), input.name, visitNodes(input.typeParameters, visitDeclarationSubtree, isTypeParameterDeclaration), visitNode(input.type, visitDeclarationSubtree, isTypeNode) )); + needsDeclare = previousNeedsDeclare; + return clean; + } case SyntaxKind.InterfaceDeclaration: { return cleanup(factory.updateInterfaceDeclaration( input, diff --git a/src/compiler/transformers/legacyDecorators.ts b/src/compiler/transformers/legacyDecorators.ts index 43a5b1f7a05..37889e91c00 100644 --- a/src/compiler/transformers/legacyDecorators.ts +++ b/src/compiler/transformers/legacyDecorators.ts @@ -68,52 +68,88 @@ namespace ts { function visitClassDeclaration(node: ClassDeclaration): VisitResult { if (!(classOrConstructorParameterIsDecorated(node) || childIsDecorated(node))) return visitEachChild(node, visitor, context); - const classStatement = hasDecorators(node) ? - createClassDeclarationHeadWithDecorators(node, node.name) : - createClassDeclarationHeadWithoutDecorators(node, node.name); - - const statements: Statement[] = [classStatement]; - - // Write any decorators of the node. - addClassElementDecorationStatements(statements, node, /*isStatic*/ false); - addClassElementDecorationStatements(statements, node, /*isStatic*/ true); - addConstructorDecorationStatement(statements, node); + const statements = hasDecorators(node) ? + transformClassDeclarationWithClassDecorators(node, node.name) : + transformClassDeclarationWithoutClassDecorators(node, node.name); if (statements.length > 1) { // Add a DeclarationMarker as a marker for the end of the declaration statements.push(factory.createEndOfDeclarationMarker(node)); - setEmitFlags(classStatement, getEmitFlags(classStatement) | EmitFlags.HasEndOfDeclarationMarker); + setEmitFlags(statements[0], getEmitFlags(statements[0]) | EmitFlags.HasEndOfDeclarationMarker); } return singleOrMany(statements); } + function decoratorContainsPrivateIdentifierInExpression(decorator: Decorator) { + return !!(decorator.transformFlags & TransformFlags.ContainsPrivateIdentifierInExpression); + } + + function parameterDecoratorsContainPrivateIdentifierInExpression(parameterDecorators: readonly Decorator[] | undefined) { + return some(parameterDecorators, decoratorContainsPrivateIdentifierInExpression); + } + + function hasClassElementWithDecoratorContainingPrivateIdentifierInExpression(node: ClassDeclaration) { + for (const member of node.members) { + if (!canHaveDecorators(member)) continue; + const allDecorators = getAllDecoratorsOfClassElement(member, node); + if (some(allDecorators?.decorators, decoratorContainsPrivateIdentifierInExpression)) return true; + if (some(allDecorators?.parameters, parameterDecoratorsContainPrivateIdentifierInExpression)) return true; + } + return false; + } + + function transformDecoratorsOfClassElements(node: ClassDeclaration, members: NodeArray) { + let decorationStatements: Statement[] | undefined = []; + addClassElementDecorationStatements(decorationStatements, node, /*isStatic*/ false); + addClassElementDecorationStatements(decorationStatements, node, /*isStatic*/ true); + if (hasClassElementWithDecoratorContainingPrivateIdentifierInExpression(node)) { + members = setTextRange(factory.createNodeArray([ + ...members, + factory.createClassStaticBlockDeclaration( + factory.createBlock(decorationStatements, /*multiLine*/ true) + ) + ]), members); + decorationStatements = undefined; + } + return { decorationStatements, members }; + } + /** * Transforms a non-decorated class declaration. * * @param node A ClassDeclaration node. * @param name The name of the class. */ - function createClassDeclarationHeadWithoutDecorators(node: ClassDeclaration, name: Identifier | undefined) { + function transformClassDeclarationWithoutClassDecorators(node: ClassDeclaration, name: Identifier | undefined) { // ${modifiers} class ${name} ${heritageClauses} { // ${members} // } - return factory.updateClassDeclaration( + const modifiers = visitNodes(node.modifiers, modifierVisitor, isModifier); + const heritageClauses = visitNodes(node.heritageClauses, visitor, isHeritageClause); + let members = visitNodes(node.members, visitor, isClassElement); + + let decorationStatements: Statement[] | undefined = []; + ({ members, decorationStatements } = transformDecoratorsOfClassElements(node, members)); + + const updated = factory.updateClassDeclaration( node, - visitNodes(node.modifiers, modifierVisitor, isModifier), + modifiers, name, /*typeParameters*/ undefined, - visitNodes(node.heritageClauses, visitor, isHeritageClause), - visitNodes(node.members, visitor, isClassElement) + heritageClauses, + members ); + + return addRange([updated], decorationStatements); } /** * Transforms a decorated class declaration and appends the resulting statements. If * the class requires an alias to avoid issues with double-binding, the alias is returned. */ - function createClassDeclarationHeadWithDecorators(node: ClassDeclaration, name: Identifier | undefined) { + function transformClassDeclarationWithClassDecorators(node: ClassDeclaration, name: Identifier | undefined) { // When we emit an ES6 class that has a class decorator, we must tailor the // emit to certain specific cases. // @@ -213,8 +249,18 @@ namespace ts { // ${members} // } const heritageClauses = visitNodes(node.heritageClauses, visitor, isHeritageClause); - const members = visitNodes(node.members, visitor, isClassElement); - const classExpression = factory.createClassExpression(/*modifiers*/ undefined, name, /*typeParameters*/ undefined, heritageClauses, members); + let members = visitNodes(node.members, visitor, isClassElement); + + let decorationStatements: Statement[] | undefined = []; + ({ members, decorationStatements } = transformDecoratorsOfClassElements(node, members)); + + const classExpression = factory.createClassExpression( + /*modifiers*/ undefined, + name, + /*typeParameters*/ undefined, + heritageClauses, + members); + setOriginalNode(classExpression, node); setTextRange(classExpression, location); @@ -234,7 +280,11 @@ namespace ts { setOriginalNode(statement, node); setTextRange(statement, location); setCommentRange(statement, node); - return statement; + + const statements: Statement[] = [statement]; + addRange(statements, decorationStatements); + addConstructorDecorationStatement(statements, node); + return statements; } function visitClassExpression(node: ClassExpression) { diff --git a/src/compiler/transformers/module/system.ts b/src/compiler/transformers/module/system.ts index 869c1c18d72..d541c3d3ad2 100644 --- a/src/compiler/transformers/module/system.ts +++ b/src/compiler/transformers/module/system.ts @@ -466,6 +466,20 @@ namespace ts { factory.createAssignment(importVariableName, parameterName) ) ); + if (hasSyntacticModifier(entry, ModifierFlags.Export)) { + statements.push( + factory.createExpressionStatement( + factory.createCallExpression( + exportFunction, + /*typeArguments*/ undefined, + [ + factory.createStringLiteral(idText(importVariableName)), + parameterName, + ] + ) + ) + ); + } break; case SyntaxKind.ExportDeclaration: diff --git a/src/compiler/transformers/ts.ts b/src/compiler/transformers/ts.ts index 52242ccba45..61b982d7f29 100644 --- a/src/compiler/transformers/ts.ts +++ b/src/compiler/transformers/ts.ts @@ -1113,7 +1113,8 @@ namespace ts { } // Add remaining statements from the body, skipping the super() call if it was found and any (already added) prologue statements - addRange(statements, visitNodes(body.statements, visitor, isStatement, superStatementIndex + 1 + prologueStatementCount)); + const start = superStatementIndex >= 0 ? superStatementIndex + 1 : prologueStatementCount; + addRange(statements, visitNodes(body.statements, visitor, isStatement, start)); // End the lexical environment. statements = factory.mergeLexicalEnvironment(statements, endLexicalEnvironment()); diff --git a/src/compiler/tsbuild.ts b/src/compiler/tsbuild.ts index 570e73014b8..691bbc6547b 100644 --- a/src/compiler/tsbuild.ts +++ b/src/compiler/tsbuild.ts @@ -16,6 +16,7 @@ namespace ts { */ OutOfDateWithPrepend, OutputMissing, + ErrorReadingFile, OutOfDateWithSelf, OutOfDateWithUpstream, OutOfDateBuildInfo, @@ -37,6 +38,7 @@ namespace ts { | Status.UpToDate | Status.OutOfDateWithPrepend | Status.OutputMissing + | Status.ErrorReadingFile | Status.OutOfDateWithSelf | Status.OutOfDateWithUpstream | Status.OutOfDateBuildInfo @@ -72,7 +74,6 @@ namespace ts { type: UpToDateStatusType.UpToDate | UpToDateStatusType.UpToDateWithUpstreamTypes | UpToDateStatusType.UpToDateWithInputFileText; newestInputFileTime?: Date; newestInputFileName?: string; - newestDeclarationFileContentChangedTime: Date | undefined; oldestOutputFileName: string; } @@ -96,6 +97,12 @@ namespace ts { missingOutputFileName: string; } + /** Error reading file */ + export interface ErrorReadingFile { + type: UpToDateStatusType.ErrorReadingFile; + fileName: string; + } + /** * One or more of the project's outputs is older than its newest input. */ diff --git a/src/compiler/tsbuildPublic.ts b/src/compiler/tsbuildPublic.ts index e7d4d8196e1..2b9d97f324e 100644 --- a/src/compiler/tsbuildPublic.ts +++ b/src/compiler/tsbuildPublic.ts @@ -224,6 +224,7 @@ namespace ts { path: Path; buildInfo: BuildInfo | false; modifiedTime: Date; + latestChangedDtsTime?: Date | false; } interface SolutionBuilderState extends WatchFactory { @@ -295,6 +296,7 @@ namespace ts { compilerHost.getParsedCommandLine = fileName => parseConfigFile(state, fileName as ResolvedConfigFileName, toResolvedConfigFilePath(state, fileName as ResolvedConfigFileName)); compilerHost.resolveModuleNames = maybeBind(host, host.resolveModuleNames); compilerHost.resolveTypeReferenceDirectives = maybeBind(host, host.resolveTypeReferenceDirectives); + compilerHost.getModuleResolutionCache = maybeBind(host, host.getModuleResolutionCache); const moduleResolutionCache = !compilerHost.resolveModuleNames ? createModuleResolutionCache(currentDirectory, getCanonicalFileName) : undefined; const typeReferenceDirectiveResolutionCache = !compilerHost.resolveTypeReferenceDirectives ? createTypeReferenceDirectiveResolutionCache(currentDirectory, getCanonicalFileName, /*options*/ undefined, moduleResolutionCache?.getPackageJsonInfoCache()) : undefined; if (!compilerHost.resolveModuleNames) { @@ -402,6 +404,7 @@ namespace ts { return isParsedCommandLine(value) ? value : undefined; } + performance.mark("SolutionBuilder::beforeConfigFileParsing"); let diagnostic: Diagnostic | undefined; const { parseConfigFileHost, baseCompilerOptions, baseWatchOptions, extendedConfigCache, host } = state; let parsed: ParsedCommandLine | undefined; @@ -415,6 +418,8 @@ namespace ts { parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = noop; } configFileCache.set(configFilePath, parsed || diagnostic!); + performance.mark("SolutionBuilder::afterConfigFileParsing"); + performance.measure("SolutionBuilder::Config file parsing", "SolutionBuilder::beforeConfigFileParsing", "SolutionBuilder::afterConfigFileParsing"); return parsed; } @@ -732,6 +737,7 @@ namespace ts { if (updateOutputFileStampsPending) { updateOutputTimestamps(state, config, projectPath); } + performance.mark("SolutionBuilder::Timestamps only updates"); return doneInvalidatedProject(state, projectPath); } }; @@ -845,6 +851,8 @@ namespace ts { function done(cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, customTransformers?: CustomTransformers) { executeSteps(BuildStep.Done, cancellationToken, writeFile, customTransformers); + if (kind === InvalidatedProjectKind.Build) performance.mark("SolutionBuilder::Projects built"); + else performance.mark("SolutionBuilder::Bundles updated"); return doneInvalidatedProject(state, projectPath); } @@ -980,8 +988,7 @@ namespace ts { // Actual Emit const { host, compilerHost } = state; - let resultFlags = BuildResultFlags.DeclarationOutputUnchanged; - const existingBuildInfo = state.buildInfoCache.get(projectPath)?.buildInfo || undefined; + const resultFlags = program.hasChangedEmitSignature?.() ? BuildResultFlags.None : BuildResultFlags.DeclarationOutputUnchanged; const emitterDiagnostics = createDiagnosticCollection(); const emittedOutputs = new Map(); const options = program.getCompilerOptions(); @@ -991,13 +998,7 @@ namespace ts { outputFiles.forEach(({ name, text, writeByteOrderMark, buildInfo }) => { const path = toPath(state, name); emittedOutputs.set(toPath(state, name), name); - if (buildInfo) { - setBuildInfo(state, buildInfo, projectPath, options); - // Buildinfo has information on when last dts change time - if (buildInfo.program?.dtsChangeTime !== existingBuildInfo?.program?.dtsChangeTime) { - resultFlags &= ~BuildResultFlags.DeclarationOutputUnchanged; - } - } + if (buildInfo) setBuildInfo(state, buildInfo, projectPath, options, resultFlags); writeFile(writeFileCallback ? { writeFile: writeFileCallback } : compilerHost, emitterDiagnostics, name, text, writeByteOrderMark); if (!isIncremental && state.watch) { (outputTimeStampMap ||= getOutputTimeStampMap(state, projectPath)!).set(path, now ||= getCurrentTime(state.host)); @@ -1017,7 +1018,7 @@ namespace ts { Debug.assertIsDefined(program); Debug.assert(step === BuildStep.EmitBuildInfo); const emitResult = program.emitBuildInfo((name, text, writeByteOrderMark, onError, sourceFiles, data) => { - if (data?.buildInfo) setBuildInfo(state, data.buildInfo, projectPath, program!.getCompilerOptions()); + if (data?.buildInfo) setBuildInfo(state, data.buildInfo, projectPath, program!.getCompilerOptions(), BuildResultFlags.DeclarationOutputUnchanged); if (writeFileCallback) writeFileCallback(name, text, writeByteOrderMark, onError, sourceFiles, data); else state.compilerHost.writeFile(name, text, writeByteOrderMark, onError, sourceFiles, data); }, cancellationToken); @@ -1064,7 +1065,6 @@ namespace ts { state.diagnostics.delete(projectPath); state.projectStatus.set(projectPath, { type: UpToDateStatusType.UpToDate, - newestDeclarationFileContentChangedTime: getDtsChangeTime(state, config.options, projectPath)!, oldestOutputFileName }); afterProgramDone(state, program, config); @@ -1116,14 +1116,14 @@ namespace ts { const emitterDiagnostics = createDiagnosticCollection(); const emittedOutputs = new Map(); let resultFlags = BuildResultFlags.DeclarationOutputUnchanged; - const existingBuildInfo = state.buildInfoCache.get(projectPath)!.buildInfo as BuildInfo; + const existingBuildInfo = state.buildInfoCache.get(projectPath)!.buildInfo || undefined; outputFiles.forEach(({ name, text, writeByteOrderMark, buildInfo }) => { emittedOutputs.set(toPath(state, name), name); if (buildInfo) { - setBuildInfo(state, buildInfo, projectPath, config.options); - if (buildInfo.program?.dtsChangeTime !== existingBuildInfo.program?.dtsChangeTime) { + if ((buildInfo.program as ProgramBundleEmitBuildInfo)?.outSignature !== (existingBuildInfo?.program as ProgramBundleEmitBuildInfo)?.outSignature) { resultFlags &= ~BuildResultFlags.DeclarationOutputUnchanged; } + setBuildInfo(state, buildInfo, projectPath, config.options, resultFlags); } writeFile(writeFileCallback ? { writeFile: writeFileCallback } : compilerHost, emitterDiagnostics, name, text, writeByteOrderMark); }); @@ -1365,7 +1365,7 @@ namespace ts { config: ParsedCommandLine ) { if (program) { - if (program && state.write) listFiles(program, state.write); + if (state.write) listFiles(program, state.write); if (state.host.afterProgramEmitAndDiagnostics) { state.host.afterProgramEmitAndDiagnostics(program); } @@ -1464,15 +1464,28 @@ namespace ts { return result; } - function setBuildInfo(state: SolutionBuilderState, buildInfo: BuildInfo, resolvedConfigPath: ResolvedConfigFilePath, options: CompilerOptions) { + function setBuildInfo( + state: SolutionBuilderState, + buildInfo: BuildInfo, + resolvedConfigPath: ResolvedConfigFilePath, + options: CompilerOptions, + resultFlags: BuildResultFlags, + ) { const buildInfoPath = getTsBuildInfoEmitOutputFilePath(options)!; const existing = getBuildInfoCacheEntry(state, buildInfoPath, resolvedConfigPath); + const modifiedTime = getCurrentTime(state.host); if (existing) { existing.buildInfo = buildInfo; - existing.modifiedTime = getCurrentTime(state.host); + existing.modifiedTime = modifiedTime; + if (!(resultFlags & BuildResultFlags.DeclarationOutputUnchanged)) existing.latestChangedDtsTime = modifiedTime; } else { - state.buildInfoCache.set(resolvedConfigPath, { path: toPath(state, buildInfoPath), buildInfo, modifiedTime: getCurrentTime(state.host) }); + state.buildInfoCache.set(resolvedConfigPath, { + path: toPath(state, buildInfoPath), + buildInfo, + modifiedTime, + latestChangedDtsTime: resultFlags & BuildResultFlags.DeclarationOutputUnchanged ? undefined : modifiedTime, + }); } } @@ -1489,8 +1502,7 @@ namespace ts { return existing.buildInfo || undefined; } const value = state.readFileWithCache(buildInfoPath); - const buildInfo = value ? ts.getBuildInfo(value) : undefined; - Debug.assert(modifiedTime || !buildInfo); + const buildInfo = value ? ts.getBuildInfo(buildInfoPath, value) : undefined; state.buildInfoCache.set(resolvedConfigPath, { path, buildInfo: buildInfo || false, modifiedTime: modifiedTime || missingFileModifiedTime }); return buildInfo; } @@ -1563,7 +1575,6 @@ namespace ts { let buildInfoTime: Date | undefined; let buildInfoProgram: ProgramBuildInfo | undefined; let buildInfoVersionMap: ESMap | undefined; - let newestDeclarationFileContentChangedTime; if (buildInfoPath) { const buildInfoCacheEntry = getBuildInfoCacheEntry(state, buildInfoPath, resolvedPath); buildInfoTime = buildInfoCacheEntry?.modifiedTime || ts.getModifiedTime(host, buildInfoPath); @@ -1581,7 +1592,14 @@ namespace ts { }; } - const buildInfo = Debug.checkDefined(getBuildInfo(state, buildInfoPath, resolvedPath, buildInfoTime)); + const buildInfo = getBuildInfo(state, buildInfoPath, resolvedPath, buildInfoTime); + if (!buildInfo) { + // Error reading buildInfo + return { + type: UpToDateStatusType.ErrorReadingFile, + fileName: buildInfoPath + }; + } if ((buildInfo.bundle || buildInfo.program) && buildInfo.version !== version) { return { type: UpToDateStatusType.TsVersionOutputOfDate, @@ -1603,8 +1621,6 @@ namespace ts { oldestOutputFileTime = buildInfoTime; oldestOutputFileName = buildInfoPath; - // Get the last dtsChange time from build info - newestDeclarationFileContentChangedTime = buildInfo.program?.dtsChangeTime ? new Date(buildInfo.program.dtsChangeTime) : undefined; } // Check input files @@ -1718,7 +1734,8 @@ namespace ts { // If the upstream project has only change .d.ts files, and we've built // *after* those files, then we're "psuedo up to date" and eligible for a fast rebuild - if (refStatus.newestDeclarationFileContentChangedTime && refStatus.newestDeclarationFileContentChangedTime <= oldestOutputFileTime) { + const newestDeclarationFileContentChangedTime = getLatestChangedDtsTime(state, resolvedConfig.options, resolvedRefPath); + if (newestDeclarationFileContentChangedTime && newestDeclarationFileContentChangedTime <= oldestOutputFileTime) { pseudoUpToDate = true; upstreamChangedProject = ref.path; continue; @@ -1764,7 +1781,6 @@ namespace ts { pseudoInputUpToDate ? UpToDateStatusType.UpToDateWithInputFileText : UpToDateStatusType.UpToDate, - newestDeclarationFileContentChangedTime, newestInputFileTime, newestInputFileName, oldestOutputFileName: oldestOutputFileName! @@ -1799,7 +1815,10 @@ namespace ts { return prior; } + performance.mark("SolutionBuilder::beforeUpToDateCheck"); const actual = getUpToDateStatusWorker(state, project, resolvedPath); + performance.mark("SolutionBuilder::afterUpToDateCheck"); + performance.measure("SolutionBuilder::Up-to-date check", "SolutionBuilder::beforeUpToDateCheck", "SolutionBuilder::afterUpToDateCheck"); state.projectStatus.set(resolvedPath, actual); return actual; } @@ -1854,11 +1873,15 @@ namespace ts { }); } - function getDtsChangeTime(state: SolutionBuilderState, options: CompilerOptions, resolvedConfigPath: ResolvedConfigFilePath) { + function getLatestChangedDtsTime(state: SolutionBuilderState, options: CompilerOptions, resolvedConfigPath: ResolvedConfigFilePath) { if (!options.composite) return undefined; - const buildInfoPath = getTsBuildInfoEmitOutputFilePath(options)!; - const buildInfo = getBuildInfo(state, buildInfoPath, resolvedConfigPath, /*modifiedTime*/ undefined); - return buildInfo?.program?.dtsChangeTime ? new Date(buildInfo.program.dtsChangeTime) : undefined; + const entry = Debug.checkDefined(state.buildInfoCache.get(resolvedConfigPath)); + if (entry.latestChangedDtsTime !== undefined) return entry.latestChangedDtsTime || undefined; + const latestChangedDtsTime = entry.buildInfo && entry.buildInfo.program && entry.buildInfo.program.latestChangedDtsFile ? + state.host.getModifiedTime(getNormalizedAbsolutePath(entry.buildInfo.program.latestChangedDtsFile, getDirectoryPath(entry.path))) : + undefined; + entry.latestChangedDtsTime = latestChangedDtsTime || false; + return latestChangedDtsTime; } function updateOutputTimestamps(state: SolutionBuilderState, proj: ParsedCommandLine, resolvedPath: ResolvedConfigFilePath) { @@ -1868,7 +1891,6 @@ namespace ts { updateOutputTimestampsWorker(state, proj, resolvedPath, Diagnostics.Updating_output_timestamps_of_project_0); state.projectStatus.set(resolvedPath, { type: UpToDateStatusType.UpToDate, - newestDeclarationFileContentChangedTime: getDtsChangeTime(state, proj.options, resolvedPath), oldestOutputFileName: getFirstProjectOutput(proj, !state.host.useCaseSensitiveFileNames()) }); } @@ -1945,6 +1967,14 @@ namespace ts { } function build(state: SolutionBuilderState, project?: string, cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, getCustomTransformers?: (project: string) => CustomTransformers, onlyReferences?: boolean): ExitStatus { + performance.mark("SolutionBuilder::beforeBuild"); + const result = buildWorker(state, project, cancellationToken, writeFile, getCustomTransformers, onlyReferences); + performance.mark("SolutionBuilder::afterBuild"); + performance.measure("SolutionBuilder::Build", "SolutionBuilder::beforeBuild", "SolutionBuilder::afterBuild"); + return result; + } + + function buildWorker(state: SolutionBuilderState, project: string | undefined, cancellationToken: CancellationToken | undefined, writeFile: WriteFileCallback | undefined, getCustomTransformers: ((project: string) => CustomTransformers) | undefined, onlyReferences: boolean | undefined): ExitStatus { const buildOrder = getBuildOrderFor(state, project, onlyReferences); if (!buildOrder) return ExitStatus.InvalidProject_OutputsSkipped; @@ -1973,7 +2003,15 @@ namespace ts { : ExitStatus.DiagnosticsPresent_OutputsSkipped; } - function clean(state: SolutionBuilderState, project?: string, onlyReferences?: boolean) { + function clean(state: SolutionBuilderState, project?: string, onlyReferences?: boolean): ExitStatus { + performance.mark("SolutionBuilder::beforeClean"); + const result = cleanWorker(state, project, onlyReferences); + performance.mark("SolutionBuilder::afterClean"); + performance.measure("SolutionBuilder::Clean", "SolutionBuilder::beforeClean", "SolutionBuilder::afterClean"); + return result; + } + + function cleanWorker(state: SolutionBuilderState, project: string | undefined, onlyReferences: boolean | undefined) { const buildOrder = getBuildOrderFor(state, project, onlyReferences); if (!buildOrder) return ExitStatus.InvalidProject_OutputsSkipped; @@ -2050,6 +2088,14 @@ namespace ts { } function buildNextInvalidatedProject(state: SolutionBuilderState, changeDetected: boolean) { + performance.mark("SolutionBuilder::beforeBuild"); + const buildOrder = buildNextInvalidatedProjectWorker(state, changeDetected); + performance.mark("SolutionBuilder::afterBuild"); + performance.measure("SolutionBuilder::Build", "SolutionBuilder::beforeBuild", "SolutionBuilder::afterBuild"); + if (buildOrder) reportErrorSummary(state, buildOrder); + } + + function buildNextInvalidatedProjectWorker(state: SolutionBuilderState, changeDetected: boolean) { state.timerToBuildInvalidatedProject = undefined; if (state.reportFileChangeDetected) { state.reportFileChangeDetected = false; @@ -2079,7 +2125,7 @@ namespace ts { } } disableCache(state); - reportErrorSummary(state, buildOrder); + return buildOrder; } function watchConfigFile(state: SolutionBuilderState, resolved: ResolvedConfigFileName, resolvedPath: ResolvedConfigFilePath, parsed: ParsedCommandLine | undefined) { @@ -2186,6 +2232,7 @@ namespace ts { function startWatching(state: SolutionBuilderState, buildOrder: AnyBuildOrder) { if (!state.watchAllProjectsPending) return; + performance.mark("SolutionBuilder::beforeWatcherCreation"); state.watchAllProjectsPending = false; for (const resolved of getBuildOrderFromAnyBuildOrder(buildOrder)) { const resolvedPath = toResolvedConfigFilePath(state, resolved); @@ -2204,6 +2251,8 @@ namespace ts { watchPackageJsonFiles(state, resolved, resolvedPath, cfg); } } + performance.mark("SolutionBuilder::afterWatcherCreation"); + performance.measure("SolutionBuilder::Watcher creation", "SolutionBuilder::beforeWatcherCreation", "SolutionBuilder::afterWatcherCreation"); } function stopWatching(state: SolutionBuilderState) { @@ -2337,6 +2386,13 @@ namespace ts { relName(state, configFileName), relName(state, status.missingOutputFileName) ); + case UpToDateStatusType.ErrorReadingFile: + return reportStatus( + state, + Diagnostics.Project_0_is_out_of_date_because_there_was_error_reading_file_1, + relName(state, configFileName), + relName(state, status.fileName) + ); case UpToDateStatusType.OutOfDateBuildInfo: return reportStatus( state, diff --git a/src/compiler/tsconfig.json b/src/compiler/tsconfig.json index fccbe06558a..cc5b4749835 100644 --- a/src/compiler/tsconfig.json +++ b/src/compiler/tsconfig.json @@ -6,7 +6,6 @@ }, "references": [ - { "path": "../shims" } ], "files": [ diff --git a/src/compiler/tsconfig.release.json b/src/compiler/tsconfig.release.json index 5ddd6d8e3a3..570c9fd8757 100644 --- a/src/compiler/tsconfig.release.json +++ b/src/compiler/tsconfig.release.json @@ -6,6 +6,5 @@ "preserveConstEnums": false }, "references": [ - { "path": "../shims" } ] } diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 1364aff8d5e..68af5c8860b 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -885,6 +885,144 @@ namespace ts { /* @internal */ jsDocCache?: readonly JSDocTag[]; // Cache for getJSDocTags } + /* @internal */ + export type HasChildren = + | Identifier + | QualifiedName + | ComputedPropertyName + | TypeParameterDeclaration + | ParameterDeclaration + | Decorator + | PropertySignature + | PropertyDeclaration + | MethodSignature + | MethodDeclaration + | ConstructorDeclaration + | GetAccessorDeclaration + | SetAccessorDeclaration + | ClassStaticBlockDeclaration + | CallSignatureDeclaration + | ConstructSignatureDeclaration + | IndexSignatureDeclaration + | TypePredicateNode + | TypeReferenceNode + | FunctionTypeNode + | ConstructorTypeNode + | TypeQueryNode + | TypeLiteralNode + | ArrayTypeNode + | TupleTypeNode + | OptionalTypeNode + | RestTypeNode + | UnionTypeNode + | IntersectionTypeNode + | ConditionalTypeNode + | InferTypeNode + | ImportTypeNode + | ImportTypeAssertionContainer + | NamedTupleMember + | ParenthesizedTypeNode + | TypeOperatorNode + | IndexedAccessTypeNode + | MappedTypeNode + | LiteralTypeNode + | TemplateLiteralTypeNode + | TemplateLiteralTypeSpan + | ObjectBindingPattern + | ArrayBindingPattern + | BindingElement + | ArrayLiteralExpression + | ObjectLiteralExpression + | PropertyAccessExpression + | ElementAccessExpression + | CallExpression + | NewExpression + | TaggedTemplateExpression + | TypeAssertion + | ParenthesizedExpression + | FunctionExpression + | ArrowFunction + | DeleteExpression + | TypeOfExpression + | VoidExpression + | AwaitExpression + | PrefixUnaryExpression + | PostfixUnaryExpression + | BinaryExpression + | ConditionalExpression + | TemplateExpression + | YieldExpression + | SpreadElement + | ClassExpression + | ExpressionWithTypeArguments + | AsExpression + | NonNullExpression + | MetaProperty + | TemplateSpan + | Block + | VariableStatement + | ExpressionStatement + | IfStatement + | DoStatement + | WhileStatement + | ForStatement + | ForInStatement + | ForOfStatement + | ContinueStatement + | BreakStatement + | ReturnStatement + | WithStatement + | SwitchStatement + | LabeledStatement + | ThrowStatement + | TryStatement + | VariableDeclaration + | VariableDeclarationList + | FunctionDeclaration + | ClassDeclaration + | InterfaceDeclaration + | TypeAliasDeclaration + | EnumDeclaration + | ModuleDeclaration + | ModuleBlock + | CaseBlock + | NamespaceExportDeclaration + | ImportEqualsDeclaration + | ImportDeclaration + | AssertClause + | AssertEntry + | ImportClause + | NamespaceImport + | NamespaceExport + | NamedImports + | ImportSpecifier + | ExportAssignment + | ExportDeclaration + | NamedExports + | ExportSpecifier + | ExternalModuleReference + | JsxElement + | JsxSelfClosingElement + | JsxOpeningElement + | JsxClosingElement + | JsxFragment + | JsxAttribute + | JsxAttributes + | JsxSpreadAttribute + | JsxExpression + | CaseClause + | DefaultClause + | HeritageClause + | CatchClause + | PropertyAssignment + | ShorthandPropertyAssignment + | SpreadAssignment + | EnumMember + | SourceFile + | PartiallyEmittedExpression + | CommaListExpression + ; + export type HasJSDoc = | ParameterDeclaration | CallSignatureDeclaration @@ -3791,8 +3929,16 @@ namespace ts { * It is _public_ so that (pre)transformers can set this field, * since it switches the builtin `node` module transform. Generally speaking, if unset, * the field is treated as though it is `ModuleKind.CommonJS`. + * + * Note that this field is only set by the module resolution process when + * `moduleResolution` is `Node16` or `NodeNext`, which is implied by the `module` setting + * of `Node16` or `NodeNext`, respectively, but may be overriden (eg, by a `moduleResolution` + * of `node`). If so, this field will be unset and source files will be considered to be + * CommonJS-output-format by the node module transformer and type checker, regardless of extension or context. */ impliedNodeFormat?: ModuleKind.ESNext | ModuleKind.CommonJS; + /*@internal*/ packageJsonLocations?: readonly string[]; + /*@internal*/ packageJsonScope?: PackageJsonInfo; /* @internal */ scriptKind: ScriptKind; @@ -4664,10 +4810,11 @@ namespace ts { UseAliasDefinedOutsideCurrentScope = 1 << 14, // Allow non-visible aliases UseSingleQuotesForStringLiteralType = 1 << 28, // Use single quotes for string literal type NoTypeReduction = 1 << 29, // Don't call getReducedType + OmitThisParameter = 1 << 25, // Error handling AllowThisInObjectLiteral = 1 << 15, - AllowQualifiedNameInPlaceOfIdentifier = 1 << 16, + AllowQualifiedNameInPlaceOfIdentifier = 1 << 16, /** @deprecated AllowQualifedNameInPlaceOfIdentifier. Use AllowQualifiedNameInPlaceOfIdentifier instead. */ AllowQualifedNameInPlaceOfIdentifier = AllowQualifiedNameInPlaceOfIdentifier, AllowAnonymousIdentifier = 1 << 17, @@ -4709,6 +4856,7 @@ namespace ts { UseAliasDefinedOutsideCurrentScope = 1 << 14, // For a `type T = ... ` defined in a different file, write `T` instead of its value, even though `T` can't be accessed in the current scope. UseSingleQuotesForStringLiteralType = 1 << 28, // Use single quotes for string literal type NoTypeReduction = 1 << 29, // Don't call getReducedType + OmitThisParameter = 1 << 25, // Error Handling AllowUniqueESSymbolType = 1 << 20, // This is bit 20 to align with the same bit in `NodeBuilderFlags` @@ -4728,7 +4876,7 @@ namespace ts { NodeBuilderFlagsMask = NoTruncation | WriteArrayAsGenericType | UseStructuralFallback | WriteTypeArgumentsOfSignature | UseFullyQualifiedType | SuppressAnyReturnType | MultilineObjectLiterals | WriteClassExpressionAsTypeLiteral | UseTypeOfFunction | OmitParameterModifiers | UseAliasDefinedOutsideCurrentScope | AllowUniqueESSymbolType | InTypeAlias | - UseSingleQuotesForStringLiteralType | NoTypeReduction, + UseSingleQuotesForStringLiteralType | NoTypeReduction | OmitThisParameter } export const enum SymbolFormatFlags { @@ -6025,6 +6173,7 @@ namespace ts { export const enum TypeMapKind { Simple, Array, + Deferred, Function, Composite, Merged, @@ -6034,7 +6183,8 @@ namespace ts { export type TypeMapper = | { kind: TypeMapKind.Simple, source: Type, target: Type } | { kind: TypeMapKind.Array, sources: readonly Type[], targets: readonly Type[] | undefined } - | { kind: TypeMapKind.Function, func: (t: Type) => Type } + | { kind: TypeMapKind.Deferred, sources: readonly Type[], targets: (() => Type)[] } + | { kind: TypeMapKind.Function, func: (t: Type) => Type, debugInfo?: () => string } | { kind: TypeMapKind.Composite | TypeMapKind.Merged, mapper1: TypeMapper, mapper2: TypeMapper }; export const enum InferencePriority { @@ -6981,7 +7131,6 @@ namespace ts { // For testing: /*@internal*/ disableUseFileVersionAsSignature?: boolean; /*@internal*/ storeFilesChangingSignatureDuringEmit?: boolean; - /*@internal*/ now?(): Date; } /** true if --out otherwise source file name */ @@ -7032,10 +7181,9 @@ namespace ts { ContainsPossibleTopLevelAwait = 1 << 26, ContainsLexicalSuper = 1 << 27, ContainsUpdateExpressionForIdentifier = 1 << 28, - // Please leave this as 1 << 29. - // It is the maximum bit we can set before we outgrow the size of a v8 small integer (SMI) on an x86 system. - // It is a good reminder of how much room we have left - HasComputedFlags = 1 << 29, // Transform flags have been computed. + ContainsPrivateIdentifierInExpression = 1 << 29, + + HasComputedFlags = 1 << 31, // Transform flags have been computed. // Assertions // - Bitmasks that are used to assert facts about the syntax of a node and its subtree. @@ -7337,7 +7485,7 @@ namespace ts { parenthesizeBranchOfConditionalExpression(branch: Expression): Expression; parenthesizeExpressionOfExportDefault(expression: Expression): Expression; parenthesizeExpressionOfNew(expression: Expression): LeftHandSideExpression; - parenthesizeLeftSideOfAccess(expression: Expression): LeftHandSideExpression; + parenthesizeLeftSideOfAccess(expression: Expression, optionalChain?: boolean): LeftHandSideExpression; parenthesizeOperandOfPostfixUnary(operand: Expression): LeftHandSideExpression; parenthesizeOperandOfPrefixUnary(operand: Expression): UnaryExpression; parenthesizeExpressionsOfCommaDelimitedList(elements: readonly Expression[]): NodeArray; diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 0ac57b26fee..cc911b946d4 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -162,7 +162,7 @@ namespace ts { return sourceFile && sourceFile.resolvedModules && sourceFile.resolvedModules.get(moduleNameText, mode); } - export function setResolvedModule(sourceFile: SourceFile, moduleNameText: string, resolvedModule: ResolvedModuleFull, mode: ModuleKind.CommonJS | ModuleKind.ESNext | undefined): void { + export function setResolvedModule(sourceFile: SourceFile, moduleNameText: string, resolvedModule: ResolvedModuleFull | undefined, mode: ModuleKind.CommonJS | ModuleKind.ESNext | undefined): void { if (!sourceFile.resolvedModules) { sourceFile.resolvedModules = createModeAwareCache(); } @@ -3944,7 +3944,7 @@ namespace ts { diagnostics = nonFileDiagnostics; } - insertSorted(diagnostics, diagnostic, compareDiagnostics); + insertSorted(diagnostics, diagnostic, compareDiagnosticsSkipRelatedInformation); } function getGlobalDiagnostics(): Diagnostic[] { @@ -5360,20 +5360,16 @@ namespace ts { return getStringFromExpandedCharCodes(expandedCharCodes); } + export function readJsonOrUndefined(path: string, hostOrText: { readFile(fileName: string): string | undefined } | string): object | undefined { + const jsonText = isString(hostOrText) ? hostOrText : hostOrText.readFile(path); + if (!jsonText) return undefined; + // gracefully handle if readFile fails or returns not JSON + const result = parseConfigFileTextToJson(path, jsonText); + return !result.error ? result.config : undefined; + } + export function readJson(path: string, host: { readFile(fileName: string): string | undefined }): object { - try { - const jsonText = host.readFile(path); - if (!jsonText) return {}; - const result = parseConfigFileTextToJson(path, jsonText); - if (result.error) { - return {}; - } - return result.config; - } - catch (e) { - // gracefully handle if readFile fails or returns not JSON - return {}; - } + return readJsonOrUndefined(path, host) || {}; } export function directoryProbablyExists(directoryName: string, host: { directoryExists?: (directoryName: string) => boolean }): boolean { @@ -5565,7 +5561,8 @@ namespace ts { export function getDeclarationModifierFlagsFromSymbol(s: Symbol, isWrite = false): ModifierFlags { if (s.valueDeclaration) { - const declaration = (isWrite && s.declarations && find(s.declarations, d => d.kind === SyntaxKind.SetAccessor)) || s.valueDeclaration; + const declaration = (isWrite && s.declarations && find(s.declarations, isSetAccessorDeclaration)) + || (s.flags & SymbolFlags.GetAccessor && find(s.declarations, isGetAccessorDeclaration)) || s.valueDeclaration; const flags = getCombinedModifierFlags(declaration); return s.parent && s.parent.flags & SymbolFlags.Class ? flags : flags & ~ModifierFlags.AccessibilityModifier; } @@ -6319,7 +6316,7 @@ namespace ts { // Excludes declaration files - they still require an explicit `export {}` or the like // for back compat purposes. The only non-declaration files _not_ forced to be a module are `.js` files // that aren't esm-mode (meaning not in a `type: module` scope). - return (file.impliedNodeFormat === ModuleKind.ESNext || (fileExtensionIsOneOf(file.fileName, [Extension.Cjs, Extension.Cts]))) && !file.isDeclarationFile ? true : undefined; + return (file.impliedNodeFormat === ModuleKind.ESNext || (fileExtensionIsOneOf(file.fileName, [Extension.Cjs, Extension.Cts, Extension.Mjs, Extension.Mts]))) && !file.isDeclarationFile ? true : undefined; } export function getSetExternalModuleIndicator(options: CompilerOptions): (file: SourceFile) => void { @@ -6343,10 +6340,7 @@ namespace ts { if (options.jsx === JsxEmit.ReactJSX || options.jsx === JsxEmit.ReactJSXDev) { checks.push(isFileModuleFromUsingJSXTag); } - const moduleKind = getEmitModuleKind(options); - if (moduleKind === ModuleKind.Node16 || moduleKind === ModuleKind.NodeNext) { - checks.push(isFileForcedToBeModuleByFormat); - } + checks.push(isFileForcedToBeModuleByFormat); const combined = or(...checks); const callback = (file: SourceFile) => void (file.externalModuleIndicator = combined(file)); return callback; diff --git a/src/compiler/utilitiesPublic.ts b/src/compiler/utilitiesPublic.ts index f2f0c030840..229620a1191 100644 --- a/src/compiler/utilitiesPublic.ts +++ b/src/compiler/utilitiesPublic.ts @@ -932,6 +932,12 @@ namespace ts { /** * Gets the effective type parameters. If the node was parsed in a * JavaScript file, gets the type parameters from the `@template` tag from JSDoc. + * + * This does *not* return type parameters from a jsdoc reference to a generic type, eg + * + * type Id = (x: T) => T + * /** @type {Id} / + * function id(x) { return x } */ export function getEffectiveTypeParameterDeclarations(node: DeclarationWithTypeParameters): readonly TypeParameterDeclaration[] { if (isJSDocSignature(node)) { diff --git a/src/compiler/visitorPublic.ts b/src/compiler/visitorPublic.ts index 619348685ef..2541b488bfd 100644 --- a/src/compiler/visitorPublic.ts +++ b/src/compiler/visitorPublic.ts @@ -343,9 +343,12 @@ namespace ts { /** * Visits an iteration body, adding any block-scoped variables required by the transformation. */ - export function visitIterationBody(body: Statement, visitor: Visitor, context: TransformationContext): Statement { + export function visitIterationBody(body: Statement, visitor: Visitor, context: TransformationContext): Statement; + /* @internal */ + export function visitIterationBody(body: Statement, visitor: Visitor, context: TransformationContext, nodeVisitor?: NodeVisitor): Statement; // eslint-disable-line @typescript-eslint/unified-signatures + export function visitIterationBody(body: Statement, visitor: Visitor, context: TransformationContext, nodeVisitor: NodeVisitor = visitNode): Statement { context.startBlockScope(); - const updated = visitNode(body, visitor, isStatement, context.factory.liftToBlock); + const updated = nodeVisitor(body, visitor, isStatement, context.factory.liftToBlock); const declarations = context.endBlockScope(); if (some(declarations)) { if (isBlock(updated)) { @@ -378,929 +381,926 @@ namespace ts { export function visitEachChild(node: T | undefined, visitor: Visitor, context: TransformationContext, nodesVisitor?: typeof visitNodes, tokenVisitor?: Visitor): T | undefined; /* @internal */ export function visitEachChild(node: T | undefined, visitor: Visitor, context: TransformationContext, nodesVisitor?: NodesVisitor, tokenVisitor?: Visitor, nodeVisitor?: NodeVisitor): T | undefined; // eslint-disable-line @typescript-eslint/unified-signatures - export function visitEachChild(node: Node | undefined, visitor: Visitor, context: TransformationContext, nodesVisitor = visitNodes, tokenVisitor?: Visitor, nodeVisitor: NodeVisitor = visitNode): Node | undefined { + export function visitEachChild(node: T | undefined, visitor: Visitor, context: TransformationContext, nodesVisitor = visitNodes, tokenVisitor?: Visitor, nodeVisitor: NodeVisitor = visitNode): T | undefined { if (node === undefined) { return undefined; } - const kind = node.kind; + const fn = (visitEachChildTable as Record | undefined>)[node.kind]; + return fn === undefined ? node : fn(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor); + } - // No need to visit nodes with no children. - if ((kind > SyntaxKind.FirstToken && kind <= SyntaxKind.LastToken) || kind === SyntaxKind.ThisType) { - return node; - } + type VisitEachChildFunction = (node: T, visitor: Visitor, context: TransformationContext, nodesVisitor: NodesVisitor, nodeVisitor: NodeVisitor, tokenVisitor: Visitor | undefined) => T; - const factory = context.factory; - switch (kind) { - // Names + // A type that correlates a `SyntaxKind` to a `VisitEachChildFunction`, for nodes in the `HasChildren` union. + // This looks something like: + // + // { + // [SyntaxKind.Identifier]: VisitEachChildFunction; + // [SyntaxKind.QualifiedName]: VisitEachChildFunction; + // [SyntaxKind.ComputedPropertyName]: VisitEachChildFunction; + // ... + // } + // + // This is then used as the expected type for `visitEachChildTable`. + type VisitEachChildTable = { [TNode in HasChildren as TNode["kind"]]: VisitEachChildFunction }; - case SyntaxKind.Identifier: - Debug.type(node); - return factory.updateIdentifier(node, - nodesVisitor(node.typeArguments, visitor, isTypeNodeOrTypeParameterDeclaration)); + // NOTE: Before you can add a new method to `visitEachChildTable`, you must first ensure the `Node` subtype you + // wish to add is defined in the `HasChildren` union in types.ts. + const visitEachChildTable: VisitEachChildTable = { + [SyntaxKind.Identifier]: function visitEachChildOfIdentifier(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateIdentifier(node, + nodesVisitor(node.typeArguments, visitor, isTypeNodeOrTypeParameterDeclaration)); + }, - case SyntaxKind.QualifiedName: - Debug.type(node); - return factory.updateQualifiedName(node, - nodeVisitor(node.left, visitor, isEntityName), - nodeVisitor(node.right, visitor, isIdentifier)); + [SyntaxKind.QualifiedName]: function visitEachChildOfQualifiedName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateQualifiedName(node, + nodeVisitor(node.left, visitor, isEntityName), + nodeVisitor(node.right, visitor, isIdentifier)); + }, - case SyntaxKind.ComputedPropertyName: - Debug.type(node); - return factory.updateComputedPropertyName(node, - nodeVisitor(node.expression, visitor, isExpression)); + [SyntaxKind.ComputedPropertyName]: function visitEachChildOfComputedPropertyName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateComputedPropertyName(node, + nodeVisitor(node.expression, visitor, isExpression)); + }, - // Signature elements - case SyntaxKind.TypeParameter: - Debug.type(node); - return factory.updateTypeParameterDeclaration(node, - nodesVisitor(node.modifiers, visitor, isModifier), - nodeVisitor(node.name, visitor, isIdentifier), - nodeVisitor(node.constraint, visitor, isTypeNode), - nodeVisitor(node.default, visitor, isTypeNode)); + // Signature elements + [SyntaxKind.TypeParameter]: function visitEachChildOfTypeParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTypeParameterDeclaration(node, + nodesVisitor(node.modifiers, visitor, isModifier), + nodeVisitor(node.name, visitor, isIdentifier), + nodeVisitor(node.constraint, visitor, isTypeNode), + nodeVisitor(node.default, visitor, isTypeNode)); + }, - case SyntaxKind.Parameter: - Debug.type(node); - return factory.updateParameterDeclaration(node, - nodesVisitor(node.modifiers, visitor, isModifierLike), - nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken), - nodeVisitor(node.name, visitor, isBindingName), - nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken), - nodeVisitor(node.type, visitor, isTypeNode), - nodeVisitor(node.initializer, visitor, isExpression)); + [SyntaxKind.Parameter]: function visitEachChildOfParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateParameterDeclaration(node, + nodesVisitor(node.modifiers, visitor, isModifierLike), + nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken), + nodeVisitor(node.name, visitor, isBindingName), + nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken), + nodeVisitor(node.type, visitor, isTypeNode), + nodeVisitor(node.initializer, visitor, isExpression)); + }, - case SyntaxKind.Decorator: - Debug.type(node); - return factory.updateDecorator(node, - nodeVisitor(node.expression, visitor, isExpression)); + [SyntaxKind.Decorator]: function visitEachChildOfDecorator(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateDecorator(node, + nodeVisitor(node.expression, visitor, isExpression)); + }, - // Type elements - case SyntaxKind.PropertySignature: - Debug.type(node); - return factory.updatePropertySignature(node, - nodesVisitor(node.modifiers, visitor, isModifier), - nodeVisitor(node.name, visitor, isPropertyName), - nodeVisitor(node.questionToken, tokenVisitor, isToken), - nodeVisitor(node.type, visitor, isTypeNode)); + // Type elements + [SyntaxKind.PropertySignature]: function visitEachChildOfPropertySignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updatePropertySignature(node, + nodesVisitor(node.modifiers, visitor, isModifier), + nodeVisitor(node.name, visitor, isPropertyName), + nodeVisitor(node.questionToken, tokenVisitor, isToken), + nodeVisitor(node.type, visitor, isTypeNode)); + }, - case SyntaxKind.PropertyDeclaration: - Debug.type(node); - return factory.updatePropertyDeclaration(node, - nodesVisitor(node.modifiers, visitor, isModifierLike), - nodeVisitor(node.name, visitor, isPropertyName), - // QuestionToken and ExclamationToken is uniqued in Property Declaration and the signature of 'updateProperty' is that too - nodeVisitor(node.questionToken || node.exclamationToken, tokenVisitor, isQuestionOrExclamationToken), - nodeVisitor(node.type, visitor, isTypeNode), - nodeVisitor(node.initializer, visitor, isExpression)); + [SyntaxKind.PropertyDeclaration]: function visitEachChildOfPropertyDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updatePropertyDeclaration(node, + nodesVisitor(node.modifiers, visitor, isModifierLike), + nodeVisitor(node.name, visitor, isPropertyName), + // QuestionToken and ExclamationToken are mutually exclusive in PropertyDeclaration + nodeVisitor(node.questionToken ?? node.exclamationToken, tokenVisitor, isQuestionOrExclamationToken), + nodeVisitor(node.type, visitor, isTypeNode), + nodeVisitor(node.initializer, visitor, isExpression)); + }, - case SyntaxKind.MethodSignature: - Debug.type(node); - return factory.updateMethodSignature(node, - nodesVisitor(node.modifiers, visitor, isModifier), - nodeVisitor(node.name, visitor, isPropertyName), - nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken), - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - nodesVisitor(node.parameters, visitor, isParameterDeclaration), - nodeVisitor(node.type, visitor, isTypeNode)); + [SyntaxKind.MethodSignature]: function visitEachChildOfMethodSignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateMethodSignature(node, + nodesVisitor(node.modifiers, visitor, isModifier), + nodeVisitor(node.name, visitor, isPropertyName), + nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken), + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + nodesVisitor(node.parameters, visitor, isParameterDeclaration), + nodeVisitor(node.type, visitor, isTypeNode)); + }, - case SyntaxKind.MethodDeclaration: - Debug.type(node); - return factory.updateMethodDeclaration(node, - nodesVisitor(node.modifiers, visitor, isModifierLike), - nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken), - nodeVisitor(node.name, visitor, isPropertyName), - nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken), - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - visitParameterList(node.parameters, visitor, context, nodesVisitor), - nodeVisitor(node.type, visitor, isTypeNode), - visitFunctionBody(node.body!, visitor, context, nodeVisitor)); + [SyntaxKind.MethodDeclaration]: function visitEachChildOfMethodDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateMethodDeclaration(node, + nodesVisitor(node.modifiers, visitor, isModifierLike), + nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken), + nodeVisitor(node.name, visitor, isPropertyName), + nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken), + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + visitParameterList(node.parameters, visitor, context, nodesVisitor), + nodeVisitor(node.type, visitor, isTypeNode), + visitFunctionBody(node.body!, visitor, context, nodeVisitor)); + }, - case SyntaxKind.Constructor: - Debug.type(node); - return factory.updateConstructorDeclaration(node, - nodesVisitor(node.modifiers, visitor, isModifier), - visitParameterList(node.parameters, visitor, context, nodesVisitor), - visitFunctionBody(node.body!, visitor, context, nodeVisitor)); + [SyntaxKind.Constructor]: function visitEachChildOfConstructorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateConstructorDeclaration(node, + nodesVisitor(node.modifiers, visitor, isModifier), + visitParameterList(node.parameters, visitor, context, nodesVisitor), + visitFunctionBody(node.body!, visitor, context, nodeVisitor)); + }, - case SyntaxKind.GetAccessor: - Debug.type(node); - return factory.updateGetAccessorDeclaration(node, - nodesVisitor(node.modifiers, visitor, isModifierLike), - nodeVisitor(node.name, visitor, isPropertyName), - visitParameterList(node.parameters, visitor, context, nodesVisitor), - nodeVisitor(node.type, visitor, isTypeNode), - visitFunctionBody(node.body!, visitor, context, nodeVisitor)); + [SyntaxKind.GetAccessor]: function visitEachChildOfGetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateGetAccessorDeclaration(node, + nodesVisitor(node.modifiers, visitor, isModifierLike), + nodeVisitor(node.name, visitor, isPropertyName), + visitParameterList(node.parameters, visitor, context, nodesVisitor), + nodeVisitor(node.type, visitor, isTypeNode), + visitFunctionBody(node.body!, visitor, context, nodeVisitor)); + }, - case SyntaxKind.SetAccessor: - Debug.type(node); - return factory.updateSetAccessorDeclaration(node, - nodesVisitor(node.modifiers, visitor, isModifierLike), - nodeVisitor(node.name, visitor, isPropertyName), - visitParameterList(node.parameters, visitor, context, nodesVisitor), - visitFunctionBody(node.body!, visitor, context, nodeVisitor)); + [SyntaxKind.SetAccessor]: function visitEachChildOfSetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateSetAccessorDeclaration(node, + nodesVisitor(node.modifiers, visitor, isModifierLike), + nodeVisitor(node.name, visitor, isPropertyName), + visitParameterList(node.parameters, visitor, context, nodesVisitor), + visitFunctionBody(node.body!, visitor, context, nodeVisitor)); + }, - case SyntaxKind.ClassStaticBlockDeclaration: - Debug.type(node); - context.startLexicalEnvironment(); - context.suspendLexicalEnvironment(); - return factory.updateClassStaticBlockDeclaration(node, - visitFunctionBody(node.body, visitor, context, nodeVisitor)); + [SyntaxKind.ClassStaticBlockDeclaration]: function visitEachChildOfClassStaticBlockDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + context.startLexicalEnvironment(); + context.suspendLexicalEnvironment(); + return context.factory.updateClassStaticBlockDeclaration(node, + visitFunctionBody(node.body, visitor, context, nodeVisitor)); + }, - case SyntaxKind.CallSignature: - Debug.type(node); - return factory.updateCallSignature(node, - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - nodesVisitor(node.parameters, visitor, isParameterDeclaration), - nodeVisitor(node.type, visitor, isTypeNode)); + [SyntaxKind.CallSignature]: function visitEachChildOfCallSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateCallSignature(node, + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + nodesVisitor(node.parameters, visitor, isParameterDeclaration), + nodeVisitor(node.type, visitor, isTypeNode)); + }, - case SyntaxKind.ConstructSignature: - Debug.type(node); - return factory.updateConstructSignature(node, - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - nodesVisitor(node.parameters, visitor, isParameterDeclaration), - nodeVisitor(node.type, visitor, isTypeNode)); + [SyntaxKind.ConstructSignature]: function visitEachChildOfConstructSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateConstructSignature(node, + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + nodesVisitor(node.parameters, visitor, isParameterDeclaration), + nodeVisitor(node.type, visitor, isTypeNode)); + }, - case SyntaxKind.IndexSignature: - Debug.type(node); - return factory.updateIndexSignature(node, - nodesVisitor(node.modifiers, visitor, isModifier), - nodesVisitor(node.parameters, visitor, isParameterDeclaration), - nodeVisitor(node.type, visitor, isTypeNode)); + [SyntaxKind.IndexSignature]: function visitEachChildOfIndexSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateIndexSignature(node, + nodesVisitor(node.modifiers, visitor, isModifier), + nodesVisitor(node.parameters, visitor, isParameterDeclaration), + nodeVisitor(node.type, visitor, isTypeNode)); + }, - // Types - case SyntaxKind.TypePredicate: - Debug.type(node); - return factory.updateTypePredicateNode(node, - nodeVisitor(node.assertsModifier, visitor, isAssertsKeyword), - nodeVisitor(node.parameterName, visitor, isIdentifierOrThisTypeNode), - nodeVisitor(node.type, visitor, isTypeNode)); + // Types + [SyntaxKind.TypePredicate]: function visitEachChildOfTypePredicateNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTypePredicateNode(node, + nodeVisitor(node.assertsModifier, visitor, isAssertsKeyword), + nodeVisitor(node.parameterName, visitor, isIdentifierOrThisTypeNode), + nodeVisitor(node.type, visitor, isTypeNode)); + }, - case SyntaxKind.TypeReference: - Debug.type(node); - return factory.updateTypeReferenceNode(node, - nodeVisitor(node.typeName, visitor, isEntityName), - nodesVisitor(node.typeArguments, visitor, isTypeNode)); + [SyntaxKind.TypeReference]: function visitEachChildOfTypeReferenceNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTypeReferenceNode(node, + nodeVisitor(node.typeName, visitor, isEntityName), + nodesVisitor(node.typeArguments, visitor, isTypeNode)); + }, - case SyntaxKind.FunctionType: - Debug.type(node); - return factory.updateFunctionTypeNode(node, - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - nodesVisitor(node.parameters, visitor, isParameterDeclaration), - nodeVisitor(node.type, visitor, isTypeNode)); + [SyntaxKind.FunctionType]: function visitEachChildOfFunctionTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateFunctionTypeNode(node, + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + nodesVisitor(node.parameters, visitor, isParameterDeclaration), + nodeVisitor(node.type, visitor, isTypeNode)); + }, - case SyntaxKind.ConstructorType: - Debug.type(node); - return factory.updateConstructorTypeNode(node, - nodesVisitor(node.modifiers, visitor, isModifier), - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - nodesVisitor(node.parameters, visitor, isParameterDeclaration), - nodeVisitor(node.type, visitor, isTypeNode)); + [SyntaxKind.ConstructorType]: function visitEachChildOfConstructorTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateConstructorTypeNode(node, + nodesVisitor(node.modifiers, visitor, isModifier), + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + nodesVisitor(node.parameters, visitor, isParameterDeclaration), + nodeVisitor(node.type, visitor, isTypeNode)); + }, - case SyntaxKind.TypeQuery: - Debug.type(node); - return factory.updateTypeQueryNode(node, - nodeVisitor(node.exprName, visitor, isEntityName), - nodesVisitor(node.typeArguments, visitor, isTypeNode)); + [SyntaxKind.TypeQuery]: function visitEachChildOfTypeQueryNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTypeQueryNode(node, + nodeVisitor(node.exprName, visitor, isEntityName), + nodesVisitor(node.typeArguments, visitor, isTypeNode)); + }, - case SyntaxKind.TypeLiteral: - Debug.type(node); - return factory.updateTypeLiteralNode(node, - nodesVisitor(node.members, visitor, isTypeElement)); + [SyntaxKind.TypeLiteral]: function visitEachChildOfTypeLiteralNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateTypeLiteralNode(node, + nodesVisitor(node.members, visitor, isTypeElement)); + }, - case SyntaxKind.ArrayType: - Debug.type(node); - return factory.updateArrayTypeNode(node, - nodeVisitor(node.elementType, visitor, isTypeNode)); + [SyntaxKind.ArrayType]: function visitEachChildOfArrayTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateArrayTypeNode(node, + nodeVisitor(node.elementType, visitor, isTypeNode)); + }, - case SyntaxKind.TupleType: - Debug.type(node); - return factory.updateTupleTypeNode(node, - nodesVisitor(node.elements, visitor, isTypeNode)); + [SyntaxKind.TupleType]: function visitEachChildOfTupleTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateTupleTypeNode(node, + nodesVisitor(node.elements, visitor, isTypeNode)); + }, - case SyntaxKind.OptionalType: - Debug.type(node); - return factory.updateOptionalTypeNode(node, - nodeVisitor(node.type, visitor, isTypeNode)); + [SyntaxKind.OptionalType]: function visitEachChildOfOptionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateOptionalTypeNode(node, + nodeVisitor(node.type, visitor, isTypeNode)); + }, - case SyntaxKind.RestType: - Debug.type(node); - return factory.updateRestTypeNode(node, - nodeVisitor(node.type, visitor, isTypeNode)); + [SyntaxKind.RestType]: function visitEachChildOfRestTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateRestTypeNode(node, + nodeVisitor(node.type, visitor, isTypeNode)); + }, - case SyntaxKind.UnionType: - Debug.type(node); - return factory.updateUnionTypeNode(node, - nodesVisitor(node.types, visitor, isTypeNode)); + [SyntaxKind.UnionType]: function visitEachChildOfUnionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateUnionTypeNode(node, + nodesVisitor(node.types, visitor, isTypeNode)); + }, - case SyntaxKind.IntersectionType: - Debug.type(node); - return factory.updateIntersectionTypeNode(node, - nodesVisitor(node.types, visitor, isTypeNode)); + [SyntaxKind.IntersectionType]: function visitEachChildOfIntersectionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateIntersectionTypeNode(node, + nodesVisitor(node.types, visitor, isTypeNode)); + }, - case SyntaxKind.ConditionalType: - Debug.type(node); - return factory.updateConditionalTypeNode(node, - nodeVisitor(node.checkType, visitor, isTypeNode), - nodeVisitor(node.extendsType, visitor, isTypeNode), - nodeVisitor(node.trueType, visitor, isTypeNode), - nodeVisitor(node.falseType, visitor, isTypeNode)); + [SyntaxKind.ConditionalType]: function visitEachChildOfConditionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateConditionalTypeNode(node, + nodeVisitor(node.checkType, visitor, isTypeNode), + nodeVisitor(node.extendsType, visitor, isTypeNode), + nodeVisitor(node.trueType, visitor, isTypeNode), + nodeVisitor(node.falseType, visitor, isTypeNode)); + }, - case SyntaxKind.InferType: - Debug.type(node); - return factory.updateInferTypeNode(node, - nodeVisitor(node.typeParameter, visitor, isTypeParameterDeclaration)); + [SyntaxKind.InferType]: function visitEachChildOfInferTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateInferTypeNode(node, + nodeVisitor(node.typeParameter, visitor, isTypeParameterDeclaration)); + }, - case SyntaxKind.ImportType: - Debug.type(node); - return factory.updateImportTypeNode(node, - nodeVisitor(node.argument, visitor, isTypeNode), - nodeVisitor(node.assertions, visitor, isNode), - nodeVisitor(node.qualifier, visitor, isEntityName), - visitNodes(node.typeArguments, visitor, isTypeNode), - node.isTypeOf - ); + [SyntaxKind.ImportType]: function visitEachChildOfImportTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateImportTypeNode(node, + nodeVisitor(node.argument, visitor, isTypeNode), + nodeVisitor(node.assertions, visitor, isImportTypeAssertionContainer), + nodeVisitor(node.qualifier, visitor, isEntityName), + nodesVisitor(node.typeArguments, visitor, isTypeNode), + node.isTypeOf + ); + }, - case SyntaxKind.ImportTypeAssertionContainer: - Debug.type(node); - return factory.updateImportTypeAssertionContainer(node, - nodeVisitor(node.assertClause, visitor, isNode), - node.multiLine - ); + [SyntaxKind.ImportTypeAssertionContainer]: function visitEachChildOfImportTypeAssertionContainer(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateImportTypeAssertionContainer(node, + nodeVisitor(node.assertClause, visitor, isAssertClause), + node.multiLine + ); + }, - case SyntaxKind.NamedTupleMember: - Debug.type(node); - return factory.updateNamedTupleMember(node, - visitNode(node.dotDotDotToken, visitor, isDotDotDotToken), - visitNode(node.name, visitor, isIdentifier), - visitNode(node.questionToken, visitor, isQuestionToken), - visitNode(node.type, visitor, isTypeNode), - ); + [SyntaxKind.NamedTupleMember]: function visitEachChildOfNamedTupleMember(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateNamedTupleMember(node, + nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken), + nodeVisitor(node.name, visitor, isIdentifier), + nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken), + nodeVisitor(node.type, visitor, isTypeNode), + ); + }, - case SyntaxKind.ParenthesizedType: - Debug.type(node); - return factory.updateParenthesizedType(node, - nodeVisitor(node.type, visitor, isTypeNode)); + [SyntaxKind.ParenthesizedType]: function visitEachChildOfParenthesizedType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateParenthesizedType(node, + nodeVisitor(node.type, visitor, isTypeNode)); + }, - case SyntaxKind.TypeOperator: - Debug.type(node); - return factory.updateTypeOperatorNode(node, - nodeVisitor(node.type, visitor, isTypeNode)); + [SyntaxKind.TypeOperator]: function visitEachChildOfTypeOperatorNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTypeOperatorNode(node, + nodeVisitor(node.type, visitor, isTypeNode)); + }, - case SyntaxKind.IndexedAccessType: - Debug.type(node); - return factory.updateIndexedAccessTypeNode(node, - nodeVisitor(node.objectType, visitor, isTypeNode), - nodeVisitor(node.indexType, visitor, isTypeNode)); + [SyntaxKind.IndexedAccessType]: function visitEachChildOfIndexedAccessType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateIndexedAccessTypeNode(node, + nodeVisitor(node.objectType, visitor, isTypeNode), + nodeVisitor(node.indexType, visitor, isTypeNode)); + }, - case SyntaxKind.MappedType: - Debug.type(node); - return factory.updateMappedTypeNode(node, - nodeVisitor(node.readonlyToken, tokenVisitor, isReadonlyKeywordOrPlusOrMinusToken), - nodeVisitor(node.typeParameter, visitor, isTypeParameterDeclaration), - nodeVisitor(node.nameType, visitor, isTypeNode), - nodeVisitor(node.questionToken, tokenVisitor, isQuestionOrPlusOrMinusToken), - nodeVisitor(node.type, visitor, isTypeNode), - nodesVisitor(node.members, visitor, isTypeElement)); + [SyntaxKind.MappedType]: function visitEachChildOfMappedType(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateMappedTypeNode(node, + nodeVisitor(node.readonlyToken, tokenVisitor, isReadonlyKeywordOrPlusOrMinusToken), + nodeVisitor(node.typeParameter, visitor, isTypeParameterDeclaration), + nodeVisitor(node.nameType, visitor, isTypeNode), + nodeVisitor(node.questionToken, tokenVisitor, isQuestionOrPlusOrMinusToken), + nodeVisitor(node.type, visitor, isTypeNode), + nodesVisitor(node.members, visitor, isTypeElement)); + }, - case SyntaxKind.LiteralType: - Debug.type(node); - return factory.updateLiteralTypeNode(node, - nodeVisitor(node.literal, visitor, isExpression)); + [SyntaxKind.LiteralType]: function visitEachChildOfLiteralTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateLiteralTypeNode(node, + nodeVisitor(node.literal, visitor, isExpression)); + }, - case SyntaxKind.TemplateLiteralType: - Debug.type(node); - return factory.updateTemplateLiteralType(node, - nodeVisitor(node.head, visitor, isTemplateHead), - nodesVisitor(node.templateSpans, visitor, isTemplateLiteralTypeSpan)); + [SyntaxKind.TemplateLiteralType]: function visitEachChildOfTemplateLiteralType(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTemplateLiteralType(node, + nodeVisitor(node.head, visitor, isTemplateHead), + nodesVisitor(node.templateSpans, visitor, isTemplateLiteralTypeSpan)); + }, - case SyntaxKind.TemplateLiteralTypeSpan: - Debug.type(node); - return factory.updateTemplateLiteralTypeSpan(node, - nodeVisitor(node.type, visitor, isTypeNode), - nodeVisitor(node.literal, visitor, isTemplateMiddleOrTemplateTail)); + [SyntaxKind.TemplateLiteralTypeSpan]: function visitEachChildOfTemplateLiteralTypeSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTemplateLiteralTypeSpan(node, + nodeVisitor(node.type, visitor, isTypeNode), + nodeVisitor(node.literal, visitor, isTemplateMiddleOrTemplateTail)); + }, - // Binding patterns - case SyntaxKind.ObjectBindingPattern: - Debug.type(node); - return factory.updateObjectBindingPattern(node, - nodesVisitor(node.elements, visitor, isBindingElement)); + // Binding patterns + [SyntaxKind.ObjectBindingPattern]: function visitEachChildOfObjectBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateObjectBindingPattern(node, + nodesVisitor(node.elements, visitor, isBindingElement)); + }, - case SyntaxKind.ArrayBindingPattern: - Debug.type(node); - return factory.updateArrayBindingPattern(node, - nodesVisitor(node.elements, visitor, isArrayBindingElement)); + [SyntaxKind.ArrayBindingPattern]: function visitEachChildOfArrayBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateArrayBindingPattern(node, + nodesVisitor(node.elements, visitor, isArrayBindingElement)); + }, - case SyntaxKind.BindingElement: - Debug.type(node); - return factory.updateBindingElement(node, - nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken), - nodeVisitor(node.propertyName, visitor, isPropertyName), - nodeVisitor(node.name, visitor, isBindingName), - nodeVisitor(node.initializer, visitor, isExpression)); + [SyntaxKind.BindingElement]: function visitEachChildOfBindingElement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateBindingElement(node, + nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken), + nodeVisitor(node.propertyName, visitor, isPropertyName), + nodeVisitor(node.name, visitor, isBindingName), + nodeVisitor(node.initializer, visitor, isExpression)); + }, - // Expression - case SyntaxKind.ArrayLiteralExpression: - Debug.type(node); - return factory.updateArrayLiteralExpression(node, - nodesVisitor(node.elements, visitor, isExpression)); + // Expression + [SyntaxKind.ArrayLiteralExpression]: function visitEachChildOfArrayLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateArrayLiteralExpression(node, + nodesVisitor(node.elements, visitor, isExpression)); + }, - case SyntaxKind.ObjectLiteralExpression: - Debug.type(node); - return factory.updateObjectLiteralExpression(node, - nodesVisitor(node.properties, visitor, isObjectLiteralElementLike)); + [SyntaxKind.ObjectLiteralExpression]: function visitEachChildOfObjectLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateObjectLiteralExpression(node, + nodesVisitor(node.properties, visitor, isObjectLiteralElementLike)); + }, - case SyntaxKind.PropertyAccessExpression: - if (node.flags & NodeFlags.OptionalChain) { - Debug.type(node); - return factory.updatePropertyAccessChain(node, - nodeVisitor(node.expression, visitor, isExpression), - nodeVisitor(node.questionDotToken, tokenVisitor, isQuestionDotToken), - nodeVisitor(node.name, visitor, isMemberName)); - } - Debug.type(node); - return factory.updatePropertyAccessExpression(node, + [SyntaxKind.PropertyAccessExpression]: function visitEachChildOfPropertyAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + return isPropertyAccessChain(node) ? + context.factory.updatePropertyAccessChain(node, + nodeVisitor(node.expression, visitor, isExpression), + nodeVisitor(node.questionDotToken, tokenVisitor, isQuestionDotToken), + nodeVisitor(node.name, visitor, isMemberName)) : + context.factory.updatePropertyAccessExpression(node, nodeVisitor(node.expression, visitor, isExpression), nodeVisitor(node.name, visitor, isMemberName)); + }, - case SyntaxKind.ElementAccessExpression: - if (node.flags & NodeFlags.OptionalChain) { - Debug.type(node); - return factory.updateElementAccessChain(node, - nodeVisitor(node.expression, visitor, isExpression), - nodeVisitor(node.questionDotToken, tokenVisitor, isQuestionDotToken), - nodeVisitor(node.argumentExpression, visitor, isExpression)); - } - Debug.type(node); - return factory.updateElementAccessExpression(node, + [SyntaxKind.ElementAccessExpression]: function visitEachChildOfElementAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + return isElementAccessChain(node) ? + context.factory.updateElementAccessChain(node, + nodeVisitor(node.expression, visitor, isExpression), + nodeVisitor(node.questionDotToken, tokenVisitor, isQuestionDotToken), + nodeVisitor(node.argumentExpression, visitor, isExpression)) : + context.factory.updateElementAccessExpression(node, nodeVisitor(node.expression, visitor, isExpression), nodeVisitor(node.argumentExpression, visitor, isExpression)); + }, - case SyntaxKind.CallExpression: - if (node.flags & NodeFlags.OptionalChain) { - Debug.type(node); - return factory.updateCallChain(node, - nodeVisitor(node.expression, visitor, isExpression), - nodeVisitor(node.questionDotToken, tokenVisitor, isQuestionDotToken), - nodesVisitor(node.typeArguments, visitor, isTypeNode), - nodesVisitor(node.arguments, visitor, isExpression)); - } - Debug.type(node); - return factory.updateCallExpression(node, + [SyntaxKind.CallExpression]: function visitEachChildOfCallExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + return isCallChain(node) ? + context.factory.updateCallChain(node, + nodeVisitor(node.expression, visitor, isExpression), + nodeVisitor(node.questionDotToken, tokenVisitor, isQuestionDotToken), + nodesVisitor(node.typeArguments, visitor, isTypeNode), + nodesVisitor(node.arguments, visitor, isExpression)) : + context.factory.updateCallExpression(node, nodeVisitor(node.expression, visitor, isExpression), nodesVisitor(node.typeArguments, visitor, isTypeNode), nodesVisitor(node.arguments, visitor, isExpression)); + }, - case SyntaxKind.NewExpression: - Debug.type(node); - return factory.updateNewExpression(node, - nodeVisitor(node.expression, visitor, isExpression), - nodesVisitor(node.typeArguments, visitor, isTypeNode), - nodesVisitor(node.arguments, visitor, isExpression)); + [SyntaxKind.NewExpression]: function visitEachChildOfNewExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateNewExpression(node, + nodeVisitor(node.expression, visitor, isExpression), + nodesVisitor(node.typeArguments, visitor, isTypeNode), + nodesVisitor(node.arguments, visitor, isExpression)); + }, - case SyntaxKind.TaggedTemplateExpression: - Debug.type(node); - return factory.updateTaggedTemplateExpression(node, - nodeVisitor(node.tag, visitor, isExpression), - visitNodes(node.typeArguments, visitor, isTypeNode), - nodeVisitor(node.template, visitor, isTemplateLiteral)); + [SyntaxKind.TaggedTemplateExpression]: function visitEachChildOfTaggedTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTaggedTemplateExpression(node, + nodeVisitor(node.tag, visitor, isExpression), + nodesVisitor(node.typeArguments, visitor, isTypeNode), + nodeVisitor(node.template, visitor, isTemplateLiteral)); + }, - case SyntaxKind.TypeAssertionExpression: - Debug.type(node); - return factory.updateTypeAssertion(node, - nodeVisitor(node.type, visitor, isTypeNode), + [SyntaxKind.TypeAssertionExpression]: function visitEachChildOfTypeAssertionExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTypeAssertion(node, + nodeVisitor(node.type, visitor, isTypeNode), + nodeVisitor(node.expression, visitor, isExpression)); + }, + + [SyntaxKind.ParenthesizedExpression]: function visitEachChildOfParenthesizedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateParenthesizedExpression(node, + nodeVisitor(node.expression, visitor, isExpression)); + }, + + [SyntaxKind.FunctionExpression]: function visitEachChildOfFunctionExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateFunctionExpression(node, + nodesVisitor(node.modifiers, visitor, isModifier), + nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken), + nodeVisitor(node.name, visitor, isIdentifier), + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + visitParameterList(node.parameters, visitor, context, nodesVisitor), + nodeVisitor(node.type, visitor, isTypeNode), + visitFunctionBody(node.body, visitor, context, nodeVisitor)); + }, + + [SyntaxKind.ArrowFunction]: function visitEachChildOfArrowFunction(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateArrowFunction(node, + nodesVisitor(node.modifiers, visitor, isModifier), + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + visitParameterList(node.parameters, visitor, context, nodesVisitor), + nodeVisitor(node.type, visitor, isTypeNode), + nodeVisitor(node.equalsGreaterThanToken, tokenVisitor, isEqualsGreaterThanToken), + visitFunctionBody(node.body, visitor, context, nodeVisitor)); + }, + + [SyntaxKind.DeleteExpression]: function visitEachChildOfDeleteExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateDeleteExpression(node, + nodeVisitor(node.expression, visitor, isExpression)); + }, + + [SyntaxKind.TypeOfExpression]: function visitEachChildOfTypeOfExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTypeOfExpression(node, + nodeVisitor(node.expression, visitor, isExpression)); + }, + + [SyntaxKind.VoidExpression]: function visitEachChildOfVoidExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateVoidExpression(node, + nodeVisitor(node.expression, visitor, isExpression)); + }, + + [SyntaxKind.AwaitExpression]: function visitEachChildOfAwaitExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateAwaitExpression(node, + nodeVisitor(node.expression, visitor, isExpression)); + }, + + [SyntaxKind.PrefixUnaryExpression]: function visitEachChildOfPrefixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updatePrefixUnaryExpression(node, + nodeVisitor(node.operand, visitor, isExpression)); + }, + + [SyntaxKind.PostfixUnaryExpression]: function visitEachChildOfPostfixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updatePostfixUnaryExpression(node, + nodeVisitor(node.operand, visitor, isExpression)); + }, + + [SyntaxKind.BinaryExpression]: function visitEachChildOfBinaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateBinaryExpression(node, + nodeVisitor(node.left, visitor, isExpression), + nodeVisitor(node.operatorToken, tokenVisitor, isBinaryOperatorToken), + nodeVisitor(node.right, visitor, isExpression)); + }, + + [SyntaxKind.ConditionalExpression]: function visitEachChildOfConditionalExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateConditionalExpression(node, + nodeVisitor(node.condition, visitor, isExpression), + nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken), + nodeVisitor(node.whenTrue, visitor, isExpression), + nodeVisitor(node.colonToken, tokenVisitor, isColonToken), + nodeVisitor(node.whenFalse, visitor, isExpression)); + }, + + [SyntaxKind.TemplateExpression]: function visitEachChildOfTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTemplateExpression(node, + nodeVisitor(node.head, visitor, isTemplateHead), + nodesVisitor(node.templateSpans, visitor, isTemplateSpan)); + }, + + [SyntaxKind.YieldExpression]: function visitEachChildOfYieldExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateYieldExpression(node, + nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken), + nodeVisitor(node.expression, visitor, isExpression)); + }, + + [SyntaxKind.SpreadElement]: function visitEachChildOfSpreadElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateSpreadElement(node, + nodeVisitor(node.expression, visitor, isExpression)); + }, + + [SyntaxKind.ClassExpression]: function visitEachChildOfClassExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateClassExpression(node, + nodesVisitor(node.modifiers, visitor, isModifierLike), + nodeVisitor(node.name, visitor, isIdentifier), + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + nodesVisitor(node.heritageClauses, visitor, isHeritageClause), + nodesVisitor(node.members, visitor, isClassElement)); + }, + + [SyntaxKind.ExpressionWithTypeArguments]: function visitEachChildOfExpressionWithTypeArguments(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateExpressionWithTypeArguments(node, + nodeVisitor(node.expression, visitor, isExpression), + nodesVisitor(node.typeArguments, visitor, isTypeNode)); + }, + + [SyntaxKind.AsExpression]: function visitEachChildOfAsExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateAsExpression(node, + nodeVisitor(node.expression, visitor, isExpression), + nodeVisitor(node.type, visitor, isTypeNode)); + }, + + [SyntaxKind.NonNullExpression]: function visitEachChildOfNonNullExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return isOptionalChain(node) ? + context.factory.updateNonNullChain(node, + nodeVisitor(node.expression, visitor, isExpression)) : + context.factory.updateNonNullExpression(node, nodeVisitor(node.expression, visitor, isExpression)); - - case SyntaxKind.ParenthesizedExpression: - Debug.type(node); - return factory.updateParenthesizedExpression(node, - nodeVisitor(node.expression, visitor, isExpression)); - - case SyntaxKind.FunctionExpression: - Debug.type(node); - return factory.updateFunctionExpression(node, - nodesVisitor(node.modifiers, visitor, isModifier), - nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken), - nodeVisitor(node.name, visitor, isIdentifier), - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - visitParameterList(node.parameters, visitor, context, nodesVisitor), - nodeVisitor(node.type, visitor, isTypeNode), - visitFunctionBody(node.body, visitor, context, nodeVisitor)); - - case SyntaxKind.ArrowFunction: - Debug.type(node); - return factory.updateArrowFunction(node, - nodesVisitor(node.modifiers, visitor, isModifier), - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - visitParameterList(node.parameters, visitor, context, nodesVisitor), - nodeVisitor(node.type, visitor, isTypeNode), - nodeVisitor(node.equalsGreaterThanToken, tokenVisitor, isEqualsGreaterThanToken), - visitFunctionBody(node.body, visitor, context, nodeVisitor)); - - case SyntaxKind.DeleteExpression: - Debug.type(node); - return factory.updateDeleteExpression(node, - nodeVisitor(node.expression, visitor, isExpression)); - - case SyntaxKind.TypeOfExpression: - Debug.type(node); - return factory.updateTypeOfExpression(node, - nodeVisitor(node.expression, visitor, isExpression)); - - case SyntaxKind.VoidExpression: - Debug.type(node); - return factory.updateVoidExpression(node, - nodeVisitor(node.expression, visitor, isExpression)); - - case SyntaxKind.AwaitExpression: - Debug.type(node); - return factory.updateAwaitExpression(node, - nodeVisitor(node.expression, visitor, isExpression)); - - case SyntaxKind.PrefixUnaryExpression: - Debug.type(node); - return factory.updatePrefixUnaryExpression(node, - nodeVisitor(node.operand, visitor, isExpression)); - - case SyntaxKind.PostfixUnaryExpression: - Debug.type(node); - return factory.updatePostfixUnaryExpression(node, - nodeVisitor(node.operand, visitor, isExpression)); - - case SyntaxKind.BinaryExpression: - Debug.type(node); - return factory.updateBinaryExpression(node, - nodeVisitor(node.left, visitor, isExpression), - nodeVisitor(node.operatorToken, tokenVisitor, isBinaryOperatorToken), - nodeVisitor(node.right, visitor, isExpression)); - - case SyntaxKind.ConditionalExpression: - Debug.type(node); - return factory.updateConditionalExpression(node, - nodeVisitor(node.condition, visitor, isExpression), - nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken), - nodeVisitor(node.whenTrue, visitor, isExpression), - nodeVisitor(node.colonToken, tokenVisitor, isColonToken), - nodeVisitor(node.whenFalse, visitor, isExpression)); - - case SyntaxKind.TemplateExpression: - Debug.type(node); - return factory.updateTemplateExpression(node, - nodeVisitor(node.head, visitor, isTemplateHead), - nodesVisitor(node.templateSpans, visitor, isTemplateSpan)); - - case SyntaxKind.YieldExpression: - Debug.type(node); - return factory.updateYieldExpression(node, - nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken), - nodeVisitor(node.expression, visitor, isExpression)); - - case SyntaxKind.SpreadElement: - Debug.type(node); - return factory.updateSpreadElement(node, - nodeVisitor(node.expression, visitor, isExpression)); - - case SyntaxKind.ClassExpression: - Debug.type(node); - return factory.updateClassExpression(node, - nodesVisitor(node.modifiers, visitor, isModifierLike), - nodeVisitor(node.name, visitor, isIdentifier), - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - nodesVisitor(node.heritageClauses, visitor, isHeritageClause), - nodesVisitor(node.members, visitor, isClassElement)); - - case SyntaxKind.ExpressionWithTypeArguments: - Debug.type(node); - return factory.updateExpressionWithTypeArguments(node, - nodeVisitor(node.expression, visitor, isExpression), - nodesVisitor(node.typeArguments, visitor, isTypeNode)); - - case SyntaxKind.AsExpression: - Debug.type(node); - return factory.updateAsExpression(node, - nodeVisitor(node.expression, visitor, isExpression), - nodeVisitor(node.type, visitor, isTypeNode)); - - case SyntaxKind.NonNullExpression: - if (node.flags & NodeFlags.OptionalChain) { - Debug.type(node); - return factory.updateNonNullChain(node, - nodeVisitor(node.expression, visitor, isExpression)); - } - Debug.type(node); - return factory.updateNonNullExpression(node, - nodeVisitor(node.expression, visitor, isExpression)); - - case SyntaxKind.MetaProperty: - Debug.type(node); - return factory.updateMetaProperty(node, - nodeVisitor(node.name, visitor, isIdentifier)); - - // Misc - case SyntaxKind.TemplateSpan: - Debug.type(node); - return factory.updateTemplateSpan(node, - nodeVisitor(node.expression, visitor, isExpression), - nodeVisitor(node.literal, visitor, isTemplateMiddleOrTemplateTail)); - - // Element - case SyntaxKind.Block: - Debug.type(node); - return factory.updateBlock(node, - nodesVisitor(node.statements, visitor, isStatement)); - - case SyntaxKind.VariableStatement: - Debug.type(node); - return factory.updateVariableStatement(node, - nodesVisitor(node.modifiers, visitor, isModifier), - nodeVisitor(node.declarationList, visitor, isVariableDeclarationList)); - - case SyntaxKind.ExpressionStatement: - Debug.type(node); - return factory.updateExpressionStatement(node, - nodeVisitor(node.expression, visitor, isExpression)); - - case SyntaxKind.IfStatement: - Debug.type(node); - return factory.updateIfStatement(node, - nodeVisitor(node.expression, visitor, isExpression), - nodeVisitor(node.thenStatement, visitor, isStatement, factory.liftToBlock), - nodeVisitor(node.elseStatement, visitor, isStatement, factory.liftToBlock)); - - case SyntaxKind.DoStatement: - Debug.type(node); - return factory.updateDoStatement(node, - visitIterationBody(node.statement, visitor, context), - nodeVisitor(node.expression, visitor, isExpression)); - - case SyntaxKind.WhileStatement: - Debug.type(node); - return factory.updateWhileStatement(node, - nodeVisitor(node.expression, visitor, isExpression), - visitIterationBody(node.statement, visitor, context)); - - case SyntaxKind.ForStatement: - Debug.type(node); - return factory.updateForStatement(node, - nodeVisitor(node.initializer, visitor, isForInitializer), - nodeVisitor(node.condition, visitor, isExpression), - nodeVisitor(node.incrementor, visitor, isExpression), - visitIterationBody(node.statement, visitor, context)); - - case SyntaxKind.ForInStatement: - Debug.type(node); - return factory.updateForInStatement(node, - nodeVisitor(node.initializer, visitor, isForInitializer), - nodeVisitor(node.expression, visitor, isExpression), - visitIterationBody(node.statement, visitor, context)); - - case SyntaxKind.ForOfStatement: - Debug.type(node); - return factory.updateForOfStatement(node, - nodeVisitor(node.awaitModifier, tokenVisitor, isAwaitKeyword), - nodeVisitor(node.initializer, visitor, isForInitializer), - nodeVisitor(node.expression, visitor, isExpression), - visitIterationBody(node.statement, visitor, context)); - - case SyntaxKind.ContinueStatement: - Debug.type(node); - return factory.updateContinueStatement(node, - nodeVisitor(node.label, visitor, isIdentifier)); - - case SyntaxKind.BreakStatement: - Debug.type(node); - return factory.updateBreakStatement(node, - nodeVisitor(node.label, visitor, isIdentifier)); - - case SyntaxKind.ReturnStatement: - Debug.type(node); - return factory.updateReturnStatement(node, - nodeVisitor(node.expression, visitor, isExpression)); - - case SyntaxKind.WithStatement: - Debug.type(node); - return factory.updateWithStatement(node, - nodeVisitor(node.expression, visitor, isExpression), - nodeVisitor(node.statement, visitor, isStatement, factory.liftToBlock)); - - case SyntaxKind.SwitchStatement: - Debug.type(node); - return factory.updateSwitchStatement(node, - nodeVisitor(node.expression, visitor, isExpression), - nodeVisitor(node.caseBlock, visitor, isCaseBlock)); - - case SyntaxKind.LabeledStatement: - Debug.type(node); - return factory.updateLabeledStatement(node, - nodeVisitor(node.label, visitor, isIdentifier), - nodeVisitor(node.statement, visitor, isStatement, factory.liftToBlock)); - - case SyntaxKind.ThrowStatement: - Debug.type(node); - return factory.updateThrowStatement(node, - nodeVisitor(node.expression, visitor, isExpression)); - - case SyntaxKind.TryStatement: - Debug.type(node); - return factory.updateTryStatement(node, - nodeVisitor(node.tryBlock, visitor, isBlock), - nodeVisitor(node.catchClause, visitor, isCatchClause), - nodeVisitor(node.finallyBlock, visitor, isBlock)); - - case SyntaxKind.VariableDeclaration: - Debug.type(node); - return factory.updateVariableDeclaration(node, - nodeVisitor(node.name, visitor, isBindingName), - nodeVisitor(node.exclamationToken, tokenVisitor, isExclamationToken), - nodeVisitor(node.type, visitor, isTypeNode), - nodeVisitor(node.initializer, visitor, isExpression)); - - case SyntaxKind.VariableDeclarationList: - Debug.type(node); - return factory.updateVariableDeclarationList(node, - nodesVisitor(node.declarations, visitor, isVariableDeclaration)); - - case SyntaxKind.FunctionDeclaration: - Debug.type(node); - return factory.updateFunctionDeclaration(node, - nodesVisitor(node.modifiers, visitor, isModifier), - nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken), - nodeVisitor(node.name, visitor, isIdentifier), - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - visitParameterList(node.parameters, visitor, context, nodesVisitor), - nodeVisitor(node.type, visitor, isTypeNode), - visitFunctionBody(node.body, visitor, context, nodeVisitor)); - - case SyntaxKind.ClassDeclaration: - Debug.type(node); - return factory.updateClassDeclaration(node, - nodesVisitor(node.modifiers, visitor, isModifierLike), - nodeVisitor(node.name, visitor, isIdentifier), - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - nodesVisitor(node.heritageClauses, visitor, isHeritageClause), - nodesVisitor(node.members, visitor, isClassElement)); - - case SyntaxKind.InterfaceDeclaration: - Debug.type(node); - return factory.updateInterfaceDeclaration(node, - nodesVisitor(node.modifiers, visitor, isModifier), - nodeVisitor(node.name, visitor, isIdentifier), - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - nodesVisitor(node.heritageClauses, visitor, isHeritageClause), - nodesVisitor(node.members, visitor, isTypeElement)); - - case SyntaxKind.TypeAliasDeclaration: - Debug.type(node); - return factory.updateTypeAliasDeclaration(node, - nodesVisitor(node.modifiers, visitor, isModifier), - nodeVisitor(node.name, visitor, isIdentifier), - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - nodeVisitor(node.type, visitor, isTypeNode)); - - case SyntaxKind.EnumDeclaration: - Debug.type(node); - return factory.updateEnumDeclaration(node, - nodesVisitor(node.modifiers, visitor, isModifier), - nodeVisitor(node.name, visitor, isIdentifier), - nodesVisitor(node.members, visitor, isEnumMember)); - - case SyntaxKind.ModuleDeclaration: - Debug.type(node); - return factory.updateModuleDeclaration(node, - nodesVisitor(node.modifiers, visitor, isModifier), - nodeVisitor(node.name, visitor, isModuleName), - nodeVisitor(node.body, visitor, isModuleBody)); - - case SyntaxKind.ModuleBlock: - Debug.type(node); - return factory.updateModuleBlock(node, - nodesVisitor(node.statements, visitor, isStatement)); - - case SyntaxKind.CaseBlock: - Debug.type(node); - return factory.updateCaseBlock(node, - nodesVisitor(node.clauses, visitor, isCaseOrDefaultClause)); - - case SyntaxKind.NamespaceExportDeclaration: - Debug.type(node); - return factory.updateNamespaceExportDeclaration(node, - nodeVisitor(node.name, visitor, isIdentifier)); - - case SyntaxKind.ImportEqualsDeclaration: - Debug.type(node); - return factory.updateImportEqualsDeclaration(node, - nodesVisitor(node.modifiers, visitor, isModifier), - node.isTypeOnly, - nodeVisitor(node.name, visitor, isIdentifier), - nodeVisitor(node.moduleReference, visitor, isModuleReference)); - - case SyntaxKind.ImportDeclaration: - Debug.type(node); - return factory.updateImportDeclaration(node, - nodesVisitor(node.modifiers, visitor, isModifier), - nodeVisitor(node.importClause, visitor, isImportClause), - nodeVisitor(node.moduleSpecifier, visitor, isExpression), - nodeVisitor(node.assertClause, visitor, isAssertClause)); - - case SyntaxKind.AssertClause: - Debug.type(node); - return factory.updateAssertClause(node, - nodesVisitor(node.elements, visitor, isAssertEntry), - node.multiLine); - - case SyntaxKind.AssertEntry: - Debug.type(node); - return factory.updateAssertEntry(node, - nodeVisitor(node.name, visitor, isAssertionKey), - nodeVisitor(node.value, visitor, isExpressionNode)); - - case SyntaxKind.ImportClause: - Debug.type(node); - return factory.updateImportClause(node, - node.isTypeOnly, - nodeVisitor(node.name, visitor, isIdentifier), - nodeVisitor(node.namedBindings, visitor, isNamedImportBindings)); - - case SyntaxKind.NamespaceImport: - Debug.type(node); - return factory.updateNamespaceImport(node, - nodeVisitor(node.name, visitor, isIdentifier)); - - case SyntaxKind.NamespaceExport: - Debug.type(node); - return factory.updateNamespaceExport(node, - nodeVisitor(node.name, visitor, isIdentifier)); - - case SyntaxKind.NamedImports: - Debug.type(node); - return factory.updateNamedImports(node, - nodesVisitor(node.elements, visitor, isImportSpecifier)); - - case SyntaxKind.ImportSpecifier: - Debug.type(node); - return factory.updateImportSpecifier(node, - node.isTypeOnly, - nodeVisitor(node.propertyName, visitor, isIdentifier), - nodeVisitor(node.name, visitor, isIdentifier)); - - case SyntaxKind.ExportAssignment: - Debug.type(node); - return factory.updateExportAssignment(node, - nodesVisitor(node.modifiers, visitor, isModifier), - nodeVisitor(node.expression, visitor, isExpression)); - - case SyntaxKind.ExportDeclaration: - Debug.type(node); - return factory.updateExportDeclaration(node, - nodesVisitor(node.modifiers, visitor, isModifier), - node.isTypeOnly, - nodeVisitor(node.exportClause, visitor, isNamedExportBindings), - nodeVisitor(node.moduleSpecifier, visitor, isExpression), - nodeVisitor(node.assertClause, visitor, isAssertClause)); - - case SyntaxKind.NamedExports: - Debug.type(node); - return factory.updateNamedExports(node, - nodesVisitor(node.elements, visitor, isExportSpecifier)); - - case SyntaxKind.ExportSpecifier: - Debug.type(node); - return factory.updateExportSpecifier(node, - node.isTypeOnly, - nodeVisitor(node.propertyName, visitor, isIdentifier), - nodeVisitor(node.name, visitor, isIdentifier)); - - // Module references - case SyntaxKind.ExternalModuleReference: - Debug.type(node); - return factory.updateExternalModuleReference(node, - nodeVisitor(node.expression, visitor, isExpression)); - - // JSX - case SyntaxKind.JsxElement: - Debug.type(node); - return factory.updateJsxElement(node, - nodeVisitor(node.openingElement, visitor, isJsxOpeningElement), - nodesVisitor(node.children, visitor, isJsxChild), - nodeVisitor(node.closingElement, visitor, isJsxClosingElement)); - - case SyntaxKind.JsxSelfClosingElement: - Debug.type(node); - return factory.updateJsxSelfClosingElement(node, - nodeVisitor(node.tagName, visitor, isJsxTagNameExpression), - nodesVisitor(node.typeArguments, visitor, isTypeNode), - nodeVisitor(node.attributes, visitor, isJsxAttributes)); - - case SyntaxKind.JsxOpeningElement: - Debug.type(node); - return factory.updateJsxOpeningElement(node, - nodeVisitor(node.tagName, visitor, isJsxTagNameExpression), - nodesVisitor(node.typeArguments, visitor, isTypeNode), - nodeVisitor(node.attributes, visitor, isJsxAttributes)); - - case SyntaxKind.JsxClosingElement: - Debug.type(node); - return factory.updateJsxClosingElement(node, - nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)); - - case SyntaxKind.JsxFragment: - Debug.type(node); - return factory.updateJsxFragment(node, - nodeVisitor(node.openingFragment, visitor, isJsxOpeningFragment), - nodesVisitor(node.children, visitor, isJsxChild), - nodeVisitor(node.closingFragment, visitor, isJsxClosingFragment)); - - case SyntaxKind.JsxAttribute: - Debug.type(node); - return factory.updateJsxAttribute(node, - nodeVisitor(node.name, visitor, isIdentifier), - nodeVisitor(node.initializer, visitor, isStringLiteralOrJsxExpression)); - - case SyntaxKind.JsxAttributes: - Debug.type(node); - return factory.updateJsxAttributes(node, - nodesVisitor(node.properties, visitor, isJsxAttributeLike)); - - case SyntaxKind.JsxSpreadAttribute: - Debug.type(node); - return factory.updateJsxSpreadAttribute(node, - nodeVisitor(node.expression, visitor, isExpression)); - - case SyntaxKind.JsxExpression: - Debug.type(node); - return factory.updateJsxExpression(node, - nodeVisitor(node.expression, visitor, isExpression)); - - // Clauses - case SyntaxKind.CaseClause: - Debug.type(node); - return factory.updateCaseClause(node, - nodeVisitor(node.expression, visitor, isExpression), - nodesVisitor(node.statements, visitor, isStatement)); - - case SyntaxKind.DefaultClause: - Debug.type(node); - return factory.updateDefaultClause(node, - nodesVisitor(node.statements, visitor, isStatement)); - - case SyntaxKind.HeritageClause: - Debug.type(node); - return factory.updateHeritageClause(node, - nodesVisitor(node.types, visitor, isExpressionWithTypeArguments)); - - case SyntaxKind.CatchClause: - Debug.type(node); - return factory.updateCatchClause(node, - nodeVisitor(node.variableDeclaration, visitor, isVariableDeclaration), - nodeVisitor(node.block, visitor, isBlock)); - - // Property assignments - case SyntaxKind.PropertyAssignment: - Debug.type(node); - return factory.updatePropertyAssignment(node, - nodeVisitor(node.name, visitor, isPropertyName), - nodeVisitor(node.initializer, visitor, isExpression)); - - case SyntaxKind.ShorthandPropertyAssignment: - Debug.type(node); - return factory.updateShorthandPropertyAssignment(node, - nodeVisitor(node.name, visitor, isIdentifier), - nodeVisitor(node.objectAssignmentInitializer, visitor, isExpression)); - - case SyntaxKind.SpreadAssignment: - Debug.type(node); - return factory.updateSpreadAssignment(node, - nodeVisitor(node.expression, visitor, isExpression)); - - // Enum - case SyntaxKind.EnumMember: - Debug.type(node); - return factory.updateEnumMember(node, - nodeVisitor(node.name, visitor, isPropertyName), - nodeVisitor(node.initializer, visitor, isExpression)); - - // Top-level nodes - case SyntaxKind.SourceFile: - Debug.type(node); - return factory.updateSourceFile(node, - visitLexicalEnvironment(node.statements, visitor, context)); - - // Transformation nodes - case SyntaxKind.PartiallyEmittedExpression: - Debug.type(node); - return factory.updatePartiallyEmittedExpression(node, - nodeVisitor(node.expression, visitor, isExpression)); - - case SyntaxKind.CommaListExpression: - Debug.type(node); - return factory.updateCommaListExpression(node, - nodesVisitor(node.elements, visitor, isExpression)); - - default: - // No need to visit nodes with no children. - return node; - } - - } + }, + + [SyntaxKind.MetaProperty]: function visitEachChildOfMetaProperty(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateMetaProperty(node, + nodeVisitor(node.name, visitor, isIdentifier)); + }, + + // Misc + [SyntaxKind.TemplateSpan]: function visitEachChildOfTemplateSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTemplateSpan(node, + nodeVisitor(node.expression, visitor, isExpression), + nodeVisitor(node.literal, visitor, isTemplateMiddleOrTemplateTail)); + }, + + // Element + [SyntaxKind.Block]: function visitEachChildOfBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateBlock(node, + nodesVisitor(node.statements, visitor, isStatement)); + }, + + [SyntaxKind.VariableStatement]: function visitEachChildOfVariableStatement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateVariableStatement(node, + nodesVisitor(node.modifiers, visitor, isModifier), + nodeVisitor(node.declarationList, visitor, isVariableDeclarationList)); + }, + + [SyntaxKind.ExpressionStatement]: function visitEachChildOfExpressionStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateExpressionStatement(node, + nodeVisitor(node.expression, visitor, isExpression)); + }, + + [SyntaxKind.IfStatement]: function visitEachChildOfIfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateIfStatement(node, + nodeVisitor(node.expression, visitor, isExpression), + nodeVisitor(node.thenStatement, visitor, isStatement, context.factory.liftToBlock), + nodeVisitor(node.elseStatement, visitor, isStatement, context.factory.liftToBlock)); + }, + + [SyntaxKind.DoStatement]: function visitEachChildOfDoStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateDoStatement(node, + visitIterationBody(node.statement, visitor, context, nodeVisitor), + nodeVisitor(node.expression, visitor, isExpression)); + }, + + [SyntaxKind.WhileStatement]: function visitEachChildOfWhileStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateWhileStatement(node, + nodeVisitor(node.expression, visitor, isExpression), + visitIterationBody(node.statement, visitor, context, nodeVisitor)); + }, + + [SyntaxKind.ForStatement]: function visitEachChildOfForStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateForStatement(node, + nodeVisitor(node.initializer, visitor, isForInitializer), + nodeVisitor(node.condition, visitor, isExpression), + nodeVisitor(node.incrementor, visitor, isExpression), + visitIterationBody(node.statement, visitor, context, nodeVisitor)); + }, + + [SyntaxKind.ForInStatement]: function visitEachChildOfForInStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateForInStatement(node, + nodeVisitor(node.initializer, visitor, isForInitializer), + nodeVisitor(node.expression, visitor, isExpression), + visitIterationBody(node.statement, visitor, context, nodeVisitor)); + }, + + [SyntaxKind.ForOfStatement]: function visitEachChildOfForOfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateForOfStatement(node, + nodeVisitor(node.awaitModifier, tokenVisitor, isAwaitKeyword), + nodeVisitor(node.initializer, visitor, isForInitializer), + nodeVisitor(node.expression, visitor, isExpression), + visitIterationBody(node.statement, visitor, context, nodeVisitor)); + }, + + [SyntaxKind.ContinueStatement]: function visitEachChildOfContinueStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateContinueStatement(node, + nodeVisitor(node.label, visitor, isIdentifier)); + }, + + [SyntaxKind.BreakStatement]: function visitEachChildOfBreakStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateBreakStatement(node, + nodeVisitor(node.label, visitor, isIdentifier)); + }, + + [SyntaxKind.ReturnStatement]: function visitEachChildOfReturnStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateReturnStatement(node, + nodeVisitor(node.expression, visitor, isExpression)); + }, + + [SyntaxKind.WithStatement]: function visitEachChildOfWithStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateWithStatement(node, + nodeVisitor(node.expression, visitor, isExpression), + nodeVisitor(node.statement, visitor, isStatement, context.factory.liftToBlock)); + }, + + [SyntaxKind.SwitchStatement]: function visitEachChildOfSwitchStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateSwitchStatement(node, + nodeVisitor(node.expression, visitor, isExpression), + nodeVisitor(node.caseBlock, visitor, isCaseBlock)); + }, + + [SyntaxKind.LabeledStatement]: function visitEachChildOfLabeledStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateLabeledStatement(node, + nodeVisitor(node.label, visitor, isIdentifier), + nodeVisitor(node.statement, visitor, isStatement, context.factory.liftToBlock)); + }, + + [SyntaxKind.ThrowStatement]: function visitEachChildOfThrowStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateThrowStatement(node, + nodeVisitor(node.expression, visitor, isExpression)); + }, + + [SyntaxKind.TryStatement]: function visitEachChildOfTryStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTryStatement(node, + nodeVisitor(node.tryBlock, visitor, isBlock), + nodeVisitor(node.catchClause, visitor, isCatchClause), + nodeVisitor(node.finallyBlock, visitor, isBlock)); + }, + + [SyntaxKind.VariableDeclaration]: function visitEachChildOfVariableDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateVariableDeclaration(node, + nodeVisitor(node.name, visitor, isBindingName), + nodeVisitor(node.exclamationToken, tokenVisitor, isExclamationToken), + nodeVisitor(node.type, visitor, isTypeNode), + nodeVisitor(node.initializer, visitor, isExpression)); + }, + + [SyntaxKind.VariableDeclarationList]: function visitEachChildOfVariableDeclarationList(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateVariableDeclarationList(node, + nodesVisitor(node.declarations, visitor, isVariableDeclaration)); + }, + + [SyntaxKind.FunctionDeclaration]: function visitEachChildOfFunctionDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateFunctionDeclaration(node, + nodesVisitor(node.modifiers, visitor, isModifier), + nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken), + nodeVisitor(node.name, visitor, isIdentifier), + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + visitParameterList(node.parameters, visitor, context, nodesVisitor), + nodeVisitor(node.type, visitor, isTypeNode), + visitFunctionBody(node.body, visitor, context, nodeVisitor)); + }, + + [SyntaxKind.ClassDeclaration]: function visitEachChildOfClassDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateClassDeclaration(node, + nodesVisitor(node.modifiers, visitor, isModifierLike), + nodeVisitor(node.name, visitor, isIdentifier), + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + nodesVisitor(node.heritageClauses, visitor, isHeritageClause), + nodesVisitor(node.members, visitor, isClassElement)); + }, + + [SyntaxKind.InterfaceDeclaration]: function visitEachChildOfInterfaceDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateInterfaceDeclaration(node, + nodesVisitor(node.modifiers, visitor, isModifier), + nodeVisitor(node.name, visitor, isIdentifier), + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + nodesVisitor(node.heritageClauses, visitor, isHeritageClause), + nodesVisitor(node.members, visitor, isTypeElement)); + }, + + [SyntaxKind.TypeAliasDeclaration]: function visitEachChildOfTypeAliasDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTypeAliasDeclaration(node, + nodesVisitor(node.modifiers, visitor, isModifier), + nodeVisitor(node.name, visitor, isIdentifier), + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + nodeVisitor(node.type, visitor, isTypeNode)); + }, + + [SyntaxKind.EnumDeclaration]: function visitEachChildOfEnumDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateEnumDeclaration(node, + nodesVisitor(node.modifiers, visitor, isModifier), + nodeVisitor(node.name, visitor, isIdentifier), + nodesVisitor(node.members, visitor, isEnumMember)); + }, + + [SyntaxKind.ModuleDeclaration]: function visitEachChildOfModuleDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateModuleDeclaration(node, + nodesVisitor(node.modifiers, visitor, isModifier), + nodeVisitor(node.name, visitor, isModuleName), + nodeVisitor(node.body, visitor, isModuleBody)); + }, + + [SyntaxKind.ModuleBlock]: function visitEachChildOfModuleBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateModuleBlock(node, + nodesVisitor(node.statements, visitor, isStatement)); + }, + + [SyntaxKind.CaseBlock]: function visitEachChildOfCaseBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateCaseBlock(node, + nodesVisitor(node.clauses, visitor, isCaseOrDefaultClause)); + }, + + [SyntaxKind.NamespaceExportDeclaration]: function visitEachChildOfNamespaceExportDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateNamespaceExportDeclaration(node, + nodeVisitor(node.name, visitor, isIdentifier)); + }, + + [SyntaxKind.ImportEqualsDeclaration]: function visitEachChildOfImportEqualsDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateImportEqualsDeclaration(node, + nodesVisitor(node.modifiers, visitor, isModifier), + node.isTypeOnly, + nodeVisitor(node.name, visitor, isIdentifier), + nodeVisitor(node.moduleReference, visitor, isModuleReference)); + }, + + [SyntaxKind.ImportDeclaration]: function visitEachChildOfImportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateImportDeclaration(node, + nodesVisitor(node.modifiers, visitor, isModifier), + nodeVisitor(node.importClause, visitor, isImportClause), + nodeVisitor(node.moduleSpecifier, visitor, isExpression), + nodeVisitor(node.assertClause, visitor, isAssertClause)); + }, + + [SyntaxKind.AssertClause]: function visitEachChildOfAssertClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateAssertClause(node, + nodesVisitor(node.elements, visitor, isAssertEntry), + node.multiLine); + }, + + [SyntaxKind.AssertEntry]: function visitEachChildOfAssertEntry(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateAssertEntry(node, + nodeVisitor(node.name, visitor, isAssertionKey), + nodeVisitor(node.value, visitor, isExpression)); + }, + + [SyntaxKind.ImportClause]: function visitEachChildOfImportClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateImportClause(node, + node.isTypeOnly, + nodeVisitor(node.name, visitor, isIdentifier), + nodeVisitor(node.namedBindings, visitor, isNamedImportBindings)); + }, + + [SyntaxKind.NamespaceImport]: function visitEachChildOfNamespaceImport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateNamespaceImport(node, + nodeVisitor(node.name, visitor, isIdentifier)); + }, + + [SyntaxKind.NamespaceExport]: function visitEachChildOfNamespaceExport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateNamespaceExport(node, + nodeVisitor(node.name, visitor, isIdentifier)); + }, + + [SyntaxKind.NamedImports]: function visitEachChildOfNamedImports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateNamedImports(node, + nodesVisitor(node.elements, visitor, isImportSpecifier)); + }, + + [SyntaxKind.ImportSpecifier]: function visitEachChildOfImportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateImportSpecifier(node, + node.isTypeOnly, + nodeVisitor(node.propertyName, visitor, isIdentifier), + nodeVisitor(node.name, visitor, isIdentifier)); + }, + + [SyntaxKind.ExportAssignment]: function visitEachChildOfExportAssignment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateExportAssignment(node, + nodesVisitor(node.modifiers, visitor, isModifier), + nodeVisitor(node.expression, visitor, isExpression)); + }, + + [SyntaxKind.ExportDeclaration]: function visitEachChildOfExportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateExportDeclaration(node, + nodesVisitor(node.modifiers, visitor, isModifier), + node.isTypeOnly, + nodeVisitor(node.exportClause, visitor, isNamedExportBindings), + nodeVisitor(node.moduleSpecifier, visitor, isExpression), + nodeVisitor(node.assertClause, visitor, isAssertClause)); + }, + + [SyntaxKind.NamedExports]: function visitEachChildOfNamedExports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateNamedExports(node, + nodesVisitor(node.elements, visitor, isExportSpecifier)); + }, + + [SyntaxKind.ExportSpecifier]: function visitEachChildOfExportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateExportSpecifier(node, + node.isTypeOnly, + nodeVisitor(node.propertyName, visitor, isIdentifier), + nodeVisitor(node.name, visitor, isIdentifier)); + }, + + // Module references + [SyntaxKind.ExternalModuleReference]: function visitEachChildOfExternalModuleReference(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateExternalModuleReference(node, + nodeVisitor(node.expression, visitor, isExpression)); + }, + + // JSX + [SyntaxKind.JsxElement]: function visitEachChildOfJsxElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateJsxElement(node, + nodeVisitor(node.openingElement, visitor, isJsxOpeningElement), + nodesVisitor(node.children, visitor, isJsxChild), + nodeVisitor(node.closingElement, visitor, isJsxClosingElement)); + }, + + [SyntaxKind.JsxSelfClosingElement]: function visitEachChildOfJsxSelfClosingElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateJsxSelfClosingElement(node, + nodeVisitor(node.tagName, visitor, isJsxTagNameExpression), + nodesVisitor(node.typeArguments, visitor, isTypeNode), + nodeVisitor(node.attributes, visitor, isJsxAttributes)); + }, + + [SyntaxKind.JsxOpeningElement]: function visitEachChildOfJsxOpeningElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateJsxOpeningElement(node, + nodeVisitor(node.tagName, visitor, isJsxTagNameExpression), + nodesVisitor(node.typeArguments, visitor, isTypeNode), + nodeVisitor(node.attributes, visitor, isJsxAttributes)); + }, + + [SyntaxKind.JsxClosingElement]: function visitEachChildOfJsxClosingElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateJsxClosingElement(node, + nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)); + }, + + [SyntaxKind.JsxFragment]: function visitEachChildOfJsxFragment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateJsxFragment(node, + nodeVisitor(node.openingFragment, visitor, isJsxOpeningFragment), + nodesVisitor(node.children, visitor, isJsxChild), + nodeVisitor(node.closingFragment, visitor, isJsxClosingFragment)); + }, + + [SyntaxKind.JsxAttribute]: function visitEachChildOfJsxAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateJsxAttribute(node, + nodeVisitor(node.name, visitor, isIdentifier), + nodeVisitor(node.initializer, visitor, isStringLiteralOrJsxExpression)); + }, + + [SyntaxKind.JsxAttributes]: function visitEachChildOfJsxAttributes(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateJsxAttributes(node, + nodesVisitor(node.properties, visitor, isJsxAttributeLike)); + }, + + [SyntaxKind.JsxSpreadAttribute]: function visitEachChildOfJsxSpreadAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateJsxSpreadAttribute(node, + nodeVisitor(node.expression, visitor, isExpression)); + }, + + [SyntaxKind.JsxExpression]: function visitEachChildOfJsxExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateJsxExpression(node, + nodeVisitor(node.expression, visitor, isExpression)); + }, + + // Clauses + [SyntaxKind.CaseClause]: function visitEachChildOfCaseClause(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateCaseClause(node, + nodeVisitor(node.expression, visitor, isExpression), + nodesVisitor(node.statements, visitor, isStatement)); + }, + + [SyntaxKind.DefaultClause]: function visitEachChildOfDefaultClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateDefaultClause(node, + nodesVisitor(node.statements, visitor, isStatement)); + }, + + [SyntaxKind.HeritageClause]: function visitEachChildOfHeritageClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateHeritageClause(node, + nodesVisitor(node.types, visitor, isExpressionWithTypeArguments)); + }, + + [SyntaxKind.CatchClause]: function visitEachChildOfCatchClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateCatchClause(node, + nodeVisitor(node.variableDeclaration, visitor, isVariableDeclaration), + nodeVisitor(node.block, visitor, isBlock)); + }, + + // Property assignments + [SyntaxKind.PropertyAssignment]: function visitEachChildOfPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updatePropertyAssignment(node, + nodeVisitor(node.name, visitor, isPropertyName), + nodeVisitor(node.initializer, visitor, isExpression)); + }, + + [SyntaxKind.ShorthandPropertyAssignment]: function visitEachChildOfShorthandPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateShorthandPropertyAssignment(node, + nodeVisitor(node.name, visitor, isIdentifier), + nodeVisitor(node.objectAssignmentInitializer, visitor, isExpression)); + }, + + [SyntaxKind.SpreadAssignment]: function visitEachChildOfSpreadAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateSpreadAssignment(node, + nodeVisitor(node.expression, visitor, isExpression)); + }, + + // Enum + [SyntaxKind.EnumMember]: function visitEachChildOfEnumMember(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateEnumMember(node, + nodeVisitor(node.name, visitor, isPropertyName), + nodeVisitor(node.initializer, visitor, isExpression)); + }, + + // Top-level nodes + [SyntaxKind.SourceFile]: function visitEachChildOfSourceFile(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateSourceFile(node, + visitLexicalEnvironment(node.statements, visitor, context, /*start*/ undefined, /*ensureUseStrict*/ undefined, nodesVisitor)); + }, + + // Transformation nodes + [SyntaxKind.PartiallyEmittedExpression]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updatePartiallyEmittedExpression(node, + nodeVisitor(node.expression, visitor, isExpression)); + }, + + [SyntaxKind.CommaListExpression]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateCommaListExpression(node, + nodesVisitor(node.elements, visitor, isExpression)); + }, + }; /** * Extracts the single node from a NodeArray. diff --git a/src/compiler/watch.ts b/src/compiler/watch.ts index 88084374027..23e9da91c62 100644 --- a/src/compiler/watch.ts +++ b/src/compiler/watch.ts @@ -224,26 +224,59 @@ namespace ts { for (const file of program.getSourceFiles()) { write(`${toFileName(file, relativeFileName)}`); reasons.get(file.path)?.forEach(reason => write(` ${fileIncludeReasonToDiagnostics(program, reason, relativeFileName).messageText}`)); - explainIfFileIsRedirect(file, relativeFileName)?.forEach(d => write(` ${d.messageText}`)); + explainIfFileIsRedirectAndImpliedFormat(file, relativeFileName)?.forEach(d => write(` ${d.messageText}`)); } } - export function explainIfFileIsRedirect(file: SourceFile, fileNameConvertor?: (fileName: string) => string): DiagnosticMessageChain[] | undefined { + export function explainIfFileIsRedirectAndImpliedFormat( + file: SourceFile, + fileNameConvertor?: (fileName: string) => string, + ): DiagnosticMessageChain[] | undefined { let result: DiagnosticMessageChain[] | undefined; if (file.path !== file.resolvedPath) { - (result ||= []).push(chainDiagnosticMessages( + (result ??= []).push(chainDiagnosticMessages( /*details*/ undefined, Diagnostics.File_is_output_of_project_reference_source_0, toFileName(file.originalFileName, fileNameConvertor) )); } if (file.redirectInfo) { - (result ||= []).push(chainDiagnosticMessages( + (result ??= []).push(chainDiagnosticMessages( /*details*/ undefined, Diagnostics.File_redirects_to_file_0, toFileName(file.redirectInfo.redirectTarget, fileNameConvertor) )); } + if (isExternalOrCommonJsModule(file)) { + switch (file.impliedNodeFormat) { + case ModuleKind.ESNext: + if (file.packageJsonScope) { + (result ??= []).push(chainDiagnosticMessages( + /*details*/ undefined, + Diagnostics.File_is_ECMAScript_module_because_0_has_field_type_with_value_module, + toFileName(last(file.packageJsonLocations!), fileNameConvertor) + )); + } + break; + case ModuleKind.CommonJS: + if (file.packageJsonScope) { + (result ??= []).push(chainDiagnosticMessages( + /*details*/ undefined, + file.packageJsonScope.packageJsonContent.type ? + Diagnostics.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module : + Diagnostics.File_is_CommonJS_module_because_0_does_not_have_field_type, + toFileName(last(file.packageJsonLocations!), fileNameConvertor) + )); + } + else if (file.packageJsonLocations?.length) { + (result ??= []).push(chainDiagnosticMessages( + /*details*/ undefined, + Diagnostics.File_is_CommonJS_module_because_package_json_was_not_found, + )); + } + break; + } + } return result; } @@ -508,6 +541,7 @@ namespace ts { MissingFile: "Missing file", WildcardDirectory: "Wild card directory", FailedLookupLocations: "Failed Lookup Locations", + AffectingFileLocation: "File location affecting resolution", TypeRoots: "Type roots", ConfigFileOfReferencedProject: "Config file of referened project", ExtendedConfigOfReferencedProject: "Extended config file of referenced project", @@ -529,6 +563,7 @@ namespace ts { MissingFile: "Missing file", WildcardDirectory: "Wild card directory", FailedLookupLocations: "Failed Lookup Locations", + AffectingFileLocation: "File location affecting resolution", TypeRoots: "Type roots", ConfigFileOfReferencedProject: "Config file of referened project", ExtendedConfigOfReferencedProject: "Extended config file of referenced project", @@ -596,7 +631,6 @@ namespace ts { readDirectory: maybeBind(host, host.readDirectory), disableUseFileVersionAsSignature: host.disableUseFileVersionAsSignature, storeFilesChangingSignatureDuringEmit: host.storeFilesChangingSignatureDuringEmit, - now: maybeBind(host, host.now), }; function writeFile(fileName: string, text: string, writeByteOrderMark: boolean, onError: (message: string) => void) { diff --git a/src/compiler/watchPublic.ts b/src/compiler/watchPublic.ts index afc4245537c..51f58d396c5 100644 --- a/src/compiler/watchPublic.ts +++ b/src/compiler/watchPublic.ts @@ -13,15 +13,13 @@ namespace ts { if (host.getBuildInfo) { // host provides buildinfo, get it from there. This allows host to cache it buildInfo = host.getBuildInfo(buildInfoPath, compilerOptions.configFilePath); - if (!buildInfo) return undefined; } else { const content = host.readFile(buildInfoPath); if (!content) return undefined; - buildInfo = getBuildInfo(content); + buildInfo = getBuildInfo(buildInfoPath, content); } - if (buildInfo.version !== version) return undefined; - if (!buildInfo.program) return undefined; + if (!buildInfo || buildInfo.version !== version || !buildInfo.program) return undefined; return createBuilderProgramUsingProgramBuildInfo(buildInfo.program, buildInfoPath, host); } @@ -30,7 +28,6 @@ namespace ts { host.createHash = maybeBind(system, system.createHash); host.disableUseFileVersionAsSignature = system.disableUseFileVersionAsSignature; host.storeFilesChangingSignatureDuringEmit = system.storeFilesChangingSignatureDuringEmit; - host.now = maybeBind(system, system.now); setGetSourceFileAsHashVersioned(host, system); changeCompilerHostLikeToUseCache(host, fileName => toPath(fileName, host.getCurrentDirectory(), host.getCanonicalFileName)); return host; @@ -115,6 +112,10 @@ namespace ts { resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile): (ResolvedModule | undefined)[]; /** If provided, used to resolve type reference directives, otherwise typescript's default resolution */ resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined): (ResolvedTypeReferenceDirective | undefined)[]; + /** + * Returns the module resolution cache used by a provided `resolveModuleNames` implementation so that any non-name module resolution operations (eg, package.json lookup) can reuse it + */ + getModuleResolutionCache?(): ModuleResolutionCache | undefined; } /** Internal interface used to wire emit through same host */ @@ -284,7 +285,6 @@ namespace ts { let parsedConfigs: ESMap | undefined; // Parsed commandline and watching cached for referenced projects let sharedExtendedConfigFileWatchers: ESMap>; // Map of file watchers for extended files, shared between different referenced projects let extendedConfigCache = host.extendedConfigCache; // Cache for extended config evaluation - let changesAffectResolution = false; // Flag for indicating non-config changes affect module resolution let reportFileChangeDetectedOnCreateProgram = false; // True if synchronizeProgram should report "File change detected..." when a new program is created const sourceFilesCache = new Map(); // Cache that stores the source file and version info @@ -342,7 +342,7 @@ namespace ts { compilerHost.getCompilationSettings = () => compilerOptions; compilerHost.useSourceOfProjectReferenceRedirect = maybeBind(host, host.useSourceOfProjectReferenceRedirect); compilerHost.watchDirectoryOfFailedLookupLocation = (dir, cb, flags) => watchDirectory(dir, cb, flags, watchOptions, WatchType.FailedLookupLocations); - compilerHost.watchAffectingFileLocation = (file, cb) => watchFile(file, cb, PollingInterval.High, watchOptions, WatchType.PackageJson); + compilerHost.watchAffectingFileLocation = (file, cb) => watchFile(file, cb, PollingInterval.High, watchOptions, WatchType.AffectingFileLocation); compilerHost.watchTypeRootsDirectory = (dir, cb, flags) => watchDirectory(dir, cb, flags, watchOptions, WatchType.TypeRoots); compilerHost.getCachedDirectoryStructureHost = () => cachedDirectoryStructureHost; compilerHost.scheduleInvalidateResolutionsOfFailedLookupLocations = scheduleInvalidateResolutionsOfFailedLookupLocations; @@ -367,6 +367,9 @@ namespace ts { compilerHost.resolveTypeReferenceDirectives = host.resolveTypeReferenceDirectives ? ((...args) => host.resolveTypeReferenceDirectives!(...args)) : ((typeDirectiveNames, containingFile, redirectedReference, _options, containingFileMode) => resolutionCache.resolveTypeReferenceDirectives(typeDirectiveNames, containingFile, redirectedReference, containingFileMode)); + compilerHost.getModuleResolutionCache = host.resolveModuleNames ? + maybeBind(host, host.getModuleResolutionCache) : + (() => resolutionCache.getModuleResolutionCache()); const userProvidedResolution = !!host.resolveModuleNames || !!host.resolveTypeReferenceDirectives; builderProgram = readBuilderProgram(compilerOptions, compilerHost) as any as T; @@ -435,14 +438,18 @@ namespace ts { const program = getCurrentBuilderProgram(); if (hasChangedCompilerOptions) { newLine = updateNewLine(); - if (program && (changesAffectResolution || changesAffectModuleResolution(program.getCompilerOptions(), compilerOptions))) { + if (program && changesAffectModuleResolution(program.getCompilerOptions(), compilerOptions)) { resolutionCache.clear(); } } // All resolutions are invalid if user provided resolutions - const hasInvalidatedResolution = resolutionCache.createHasInvalidatedResolution(userProvidedResolution || changesAffectResolution); - if (isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, getSourceVersion, fileExists, hasInvalidatedResolution, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) { + const hasInvalidatedResolution = resolutionCache.createHasInvalidatedResolution(userProvidedResolution); + const { + originalReadFile, originalFileExists, originalDirectoryExists, + originalCreateDirectory, originalWriteFile, + } = changeCompilerHostLikeToUseCache(compilerHost, toPath); + if (isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, getSourceVersion, fileName => compilerHost.fileExists(fileName), hasInvalidatedResolution, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) { if (hasChangedConfigFileParsingErrors) { if (reportFileChangeDetectedOnCreateProgram) { reportWatchDiagnostic(Diagnostics.File_change_detected_Starting_incremental_compilation); @@ -458,13 +465,17 @@ namespace ts { createNewProgram(hasInvalidatedResolution); } - changesAffectResolution = false; // reset for next sync reportFileChangeDetectedOnCreateProgram = false; - if (host.afterProgramCreate && program !== builderProgram) { host.afterProgramCreate(builderProgram); } + compilerHost.readFile = originalReadFile; + compilerHost.fileExists = originalFileExists; + compilerHost.directoryExists = originalDirectoryExists; + compilerHost.createDirectory = originalCreateDirectory; + compilerHost.writeFile = originalWriteFile!; + return builderProgram; } @@ -481,8 +492,9 @@ namespace ts { resolutionCache.startCachingPerDirectoryResolution(); compilerHost.hasInvalidatedResolution = hasInvalidatedResolution; compilerHost.hasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames; + const oldProgram = getCurrentProgram(); builderProgram = createProgram(rootFileNames, compilerOptions, compilerHost, builderProgram, configFileParsingDiagnostics, projectReferences); - resolutionCache.finishCachingPerDirectoryResolution(); + resolutionCache.finishCachingPerDirectoryResolution(builderProgram.getProgram(), oldProgram); // Update watches updateMissingFilePathsWatch(builderProgram.getProgram(), missingFilesMap || (missingFilesMap = new Map()), watchMissingFilePath); @@ -574,9 +586,6 @@ namespace ts { sourceFilesCache.set(path, false); } } - if (sourceFile) { - sourceFile.impliedNodeFormat = getImpliedNodeFormatForFile(path, resolutionCache.getModuleResolutionCache().getPackageJsonInfoCache(), compilerHost, compilerHost.getCompilationSettings()); - } return sourceFile; } return hostSourceFile.sourceFile; diff --git a/src/compiler/watchUtilities.ts b/src/compiler/watchUtilities.ts index e2fba1da657..e8c21aa8f63 100644 --- a/src/compiler/watchUtilities.ts +++ b/src/compiler/watchUtilities.ts @@ -34,9 +34,20 @@ namespace ts { clearCache(): void; } + type Canonicalized = string & { __canonicalized: void }; + interface MutableFileSystemEntries { readonly files: string[]; readonly directories: string[]; + sortedAndCanonicalizedFiles?: SortedArray + sortedAndCanonicalizedDirectories?: SortedArray + } + + interface SortedAndCanonicalizedMutableFileSystemEntries { + readonly files: string[]; + readonly directories: string[]; + readonly sortedAndCanonicalizedFiles: SortedArray + readonly sortedAndCanonicalizedDirectories: SortedArray } export function createCachedDirectoryStructureHost(host: DirectoryStructureHost, currentDirectory: string, useCaseSensitiveFileNames: boolean): CachedDirectoryStructureHost | undefined { @@ -45,7 +56,7 @@ namespace ts { } const cachedReadDirectoryResult = new Map(); - const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames); + const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames) as ((name: string) => Canonicalized); return { useCaseSensitiveFileNames, fileExists, @@ -70,7 +81,17 @@ namespace ts { } function getCachedFileSystemEntriesForBaseDir(path: Path) { - return getCachedFileSystemEntries(getDirectoryPath(path)); + const entries = getCachedFileSystemEntries(getDirectoryPath(path)); + if (!entries) { + return entries; + } + + // If we're looking for the base directory, we're definitely going to search the entries + if (!entries.sortedAndCanonicalizedFiles) { + entries.sortedAndCanonicalizedFiles = entries.files.map(getCanonicalFileName).sort() as SortedArray; + entries.sortedAndCanonicalizedDirectories = entries.directories.map(getCanonicalFileName).sort() as SortedArray; + } + return entries as SortedAndCanonicalizedMutableFileSystemEntries; } function getBaseNameOfFileName(fileName: string) { @@ -120,23 +141,10 @@ namespace ts { } } - function fileNameEqual(name1: string, name2: string) { - return getCanonicalFileName(name1) === getCanonicalFileName(name2); - } - - function hasEntry(entries: readonly string[], name: string) { - return some(entries, file => fileNameEqual(file, name)); - } - - function updateFileSystemEntry(entries: string[], baseName: string, isValid: boolean) { - if (hasEntry(entries, baseName)) { - if (!isValid) { - return filterMutate(entries, entry => !fileNameEqual(entry, baseName)); - } - } - else if (isValid) { - return entries.push(baseName); - } + function hasEntry(entries: SortedReadonlyArray, name: Canonicalized) { + // Case-sensitive comparison since already canonicalized + const index = binarySearch(entries, name, identity, compareStringsCaseSensitive); + return index >= 0; } function writeFile(fileName: string, data: string, writeByteOrderMark?: boolean): void { @@ -151,7 +159,7 @@ namespace ts { function fileExists(fileName: string): boolean { const path = toPath(fileName); const result = getCachedFileSystemEntriesForBaseDir(path); - return result && hasEntry(result.files, getBaseNameOfFileName(fileName)) || + return result && hasEntry(result.sortedAndCanonicalizedFiles, getCanonicalFileName(getBaseNameOfFileName(fileName))) || host.fileExists(fileName); } @@ -163,9 +171,14 @@ namespace ts { function createDirectory(dirPath: string) { const path = toPath(dirPath); const result = getCachedFileSystemEntriesForBaseDir(path); - const baseFileName = getBaseNameOfFileName(dirPath); if (result) { - updateFileSystemEntry(result.directories, baseFileName, /*isValid*/ true); + const baseName = getBaseNameOfFileName(dirPath); + const canonicalizedBaseName = getCanonicalFileName(baseName); + const canonicalizedDirectories = result.sortedAndCanonicalizedDirectories; + // Case-sensitive comparison since already canonicalized + if (insertSorted(canonicalizedDirectories, canonicalizedBaseName, compareStringsCaseSensitive)) { + result.directories.push(baseName); + } } host.createDirectory!(dirPath); } @@ -242,7 +255,7 @@ namespace ts { fileExists: host.fileExists(fileOrDirectoryPath), directoryExists: host.directoryExists(fileOrDirectoryPath) }; - if (fsQueryResult.directoryExists || hasEntry(parentResult.directories, baseName)) { + if (fsQueryResult.directoryExists || hasEntry(parentResult.sortedAndCanonicalizedDirectories, getCanonicalFileName(baseName))) { // Folder added or removed, clear the cache instead of updating the folder and its structure clearCache(); } @@ -265,8 +278,24 @@ namespace ts { } } - function updateFilesOfFileSystemEntry(parentResult: MutableFileSystemEntries, baseName: string, fileExists: boolean) { - updateFileSystemEntry(parentResult.files, baseName, fileExists); + function updateFilesOfFileSystemEntry(parentResult: SortedAndCanonicalizedMutableFileSystemEntries, baseName: string, fileExists: boolean): void { + const canonicalizedFiles = parentResult.sortedAndCanonicalizedFiles; + const canonicalizedBaseName = getCanonicalFileName(baseName); + if (fileExists) { + // Case-sensitive comparison since already canonicalized + if (insertSorted(canonicalizedFiles, canonicalizedBaseName, compareStringsCaseSensitive)) { + parentResult.files.push(baseName); + } + } + else { + // Case-sensitive comparison since already canonicalized + const sortedIndex = binarySearch(canonicalizedFiles, canonicalizedBaseName, identity, compareStringsCaseSensitive); + if (sortedIndex >= 0) { + canonicalizedFiles.splice(sortedIndex, 1); + const unsortedIndex = parentResult.files.findIndex(entry => getCanonicalFileName(entry) === canonicalizedBaseName); + parentResult.files.splice(unsortedIndex, 1); + } + } } function clearCache() { diff --git a/src/executeCommandLine/executeCommandLine.ts b/src/executeCommandLine/executeCommandLine.ts index 68d2e51e9d4..cb3ba0575a1 100644 --- a/src/executeCommandLine/executeCommandLine.ts +++ b/src/executeCommandLine/executeCommandLine.ts @@ -1,7 +1,14 @@ namespace ts { interface Statistic { name: string; - value: string; + value: number; + type: StatisticType; + } + + export enum StatisticType { + time, + count, + memory, } function countLines(program: Program): Map { @@ -14,15 +21,6 @@ namespace ts { return counts; } - function countNodes(program: Program): Map { - const counts = getCountsMap(); - forEach(program.getSourceFiles(), file => { - const key = getCountKey(program, file); - counts.set(key, counts.get(key)! + file.nodeCount); - }); - return counts; - } - function getCountsMap() { const counts = new Map(); counts.set("Library", 0); @@ -751,7 +749,16 @@ namespace ts { createBuilderStatusReporter(sys, shouldBePretty(sys, buildOptions)), createWatchStatusReporter(sys, buildOptions) ); - updateSolutionBuilderHost(sys, cb, buildHost); + const solutionPerformance = enableSolutionPerformance(sys, buildOptions); + updateSolutionBuilderHost(sys, cb, buildHost, solutionPerformance); + const onWatchStatusChange = buildHost.onWatchStatusChange; + buildHost.onWatchStatusChange = (d, newLine, options, errorCount) => { + onWatchStatusChange?.(d, newLine, options, errorCount); + if (d.code === Diagnostics.Found_0_errors_Watching_for_file_changes.code || + d.code === Diagnostics.Found_1_error_Watching_for_file_changes.code) { + reportSolutionBuilderTimes(builder, solutionPerformance); + } + }; const builder = createSolutionBuilderWithWatch(buildHost, projects, buildOptions, watchOptions); builder.build(); return builder; @@ -764,9 +771,11 @@ namespace ts { createBuilderStatusReporter(sys, shouldBePretty(sys, buildOptions)), createReportErrorSummary(sys, buildOptions) ); - updateSolutionBuilderHost(sys, cb, buildHost); + const solutionPerformance = enableSolutionPerformance(sys, buildOptions); + updateSolutionBuilderHost(sys, cb, buildHost, solutionPerformance); const builder = createSolutionBuilder(buildHost, projects, buildOptions); const exitStatus = buildOptions.clean ? builder.clean() : builder.build(); + reportSolutionBuilderTimes(builder, solutionPerformance); dumpTracingLegend(); // Will no-op if there hasn't been any tracing return sys.exit(exitStatus); } @@ -804,7 +813,7 @@ namespace ts { s => sys.write(s + sys.newLine), createReportErrorSummary(sys, options) ); - reportStatistics(sys, program); + reportStatistics(sys, program, /*builder*/ undefined); cb(program); return sys.exit(exitStatus); } @@ -828,7 +837,7 @@ namespace ts { reportDiagnostic, reportErrorSummary: createReportErrorSummary(sys, options), afterProgramEmitAndDiagnostics: builderProgram => { - reportStatistics(sys, builderProgram.getProgram()); + reportStatistics(sys, builderProgram.getProgram(), /*builder*/ undefined); cb(builderProgram); } }); @@ -838,22 +847,23 @@ namespace ts { function updateSolutionBuilderHost( sys: System, cb: ExecuteCommandLineCallbacks, - buildHost: SolutionBuilderHostBase + buildHost: SolutionBuilderHostBase, + solutionPerformance: SolutionPerformance | undefined, ) { - updateCreateProgram(sys, buildHost); + updateCreateProgram(sys, buildHost, /*isBuildMode*/ true); buildHost.afterProgramEmitAndDiagnostics = program => { - reportStatistics(sys, program.getProgram()); + reportStatistics(sys, program.getProgram(), solutionPerformance); cb(program); }; buildHost.afterEmitBundle = cb; } - function updateCreateProgram(sys: System, host: { createProgram: CreateProgram; }) { + function updateCreateProgram(sys: System, host: { createProgram: CreateProgram; }, isBuildMode: boolean) { const compileUsingBuilder = host.createProgram; host.createProgram = (rootNames, options, host, oldProgram, configFileParsingDiagnostics, projectReferences) => { Debug.assert(rootNames !== undefined || (options === undefined && !!oldProgram)); if (options !== undefined) { - enableStatisticsAndTracing(sys, options, /*isBuildMode*/ true); + enableStatisticsAndTracing(sys, options, isBuildMode); } return compileUsingBuilder(rootNames, options, host, oldProgram, configFileParsingDiagnostics, projectReferences); }; @@ -864,11 +874,11 @@ namespace ts { cb: ExecuteCommandLineCallbacks, watchCompilerHost: WatchCompilerHost, ) { - updateCreateProgram(sys, watchCompilerHost); + updateCreateProgram(sys, watchCompilerHost, /*isBuildMode*/ false); const emitFilesUsingBuilder = watchCompilerHost.afterProgramCreate!; // TODO: GH#18217 watchCompilerHost.afterProgramCreate = builderProgram => { emitFilesUsingBuilder(builderProgram); - reportStatistics(sys, builderProgram.getProgram()); + reportStatistics(sys, builderProgram.getProgram(), /*builder*/ undefined); cb(builderProgram); }; } @@ -920,6 +930,88 @@ namespace ts { return createWatchProgram(watchCompilerHost); } + interface SolutionPerformance { + addAggregateStatistic(s: Statistic): void; + forEachAggregateStatistics(cb: (s: Statistic) => void): void; + clear(): void; + } + + function enableSolutionPerformance(system: System, options: BuildOptions) { + if (system === sys && options.extendedDiagnostics) { + performance.enable(); + return createSolutionPerfomrance(); + } + } + + function createSolutionPerfomrance(): SolutionPerformance { + let statistics: ESMap | undefined; + return { + addAggregateStatistic, + forEachAggregateStatistics: forEachAggreateStatistics, + clear, + }; + + function addAggregateStatistic(s: Statistic) { + const existing = statistics?.get(s.name); + if (existing) { + if (existing.type === StatisticType.memory) existing.value = Math.max(existing.value, s.value); + else existing.value += s.value; + } + else { + (statistics ??= new Map()).set(s.name, s); + } + } + + function forEachAggreateStatistics(cb: (s: Statistic) => void) { + statistics?.forEach(cb); + } + + function clear() { + statistics = undefined; + } + } + + function reportSolutionBuilderTimes( + builder: SolutionBuilder, + solutionPerformance: SolutionPerformance | undefined) { + if (!solutionPerformance) return; + + if (!performance.isEnabled()) { + sys.write(Diagnostics.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message + "\n"); + return; + } + + const statistics: Statistic[] = []; + statistics.push( + { name: "Projects in scope", value: getBuildOrderFromAnyBuildOrder(builder.getBuildOrder()).length, type: StatisticType.count }, + ); + reportSolutionBuilderCountStatistic("SolutionBuilder::Projects built"); + reportSolutionBuilderCountStatistic("SolutionBuilder::Timestamps only updates"); + reportSolutionBuilderCountStatistic("SolutionBuilder::Bundles updated"); + solutionPerformance.forEachAggregateStatistics(s => { + s.name = `Aggregate ${s.name}`; + statistics.push(s); + }); + performance.forEachMeasure((name, duration) => { + if (isSolutionMarkOrMeasure(name)) statistics.push({ name: `${getNameFromSolutionBuilderMarkOrMeasure(name)} time`, value: duration, type: StatisticType.time }); + }); + performance.disable(); + performance.enable(); + + reportAllStatistics(sys, statistics); + + function reportSolutionBuilderCountStatistic(name: string) { + const value = performance.getCount(name); + if (value) { + statistics.push({ name: getNameFromSolutionBuilderMarkOrMeasure(name), value, type: StatisticType.count }); + } + } + + function getNameFromSolutionBuilderMarkOrMeasure(name: string) { + return name.replace("SolutionBuilder::", ""); + } + } + function canReportDiagnostics(system: System, compilerOptions: CompilerOptions) { return system === sys && (compilerOptions.diagnostics || compilerOptions.extendedDiagnostics); } @@ -939,7 +1031,11 @@ namespace ts { } } - function reportStatistics(sys: System, program: Program) { + function isSolutionMarkOrMeasure(name: string) { + return startsWith(name, "SolutionBuilder::"); + } + + function reportStatistics(sys: System, program: Program, solutionPerformance: SolutionPerformance | undefined) { const compilerOptions = program.getCompilerOptions(); if (canTrace(sys, compilerOptions)) { @@ -953,18 +1049,13 @@ namespace ts { reportCountStatistic("Files", program.getSourceFiles().length); const lineCounts = countLines(program); - const nodeCounts = countNodes(program); if (compilerOptions.extendedDiagnostics) { for (const key of arrayFrom(lineCounts.keys())) { reportCountStatistic("Lines of " + key, lineCounts.get(key)!); } - for (const key of arrayFrom(nodeCounts.keys())) { - reportCountStatistic("Nodes of " + key, nodeCounts.get(key)!); - } } else { reportCountStatistic("Lines", reduceLeftIterator(lineCounts.values(), (sum, count) => sum + count, 0)); - reportCountStatistic("Nodes", reduceLeftIterator(nodeCounts.values(), (sum, count) => sum + count, 0)); } reportCountStatistic("Identifiers", program.getIdentifierCount()); @@ -973,7 +1064,7 @@ namespace ts { reportCountStatistic("Instantiations", program.getInstantiationCount()); if (memoryUsed >= 0) { - reportStatisticalValue("Memory used", Math.round(memoryUsed / 1000) + "K"); + reportStatisticalValue({ name: "Memory used", value: memoryUsed, type: StatisticType.memory }, /*aggregate*/ true); } const isPerformanceEnabled = performance.isEnabled(); @@ -988,7 +1079,9 @@ namespace ts { reportCountStatistic("Subtype cache size", caches.subtype); reportCountStatistic("Strict subtype cache size", caches.strictSubtype); if (isPerformanceEnabled) { - performance.forEachMeasure((name, duration) => reportTimeStatistic(`${name} time`, duration)); + performance.forEachMeasure((name, duration) => { + if (!isSolutionMarkOrMeasure(name)) reportTimeStatistic(`${name} time`, duration, /*aggregate*/ true); + }); } } else if (isPerformanceEnabled) { @@ -996,53 +1089,79 @@ namespace ts { // Note: To match the behavior of previous versions of the compiler, the reported parse time includes // I/O read time and processing time for triple-slash references and module imports, and the reported // emit time includes I/O write time. We preserve this behavior so we can accurately compare times. - reportTimeStatistic("I/O read", performance.getDuration("I/O Read")); - reportTimeStatistic("I/O write", performance.getDuration("I/O Write")); - reportTimeStatistic("Parse time", programTime); - reportTimeStatistic("Bind time", bindTime); - reportTimeStatistic("Check time", checkTime); - reportTimeStatistic("Emit time", emitTime); + reportTimeStatistic("I/O read", performance.getDuration("I/O Read"), /*aggregate*/ true); + reportTimeStatistic("I/O write", performance.getDuration("I/O Write"), /*aggregate*/ true); + reportTimeStatistic("Parse time", programTime, /*aggregate*/ true); + reportTimeStatistic("Bind time", bindTime, /*aggregate*/ true); + reportTimeStatistic("Check time", checkTime, /*aggregate*/ true); + reportTimeStatistic("Emit time", emitTime, /*aggregate*/ true); } if (isPerformanceEnabled) { - reportTimeStatistic("Total time", programTime + bindTime + checkTime + emitTime); + reportTimeStatistic("Total time", programTime + bindTime + checkTime + emitTime, /*aggregate*/ false); } - reportStatistics(); + reportAllStatistics(sys, statistics); if (!isPerformanceEnabled) { sys.write(Diagnostics.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message + "\n"); } else { - performance.disable(); + if (solutionPerformance) { + // Clear selected marks and measures + performance.forEachMeasure(name => { + if (!isSolutionMarkOrMeasure(name)) performance.clearMeasures(name); + }); + performance.forEachMark(name => { + if (!isSolutionMarkOrMeasure(name)) performance.clearMarks(name); + }); + } + else { + performance.disable(); + } } } - function reportStatistics() { - let nameSize = 0; - let valueSize = 0; - for (const { name, value } of statistics) { - if (name.length > nameSize) { - nameSize = name.length; - } - - if (value.length > valueSize) { - valueSize = value.length; - } - } - - for (const { name, value } of statistics) { - sys.write(padRight(name + ":", nameSize + 2) + padLeft(value.toString(), valueSize) + sys.newLine); - } - } - - function reportStatisticalValue(name: string, value: string) { - statistics.push({ name, value }); + function reportStatisticalValue(s: Statistic, aggregate: boolean) { + statistics.push(s); + if (aggregate) solutionPerformance?.addAggregateStatistic(s); } function reportCountStatistic(name: string, count: number) { - reportStatisticalValue(name, "" + count); + reportStatisticalValue({ name, value: count, type: StatisticType.count }, /*aggregate*/ true); } - function reportTimeStatistic(name: string, time: number) { - reportStatisticalValue(name, (time / 1000).toFixed(2) + "s"); + function reportTimeStatistic(name: string, time: number, aggregate: boolean) { + reportStatisticalValue({ name, value: time, type: StatisticType.time }, aggregate); + } + } + + function reportAllStatistics(sys: System, statistics: Statistic[]) { + let nameSize = 0; + let valueSize = 0; + for (const s of statistics) { + if (s.name.length > nameSize) { + nameSize = s.name.length; + } + + const value = statisticValue(s); + if (value.length > valueSize) { + valueSize = value.length; + } + } + + for (const s of statistics) { + sys.write(padRight(s.name + ":", nameSize + 2) + padLeft(statisticValue(s).toString(), valueSize) + sys.newLine); + } + } + + function statisticValue(s: Statistic) { + switch (s.type) { + case StatisticType.count: + return "" + s.value; + case StatisticType.time: + return (s.value / 1000).toFixed(2) + "s"; + case StatisticType.memory: + return Math.round(s.value / 1000) + "K"; + default: + Debug.assertNever(s.type); } } diff --git a/src/harness/client.ts b/src/harness/client.ts index 96f720d526e..fd3fce41df6 100644 --- a/src/harness/client.ts +++ b/src/harness/client.ts @@ -876,6 +876,10 @@ namespace ts.server { throw new Error("Program objects are not serializable through the server protocol."); } + getCurrentProgram(): Program | undefined { + throw new Error("Program objects are not serializable through the server protocol."); + } + getAutoImportProvider(): Program | undefined { throw new Error("Program objects are not serializable through the server protocol."); } diff --git a/src/harness/fakesHosts.ts b/src/harness/fakesHosts.ts index b1fc0e69c65..1868561a34c 100644 --- a/src/harness/fakesHosts.ts +++ b/src/harness/fakesHosts.ts @@ -506,7 +506,8 @@ ${indentText}${text}`; sys.readFile = (path, encoding) => { const value = originalReadFile.call(sys, path, encoding); if (!value || !ts.isBuildInfoFile(path)) return value; - const buildInfo = ts.getBuildInfo(value); + const buildInfo = ts.getBuildInfo(path, value); + if (!buildInfo) return value; ts.Debug.assert(buildInfo.version === version); buildInfo.version = ts.version; return ts.getBuildInfoText(buildInfo); @@ -519,10 +520,14 @@ ${indentText}${text}`; sys.write = msg => originalWrite.call(sys, msg.replace(ts.version, version)); const originalWriteFile = sys.writeFile; sys.writeFile = (fileName: string, content: string, writeByteOrderMark: boolean) => { - if (!ts.isBuildInfoFile(fileName)) return originalWriteFile.call(sys, fileName, content, writeByteOrderMark); - const buildInfo = ts.getBuildInfo(content); - buildInfo.version = version; - originalWriteFile.call(sys, fileName, ts.getBuildInfoText(buildInfo), writeByteOrderMark); + if (ts.isBuildInfoFile(fileName)) { + const buildInfo = ts.getBuildInfo(fileName, content); + if (buildInfo) { + buildInfo.version = version; + return originalWriteFile.call(sys, fileName, ts.getBuildInfoText(buildInfo), writeByteOrderMark); + } + } + return originalWriteFile.call(sys, fileName, content, writeByteOrderMark); }; return sys; } diff --git a/src/harness/fourslashImpl.ts b/src/harness/fourslashImpl.ts index f605a17c02c..d0ed9fd6c03 100644 --- a/src/harness/fourslashImpl.ts +++ b/src/harness/fourslashImpl.ts @@ -2256,7 +2256,7 @@ namespace FourSlash { this.languageServiceAdapterHost, this.languageService.getProgram()?.getCompilerOptions() || {} ), - setExternalModuleIndicator: ts.getSetExternalModuleIndicator(this.languageService.getProgram()?.getCompilerOptions() || {}) + setExternalModuleIndicator: ts.getSetExternalModuleIndicator(this.languageService.getProgram()?.getCompilerOptions() || {}), }; const referenceSourceFile = ts.createLanguageServiceSourceFile( this.activeFile.fileName, createScriptSnapShot(content), options, /*version:*/ "0", /*setNodeParents:*/ false); @@ -2749,6 +2749,13 @@ namespace FourSlash { // fs.writeFileSync(testfilePath, newfile); } + public verifyEncodedSyntacticClassificationsLength(expected: number) { + const actual = this.languageService.getEncodedSyntacticClassifications(this.activeFile.fileName, ts.createTextSpan(0, this.activeFile.content.length)); + if (actual.spans.length !== expected) { + this.raiseError(`encodedSyntacticClassificationsLength failed - expected total spans to be ${expected} got ${actual.spans.length}`); + } + } + public verifyEncodedSemanticClassificationsLength(format: ts.SemanticClassificationFormat, expected: number) { const actual = this.languageService.getEncodedSemanticClassifications(this.activeFile.fileName, ts.createTextSpan(0, this.activeFile.content.length), format); if (actual.spans.length !== expected) { diff --git a/src/harness/fourslashInterfaceImpl.ts b/src/harness/fourslashInterfaceImpl.ts index ddb8c02c69c..93508a079ab 100644 --- a/src/harness/fourslashInterfaceImpl.ts +++ b/src/harness/fourslashInterfaceImpl.ts @@ -541,6 +541,10 @@ namespace FourSlashInterface { this.state.verifySyntacticClassifications(classifications); } + public encodedSyntacticClassificationsLength(length: number) { + this.state.verifyEncodedSyntacticClassificationsLength(length); + } + public encodedSemanticClassificationsLength(format: ts.SemanticClassificationFormat, length: number) { this.state.verifyEncodedSemanticClassificationsLength(format, length); } diff --git a/src/harness/harnessLanguageService.ts b/src/harness/harnessLanguageService.ts index 58c5a03fe09..3497d9acf5b 100644 --- a/src/harness/harnessLanguageService.ts +++ b/src/harness/harnessLanguageService.ts @@ -627,6 +627,9 @@ namespace Harness.LanguageService { getProgram(): ts.Program { throw new Error("Program can not be marshaled across the shim layer."); } + getCurrentProgram(): ts.Program | undefined { + throw new Error("Program can not be marshaled across the shim layer."); + } getAutoImportProvider(): ts.Program | undefined { throw new Error("Program can not be marshaled across the shim layer."); } diff --git a/src/harness/virtualFileSystemWithWatch.ts b/src/harness/virtualFileSystemWithWatch.ts index 00f32c84b19..80aa7f98eb4 100644 --- a/src/harness/virtualFileSystemWithWatch.ts +++ b/src/harness/virtualFileSystemWithWatch.ts @@ -116,7 +116,14 @@ interface Array { length: number; [n: number]: T; }` function createWatcher(map: MultiMap, path: Path, callback: T): FileWatcher { map.add(path, callback); - return { close: () => map.remove(path, callback) }; + let closed = false; + return { + close: () => { + Debug.assert(!closed); + map.remove(path, callback); + closed = true; + } + }; } export function getDiffInKeys(map: ESMap, expectedKeys: readonly string[]) { diff --git a/src/lib/dom.generated.d.ts b/src/lib/dom.generated.d.ts index 12470880f37..1654c937237 100644 --- a/src/lib/dom.generated.d.ts +++ b/src/lib/dom.generated.d.ts @@ -13828,11 +13828,11 @@ declare var SubmitEvent: { * Available only in secure contexts. */ interface SubtleCrypto { - decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise; + decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise; deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise; deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise; digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise; - encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise; + encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise; exportKey(format: "jwk", key: CryptoKey): Promise; exportKey(format: Exclude, key: CryptoKey): Promise; generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray): Promise; diff --git a/src/lib/es2015.collection.d.ts b/src/lib/es2015.collection.d.ts index 83a7719acef..9e27045a559 100644 --- a/src/lib/es2015.collection.d.ts +++ b/src/lib/es2015.collection.d.ts @@ -1,16 +1,36 @@ interface Map { + clear(): void; + /** + * @returns true if an element in the Map existed and has been removed, or false if the element does not exist. + */ delete(key: K): boolean; + /** + * Executes a provided function once per each key/value pair in the Map, in insertion order. + */ forEach(callbackfn: (value: V, key: K, map: Map) => void, thisArg?: any): void; + /** + * Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map. + * @returns Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned. + */ get(key: K): V | undefined; + /** + * @returns boolean indicating whether an element with the specified key exists or not. + */ has(key: K): boolean; + /** + * Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated. + */ set(key: K, value: V): this; + /** + * @returns the number of elements in the Map. + */ readonly size: number; } interface MapConstructor { new(): Map; - new(entries?: readonly (readonly [K, V])[] | null): Map; + new (entries?: readonly (readonly [K, V])[] | null): Map; readonly prototype: Map; } declare var Map: MapConstructor; @@ -23,9 +43,23 @@ interface ReadonlyMap { } interface WeakMap { + /** + * Removes the specified element from the WeakMap. + * @returns true if the element was successfully removed, or false if it was not present. + */ delete(key: K): boolean; + /** + * @returns a specified element. + */ get(key: K): V | undefined; + /** + * @returns a boolean indicating whether an element with the specified key exists or not. + */ has(key: K): boolean; + /** + * Adds a new element with a specified key and value. + * @param key Must be an object. + */ set(key: K, value: V): this; } @@ -36,11 +70,28 @@ interface WeakMapConstructor { declare var WeakMap: WeakMapConstructor; interface Set { + /** + * Appends a new element with a specified value to the end of the Set. + */ add(value: T): this; + clear(): void; + /** + * Removes a specified value from the Set. + * @returns Returns true if an element in the Set existed and has been removed, or false if the element does not exist. + */ delete(value: T): boolean; + /** + * Executes a provided function once per each value in the Set object, in insertion order. + */ forEach(callbackfn: (value: T, value2: T, set: Set) => void, thisArg?: any): void; + /** + * @returns a boolean indicating whether an element with the specified value exists in the Set or not. + */ has(value: T): boolean; + /** + * @returns the number of (unique) elements in Set. + */ readonly size: number; } @@ -57,8 +108,18 @@ interface ReadonlySet { } interface WeakSet { + /** + * Appends a new object to the end of the WeakSet. + */ add(value: T): this; + /** + * Removes the specified element from the WeakSet. + * @returns Returns true if the element existed and has been removed, or false if the element does not exist. + */ delete(value: T): boolean; + /** + * @returns a boolean indicating whether an object exists in the WeakSet or not. + */ has(value: T): boolean; } diff --git a/src/lib/es2015.promise.d.ts b/src/lib/es2015.promise.d.ts index ac8f36de4b9..68b476d8c2f 100644 --- a/src/lib/es2015.promise.d.ts +++ b/src/lib/es2015.promise.d.ts @@ -21,7 +21,7 @@ interface PromiseConstructor { all(values: T): Promise<{ -readonly [P in keyof T]: Awaited }>; // see: lib.es2015.iterable.d.ts - // all(values: Iterable>): Promise; + // all(values: Iterable>): Promise[]>; /** * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved @@ -32,7 +32,7 @@ interface PromiseConstructor { race(values: T): Promise>; // see: lib.es2015.iterable.d.ts - // race(values: Iterable): Promise ? U : T>; + // race(values: Iterable>): Promise>; /** * Creates a new rejected promise for the provided reason. @@ -46,13 +46,18 @@ interface PromiseConstructor { * @returns A resolved promise. */ resolve(): Promise; - /** * Creates a new resolved promise for the provided value. * @param value A promise. * @returns A promise whose internal state matches the provided promise. */ - resolve(value: T | PromiseLike): Promise; + resolve(value: T): Promise>; + /** + * Creates a new resolved promise for the provided value. + * @param value A promise. + * @returns A promise whose internal state matches the provided promise. + */ + resolve(value: T | PromiseLike): Promise>; } declare var Promise: PromiseConstructor; diff --git a/src/lib/es2015.proxy.d.ts b/src/lib/es2015.proxy.d.ts index 991531aa1ce..aa339edaebb 100644 --- a/src/lib/es2015.proxy.d.ts +++ b/src/lib/es2015.proxy.d.ts @@ -1,21 +1,110 @@ interface ProxyHandler { + /** + * A trap method for a function call. + * @param target The original callable object which is being proxied. + */ apply?(target: T, thisArg: any, argArray: any[]): any; + + /** + * A trap for the `new` operator. + * @param target The original object which is being proxied. + * @param newTarget The constructor that was originally called. + */ construct?(target: T, argArray: any[], newTarget: Function): object; - defineProperty?(target: T, p: string | symbol, attributes: PropertyDescriptor): boolean; + + /** + * A trap for `Object.defineProperty()`. + * @param target The original object which is being proxied. + * @returns A `Boolean` indicating whether or not the property has been defined. + */ + defineProperty?(target: T, property: string | symbol, attributes: PropertyDescriptor): boolean; + + /** + * A trap for the `delete` operator. + * @param target The original object which is being proxied. + * @param p The name or `Symbol` of the property to delete. + * @returns A `Boolean` indicating whether or not the property was deleted. + */ deleteProperty?(target: T, p: string | symbol): boolean; + + /** + * A trap for getting a property value. + * @param target The original object which is being proxied. + * @param p The name or `Symbol` of the property to get. + * @param receiver The proxy or an object that inherits from the proxy. + */ get?(target: T, p: string | symbol, receiver: any): any; + + /** + * A trap for `Object.getOwnPropertyDescriptor()`. + * @param target The original object which is being proxied. + * @param p The name of the property whose description should be retrieved. + */ getOwnPropertyDescriptor?(target: T, p: string | symbol): PropertyDescriptor | undefined; + + /** + * A trap for the `[[GetPrototypeOf]]` internal method. + * @param target The original object which is being proxied. + */ getPrototypeOf?(target: T): object | null; + + /** + * A trap for the `in` operator. + * @param target The original object which is being proxied. + * @param p The name or `Symbol` of the property to check for existence. + */ has?(target: T, p: string | symbol): boolean; + + /** + * A trap for `Object.isExtensible()`. + * @param target The original object which is being proxied. + */ isExtensible?(target: T): boolean; + + /** + * A trap for `Reflect.ownKeys()`. + * @param target The original object which is being proxied. + */ ownKeys?(target: T): ArrayLike; + + /** + * A trap for `Object.preventExtensions()`. + * @param target The original object which is being proxied. + */ preventExtensions?(target: T): boolean; - set?(target: T, p: string | symbol, value: any, receiver: any): boolean; + + /** + * A trap for setting a property value. + * @param target The original object which is being proxied. + * @param p The name or `Symbol` of the property to set. + * @param receiver The object to which the assignment was originally directed. + * @returns `A `Boolean` indicating whether or not the property was set. + */ + set?(target: T, p: string | symbol, newValue: any, receiver: any): boolean; + + /** + * A trap for `Object.setPrototypeOf()`. + * @param target The original object which is being proxied. + * @param newPrototype The object's new prototype or `null`. + */ setPrototypeOf?(target: T, v: object | null): boolean; } interface ProxyConstructor { + /** + * Creates a revocable Proxy object. + * @param target A target object to wrap with Proxy. + * @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it. + */ revocable(target: T, handler: ProxyHandler): { proxy: T; revoke: () => void; }; + + /** + * Creates a Proxy object. The Proxy object allows you to create an object that can be used in place of the + * original object, but which may redefine fundamental Object operations like getting, setting, and defining + * properties. Proxy objects are commonly used to log property accesses, validate, format, or sanitize inputs. + * @param target A target object to wrap with Proxy. + * @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it. + */ new (target: T, handler: ProxyHandler): T; } declare var Proxy: ProxyConstructor; diff --git a/src/lib/es2015.reflect.d.ts b/src/lib/es2015.reflect.d.ts index ed968dc0b17..4f4ddc404f0 100644 --- a/src/lib/es2015.reflect.d.ts +++ b/src/lib/es2015.reflect.d.ts @@ -6,6 +6,11 @@ declare namespace Reflect { * @param thisArgument The object to be used as the this object. * @param argumentsList An array of argument values to be passed to the function. */ + function apply( + target: (this: T, ...args: A) => R, + thisArgument: T, + argumentsList: Readonly, + ): R; function apply(target: Function, thisArgument: any, argumentsList: ArrayLike): any; /** @@ -15,6 +20,11 @@ declare namespace Reflect { * @param argumentsList An array of argument values to be passed to the constructor. * @param newTarget The constructor to be used as the `new.target` object. */ + function construct( + target: new (...args: A) => R, + argumentsList: Readonly, + newTarget?: new (...args: any) => any, + ): R; function construct(target: Function, argumentsList: ArrayLike, newTarget?: Function): any; /** @@ -41,7 +51,11 @@ declare namespace Reflect { * @param receiver The reference to use as the `this` value in the getter function, * if `target[propertyKey]` is an accessor property. */ - function get(target: object, propertyKey: PropertyKey, receiver?: any): any; + function get( + target: T, + propertyKey: P, + receiver?: unknown, + ): P extends keyof T ? T[P] : any; /** * Gets the own property descriptor of the specified object. @@ -49,7 +63,10 @@ declare namespace Reflect { * @param target Object that contains the property. * @param propertyKey The property name. */ - function getOwnPropertyDescriptor(target: object, propertyKey: PropertyKey): PropertyDescriptor | undefined; + function getOwnPropertyDescriptor( + target: T, + propertyKey: P, + ): TypedPropertyDescriptor

| undefined; /** * Returns the prototype of an object. @@ -91,6 +108,12 @@ declare namespace Reflect { * @param receiver The reference to use as the `this` value in the setter function, * if `target[propertyKey]` is an accessor property. */ + function set( + target: T, + propertyKey: P, + value: P extends keyof T ? T[P] : any, + receiver?: any, + ): boolean; function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean; /** diff --git a/src/lib/es2020.intl.d.ts b/src/lib/es2020.intl.d.ts index bae2790eecb..37486e29630 100644 --- a/src/lib/es2020.intl.d.ts +++ b/src/lib/es2020.intl.d.ts @@ -83,7 +83,7 @@ declare namespace Intl { * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument). */ - type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined; + type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | readonly (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined; /** * An object with some or all of properties of `options` parameter diff --git a/src/lib/es2022.error.d.ts b/src/lib/es2022.error.d.ts index 2ba83dcf5de..5f9bae491f4 100644 --- a/src/lib/es2022.error.d.ts +++ b/src/lib/es2022.error.d.ts @@ -1,9 +1,9 @@ interface ErrorOptions { - cause?: Error; + cause?: unknown; } interface Error { - cause?: Error; + cause?: unknown; } interface ErrorConstructor { diff --git a/src/lib/es5.d.ts b/src/lib/es5.d.ts index b062a920c37..f4b499cd816 100644 --- a/src/lib/es5.d.ts +++ b/src/lib/es5.d.ts @@ -194,12 +194,6 @@ interface ObjectConstructor { */ seal(o: T): T; - /** - * Prevents the modification of existing property attributes and values, and prevents the addition of new properties. - * @param a Object on which to lock the attributes. - */ - freeze(a: T[]): readonly T[]; - /** * Prevents the modification of existing property attributes and values, and prevents the addition of new properties. * @param f Object on which to lock the attributes. @@ -888,7 +882,17 @@ interface Date { interface DateConstructor { new(): Date; new(value: number | string): Date; - new(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date; + /** + * Creates a new Date. + * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year. + * @param monthIndex The month as a number between 0 and 11 (January to December). + * @param date The date as a number between 1 and 31. + * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour. + * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes. + * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds. + * @param ms A number from 0 to 999 that specifies the milliseconds. + */ + new(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date; (): string; readonly prototype: Date; /** @@ -899,14 +903,14 @@ interface DateConstructor { /** * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date. * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year. - * @param month The month as a number between 0 and 11 (January to December). + * @param monthIndex The month as a number between 0 and 11 (January to December). * @param date The date as a number between 1 and 31. * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour. * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes. * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds. * @param ms A number from 0 to 999 that specifies the milliseconds. */ - UTC(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number; + UTC(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number; now(): number; } @@ -921,6 +925,10 @@ interface RegExpMatchArray extends Array { * A copy of the search string. */ input?: string; + /** + * The first match. This will always be present because `null` will be returned if there are no matches. + */ + 0: string; } interface RegExpExecArray extends Array { @@ -1512,8 +1520,8 @@ interface Promise { */ type Awaited = T extends null | undefined ? T : // special case for `null | undefined` when not in `--strictNullChecks` mode - T extends object & { then(onfulfilled: infer F): any } ? // `await` only unwraps object types with a callable `then`. Non-object types are not unwrapped - F extends ((value: infer V, ...args: any) => any) ? // if the argument to `then` is callable, extracts the first argument + T extends object & { then(onfulfilled: infer F, ...args: infer _): any } ? // `await` only unwraps object types with a callable `then`. Non-object types are not unwrapped + F extends ((value: infer V, ...args: infer _) => any) ? // if the argument to `then` is callable, extracts the first argument Awaited : // recursively unwrap the value never : // the argument to `then` was not callable T; // non-object or non-thenable diff --git a/src/lib/webworker.generated.d.ts b/src/lib/webworker.generated.d.ts index 343cb94cd64..b88d6b745b1 100644 --- a/src/lib/webworker.generated.d.ts +++ b/src/lib/webworker.generated.d.ts @@ -2988,11 +2988,11 @@ declare var StorageManager: { * Available only in secure contexts. */ interface SubtleCrypto { - decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise; + decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise; deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise; deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise; digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise; - encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise; + encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise; exportKey(format: "jwk", key: CryptoKey): Promise; exportKey(format: Exclude, key: CryptoKey): Promise; generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray): Promise; diff --git a/src/loc/lcl/chs/diagnosticMessages/diagnosticMessages.generated.json.lcl b/src/loc/lcl/chs/diagnosticMessages/diagnosticMessages.generated.json.lcl index 2fc278921d9..2f7628b0645 100644 --- a/src/loc/lcl/chs/diagnosticMessages/diagnosticMessages.generated.json.lcl +++ b/src/loc/lcl/chs/diagnosticMessages/diagnosticMessages.generated.json.lcl @@ -61,7 +61,7 @@ - + @@ -70,7 +70,7 @@ - + @@ -217,7 +217,7 @@ - + @@ -388,7 +388,7 @@ - + @@ -568,7 +568,7 @@ - + @@ -577,7 +577,7 @@ - + @@ -622,7 +622,7 @@ - + @@ -900,6 +900,15 @@ + + + + + + + + + @@ -2112,6 +2121,15 @@ + + + + + + + + + @@ -6516,6 +6534,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -7194,6 +7248,15 @@ + + + + + + + + + @@ -8498,10 +8561,13 @@ - + - + + + + @@ -10173,6 +10239,15 @@ + + + + + + + + + @@ -12777,6 +12852,15 @@ + + + + + + + + + @@ -13749,11 +13833,11 @@ - + - + - + @@ -13866,6 +13950,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -14451,6 +14571,15 @@ + + + + + + + + + diff --git a/src/loc/lcl/cht/diagnosticMessages/diagnosticMessages.generated.json.lcl b/src/loc/lcl/cht/diagnosticMessages/diagnosticMessages.generated.json.lcl index d226afe222c..0dfe2c2681a 100644 --- a/src/loc/lcl/cht/diagnosticMessages/diagnosticMessages.generated.json.lcl +++ b/src/loc/lcl/cht/diagnosticMessages/diagnosticMessages.generated.json.lcl @@ -900,6 +900,15 @@ + + + + + + + + + @@ -2112,6 +2121,15 @@ + + + + + + + + + @@ -6516,6 +6534,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -7194,6 +7248,15 @@ + + + + + + + + + @@ -8498,10 +8561,13 @@ - + - + + + + @@ -10173,6 +10239,15 @@ + + + + + + + + + @@ -12777,6 +12852,15 @@ + + + + + + + + + @@ -13749,9 +13833,9 @@ - + - + @@ -13866,6 +13950,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -14451,6 +14571,15 @@ + + + + + + + + + diff --git a/src/loc/lcl/csy/diagnosticMessages/diagnosticMessages.generated.json.lcl b/src/loc/lcl/csy/diagnosticMessages/diagnosticMessages.generated.json.lcl index 735bf7883f0..e62bb684070 100644 --- a/src/loc/lcl/csy/diagnosticMessages/diagnosticMessages.generated.json.lcl +++ b/src/loc/lcl/csy/diagnosticMessages/diagnosticMessages.generated.json.lcl @@ -909,6 +909,15 @@ + + + + + + + + + @@ -2121,6 +2130,15 @@ + + + + + + + + + @@ -6525,6 +6543,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -7203,6 +7257,15 @@ + + + + + + + + + @@ -8507,10 +8570,13 @@ - + - + + + + @@ -10182,6 +10248,15 @@ + + + + + + + + + @@ -12786,6 +12861,15 @@ + + + + + + + + + @@ -13758,11 +13842,11 @@ - + - + - + @@ -13875,6 +13959,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -14460,6 +14580,15 @@ + + + + + + + + + diff --git a/src/loc/lcl/deu/diagnosticMessages/diagnosticMessages.generated.json.lcl b/src/loc/lcl/deu/diagnosticMessages/diagnosticMessages.generated.json.lcl index 4e129223488..bce0dd2603c 100644 --- a/src/loc/lcl/deu/diagnosticMessages/diagnosticMessages.generated.json.lcl +++ b/src/loc/lcl/deu/diagnosticMessages/diagnosticMessages.generated.json.lcl @@ -897,6 +897,15 @@ + + + + + + + + + @@ -2109,6 +2118,15 @@ + + + + + + + + + @@ -6513,6 +6531,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -7191,6 +7245,15 @@ + + + + + + + + + @@ -8495,10 +8558,13 @@ - + - + + + + @@ -10167,6 +10233,15 @@ + + + + + + + + + @@ -12771,6 +12846,15 @@ + + + + + + + + + @@ -13743,11 +13827,11 @@ - + - + - + @@ -13860,6 +13944,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -14445,6 +14565,15 @@ + + + + + + + + + diff --git a/src/loc/lcl/esn/diagnosticMessages/diagnosticMessages.generated.json.lcl b/src/loc/lcl/esn/diagnosticMessages/diagnosticMessages.generated.json.lcl index 1601f39d047..03e9ec86c02 100644 --- a/src/loc/lcl/esn/diagnosticMessages/diagnosticMessages.generated.json.lcl +++ b/src/loc/lcl/esn/diagnosticMessages/diagnosticMessages.generated.json.lcl @@ -909,6 +909,15 @@ + + + + + + + + + @@ -2124,6 +2133,15 @@ + + + + + + + + + @@ -6528,6 +6546,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -7206,6 +7260,15 @@ + + + + + + + + + @@ -8510,10 +8573,13 @@ - + - + + + + @@ -10185,6 +10251,15 @@ + + + + + + + + + @@ -12789,6 +12864,15 @@ + + + + + + + + + @@ -13761,9 +13845,9 @@ - + - + @@ -13878,6 +13962,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -14463,6 +14583,15 @@ + + + + + + + + + diff --git a/src/loc/lcl/fra/diagnosticMessages/diagnosticMessages.generated.json.lcl b/src/loc/lcl/fra/diagnosticMessages/diagnosticMessages.generated.json.lcl index 89eddebdb03..627ee285440 100644 --- a/src/loc/lcl/fra/diagnosticMessages/diagnosticMessages.generated.json.lcl +++ b/src/loc/lcl/fra/diagnosticMessages/diagnosticMessages.generated.json.lcl @@ -909,6 +909,15 @@ + + + + + + + + + @@ -2124,6 +2133,15 @@ + + + + + + + + + @@ -6528,6 +6546,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -7206,6 +7260,15 @@ + + + + + + + + + @@ -8510,10 +8573,13 @@ - + - + + + + @@ -10185,6 +10251,15 @@ + + + + + + + + + @@ -12789,6 +12864,15 @@ + + + + + + + + + @@ -13761,11 +13845,11 @@ - + - + - + @@ -13878,6 +13962,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -14463,6 +14583,15 @@ + + + + + + + + + diff --git a/src/loc/lcl/ita/diagnosticMessages/diagnosticMessages.generated.json.lcl b/src/loc/lcl/ita/diagnosticMessages/diagnosticMessages.generated.json.lcl index 8b98fe395fc..6cb50639fcd 100644 --- a/src/loc/lcl/ita/diagnosticMessages/diagnosticMessages.generated.json.lcl +++ b/src/loc/lcl/ita/diagnosticMessages/diagnosticMessages.generated.json.lcl @@ -900,6 +900,15 @@ + + + + + + + + + @@ -2112,6 +2121,15 @@ + + + + + + + + + @@ -6516,6 +6534,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -7194,6 +7248,15 @@ + + + + + + + + + @@ -8498,10 +8561,13 @@ - + - + + + + @@ -10173,6 +10239,15 @@ + + + + + + + + + @@ -12777,6 +12852,15 @@ + + + + + + + + + @@ -13749,9 +13833,9 @@ - + - + @@ -13866,6 +13950,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -14451,6 +14571,15 @@ + + + + + + + + + diff --git a/src/loc/lcl/jpn/diagnosticMessages/diagnosticMessages.generated.json.lcl b/src/loc/lcl/jpn/diagnosticMessages/diagnosticMessages.generated.json.lcl index 16a49a7069f..807248a973a 100644 --- a/src/loc/lcl/jpn/diagnosticMessages/diagnosticMessages.generated.json.lcl +++ b/src/loc/lcl/jpn/diagnosticMessages/diagnosticMessages.generated.json.lcl @@ -900,6 +900,15 @@ + + + + + + + + + @@ -2112,6 +2121,15 @@ + + + + + + + + + @@ -6516,6 +6534,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -7194,6 +7248,15 @@ + + + + + + + + + @@ -8498,10 +8561,13 @@ - + - + + + + @@ -10173,6 +10239,15 @@ + + + + + + + + + @@ -12777,6 +12852,15 @@ + + + + + + + + + @@ -13749,11 +13833,11 @@ - + - + - + @@ -13866,6 +13950,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -14451,6 +14571,15 @@ + + + + + + + + + diff --git a/src/loc/lcl/kor/diagnosticMessages/diagnosticMessages.generated.json.lcl b/src/loc/lcl/kor/diagnosticMessages/diagnosticMessages.generated.json.lcl index 27169714b43..d01056ecc4c 100644 --- a/src/loc/lcl/kor/diagnosticMessages/diagnosticMessages.generated.json.lcl +++ b/src/loc/lcl/kor/diagnosticMessages/diagnosticMessages.generated.json.lcl @@ -900,6 +900,15 @@ + + + + + + + + + @@ -2112,6 +2121,15 @@ + + + + + + + + + @@ -6516,6 +6534,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -7194,6 +7248,15 @@ + + + + + + + + + @@ -8498,10 +8561,13 @@ - + - + + + + @@ -10173,6 +10239,15 @@ + + + + + + + + + @@ -12777,6 +12852,15 @@ + + + + + + + + + @@ -13749,9 +13833,9 @@ - + - + @@ -13866,6 +13950,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -14451,6 +14571,15 @@ + + + + + + + + + diff --git a/src/loc/lcl/plk/diagnosticMessages/diagnosticMessages.generated.json.lcl b/src/loc/lcl/plk/diagnosticMessages/diagnosticMessages.generated.json.lcl index 3207cd4559b..1f9232da369 100644 --- a/src/loc/lcl/plk/diagnosticMessages/diagnosticMessages.generated.json.lcl +++ b/src/loc/lcl/plk/diagnosticMessages/diagnosticMessages.generated.json.lcl @@ -890,6 +890,15 @@ + + + + + + + + + @@ -2102,6 +2111,15 @@ + + + + + + + + + @@ -6506,6 +6524,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -7184,6 +7238,15 @@ + + + + + + + + + @@ -8488,10 +8551,13 @@ - + - + + + + @@ -10160,6 +10226,15 @@ + + + + + + + + + @@ -12764,6 +12839,15 @@ + + + + + + + + + @@ -13736,9 +13820,9 @@ - + - + @@ -13853,6 +13937,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -14438,6 +14558,15 @@ + + + + + + + + + diff --git a/src/loc/lcl/ptb/diagnosticMessages/diagnosticMessages.generated.json.lcl b/src/loc/lcl/ptb/diagnosticMessages/diagnosticMessages.generated.json.lcl index 441fc6131e0..e82f221c55e 100644 --- a/src/loc/lcl/ptb/diagnosticMessages/diagnosticMessages.generated.json.lcl +++ b/src/loc/lcl/ptb/diagnosticMessages/diagnosticMessages.generated.json.lcl @@ -890,6 +890,15 @@ + + + + + + + + + @@ -2105,6 +2114,15 @@ + + + + + + + + + @@ -6509,6 +6527,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -7187,6 +7241,15 @@ + + + + + + + + + @@ -8491,10 +8554,13 @@ - + - + + + + @@ -10163,6 +10229,15 @@ + + + + + + + + + @@ -12767,6 +12842,15 @@ + + + + + + + + + @@ -13739,11 +13823,11 @@ - + - + - + @@ -13856,6 +13940,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -14441,6 +14561,15 @@ + + + + + + + + + diff --git a/src/loc/lcl/rus/diagnosticMessages/diagnosticMessages.generated.json.lcl b/src/loc/lcl/rus/diagnosticMessages/diagnosticMessages.generated.json.lcl index daac3f8d535..7f8b02e382c 100644 --- a/src/loc/lcl/rus/diagnosticMessages/diagnosticMessages.generated.json.lcl +++ b/src/loc/lcl/rus/diagnosticMessages/diagnosticMessages.generated.json.lcl @@ -899,6 +899,15 @@ + + + + + + + + + @@ -2111,6 +2120,15 @@ + + + + + + + + + @@ -6515,6 +6533,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -7193,6 +7247,15 @@ + + + + + + + + + @@ -8497,10 +8560,13 @@ - + - + + + + @@ -10172,6 +10238,15 @@ + + + + + + + + + @@ -12776,6 +12851,15 @@ + + + + + + + + + @@ -13748,11 +13832,11 @@ - + - + - + @@ -13865,6 +13949,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -14450,6 +14570,15 @@ + + + + + + + + + diff --git a/src/loc/lcl/trk/diagnosticMessages/diagnosticMessages.generated.json.lcl b/src/loc/lcl/trk/diagnosticMessages/diagnosticMessages.generated.json.lcl index 59fddca5910..e6048b15feb 100644 --- a/src/loc/lcl/trk/diagnosticMessages/diagnosticMessages.generated.json.lcl +++ b/src/loc/lcl/trk/diagnosticMessages/diagnosticMessages.generated.json.lcl @@ -893,6 +893,15 @@ + + + + + + + + + @@ -2105,6 +2114,15 @@ + + + + + + + + + @@ -6509,6 +6527,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -7187,6 +7241,15 @@ + + + + + + + + + @@ -8491,10 +8554,13 @@ - + - + + + + @@ -10166,6 +10232,15 @@ + + + + + + + + + @@ -12770,6 +12845,15 @@ + + + + + + + + + @@ -13742,11 +13826,11 @@ - + - + - + @@ -13859,6 +13943,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -14444,6 +14564,15 @@ + + + + + + + + + diff --git a/src/server/editorServices.ts b/src/server/editorServices.ts index 6cca27c0335..c6d1513c077 100644 --- a/src/server/editorServices.ts +++ b/src/server/editorServices.ts @@ -892,13 +892,13 @@ namespace ts.server { } /*@internal*/ - setDocument(key: DocumentRegistryBucketKey, path: Path, sourceFile: SourceFile) { + setDocument(key: DocumentRegistryBucketKeyWithMode, path: Path, sourceFile: SourceFile) { const info = Debug.checkDefined(this.getScriptInfoForPath(path)); info.cacheSourceFile = { key, sourceFile }; } /*@internal*/ - getDocument(key: DocumentRegistryBucketKey, path: Path): SourceFile | undefined { + getDocument(key: DocumentRegistryBucketKeyWithMode, path: Path): SourceFile | undefined { const info = this.getScriptInfoForPath(path); return info && info.cacheSourceFile && info.cacheSourceFile.key === key ? info.cacheSourceFile.sourceFile : undefined; } @@ -1709,7 +1709,7 @@ namespace ts.server { // created when any of the script infos are added as root of inferred project if (this.configFileExistenceImpactsRootOfInferredProject(configFileExistenceInfo)) { // If we cannot watch config file existence without configured project, close the configured file watcher - if (!canWatchDirectory(getDirectoryPath(canonicalConfigFilePath) as Path)) { + if (!canWatchDirectoryOrFile(getDirectoryPath(canonicalConfigFilePath) as Path)) { configFileExistenceInfo.watcher!.close(); configFileExistenceInfo.watcher = noopConfigFileWatcher; } @@ -1794,7 +1794,7 @@ namespace ts.server { (configFileExistenceInfo.openFilesImpactedByConfigFile ||= new Map()).set(info.path, true); // If there is no configured project for this config file, add the file watcher - configFileExistenceInfo.watcher ||= canWatchDirectory(getDirectoryPath(canonicalConfigFilePath) as Path) ? + configFileExistenceInfo.watcher ||= canWatchDirectoryOrFile(getDirectoryPath(canonicalConfigFilePath) as Path) ? this.watchFactory.watchFile( configFileName, (_filename, eventKind) => this.onConfigFileChanged(canonicalConfigFilePath, eventKind), @@ -4185,11 +4185,11 @@ namespace ts.server { } /*@internal*/ - getPackageJsonsVisibleToFile(fileName: string, rootDir?: string): readonly PackageJsonInfo[] { + getPackageJsonsVisibleToFile(fileName: string, rootDir?: string): readonly ProjectPackageJsonInfo[] { const packageJsonCache = this.packageJsonCache; const rootPath = rootDir && this.toPath(rootDir); const filePath = this.toPath(fileName); - const result: PackageJsonInfo[] = []; + const result: ProjectPackageJsonInfo[] = []; const processDirectory = (directory: Path): boolean | undefined => { switch (packageJsonCache.directoryHasPackageJson(directory)) { // Sync and check same directory again diff --git a/src/server/packageJsonCache.ts b/src/server/packageJsonCache.ts index 3aa6129430a..5c88fb9334d 100644 --- a/src/server/packageJsonCache.ts +++ b/src/server/packageJsonCache.ts @@ -2,16 +2,16 @@ namespace ts.server { export interface PackageJsonCache { addOrUpdate(fileName: Path): void; - forEach(action: (info: PackageJsonInfo, fileName: Path) => void): void; + forEach(action: (info: ProjectPackageJsonInfo, fileName: Path) => void): void; delete(fileName: Path): void; - get(fileName: Path): PackageJsonInfo | false | undefined; - getInDirectory(directory: Path): PackageJsonInfo | undefined; + get(fileName: Path): ProjectPackageJsonInfo | false | undefined; + getInDirectory(directory: Path): ProjectPackageJsonInfo | undefined; directoryHasPackageJson(directory: Path): Ternary; searchDirectoryAndAncestors(directory: Path): void; } export function createPackageJsonCache(host: ProjectService): PackageJsonCache { - const packageJsons = new Map(); + const packageJsons = new Map(); const directoriesWithoutPackageJson = new Map(); return { addOrUpdate, diff --git a/src/server/project.ts b/src/server/project.ts index 3ee83ea4c8c..1a27b63d2ea 100644 --- a/src/server/project.ts +++ b/src/server/project.ts @@ -558,7 +558,7 @@ namespace ts.server { cb, PollingInterval.High, this.projectService.getWatchOptions(this), - WatchType.PackageJson, + WatchType.AffectingFileLocation, this ); } @@ -1172,7 +1172,7 @@ namespace ts.server { } private updateGraphWorker() { - const oldProgram = this.program; + const oldProgram = this.languageService.getCurrentProgram(); Debug.assert(!this.isClosed(), "Called update graph worker of closed project"); this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`); const start = timestamp(); @@ -1181,7 +1181,7 @@ namespace ts.server { this.program = this.languageService.getProgram(); // TODO: GH#18217 this.dirty = false; tracing?.push(tracing.Phase.Session, "finishCachingPerDirectoryResolution"); - this.resolutionCache.finishCachingPerDirectoryResolution(); + this.resolutionCache.finishCachingPerDirectoryResolution(this.program, oldProgram); tracing?.pop(); Debug.assert(oldProgram === undefined || this.program !== undefined); @@ -1751,7 +1751,7 @@ namespace ts.server { } /*@internal*/ - getPackageJsonsVisibleToFile(fileName: string, rootDir?: string): readonly PackageJsonInfo[] { + getPackageJsonsVisibleToFile(fileName: string, rootDir?: string): readonly ProjectPackageJsonInfo[] { if (this.projectService.serverMode !== LanguageServiceMode.Semantic) return emptyArray; return this.projectService.getPackageJsonsVisibleToFile(fileName, rootDir); } @@ -1762,7 +1762,7 @@ namespace ts.server { } /*@internal*/ - getPackageJsonsForAutoImport(rootDir?: string): readonly PackageJsonInfo[] { + getPackageJsonsForAutoImport(rootDir?: string): readonly ProjectPackageJsonInfo[] { const packageJsons = this.getPackageJsonsVisibleToFile(combinePaths(this.currentDirectory, inferredTypesContainingFile), rootDir); this.packageJsonsForAutoImport = new Set(packageJsons.map(p => p.fileName)); return packageJsons; @@ -2177,7 +2177,6 @@ namespace ts.server { } } - type PackageJsonInfo = NonNullable>; function getRootNamesFromPackageJson(packageJson: PackageJsonInfo, program: Program, symlinkCache: SymlinkCache, resolveJs?: boolean) { const entrypoints = getEntrypointsFromPackageJsonInfo( packageJson, diff --git a/src/server/scriptInfo.ts b/src/server/scriptInfo.ts index dedd30fe19b..5656f15683c 100644 --- a/src/server/scriptInfo.ts +++ b/src/server/scriptInfo.ts @@ -279,7 +279,7 @@ namespace ts.server { /*@internal*/ export interface DocumentRegistrySourceFileCache { - key: DocumentRegistryBucketKey; + key: DocumentRegistryBucketKeyWithMode; sourceFile: SourceFile; } diff --git a/src/server/session.ts b/src/server/session.ts index 0fe57694d1a..a541463063c 100644 --- a/src/server/session.ts +++ b/src/server/session.ts @@ -344,6 +344,8 @@ namespace ts.server { function getDefinitionLocation(defaultProject: Project, initialLocation: DocumentPosition, isForRename: boolean): DocumentPosition | undefined { const infos = defaultProject.getLanguageService().getDefinitionAtPosition(initialLocation.fileName, initialLocation.pos, /*searchOtherFilesOnly*/ false, /*stopAtAlias*/ isForRename); const info = infos && firstOrUndefined(infos); + // Note that the value of `isLocal` may depend on whether or not the checker has run on the containing file + // (implying that FAR cascading behavior may depend on request order) return info && !info.isLocal ? { fileName: info.fileName, pos: info.textSpan.start } : undefined; } @@ -1376,7 +1378,7 @@ namespace ts.server { const packageDirectory = fileName.substring(0, nodeModulesPathParts.packageRootIndex); const packageJsonCache = project.getModuleResolutionCache()?.getPackageJsonInfoCache(); const compilerOptions = project.getCompilationSettings(); - const packageJson = getPackageScopeForPath(project.toPath(packageDirectory + "/package.json"), packageJsonCache, project, compilerOptions); + const packageJson = getPackageScopeForPath(project.toPath(packageDirectory + "/package.json"), getTemporaryModuleResolutionState(packageJsonCache, project, compilerOptions)); if (!packageJson) return undefined; // Use fake options instead of actual compiler options to avoid following export map if the project uses node16 or nodenext - // Mapping from an export map entry across packages is out of scope for now. Returned entrypoints will only be what can be diff --git a/src/services/codefixes/fixAddMissingConstraint.ts b/src/services/codefixes/fixAddMissingConstraint.ts index cc622da055c..2d3b6c51a34 100644 --- a/src/services/codefixes/fixAddMissingConstraint.ts +++ b/src/services/codefixes/fixAddMissingConstraint.ts @@ -16,50 +16,103 @@ namespace ts.codefix { registerCodeFix({ errorCodes, getCodeActions(context) { - const { sourceFile, span, program } = context; - const related = getDiagnosticRelatedInfo(program, sourceFile, span); - if (!related) { - return; - } - const changes = textChanges.ChangeTracker.with(context, t => addMissingConstraint(t, related)); + const { sourceFile, span, program, preferences, host } = context; + const info = getInfo(program, sourceFile, span); + if (info === undefined) return; + + const changes = textChanges.ChangeTracker.with(context, t => addMissingConstraint(t, program, preferences, host, sourceFile, info)); return [createCodeFixAction(fixId, changes, Diagnostics.Add_extends_constraint, fixId, Diagnostics.Add_extends_constraint_to_all_type_parameters)]; }, fixIds: [fixId], - getAllCodeActions: context => codeFixAll(context, errorCodes, (changes, diag) => { - const info = getDiagnosticRelatedInfo(context.program, context.sourceFile, diag); - if (!info) return; - return addMissingConstraint(changes, info); - }), + getAllCodeActions: context => { + const { program, preferences, host } = context; + const seen = new Map(); + + return createCombinedCodeActions(textChanges.ChangeTracker.with(context, changes => { + eachDiagnostic(context, errorCodes, diag => { + const info = getInfo(program, diag.file, createTextSpan(diag.start, diag.length)); + if (info) { + if (addToSeen(seen, getNodeId(info.declaration))) { + return addMissingConstraint(changes, program, preferences, host, diag.file, info); + } + } + return undefined; + }); + })); + } }); - function getDiagnosticRelatedInfo(program: Program, sourceFile: SourceFile, span: TextSpan) { - const diag = find(program.getSemanticDiagnostics(sourceFile), diag => diag.start === span.start && diag.length === span.length); - if (!diag || !diag.relatedInformation) return; - const related = find(diag.relatedInformation, related => related.code === Diagnostics.This_type_parameter_might_need_an_extends_0_constraint.code); - if (!related) return; - return related; + interface Info { + constraint: Type | string; + declaration: TypeParameterDeclaration; + token: Node; } - function addMissingConstraint(changes: textChanges.ChangeTracker, related: DiagnosticRelatedInformation): void { - let decl = findAncestorMatchingSpan(related.file!, related as TextSpan); - if (!decl) return; - if (isIdentifier(decl) && isTypeParameterDeclaration(decl.parent)) { - decl = decl.parent; - } - if (!isTypeParameterDeclaration(decl) || isMappedTypeNode(decl.parent)) return; // should only issue fix on type parameters written using `extends` - const newConstraint = flattenDiagnosticMessageText(related.messageText, "\n", 0).match(/`extends (.*)`/); - if (!newConstraint) return; - const newConstraintText = newConstraint[1]; + function getInfo(program: Program, sourceFile: SourceFile, span: TextSpan): Info | undefined { + const diag = find(program.getSemanticDiagnostics(sourceFile), diag => diag.start === span.start && diag.length === span.length); + if (diag === undefined || diag.relatedInformation === undefined) return; - changes.insertText(related.file!, related.start! + related.length!, ` extends ${newConstraintText}`); + const related = find(diag.relatedInformation, related => related.code === Diagnostics.This_type_parameter_might_need_an_extends_0_constraint.code); + if (related === undefined || related.file === undefined || related.start === undefined || related.length === undefined) return; + + let declaration = findAncestorMatchingSpan(related.file, createTextSpan(related.start, related.length)); + if (declaration === undefined) return; + + if (isIdentifier(declaration) && isTypeParameterDeclaration(declaration.parent)) { + declaration = declaration.parent; + } + + if (isTypeParameterDeclaration(declaration)) { + // should only issue fix on type parameters written using `extends` + if (isMappedTypeNode(declaration.parent)) return; + + const token = getTokenAtPosition(sourceFile, span.start); + const checker = program.getTypeChecker(); + const constraint = tryGetConstraintType(checker, token) || tryGetConstraintFromDiagnosticMessage(related.messageText); + + return { constraint, declaration, token }; + } + return undefined; + } + + function addMissingConstraint(changes: textChanges.ChangeTracker, program: Program, preferences: UserPreferences, host: LanguageServiceHost, sourceFile: SourceFile, info: Info): void { + const { declaration, constraint } = info; + const checker = program.getTypeChecker(); + + if (isString(constraint)) { + changes.insertText(sourceFile, declaration.name.end, ` extends ${constraint}`); + } + else { + const scriptTarget = getEmitScriptTarget(program.getCompilerOptions()); + const tracker = getNoopSymbolTrackerWithResolver({ program, host }); + const importAdder = createImportAdder(sourceFile, program, preferences, host); + const typeNode = typeToAutoImportableTypeNode(checker, importAdder, constraint, /*contextNode*/ undefined, scriptTarget, /*flags*/ undefined, tracker); + if (typeNode) { + changes.replaceNode(sourceFile, declaration, factory.updateTypeParameterDeclaration(declaration, /*modifiers*/ undefined, declaration.name, typeNode, declaration.default)); + importAdder.writeFixes(changes); + } + } } function findAncestorMatchingSpan(sourceFile: SourceFile, span: TextSpan): Node { - let token = getTokenAtPosition(sourceFile, span.start); const end = textSpanEnd(span); + let token = getTokenAtPosition(sourceFile, span.start); while (token.end < end) { token = token.parent; } return token; } + + function tryGetConstraintFromDiagnosticMessage(messageText: string | DiagnosticMessageChain) { + const [_, constraint] = flattenDiagnosticMessageText(messageText, "\n", 0).match(/`extends (.*)`/) || []; + return constraint; + } + + function tryGetConstraintType(checker: TypeChecker, node: Node) { + if (isTypeNode(node.parent)) { + return checker.getTypeArgumentConstraint(node.parent); + } + const contextualType = isExpression(node) ? checker.getContextualType(node) : undefined; + return contextualType || checker.getTypeAtLocation(node); + } } diff --git a/src/services/codefixes/fixAddMissingMember.ts b/src/services/codefixes/fixAddMissingMember.ts index 3c09c850ce5..f08e86983a8 100644 --- a/src/services/codefixes/fixAddMissingMember.ts +++ b/src/services/codefixes/fixAddMissingMember.ts @@ -15,6 +15,15 @@ namespace ts.codefix { Diagnostics.Cannot_find_name_0.code ]; + enum InfoKind { + TypeLikeDeclaration, + Enum, + Function, + ObjectLiteral, + JsxAttributes, + Signature, + } + registerCodeFix({ errorCodes, getCodeActions(context) { @@ -31,7 +40,7 @@ namespace ts.codefix { const changes = textChanges.ChangeTracker.with(context, t => addJsxAttributes(t, context, info)); return [createCodeFixAction(fixMissingAttributes, changes, Diagnostics.Add_missing_attributes, fixMissingAttributes, Diagnostics.Add_all_missing_attributes)]; } - if (info.kind === InfoKind.Function) { + if (info.kind === InfoKind.Function || info.kind === InfoKind.Signature) { const changes = textChanges.ChangeTracker.with(context, t => addFunctionDeclaration(t, context, info)); return [createCodeFixAction(fixMissingFunctionDeclaration, changes, [Diagnostics.Add_missing_function_declaration_0, info.token.text], fixMissingFunctionDeclaration, Diagnostics.Add_all_missing_function_declarations)]; } @@ -54,8 +63,7 @@ namespace ts.codefix { if (!info || !addToSeen(seen, getNodeId(info.parentDeclaration) + "#" + info.token.text)) { return; } - - if (fixId === fixMissingFunctionDeclaration && info.kind === InfoKind.Function) { + if (fixId === fixMissingFunctionDeclaration && (info.kind === InfoKind.Function || info.kind === InfoKind.Signature)) { addFunctionDeclaration(changes, context, info); } else if (fixId === fixMissingProperties && info.kind === InfoKind.ObjectLiteral) { @@ -107,8 +115,7 @@ namespace ts.codefix { }, }); - const enum InfoKind { TypeLikeDeclaration, Enum, Function, ObjectLiteral, JsxAttributes } - type Info = TypeLikeDeclarationInfo | EnumInfo | FunctionInfo | ObjectLiteralInfo | JsxAttributesInfo; + type Info = TypeLikeDeclarationInfo | EnumInfo | FunctionInfo | ObjectLiteralInfo | JsxAttributesInfo | SignatureInfo; interface EnumInfo { readonly kind: InfoKind.Enum; @@ -132,7 +139,7 @@ namespace ts.codefix { readonly token: Identifier; readonly sourceFile: SourceFile; readonly modifierFlags: ModifierFlags; - readonly parentDeclaration: SourceFile | ModuleDeclaration; + readonly parentDeclaration: SourceFile | ModuleDeclaration | ReturnStatement; } interface ObjectLiteralInfo { @@ -150,6 +157,14 @@ namespace ts.codefix { readonly parentDeclaration: JsxOpeningLikeElement; } + interface SignatureInfo { + readonly kind: InfoKind.Signature; + readonly token: Identifier; + readonly signature: Signature; + readonly sourceFile: SourceFile; + readonly parentDeclaration: Node; + } + function getInfo(sourceFile: SourceFile, tokenPos: number, errorCode: number, checker: TypeChecker, program: Program): Info | undefined { // The identifier of the missing property. eg: // this.missing = 1; @@ -190,8 +205,16 @@ namespace ts.codefix { return { kind: InfoKind.JsxAttributes, token, attributes, parentDeclaration: token.parent }; } - if (isIdentifier(token) && isCallExpression(parent)) { - return { kind: InfoKind.Function, token, call: parent, sourceFile, modifierFlags: ModifierFlags.None, parentDeclaration: sourceFile }; + if (isIdentifier(token)) { + const type = checker.getContextualType(token); + if (type && getObjectFlags(type) & ObjectFlags.Anonymous) { + const signature = firstOrUndefined(checker.getSignaturesOfType(type, SignatureKind.Call)); + if (signature === undefined) return undefined; + return { kind: InfoKind.Signature, token, signature, sourceFile, parentDeclaration: findScope(token) }; + } + if (isCallExpression(parent) && parent.expression === token) { + return { kind: InfoKind.Function, token, call: parent, sourceFile, modifierFlags: ModifierFlags.None, parentDeclaration: findScope(token) }; + } } if (!isPropertyAccessExpression(parent)) return undefined; @@ -451,10 +474,19 @@ namespace ts.codefix { }); } - function addFunctionDeclaration(changes: textChanges.ChangeTracker, context: CodeFixContextBase, info: FunctionInfo) { + function addFunctionDeclaration(changes: textChanges.ChangeTracker, context: CodeFixContextBase, info: FunctionInfo | SignatureInfo) { + const quotePreference = getQuotePreference(context.sourceFile, context.preferences); const importAdder = createImportAdder(context.sourceFile, context.program, context.preferences, context.host); - const functionDeclaration = createSignatureDeclarationFromCallExpression(SyntaxKind.FunctionDeclaration, context, importAdder, info.call, idText(info.token), info.modifierFlags, info.parentDeclaration) as FunctionDeclaration; - changes.insertNodeAtEndOfScope(info.sourceFile, info.parentDeclaration, functionDeclaration); + const functionDeclaration = info.kind === InfoKind.Function + ? createSignatureDeclarationFromCallExpression(SyntaxKind.FunctionDeclaration, context, importAdder, info.call, idText(info.token), info.modifierFlags, info.parentDeclaration) + : createSignatureDeclarationFromSignature(SyntaxKind.FunctionDeclaration, context, quotePreference, info.signature, createStubbedBody(Diagnostics.Function_not_implemented.message, quotePreference), info.token, /*modifiers*/ undefined, /*optional*/ undefined, /*enclosingDeclaration*/ undefined, importAdder); + if (functionDeclaration === undefined) { + Debug.fail("fixMissingFunctionDeclaration codefix got unexpected error."); + } + + isReturnStatement(info.parentDeclaration) + ? changes.insertNodeBefore(info.sourceFile, info.parentDeclaration, functionDeclaration, /*blankLineBetween*/ true) + : changes.insertNodeAtEndOfScope(info.sourceFile, info.parentDeclaration, functionDeclaration); importAdder.writeFixes(changes); } @@ -618,4 +650,12 @@ namespace ts.codefix { } return createPropertyNameNodeForIdentifierOrLiteral(symbol.name, target, quotePreference === QuotePreference.Single); } + + function findScope(node: Node) { + if (findAncestor(node, isJsxExpression)) { + const returnStatement = findAncestor(node.parent, isReturnStatement); + if (returnStatement) return returnStatement; + } + return getSourceFileOfNode(node); + } } diff --git a/src/services/codefixes/helpers.ts b/src/services/codefixes/helpers.ts index 94b64e57ac9..2f6e4f06796 100644 --- a/src/services/codefixes/helpers.ts +++ b/src/services/codefixes/helpers.ts @@ -60,21 +60,34 @@ namespace ts.codefix { isAmbient = false, ): void { const declarations = symbol.getDeclarations(); - if (!(declarations && declarations.length)) { - return undefined; - } + const declaration = declarations?.[0]; const checker = context.program.getTypeChecker(); const scriptTarget = getEmitScriptTarget(context.program.getCompilerOptions()); - const declaration = declarations[0]; + + /** + * (#49811) + * Note that there are cases in which the symbol declaration is not present. For example, in the code below both + * `MappedIndirect.ax` and `MappedIndirect.ay` have no declaration node attached (due to their mapped-type + * parent): + * + * >>> ```ts + * >>> type Base = { ax: number; ay: string }; + * >>> type BaseKeys = keyof Base; + * >>> type MappedIndirect = { [K in BaseKeys]: boolean }; + * >>> ``` + * + * In such cases, we assume the declaration to be a `PropertySignature`. + */ + const kind = declaration?.kind ?? SyntaxKind.PropertySignature; const name = getSynthesizedDeepClone(getNameOfDeclaration(declaration), /*includeTrivia*/ false) as PropertyName; - const visibilityModifier = createVisibilityModifier(getEffectiveModifierFlags(declaration)); + const visibilityModifier = createVisibilityModifier(declaration ? getEffectiveModifierFlags(declaration) : ModifierFlags.None); const modifiers = visibilityModifier ? factory.createNodeArray([visibilityModifier]) : undefined; const type = checker.getWidenedType(checker.getTypeOfSymbolAtLocation(symbol, enclosingDeclaration)); const optional = !!(symbol.flags & SymbolFlags.Optional); const ambient = !!(enclosingDeclaration.flags & NodeFlags.Ambient) || isAmbient; const quotePreference = getQuotePreference(sourceFile, preferences); - switch (declaration.kind) { + switch (kind) { case SyntaxKind.PropertySignature: case SyntaxKind.PropertyDeclaration: const flags = quotePreference === QuotePreference.Single ? NodeBuilderFlags.UseSingleQuotesForStringLiteralType : undefined; @@ -88,13 +101,14 @@ namespace ts.codefix { } addClassElement(factory.createPropertyDeclaration( modifiers, - name, + declaration ? name : symbol.getName(), optional && (preserveOptional & PreserveOptionalFlags.Property) ? factory.createToken(SyntaxKind.QuestionToken) : undefined, typeNode, /*initializer*/ undefined)); break; case SyntaxKind.GetAccessor: case SyntaxKind.SetAccessor: { + Debug.assertIsDefined(declarations); let typeNode = checker.typeToTypeNode(type, enclosingDeclaration, /*flags*/ undefined, getNoopSymbolTrackerWithResolver(context)); const allAccessors = getAllAccessorDeclarations(declarations, declaration as AccessorDeclaration); const orderedAccessors = allAccessors.secondAccessor @@ -138,7 +152,8 @@ namespace ts.codefix { // If there is more than one overload but no implementation signature // (eg: an abstract method or interface declaration), there is a 1-1 // correspondence of declarations and signatures. - const signatures = checker.getSignaturesOfType(type, SignatureKind.Call); + Debug.assertIsDefined(declarations); + const signatures = type.isUnion() ? flatMap(type.types, t => t.getCallSignatures()) : type.getCallSignatures(); if (!some(signatures)) { break; } @@ -169,13 +184,17 @@ namespace ts.codefix { } function outputMethod(quotePreference: QuotePreference, signature: Signature, modifiers: NodeArray | undefined, name: PropertyName, body?: Block): void { - const method = createSignatureDeclarationFromSignature(SyntaxKind.MethodDeclaration, context, quotePreference, signature, body, name, modifiers, optional && !!(preserveOptional & PreserveOptionalFlags.Method), enclosingDeclaration, importAdder); + const method = createSignatureDeclarationFromSignature(SyntaxKind.MethodDeclaration, context, quotePreference, signature, body, name, modifiers, optional && !!(preserveOptional & PreserveOptionalFlags.Method), enclosingDeclaration, importAdder) as MethodDeclaration; if (method) addClassElement(method); } } export function createSignatureDeclarationFromSignature( - kind: SyntaxKind.MethodDeclaration | SyntaxKind.FunctionExpression | SyntaxKind.ArrowFunction, + kind: + | SyntaxKind.MethodDeclaration + | SyntaxKind.FunctionExpression + | SyntaxKind.ArrowFunction + | SyntaxKind.FunctionDeclaration, context: TypeConstructionContext, quotePreference: QuotePreference, signature: Signature, @@ -185,7 +204,7 @@ namespace ts.codefix { optional: boolean | undefined, enclosingDeclaration: Node | undefined, importAdder: ImportAdder | undefined - ) { + ) { const program = context.program; const checker = program.getTypeChecker(); const scriptTarget = getEmitScriptTarget(program.getCompilerOptions()); @@ -194,7 +213,7 @@ namespace ts.codefix { | NodeBuilderFlags.SuppressAnyReturnType | NodeBuilderFlags.AllowEmptyTuple | (quotePreference === QuotePreference.Single ? NodeBuilderFlags.UseSingleQuotesForStringLiteralType : NodeBuilderFlags.None); - const signatureDeclaration = checker.signatureToSignatureDeclaration(signature, kind, enclosingDeclaration, flags, getNoopSymbolTrackerWithResolver(context)) as ArrowFunction | FunctionExpression | MethodDeclaration; + const signatureDeclaration = checker.signatureToSignatureDeclaration(signature, kind, enclosingDeclaration, flags, getNoopSymbolTrackerWithResolver(context)) as ArrowFunction | FunctionExpression | MethodDeclaration | FunctionDeclaration; if (!signatureDeclaration) { return undefined; } @@ -273,6 +292,9 @@ namespace ts.codefix { if (isMethodDeclaration(signatureDeclaration)) { return factory.updateMethodDeclaration(signatureDeclaration, modifiers, asteriskToken, name ?? factory.createIdentifier(""), questionToken, typeParameters, parameters, type, body); } + if (isFunctionDeclaration(signatureDeclaration)) { + return factory.updateFunctionDeclaration(signatureDeclaration, modifiers, signatureDeclaration.asteriskToken, tryCast(name, isIdentifier), typeParameters, parameters, type, body ?? signatureDeclaration.body); + } return undefined; } @@ -295,8 +317,10 @@ namespace ts.codefix { const contextualType = isJs ? undefined : checker.getContextualType(call); const names = map(args, arg => isIdentifier(arg) ? arg.text : isPropertyAccessExpression(arg) && isIdentifier(arg.name) ? arg.name.text : undefined); - const types = isJs ? [] : map(args, arg => - typeToAutoImportableTypeNode(checker, importAdder, checker.getBaseTypeOfLiteralType(checker.getTypeAtLocation(arg)), contextNode, scriptTarget, /*flags*/ undefined, tracker)); + const instanceTypes = isJs ? [] : map(args, arg => checker.getTypeAtLocation(arg)); + const { argumentTypeNodes, argumentTypeParameters } = getArgumentTypesAndTypeParameters( + checker, importAdder, instanceTypes, contextNode, scriptTarget, /*flags*/ undefined, tracker + ); const modifiers = modifierFlags ? factory.createNodeArray(factory.createModifiersFromModifierFlags(modifierFlags)) @@ -304,11 +328,8 @@ namespace ts.codefix { const asteriskToken = isYieldExpression(parent) ? factory.createToken(SyntaxKind.AsteriskToken) : undefined; - const typeParameters = isJs || typeArguments === undefined - ? undefined - : map(typeArguments, (_, i) => - factory.createTypeParameterDeclaration(/*modifiers*/ undefined, CharacterCodes.T + typeArguments.length - 1 <= CharacterCodes.Z ? String.fromCharCode(CharacterCodes.T + i) : `T${i}`)); - const parameters = createDummyParameters(args.length, names, types, /*minArgumentCount*/ undefined, isJs); + const typeParameters = isJs ? undefined : createTypeParametersForArguments(checker, argumentTypeParameters, typeArguments); + const parameters = createDummyParameters(args.length, names, argumentTypeNodes, /*minArgumentCount*/ undefined, isJs); const type = isJs || contextualType === undefined ? undefined : checker.typeToTypeNode(contextualType, contextNode, /*flags*/ undefined, tracker); @@ -349,6 +370,35 @@ namespace ts.codefix { } } + interface ArgumentTypeParameterAndConstraint { + argumentType: Type; + constraint?: TypeNode; + } + + function createTypeParametersForArguments(checker: TypeChecker, argumentTypeParameters: [string, ArgumentTypeParameterAndConstraint | undefined][], typeArguments: NodeArray | undefined) { + const usedNames = new Set(argumentTypeParameters.map(pair => pair[0])); + const constraintsByName = new Map(argumentTypeParameters); + + if (typeArguments) { + const typeArgumentsWithNewTypes = typeArguments.filter(typeArgument => !argumentTypeParameters.some(pair => checker.getTypeAtLocation(typeArgument) === pair[1]?.argumentType)); + const targetSize = usedNames.size + typeArgumentsWithNewTypes.length; + for (let i = 0; usedNames.size < targetSize; i += 1) { + usedNames.add(createTypeParameterName(i)); + } + } + + return map( + arrayFrom(usedNames.values()), + usedName => factory.createTypeParameterDeclaration(/*modifiers*/ undefined, usedName, constraintsByName.get(usedName)?.constraint), + ); + } + + function createTypeParameterName(index: number) { + return CharacterCodes.T + index <= CharacterCodes.Z + ? String.fromCharCode(CharacterCodes.T + index) + : `T${index}`; + } + export function typeToAutoImportableTypeNode(checker: TypeChecker, importAdder: ImportAdder, type: Type, contextNode: Node | undefined, scriptTarget: ScriptTarget, flags?: NodeBuilderFlags, tracker?: SymbolTracker): TypeNode | undefined { let typeNode = checker.typeToTypeNode(type, contextNode, flags, tracker); if (typeNode && isImportTypeNode(typeNode)) { @@ -358,19 +408,124 @@ namespace ts.codefix { typeNode = importableReference.typeNode; } } + // Ensure nodes are fresh so they can have different positions when going through formatting. return getSynthesizedDeepClone(typeNode); } + function typeContainsTypeParameter(type: Type) { + if (type.isUnionOrIntersection()) { + return type.types.some(typeContainsTypeParameter); + } + + return type.flags & TypeFlags.TypeParameter; + } + + export function getArgumentTypesAndTypeParameters(checker: TypeChecker, importAdder: ImportAdder, instanceTypes: Type[], contextNode: Node | undefined, scriptTarget: ScriptTarget, flags?: NodeBuilderFlags, tracker?: SymbolTracker) { + // Types to be used as the types of the parameters in the new function + // E.g. from this source: + // added("", 0) + // The value will look like: + // [{ typeName: { text: "string" } }, { typeName: { text: "number" }] + // And in the output function will generate: + // function added(a: string, b: number) { ... } + const argumentTypeNodes: TypeNode[] = []; + + // Names of type parameters provided as arguments to the call + // E.g. from this source: + // added(value); + // The value will look like: + // [ + // ["T", { argumentType: { typeName: { text: "T" } } } ], + // ["U", { argumentType: { typeName: { text: "U" } } } ], + // ] + // And in the output function will generate: + // function added() { ... } + const argumentTypeParameters = new Map(); + + for (let i = 0; i < instanceTypes.length; i += 1) { + const instanceType = instanceTypes[i]; + + // If the instance type contains a deep reference to an existing type parameter, + // instead of copying the full union or intersection, create a new type parameter + // E.g. from this source: + // function existing(value: T | U & string) { + // added/*1*/(value); + // We don't want to output this: + // function added(value: T | U & string) { ... } + // We instead want to output: + // function added(value: T) { ... } + if (instanceType.isUnionOrIntersection() && instanceType.types.some(typeContainsTypeParameter)) { + const synthesizedTypeParameterName = createTypeParameterName(i); + argumentTypeNodes.push(factory.createTypeReferenceNode(synthesizedTypeParameterName)); + argumentTypeParameters.set(synthesizedTypeParameterName, undefined); + continue; + } + + // Widen the type so we don't emit nonsense annotations like "function fn(x: 3) {" + const widenedInstanceType = checker.getBaseTypeOfLiteralType(instanceType); + const argumentTypeNode = typeToAutoImportableTypeNode(checker, importAdder, widenedInstanceType, contextNode, scriptTarget, flags, tracker); + if (!argumentTypeNode) { + continue; + } + + argumentTypeNodes.push(argumentTypeNode); + const argumentTypeParameter = getFirstTypeParameterName(instanceType); + + // If the instance type is a type parameter with a constraint (other than an anonymous object), + // remember that constraint for when we create the new type parameter + // E.g. from this source: + // function existing(value: T) { + // added/*1*/(value); + // We don't want to output this: + // function added(value: T) { ... } + // We instead want to output: + // function added(value: T) { ... } + const instanceTypeConstraint = instanceType.isTypeParameter() && instanceType.constraint && !isAnonymousObjectConstraintType(instanceType.constraint) + ? typeToAutoImportableTypeNode(checker, importAdder, instanceType.constraint, contextNode, scriptTarget, flags, tracker) + : undefined; + + if (argumentTypeParameter) { + argumentTypeParameters.set(argumentTypeParameter, { argumentType: instanceType, constraint: instanceTypeConstraint }); + } + } + + return { argumentTypeNodes, argumentTypeParameters: arrayFrom(argumentTypeParameters.entries()) }; + } + + function isAnonymousObjectConstraintType(type: Type) { + return (type.flags & TypeFlags.Object) && (type as ObjectType).objectFlags === ObjectFlags.Anonymous; + } + + function getFirstTypeParameterName(type: Type): string | undefined { + if (type.flags & (TypeFlags.Union | TypeFlags.Intersection)) { + for (const subType of (type as UnionType | IntersectionType).types) { + const subTypeName = getFirstTypeParameterName(subType); + if (subTypeName) { + return subTypeName; + } + } + } + + return type.flags & TypeFlags.TypeParameter + ? type.getSymbol()?.getName() + : undefined; + } + function createDummyParameters(argCount: number, names: (string | undefined)[] | undefined, types: (TypeNode | undefined)[] | undefined, minArgumentCount: number | undefined, inJs: boolean): ParameterDeclaration[] { const parameters: ParameterDeclaration[] = []; + const parameterNameCounts = new Map(); for (let i = 0; i < argCount; i++) { + const parameterName = names?.[i] || `arg${i}`; + const parameterNameCount = parameterNameCounts.get(parameterName); + parameterNameCounts.set(parameterName, (parameterNameCount || 0) + 1); + const newParameter = factory.createParameterDeclaration( /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, - /*name*/ names && names[i] || `arg${i}`, + /*name*/ parameterName + (parameterNameCount || ""), /*questionToken*/ minArgumentCount !== undefined && i >= minArgumentCount ? factory.createToken(SyntaxKind.QuestionToken) : undefined, - /*type*/ inJs ? undefined : types && types[i] || factory.createKeywordTypeNode(SyntaxKind.UnknownKeyword), + /*type*/ inJs ? undefined : types?.[i] || factory.createKeywordTypeNode(SyntaxKind.UnknownKeyword), /*initializer*/ undefined); parameters.push(newParameter); } diff --git a/src/services/codefixes/importFixes.ts b/src/services/codefixes/importFixes.ts index 1507689f610..b45a83f462f 100644 --- a/src/services/codefixes/importFixes.ts +++ b/src/services/codefixes/importFixes.ts @@ -18,11 +18,10 @@ namespace ts.codefix { errorCodes, getCodeActions(context) { const { errorCode, preferences, sourceFile, span, program } = context; - const info = getFixesInfo(context, errorCode, span.start, /*useAutoImportProvider*/ true); + const info = getFixInfos(context, errorCode, span.start, /*useAutoImportProvider*/ true); if (!info) return undefined; - const { fixes, symbolName, errorIdentifierText } = info; const quotePreference = getQuotePreference(sourceFile, preferences); - return fixes.map(fix => codeActionForFix( + return info.map(({ fix, symbolName, errorIdentifierText }) => codeActionForFix( context, sourceFile, symbolName, @@ -74,9 +73,9 @@ namespace ts.codefix { return { addImportFromDiagnostic, addImportFromExportedSymbol, writeFixes, hasFixes }; function addImportFromDiagnostic(diagnostic: DiagnosticWithLocation, context: CodeFixContextBase) { - const info = getFixesInfo(context, diagnostic.code, diagnostic.start, useAutoImportProvider); - if (!info || !info.fixes.length) return; - addImport(info); + const info = getFixInfos(context, diagnostic.code, diagnostic.start, useAutoImportProvider); + if (!info || !info.length) return; + addImport(first(info)); } function addImportFromExportedSymbol(exportedSymbol: Symbol, isValidTypeOnlyUseSite?: boolean) { @@ -88,13 +87,12 @@ namespace ts.codefix { const useRequire = shouldUseRequire(sourceFile, program); const fix = getImportFixForSymbol(sourceFile, exportInfo, moduleSymbol, program, /*useNamespaceInfo*/ undefined, !!isValidTypeOnlyUseSite, useRequire, host, preferences); if (fix) { - addImport({ fixes: [fix], symbolName, errorIdentifierText: undefined }); + addImport({ fix, symbolName, errorIdentifierText: undefined }); } } - function addImport(info: FixesInfo) { - const { fixes, symbolName } = info; - const fix = first(fixes); + function addImport(info: FixInfo) { + const { fix, symbolName } = info; switch (fix.kind) { case ImportFixKind.UseNamespace: addToNamespace.push(fix); @@ -369,7 +367,7 @@ namespace ts.codefix { export function getPromoteTypeOnlyCompletionAction(sourceFile: SourceFile, symbolToken: Identifier, program: Program, host: LanguageServiceHost, formatContext: formatting.FormatContext, preferences: UserPreferences) { const compilerOptions = program.getCompilerOptions(); - const symbolName = getSymbolName(sourceFile, program.getTypeChecker(), symbolToken, compilerOptions); + const symbolName = single(getSymbolNamesToImport(sourceFile, program.getTypeChecker(), symbolToken, compilerOptions)); const fix = getTypeOnlyPromotionFix(sourceFile, symbolToken, symbolName, program); const includeSymbolNameInDescription = symbolName !== symbolToken.text; return fix && codeFixActionToCodeAction(codeActionForFix({ host, formatContext, preferences }, sourceFile, symbolName, fix, includeSymbolNameInDescription, QuotePreference.Double, compilerOptions)); @@ -741,8 +739,13 @@ namespace ts.codefix { } } - interface FixesInfo { readonly fixes: readonly ImportFix[], readonly symbolName: string, readonly errorIdentifierText: string | undefined } - function getFixesInfo(context: CodeFixContextBase, errorCode: number, pos: number, useAutoImportProvider: boolean): FixesInfo | undefined { + interface FixInfo { + readonly fix: ImportFix; + readonly symbolName: string; + readonly errorIdentifierText: string | undefined; + readonly isJsxNamespaceFix?: boolean; + } + function getFixInfos(context: CodeFixContextBase, errorCode: number, pos: number, useAutoImportProvider: boolean): readonly FixInfo[] | undefined { const symbolToken = getTokenAtPosition(context.sourceFile, pos); let info; if (errorCode === Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code) { @@ -752,21 +755,24 @@ namespace ts.codefix { return undefined; } else if (errorCode === Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code) { - const symbolName = getSymbolName(context.sourceFile, context.program.getTypeChecker(), symbolToken, context.program.getCompilerOptions()); + const symbolName = single(getSymbolNamesToImport(context.sourceFile, context.program.getTypeChecker(), symbolToken, context.program.getCompilerOptions())); const fix = getTypeOnlyPromotionFix(context.sourceFile, symbolToken, symbolName, context.program); - return fix && { fixes: [fix], symbolName, errorIdentifierText: symbolToken.text }; + return fix && [{ fix, symbolName, errorIdentifierText: symbolToken.text }]; } else { info = getFixesInfoForNonUMDImport(context, symbolToken, useAutoImportProvider); } const packageJsonImportFilter = createPackageJsonImportFilter(context.sourceFile, context.preferences, context.host); - return info && { ...info, fixes: sortFixes(info.fixes, context.sourceFile, context.program, packageJsonImportFilter, context.host) }; + return info && sortFixInfo(info, context.sourceFile, context.program, packageJsonImportFilter, context.host); } - function sortFixes(fixes: readonly ImportFixWithModuleSpecifier[], sourceFile: SourceFile, program: Program, packageJsonImportFilter: PackageJsonImportFilter, host: LanguageServiceHost): readonly ImportFixWithModuleSpecifier[] { + function sortFixInfo(fixes: readonly (FixInfo & { fix: ImportFixWithModuleSpecifier })[], sourceFile: SourceFile, program: Program, packageJsonImportFilter: PackageJsonImportFilter, host: LanguageServiceHost): readonly (FixInfo & { fix: ImportFixWithModuleSpecifier })[] { const _toPath = (fileName: string) => toPath(fileName, host.getCurrentDirectory(), hostGetCanonicalFileName(host)); - return sort(fixes, (a, b) => compareValues(a.kind, b.kind) || compareModuleSpecifiers(a, b, sourceFile, program, packageJsonImportFilter.allowsImportingSpecifier, _toPath)); + return sort(fixes, (a, b) => + compareBooleans(!!a.isJsxNamespaceFix, !!b.isJsxNamespaceFix) || + compareValues(a.fix.kind, b.fix.kind) || + compareModuleSpecifiers(a.fix, b.fix, sourceFile, program, packageJsonImportFilter.allowsImportingSpecifier, _toPath)); } function getBestFix(fixes: readonly ImportFixWithModuleSpecifier[], sourceFile: SourceFile, program: Program, packageJsonImportFilter: PackageJsonImportFilter, host: LanguageServiceHost): ImportFixWithModuleSpecifier | undefined { @@ -836,7 +842,7 @@ namespace ts.codefix { return Comparison.EqualTo; } - function getFixesInfoForUMDImport({ sourceFile, program, host, preferences }: CodeFixContextBase, token: Node): FixesInfo & { fixes: readonly ImportFixWithModuleSpecifier[] } | undefined { + function getFixesInfoForUMDImport({ sourceFile, program, host, preferences }: CodeFixContextBase, token: Node): (FixInfo & { fix: ImportFixWithModuleSpecifier })[] | undefined { const checker = program.getTypeChecker(); const umdSymbol = getUmdSymbol(token, checker); if (!umdSymbol) return undefined; @@ -846,7 +852,7 @@ namespace ts.codefix { const useRequire = shouldUseRequire(sourceFile, program); const position = isIdentifier(token) ? token.getStart(sourceFile) : undefined; const fixes = getImportFixes(exportInfo, position ? { position, symbolName } : undefined, /*isValidTypeOnlyUseSite*/ false, useRequire, program, sourceFile, host, preferences).fixes; - return { fixes, symbolName, errorIdentifierText: tryCast(token, isIdentifier)?.text }; + return fixes.map(fix => ({ fix, symbolName, errorIdentifierText: tryCast(token, isIdentifier)?.text })); } function getUmdSymbol(token: Node, checker: TypeChecker): Symbol | undefined { // try the identifier to see if it is the umd symbol @@ -906,20 +912,21 @@ namespace ts.codefix { } } - function getFixesInfoForNonUMDImport({ sourceFile, program, cancellationToken, host, preferences }: CodeFixContextBase, symbolToken: Identifier, useAutoImportProvider: boolean): FixesInfo & { fixes: readonly ImportFixWithModuleSpecifier[] } | undefined { + function getFixesInfoForNonUMDImport({ sourceFile, program, cancellationToken, host, preferences }: CodeFixContextBase, symbolToken: Identifier, useAutoImportProvider: boolean): readonly (FixInfo & { fix: ImportFixWithModuleSpecifier })[] | undefined { const checker = program.getTypeChecker(); const compilerOptions = program.getCompilerOptions(); - const symbolName = getSymbolName(sourceFile, checker, symbolToken, compilerOptions); - // "default" is a keyword and not a legal identifier for the import, but appears as an identifier. - if (symbolName === InternalSymbolName.Default) { - return undefined; - } - const isValidTypeOnlyUseSite = isValidTypeOnlyAliasUseSite(symbolToken); - const useRequire = shouldUseRequire(sourceFile, program); - const exportInfo = getExportInfos(symbolName, isJSXTagName(symbolToken), getMeaningFromLocation(symbolToken), cancellationToken, sourceFile, program, useAutoImportProvider, host, preferences); - const fixes = arrayFrom(flatMapIterator(exportInfo.entries(), ([_, exportInfos]) => - getImportFixes(exportInfos, { symbolName, position: symbolToken.getStart(sourceFile) }, isValidTypeOnlyUseSite, useRequire, program, sourceFile, host, preferences).fixes)); - return { fixes, symbolName, errorIdentifierText: symbolToken.text }; + return flatMap(getSymbolNamesToImport(sourceFile, checker, symbolToken, compilerOptions), symbolName => { + // "default" is a keyword and not a legal identifier for the import, but appears as an identifier. + if (symbolName === InternalSymbolName.Default) { + return undefined; + } + const isValidTypeOnlyUseSite = isValidTypeOnlyAliasUseSite(symbolToken); + const useRequire = shouldUseRequire(sourceFile, program); + const exportInfo = getExportInfos(symbolName, isJSXTagName(symbolToken), getMeaningFromLocation(symbolToken), cancellationToken, sourceFile, program, useAutoImportProvider, host, preferences); + const fixes = arrayFrom(flatMapIterator(exportInfo.entries(), ([_, exportInfos]) => + getImportFixes(exportInfos, { symbolName, position: symbolToken.getStart(sourceFile) }, isValidTypeOnlyUseSite, useRequire, program, sourceFile, host, preferences).fixes)); + return fixes.map(fix => ({ fix, symbolName, errorIdentifierText: symbolToken.text, isJsxNamespaceFix: symbolName !== symbolToken.text })); + }); } function getTypeOnlyPromotionFix(sourceFile: SourceFile, symbolToken: Identifier, symbolName: string, program: Program): FixPromoteTypeOnlyImport | undefined { @@ -933,15 +940,16 @@ namespace ts.codefix { return { kind: ImportFixKind.PromoteTypeOnly, typeOnlyAliasDeclaration }; } - function getSymbolName(sourceFile: SourceFile, checker: TypeChecker, symbolToken: Identifier, compilerOptions: CompilerOptions): string { + function getSymbolNamesToImport(sourceFile: SourceFile, checker: TypeChecker, symbolToken: Identifier, compilerOptions: CompilerOptions): string[] { const parent = symbolToken.parent; if ((isJsxOpeningLikeElement(parent) || isJsxClosingElement(parent)) && parent.tagName === symbolToken && jsxModeNeedsExplicitImport(compilerOptions.jsx)) { const jsxNamespace = checker.getJsxNamespace(sourceFile); if (needsJsxNamespaceFix(jsxNamespace, symbolToken, checker)) { - return jsxNamespace; + const needsComponentNameFix = !isIntrinsicJsxName(symbolToken.text) && !checker.resolveName(symbolToken.text, symbolToken, SymbolFlags.Value, /*excludeGlobals*/ false); + return needsComponentNameFix ? [symbolToken.text, jsxNamespace] : [jsxNamespace]; } } - return symbolToken.text; + return [symbolToken.text]; } function needsJsxNamespaceFix(jsxNamespace: string, symbolToken: Identifier, checker: TypeChecker) { diff --git a/src/services/completions.ts b/src/services/completions.ts index 5767469c196..c24bc8dcaf1 100644 --- a/src/services/completions.ts +++ b/src/services/completions.ts @@ -507,87 +507,61 @@ namespace ts.Completions { } const entries = createSortedArray(); - - if (isUncheckedFile(sourceFile, compilerOptions)) { - const uniqueNames = getCompletionEntriesFromSymbols( - symbols, - entries, - /*replacementToken*/ undefined, - contextToken, - location, - sourceFile, - host, - program, - getEmitScriptTarget(compilerOptions), - log, - completionKind, - preferences, - compilerOptions, - formatContext, - isTypeOnlyLocation, - propertyAccessToConvert, - isJsxIdentifierExpected, - isJsxInitializer, - importCompletionNode, - recommendedCompletion, - symbolToOriginInfoMap, - symbolToSortTextMap, - isJsxIdentifierExpected, - isRightOfOpenTag, - ); - getJSCompletionEntries(sourceFile, location.pos, uniqueNames, getEmitScriptTarget(compilerOptions), entries); - } - else { - if (!isNewIdentifierLocation && (!symbols || symbols.length === 0) && keywordFilters === KeywordCompletionFilters.None) { - return undefined; - } - - getCompletionEntriesFromSymbols( - symbols, - entries, - /*replacementToken*/ undefined, - contextToken, - location, - sourceFile, - host, - program, - getEmitScriptTarget(compilerOptions), - log, - completionKind, - preferences, - compilerOptions, - formatContext, - isTypeOnlyLocation, - propertyAccessToConvert, - isJsxIdentifierExpected, - isJsxInitializer, - importCompletionNode, - recommendedCompletion, - symbolToOriginInfoMap, - symbolToSortTextMap, - isJsxIdentifierExpected, - isRightOfOpenTag, - ); + const isChecked = isCheckedFile(sourceFile, compilerOptions); + if (isChecked && !isNewIdentifierLocation && (!symbols || symbols.length === 0) && keywordFilters === KeywordCompletionFilters.None) { + return undefined; } + const uniqueNames = getCompletionEntriesFromSymbols( + symbols, + entries, + /*replacementToken*/ undefined, + contextToken, + location, + sourceFile, + host, + program, + getEmitScriptTarget(compilerOptions), + log, + completionKind, + preferences, + compilerOptions, + formatContext, + isTypeOnlyLocation, + propertyAccessToConvert, + isJsxIdentifierExpected, + isJsxInitializer, + importCompletionNode, + recommendedCompletion, + symbolToOriginInfoMap, + symbolToSortTextMap, + isJsxIdentifierExpected, + isRightOfOpenTag, + ); if (keywordFilters !== KeywordCompletionFilters.None) { - const entryNames = new Set(entries.map(e => e.name)); for (const keywordEntry of getKeywordCompletions(keywordFilters, !insideJsDocTagTypeExpression && isSourceFileJS(sourceFile))) { - if (isTypeOnlyLocation && isTypeKeyword(stringToToken(keywordEntry.name)!) || !entryNames.has(keywordEntry.name)) { + if (isTypeOnlyLocation && isTypeKeyword(stringToToken(keywordEntry.name)!) || !uniqueNames.has(keywordEntry.name)) { + uniqueNames.add(keywordEntry.name); insertSorted(entries, keywordEntry, compareCompletionEntries, /*allowDuplicates*/ true); } } } - const entryNames = new Set(entries.map(e => e.name)); for (const keywordEntry of getContextualKeywords(contextToken, position)) { - if (!entryNames.has(keywordEntry.name)) { + if (!uniqueNames.has(keywordEntry.name)) { + uniqueNames.add(keywordEntry.name); insertSorted(entries, keywordEntry, compareCompletionEntries, /*allowDuplicates*/ true); } } for (const literal of literals) { - insertSorted(entries, createCompletionEntryForLiteral(sourceFile, preferences, literal), compareCompletionEntries, /*allowDuplicates*/ true); + const literalEntry = createCompletionEntryForLiteral(sourceFile, preferences, literal); + uniqueNames.add(literalEntry.name); + insertSorted(entries, literalEntry, compareCompletionEntries, /*allowDuplicates*/ true); + } + + if (!isChecked) { + getJSCompletionEntries(sourceFile, location.pos, uniqueNames, getEmitScriptTarget(compilerOptions), entries); } return { @@ -601,8 +575,8 @@ namespace ts.Completions { }; } - function isUncheckedFile(sourceFile: SourceFile, compilerOptions: CompilerOptions): boolean { - return isSourceFileJS(sourceFile) && !isCheckJsEnabledForFile(sourceFile, compilerOptions); + function isCheckedFile(sourceFile: SourceFile, compilerOptions: CompilerOptions): boolean { + return !isSourceFileJS(sourceFile) || !!isCheckJsEnabledForFile(sourceFile, compilerOptions); } function isMemberCompletionKind(kind: CompletionKind): boolean { @@ -1152,7 +1126,7 @@ namespace ts.Completions { const name = getSynthesizedDeepClone(getNameOfDeclaration(declaration), /*includeTrivia*/ false) as PropertyName; const type = checker.getWidenedType(checker.getTypeOfSymbolAtLocation(symbol, enclosingDeclaration)); const quotePreference = getQuotePreference(sourceFile, preferences); - const builderFlags = quotePreference === QuotePreference.Single ? NodeBuilderFlags.UseSingleQuotesForStringLiteralType : undefined; + const builderFlags = NodeBuilderFlags.OmitThisParameter | (quotePreference === QuotePreference.Single ? NodeBuilderFlags.UseSingleQuotesForStringLiteralType : NodeBuilderFlags.None); switch (declaration.kind) { case SyntaxKind.PropertySignature: @@ -1942,7 +1916,7 @@ namespace ts.Completions { cancellationToken?: CancellationToken, ): CompletionData | Request | undefined { const typeChecker = program.getTypeChecker(); - const inUncheckedFile = isUncheckedFile(sourceFile, compilerOptions); + const inCheckedFile = isCheckedFile(sourceFile, compilerOptions); let start = timestamp(); let currentToken = getTokenAtPosition(sourceFile, position); // TODO: GH#15853 // We will check for jsdoc comments with insideComment and getJsDocTagAtPosition. (TODO: that seems rather inefficient to check the same thing so many times.) @@ -2396,7 +2370,14 @@ namespace ts.Completions { } const propertyAccess = node.kind === SyntaxKind.ImportType ? node as ImportTypeNode : node.parent as PropertyAccessExpression | QualifiedName; - if (inUncheckedFile) { + if (inCheckedFile) { + for (const symbol of type.getApparentProperties()) { + if (typeChecker.isValidPropertyAccessForCompletions(propertyAccess, type, symbol)) { + addPropertySymbol(symbol, /* insertAwait */ false, insertQuestionDot); + } + } + } + else { // In javascript files, for union types, we don't just get the members that // the individual types have in common, we also include all the members that // each individual type has. This is because we're going to add all identifiers @@ -2404,13 +2385,6 @@ namespace ts.Completions { // of the individual types to a higher status since we know what they are. symbols.push(...filter(getPropertiesForCompletion(type, typeChecker), s => typeChecker.isValidPropertyAccessForCompletions(propertyAccess, type, s))); } - else { - for (const symbol of type.getApparentProperties()) { - if (typeChecker.isValidPropertyAccessForCompletions(propertyAccess, type, symbol)) { - addPropertySymbol(symbol, /* insertAwait */ false, insertQuestionDot); - } - } - } if (insertAwait && preferences.includeCompletionsWithInsertText) { const promiseType = typeChecker.getPromisedTypeOfPromise(type); diff --git a/src/services/documentRegistry.ts b/src/services/documentRegistry.ts index eefbf15a654..21a17a2d300 100644 --- a/src/services/documentRegistry.ts +++ b/src/services/documentRegistry.ts @@ -37,7 +37,9 @@ namespace ts { compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, - scriptKind?: ScriptKind): SourceFile; + scriptKind?: ScriptKind, + sourceFileOptions?: CreateSourceFileOptions | ScriptTarget, + ): SourceFile; acquireDocumentWithKey( fileName: string, @@ -46,7 +48,9 @@ namespace ts { key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, - scriptKind?: ScriptKind): SourceFile; + scriptKind?: ScriptKind, + sourceFileOptions?: CreateSourceFileOptions | ScriptTarget, + ): SourceFile; /** * Request an updated version of an already existing SourceFile with a given fileName @@ -68,7 +72,9 @@ namespace ts { compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, - scriptKind?: ScriptKind): SourceFile; + scriptKind?: ScriptKind, + sourceFileOptions?: CreateSourceFileOptions | ScriptTarget, + ): SourceFile; updateDocumentWithKey( fileName: string, @@ -77,7 +83,9 @@ namespace ts { key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, - scriptKind?: ScriptKind): SourceFile; + scriptKind?: ScriptKind, + sourceFileOptions?: CreateSourceFileOptions | ScriptTarget, + ): SourceFile; getKeyForCompilationSettings(settings: CompilerOptions): DocumentRegistryBucketKey; /** @@ -88,9 +96,10 @@ namespace ts { * * @param fileName The name of the file to be released * @param compilationSettings The compilation settings used to acquire the file + * @param scriptKind The script kind of the file to be released */ - /**@deprecated pass scriptKind for correctness */ - releaseDocument(fileName: string, compilationSettings: CompilerOptions): void; + /**@deprecated pass scriptKind and impliedNodeFormat for correctness */ + releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind?: ScriptKind): void; /** * Informs the DocumentRegistry that a file is not needed any longer. * @@ -100,12 +109,13 @@ namespace ts { * @param fileName The name of the file to be released * @param compilationSettings The compilation settings used to acquire the file * @param scriptKind The script kind of the file to be released + * @param impliedNodeFormat The implied source file format of the file to be released */ - releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind: ScriptKind): void; // eslint-disable-line @typescript-eslint/unified-signatures + releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind: ScriptKind, impliedNodeFormat: SourceFile["impliedNodeFormat"]): void; // eslint-disable-line @typescript-eslint/unified-signatures /** - * @deprecated pass scriptKind for correctness */ - releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey): void; - releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind): void; // eslint-disable-line @typescript-eslint/unified-signatures + * @deprecated pass scriptKind for and impliedNodeFormat correctness */ + releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind?: ScriptKind): void; + releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind, impliedNodeFormat: SourceFile["impliedNodeFormat"]): void; // eslint-disable-line @typescript-eslint/unified-signatures /*@internal*/ getLanguageServiceRefCounts(path: Path, scriptKind: ScriptKind): [string, number | undefined][]; @@ -115,8 +125,8 @@ namespace ts { /*@internal*/ export interface ExternalDocumentCache { - setDocument(key: DocumentRegistryBucketKey, path: Path, sourceFile: SourceFile): void; - getDocument(key: DocumentRegistryBucketKey, path: Path): SourceFile | undefined; + setDocument(key: DocumentRegistryBucketKeyWithMode, path: Path, sourceFile: SourceFile): void; + getDocument(key: DocumentRegistryBucketKeyWithMode, path: Path): SourceFile | undefined; } export type DocumentRegistryBucketKey = string & { __bucketKey: any }; @@ -139,11 +149,13 @@ namespace ts { return createDocumentRegistryInternal(useCaseSensitiveFileNames, currentDirectory); } + /*@internal*/ + export type DocumentRegistryBucketKeyWithMode = string & { __documentRegistryBucketKeyWithMode: any; }; /*@internal*/ export function createDocumentRegistryInternal(useCaseSensitiveFileNames?: boolean, currentDirectory = "", externalCache?: ExternalDocumentCache): DocumentRegistry { // Maps from compiler setting target (ES3, ES5, etc.) to all the cached documents we have // for those settings. - const buckets = new Map>(); + const buckets = new Map>(); const getCanonicalFileName = createGetCanonicalFileName(!!useCaseSensitiveFileNames); function reportStats() { @@ -178,24 +190,24 @@ namespace ts { return settingsOrHost as CompilerOptions; } - function acquireDocument(fileName: string, compilationSettings: CompilerOptions | MinimalResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile { + function acquireDocument(fileName: string, compilationSettings: CompilerOptions | MinimalResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, languageVersionOrOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile { const path = toPath(fileName, currentDirectory, getCanonicalFileName); const key = getKeyForCompilationSettings(getCompilationSettings(compilationSettings)); - return acquireDocumentWithKey(fileName, path, compilationSettings, key, scriptSnapshot, version, scriptKind); + return acquireDocumentWithKey(fileName, path, compilationSettings, key, scriptSnapshot, version, scriptKind, languageVersionOrOptions); } - function acquireDocumentWithKey(fileName: string, path: Path, compilationSettings: CompilerOptions | MinimalResolutionCacheHost, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile { - return acquireOrUpdateDocument(fileName, path, compilationSettings, key, scriptSnapshot, version, /*acquiring*/ true, scriptKind); + function acquireDocumentWithKey(fileName: string, path: Path, compilationSettings: CompilerOptions | MinimalResolutionCacheHost, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, languageVersionOrOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile { + return acquireOrUpdateDocument(fileName, path, compilationSettings, key, scriptSnapshot, version, /*acquiring*/ true, scriptKind, languageVersionOrOptions); } - function updateDocument(fileName: string, compilationSettings: CompilerOptions | MinimalResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile { + function updateDocument(fileName: string, compilationSettings: CompilerOptions | MinimalResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, languageVersionOrOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile { const path = toPath(fileName, currentDirectory, getCanonicalFileName); const key = getKeyForCompilationSettings(getCompilationSettings(compilationSettings)); - return updateDocumentWithKey(fileName, path, compilationSettings, key, scriptSnapshot, version, scriptKind); + return updateDocumentWithKey(fileName, path, compilationSettings, key, scriptSnapshot, version, scriptKind, languageVersionOrOptions); } - function updateDocumentWithKey(fileName: string, path: Path, compilationSettings: CompilerOptions | MinimalResolutionCacheHost, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile { - return acquireOrUpdateDocument(fileName, path, getCompilationSettings(compilationSettings), key, scriptSnapshot, version, /*acquiring*/ false, scriptKind); + function updateDocumentWithKey(fileName: string, path: Path, compilationSettings: CompilerOptions | MinimalResolutionCacheHost, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, languageVersionOrOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile { + return acquireOrUpdateDocument(fileName, path, getCompilationSettings(compilationSettings), key, scriptSnapshot, version, /*acquiring*/ false, scriptKind, languageVersionOrOptions); } function getDocumentRegistryEntry(bucketEntry: BucketEntry, scriptKind: ScriptKind | undefined) { @@ -212,41 +224,46 @@ namespace ts { scriptSnapshot: IScriptSnapshot, version: string, acquiring: boolean, - scriptKind?: ScriptKind): SourceFile { + scriptKind: ScriptKind | undefined, + languageVersionOrOptions: CreateSourceFileOptions | ScriptTarget | undefined, + ): SourceFile { scriptKind = ensureScriptKind(fileName, scriptKind); const compilationSettings = getCompilationSettings(compilationSettingsOrHost); const host: MinimalResolutionCacheHost | undefined = compilationSettingsOrHost === compilationSettings ? undefined : compilationSettingsOrHost as MinimalResolutionCacheHost; const scriptTarget = scriptKind === ScriptKind.JSON ? ScriptTarget.JSON : getEmitScriptTarget(compilationSettings); - const sourceFileOptions: CreateSourceFileOptions = { - languageVersion: scriptTarget, - impliedNodeFormat: host && getImpliedNodeFormatForFile(path, host.getCompilerHost?.()?.getModuleResolutionCache?.()?.getPackageJsonInfoCache(), host, compilationSettings), - setExternalModuleIndicator: getSetExternalModuleIndicator(compilationSettings) - }; - + const sourceFileOptions: CreateSourceFileOptions = typeof languageVersionOrOptions === "object" ? + languageVersionOrOptions : + { + languageVersion: scriptTarget, + impliedNodeFormat: host && getImpliedNodeFormatForFile(path, host.getCompilerHost?.()?.getModuleResolutionCache?.()?.getPackageJsonInfoCache(), host, compilationSettings), + setExternalModuleIndicator: getSetExternalModuleIndicator(compilationSettings) + }; + sourceFileOptions.languageVersion = scriptTarget; const oldBucketCount = buckets.size; - const bucket = getOrUpdate(buckets, key, () => new Map()); + const keyWithMode = getDocumentRegistryBucketKeyWithMode(key, sourceFileOptions.impliedNodeFormat); + const bucket = getOrUpdate(buckets, keyWithMode, () => new Map()); if (tracing) { if (buckets.size > oldBucketCount) { // It is interesting, but not definitively problematic if a build requires multiple document registry buckets - // perhaps they are for two projects that don't have any overlap. // Bonus: these events can help us interpret the more interesting event below. - tracing.instant(tracing.Phase.Session, "createdDocumentRegistryBucket", { configFilePath: compilationSettings.configFilePath, key }); + tracing.instant(tracing.Phase.Session, "createdDocumentRegistryBucket", { configFilePath: compilationSettings.configFilePath, key: keyWithMode }); } // It is fairly suspicious to have one path in two buckets - you'd expect dependencies to have similar configurations. // If this occurs unexpectedly, the fix is likely to synchronize the project settings. // Skip .d.ts files to reduce noise (should also cover most of node_modules). const otherBucketKey = !isDeclarationFileName(path) && - forEachEntry(buckets, (bucket, bucketKey) => bucketKey !== key && bucket.has(path) && bucketKey); + forEachEntry(buckets, (bucket, bucketKey) => bucketKey !== keyWithMode && bucket.has(path) && bucketKey); if (otherBucketKey) { - tracing.instant(tracing.Phase.Session, "documentRegistryBucketOverlap", { path, key1: otherBucketKey, key2: key }); + tracing.instant(tracing.Phase.Session, "documentRegistryBucketOverlap", { path, key1: otherBucketKey, key2: keyWithMode }); } } const bucketEntry = bucket.get(path); let entry = bucketEntry && getDocumentRegistryEntry(bucketEntry, scriptKind); if (!entry && externalCache) { - const sourceFile = externalCache.getDocument(key, path); + const sourceFile = externalCache.getDocument(keyWithMode, path); if (sourceFile) { Debug.assert(acquiring); entry = { @@ -261,7 +278,7 @@ namespace ts { // Have never seen this file with these settings. Create a new source file for it. const sourceFile = createLanguageServiceSourceFile(fileName, scriptSnapshot, sourceFileOptions, version, /*setNodeParents*/ false, scriptKind); if (externalCache) { - externalCache.setDocument(key, path, sourceFile); + externalCache.setDocument(keyWithMode, path, sourceFile); } entry = { sourceFile, @@ -277,7 +294,7 @@ namespace ts { entry.sourceFile = updateLanguageServiceSourceFile(entry.sourceFile, scriptSnapshot, version, scriptSnapshot.getChangeRange(entry.sourceFile.scriptSnapshot!)); // TODO: GH#18217 if (externalCache) { - externalCache.setDocument(key, path, entry.sourceFile); + externalCache.setDocument(keyWithMode, path, entry.sourceFile); } } @@ -310,14 +327,14 @@ namespace ts { } } - function releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind?: ScriptKind): void { + function releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind?: ScriptKind, impliedNodeFormat?: SourceFile["impliedNodeFormat"]): void { const path = toPath(fileName, currentDirectory, getCanonicalFileName); const key = getKeyForCompilationSettings(compilationSettings); - return releaseDocumentWithKey(path, key, scriptKind); + return releaseDocumentWithKey(path, key, scriptKind, impliedNodeFormat); } - function releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind?: ScriptKind): void { - const bucket = Debug.checkDefined(buckets.get(key)); + function releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind?: ScriptKind, impliedNodeFormat?: SourceFile["impliedNodeFormat"]): void { + const bucket = Debug.checkDefined(buckets.get(getDocumentRegistryBucketKeyWithMode(key, impliedNodeFormat))); const bucketEntry = bucket.get(path)!; const entry = getDocumentRegistryEntry(bucketEntry, scriptKind)!; entry.languageServiceRefCount--; @@ -376,4 +393,8 @@ namespace ts { function getKeyForCompilationSettings(settings: CompilerOptions): DocumentRegistryBucketKey { return sourceFileAffectingCompilerOptions.map(option => compilerOptionValueToString(getCompilerOptionValue(settings, option))).join("|") + (settings.pathsBasePath ? `|${settings.pathsBasePath}` : undefined) as DocumentRegistryBucketKey; } + + function getDocumentRegistryBucketKeyWithMode(key: DocumentRegistryBucketKey, mode: ModuleKind.ESNext | ModuleKind.CommonJS | undefined) { + return (mode ? `${key}|${mode}` : key) as DocumentRegistryBucketKeyWithMode; + } } diff --git a/src/services/formatting/formatting.ts b/src/services/formatting/formatting.ts index 609246d0d72..3b8534b8ef3 100644 --- a/src/services/formatting/formatting.ts +++ b/src/services/formatting/formatting.ts @@ -403,6 +403,7 @@ namespace ts.formatting { // formatting context is used by rules provider const formattingContext = new FormattingContext(sourceFile, requestKind, options); + let previousRangeTriviaEnd: number; let previousRange: TextRangeWithKind; let previousParent: Node; let previousRangeStartLine: number; @@ -439,12 +440,32 @@ namespace ts.formatting { } if (previousRange! && formattingScanner.getStartPos() >= originalRange.end) { + // Formatting edits happen by looking at pairs of contiguous tokens (see `processPair`), + // typically inserting or deleting whitespace between them. The recursive `processNode` + // logic above bails out as soon as it encounters a token that is beyond the end of the + // range we're supposed to format (or if we reach the end of the file). But this potentially + // leaves out an edit that would occur *inside* the requested range but cannot be discovered + // without looking at one token *beyond* the end of the range: consider the line `x = { }` + // with a selection from the beginning of the line to the space inside the curly braces, + // inclusive. We would expect a format-selection would delete the space (if rules apply), + // but in order to do that, we need to process the pair ["{", "}"], but we stopped processing + // just before getting there. This block handles this trailing edit. const tokenInfo = formattingScanner.isOnEOF() ? formattingScanner.readEOFTokenRange() : formattingScanner.isOnToken() ? formattingScanner.readTokenInfo(enclosingNode).token : undefined; - if (tokenInfo) { + if (tokenInfo && tokenInfo.pos === previousRangeTriviaEnd!) { + // We need to check that tokenInfo and previousRange are contiguous: the `originalRange` + // may have ended in the middle of a token, which means we will have stopped formatting + // on that token, leaving `previousRange` pointing to the token before it, but already + // having moved the formatting scanner (where we just got `tokenInfo`) to the next token. + // If this happens, our supposed pair [previousRange, tokenInfo] actually straddles the + // token that intersects the end of the range we're supposed to format, so the pair will + // produce bogus edits if we try to `processPair`. Recall that the point of this logic is + // to perform a trailing edit at the end of the selection range: but there can be no valid + // edit in the middle of a token where the range ended, so if we have a non-contiguous + // pair here, we're already done and we can ignore it. const parent = findPrecedingToken(tokenInfo.end, sourceFile, enclosingNode)?.parent || previousParent!; processPair( tokenInfo, @@ -691,6 +712,7 @@ namespace ts.formatting { undecoratedParentStartLine: number, isListItem: boolean, isFirstListItem?: boolean): number { + Debug.assert(!nodeIsSynthesized(child)); if (nodeIsMissing(child)) { return inheritedIndentation; @@ -778,6 +800,7 @@ namespace ts.formatting { parentStartLine: number, parentDynamicIndentation: DynamicIndentation): void { Debug.assert(isNodeArray(nodes)); + Debug.assert(!nodeIsSynthesized(nodes)); const listStartToken = getOpenTokenForList(parent, nodes); @@ -886,6 +909,7 @@ namespace ts.formatting { } if (currentTokenInfo.trailingTrivia) { + previousRangeTriviaEnd = last(currentTokenInfo.trailingTrivia).end; processTrivia(currentTokenInfo.trailingTrivia, parent, childContextNode, dynamicIndentation); } @@ -974,6 +998,7 @@ namespace ts.formatting { } previousRange = range; + previousRangeTriviaEnd = range.end; previousParent = parent; previousRangeStartLine = rangeStart.line; diff --git a/src/services/importTracker.ts b/src/services/importTracker.ts index 7394d7b3ba0..8bec8c130bc 100644 --- a/src/services/importTracker.ts +++ b/src/services/importTracker.ts @@ -555,6 +555,7 @@ namespace ts.FindAllReferences { // Similarly, skip past the symbol for 'export =' if (importedSymbol.escapedName === "export=") { importedSymbol = getExportEqualsLocalSymbol(importedSymbol, checker); + if (importedSymbol === undefined) return undefined; } // If the import has a different name than the export, do not continue searching. @@ -577,22 +578,22 @@ namespace ts.FindAllReferences { } } - function getExportEqualsLocalSymbol(importedSymbol: Symbol, checker: TypeChecker): Symbol { + function getExportEqualsLocalSymbol(importedSymbol: Symbol, checker: TypeChecker): Symbol | undefined { if (importedSymbol.flags & SymbolFlags.Alias) { - return Debug.checkDefined(checker.getImmediateAliasedSymbol(importedSymbol)); + return checker.getImmediateAliasedSymbol(importedSymbol); } const decl = Debug.checkDefined(importedSymbol.valueDeclaration); if (isExportAssignment(decl)) { // `export = class {}` - return Debug.checkDefined(decl.expression.symbol); + return decl.expression.symbol; } else if (isBinaryExpression(decl)) { // `module.exports = class {}` - return Debug.checkDefined(decl.right.symbol); + return decl.right.symbol; } else if (isSourceFile(decl)) { // json module - return Debug.checkDefined(decl.symbol); + return decl.symbol; } - return Debug.fail(); + return undefined; } // If a reference is a class expression, the exported node would be its parent. diff --git a/src/services/jsDoc.ts b/src/services/jsDoc.ts index e85246e9eb5..257531c14e8 100644 --- a/src/services/jsDoc.ts +++ b/src/services/jsDoc.ts @@ -357,8 +357,12 @@ namespace ts.JsDoc { } const { commentOwner, parameters, hasReturn } = commentOwnerInfo; - const commentOwnerJSDoc = hasJSDocNodes(commentOwner) && commentOwner.jsDoc ? lastOrUndefined(commentOwner.jsDoc) : undefined; - if (commentOwner.getStart(sourceFile) < position || commentOwnerJSDoc && commentOwnerJSDoc !== existingDocComment) { + const commentOwnerJsDoc = hasJSDocNodes(commentOwner) && commentOwner.jsDoc ? commentOwner.jsDoc : undefined; + const lastJsDoc = lastOrUndefined(commentOwnerJsDoc); + if (commentOwner.getStart(sourceFile) < position + || lastJsDoc + && existingDocComment + && lastJsDoc !== existingDocComment) { return undefined; } @@ -378,7 +382,11 @@ namespace ts.JsDoc { // * if the caret was directly in front of the object, then we add an extra line and indentation. const openComment = "/**"; const closeComment = " */"; - if (tags) { + + // If any of the existing jsDoc has tags, ignore adding new ones. + const hasTag = (commentOwnerJsDoc || []).some(jsDoc => !!jsDoc.tags); + + if (tags && !hasTag) { const preamble = openComment + newLine + indentationStr + " * "; const endLine = tokenStart === position ? newLine + indentationStr : ""; const result = preamble + newLine + tags + indentationStr + closeComment + endLine; diff --git a/src/services/refactors/convertOverloadListToSingleSignature.ts b/src/services/refactors/convertOverloadListToSingleSignature.ts index 064db9347ca..a4beb817904 100644 --- a/src/services/refactors/convertOverloadListToSingleSignature.ts +++ b/src/services/refactors/convertOverloadListToSingleSignature.ts @@ -185,6 +185,10 @@ ${newComment.split("\n").map(c => ` * ${c}`).join("\n")} if (!containingDecl) { return; } + if (isFunctionLikeDeclaration(containingDecl) && containingDecl.body && rangeContainsPosition(containingDecl.body, startPosition)) { + return; + } + const checker = program.getTypeChecker(); const signatureSymbol = containingDecl.symbol; if (!signatureSymbol) { diff --git a/src/services/refactors/extractSymbol.ts b/src/services/refactors/extractSymbol.ts index 6b2ec866f32..67435b47354 100644 --- a/src/services/refactors/extractSymbol.ts +++ b/src/services/refactors/extractSymbol.ts @@ -551,7 +551,7 @@ namespace ts.refactor.extractSymbol { const savedPermittedJumps = permittedJumps; switch (node.kind) { case SyntaxKind.IfStatement: - permittedJumps = PermittedJumps.None; + permittedJumps &= ~PermittedJumps.Return; break; case SyntaxKind.TryStatement: // forbid all jumps inside try blocks diff --git a/src/services/refactors/moveToNewFile.ts b/src/services/refactors/moveToNewFile.ts index da148267ec8..287178169e6 100644 --- a/src/services/refactors/moveToNewFile.ts +++ b/src/services/refactors/moveToNewFile.ts @@ -62,7 +62,7 @@ namespace ts.refactor { const currentDirectory = getDirectoryPath(oldFile.fileName); const extension = extensionFromPath(oldFile.fileName); - const newModuleName = makeUniqueModuleName(getNewModuleName(usage.movedSymbols), extension, currentDirectory, host); + const newModuleName = makeUniqueModuleName(getNewModuleName(usage.oldFileImportsFromNewFile, usage.movedSymbols), extension, currentDirectory, host); const newFileNameWithExtension = newModuleName + extension; // If previous file was global, this is easy. @@ -478,8 +478,8 @@ namespace ts.refactor { } } - function getNewModuleName(movedSymbols: ReadonlySymbolSet): string { - return movedSymbols.forEachEntry(symbolNameNoDefault) || "newFile"; + function getNewModuleName(importsFromNewFile: ReadonlySymbolSet, movedSymbols: ReadonlySymbolSet): string { + return importsFromNewFile.forEachEntry(symbolNameNoDefault) || movedSymbols.forEachEntry(symbolNameNoDefault) || "newFile"; } interface UsageInfo { diff --git a/src/services/services.ts b/src/services/services.ts index 8f0e274cba6..15540e28acf 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -343,20 +343,25 @@ namespace ts { } getContextualDocumentationComment(context: Node | undefined, checker: TypeChecker | undefined): SymbolDisplayPart[] { - switch (context?.kind) { - case SyntaxKind.GetAccessor: + if (context) { + if (isGetAccessor(context)) { if (!this.contextualGetAccessorDocumentationComment) { this.contextualGetAccessorDocumentationComment = getDocumentationComment(filter(this.declarations, isGetAccessor), checker); } - return this.contextualGetAccessorDocumentationComment; - case SyntaxKind.SetAccessor: + if (length(this.contextualGetAccessorDocumentationComment)) { + return this.contextualGetAccessorDocumentationComment; + } + } + if (isSetAccessor(context)) { if (!this.contextualSetAccessorDocumentationComment) { this.contextualSetAccessorDocumentationComment = getDocumentationComment(filter(this.declarations, isSetAccessor), checker); } - return this.contextualSetAccessorDocumentationComment; - default: - return this.getDocumentationComment(checker); + if (length(this.contextualSetAccessorDocumentationComment)) { + return this.contextualSetAccessorDocumentationComment; + } + } } + return this.getDocumentationComment(checker); } getJsDocTags(checker?: TypeChecker): JSDocTagInfo[] { @@ -368,20 +373,25 @@ namespace ts { } getContextualJsDocTags(context: Node | undefined, checker: TypeChecker | undefined): JSDocTagInfo[] { - switch (context?.kind) { - case SyntaxKind.GetAccessor: + if (context) { + if (isGetAccessor(context)) { if (!this.contextualGetAccessorTags) { this.contextualGetAccessorTags = getJsDocTagsOfDeclarations(filter(this.declarations, isGetAccessor), checker); } - return this.contextualGetAccessorTags; - case SyntaxKind.SetAccessor: + if (length(this.contextualGetAccessorTags)) { + return this.contextualGetAccessorTags; + } + } + if (isSetAccessor(context)) { if (!this.contextualSetAccessorTags) { this.contextualSetAccessorTags = getJsDocTagsOfDeclarations(filter(this.declarations, isSetAccessor), checker); } - return this.contextualSetAccessorTags; - default: - return this.getJsDocTags(checker); + if (length(this.contextualSetAccessorTags)) { + return this.contextualSetAccessorTags; + } + } } + return this.getJsDocTags(checker); } } @@ -1283,7 +1293,10 @@ namespace ts { lastTypesRootVersion = typeRootsVersion; } - const rootFileNames = host.getScriptFileNames(); + // This array is retained by the program and will be used to determine if the program is up to date, + // so we need to make a copy in case the host mutates the underlying array - otherwise it would look + // like every program always has the host's current list of root files. + const rootFileNames = host.getScriptFileNames().slice(); // Get a fresh cache of the host information const newSettings = host.getCompilationSettings() || getDefaultCompilerOptions(); @@ -1350,6 +1363,11 @@ namespace ts { onUnRecoverableConfigFileDiagnostic: noop, }; + // The call to isProgramUptoDate below may refer back to documentRegistryBucketKey; + // calculate this early so it's not undefined if downleveled to a var (or, if emitted + // as a const variable without downleveling, doesn't crash). + const documentRegistryBucketKey = documentRegistry.getKeyForCompilationSettings(newSettings); + // If the program is already up-to-date, we can reuse it if (isProgramUptoDate(program, rootFileNames, newSettings, (_path, fileName) => host.getScriptVersion(fileName), fileName => compilerHost!.fileExists(fileName), hasInvalidatedResolution, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) { return; @@ -1361,7 +1379,6 @@ namespace ts { // the program points to old source files that have been invalidated because of // incremental parsing. - const documentRegistryBucketKey = documentRegistry.getKeyForCompilationSettings(newSettings); const options: CreateProgramOptions = { rootNames: rootFileNames, options: newSettings, @@ -1426,14 +1443,14 @@ namespace ts { // not part of the new program. function onReleaseOldSourceFile(oldSourceFile: SourceFile, oldOptions: CompilerOptions) { const oldSettingsKey = documentRegistry.getKeyForCompilationSettings(oldOptions); - documentRegistry.releaseDocumentWithKey(oldSourceFile.resolvedPath, oldSettingsKey, oldSourceFile.scriptKind); + documentRegistry.releaseDocumentWithKey(oldSourceFile.resolvedPath, oldSettingsKey, oldSourceFile.scriptKind, oldSourceFile.impliedNodeFormat); } - function getOrCreateSourceFile(fileName: string, languageVersion: ScriptTarget, onError?: (message: string) => void, shouldCreateNewSourceFile?: boolean): SourceFile | undefined { - return getOrCreateSourceFileByPath(fileName, toPath(fileName, currentDirectory, getCanonicalFileName), languageVersion, onError, shouldCreateNewSourceFile); + function getOrCreateSourceFile(fileName: string, languageVersionOrOptions: ScriptTarget | CreateSourceFileOptions, onError?: (message: string) => void, shouldCreateNewSourceFile?: boolean): SourceFile | undefined { + return getOrCreateSourceFileByPath(fileName, toPath(fileName, currentDirectory, getCanonicalFileName), languageVersionOrOptions, onError, shouldCreateNewSourceFile); } - function getOrCreateSourceFileByPath(fileName: string, path: Path, _languageVersion: ScriptTarget, _onError?: (message: string) => void, shouldCreateNewSourceFile?: boolean): SourceFile | undefined { + function getOrCreateSourceFileByPath(fileName: string, path: Path, languageVersionOrOptions: ScriptTarget | CreateSourceFileOptions, _onError?: (message: string) => void, shouldCreateNewSourceFile?: boolean): SourceFile | undefined { Debug.assert(compilerHost, "getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host."); // The program is asking for this file, check first if the host can locate it. // If the host can not locate the file, then it does not exist. return undefined @@ -1479,11 +1496,11 @@ namespace ts { // file's script kind, i.e. in one project some file is treated as ".ts" // and in another as ".js" if (scriptKind === oldSourceFile.scriptKind) { - return documentRegistry.updateDocumentWithKey(fileName, path, host, documentRegistryBucketKey, scriptSnapshot, scriptVersion, scriptKind); + return documentRegistry.updateDocumentWithKey(fileName, path, host, documentRegistryBucketKey, scriptSnapshot, scriptVersion, scriptKind, languageVersionOrOptions); } else { // Release old source file and fall through to aquire new file with new script kind - documentRegistry.releaseDocumentWithKey(oldSourceFile.resolvedPath, documentRegistry.getKeyForCompilationSettings(program.getCompilerOptions()), oldSourceFile.scriptKind); + documentRegistry.releaseDocumentWithKey(oldSourceFile.resolvedPath, documentRegistry.getKeyForCompilationSettings(program.getCompilerOptions()), oldSourceFile.scriptKind, oldSourceFile.impliedNodeFormat); } } @@ -1491,7 +1508,7 @@ namespace ts { } // Could not find this file in the old program, create a new SourceFile for it. - return documentRegistry.acquireDocumentWithKey(fileName, path, host, documentRegistryBucketKey, scriptSnapshot, scriptVersion, scriptKind); + return documentRegistry.acquireDocumentWithKey(fileName, path, host, documentRegistryBucketKey, scriptSnapshot, scriptVersion, scriptKind, languageVersionOrOptions); } } @@ -1576,7 +1593,7 @@ namespace ts { // Use paths to ensure we are using correct key and paths as document registry could be created with different current directory than host const key = documentRegistry.getKeyForCompilationSettings(program.getCompilerOptions()); forEach(program.getSourceFiles(), f => - documentRegistry.releaseDocumentWithKey(f.resolvedPath, key, f.scriptKind)); + documentRegistry.releaseDocumentWithKey(f.resolvedPath, key, f.scriptKind, f.impliedNodeFormat)); program = undefined!; // TODO: GH#18217 } host = undefined!; @@ -2681,6 +2698,7 @@ namespace ts { getEmitOutput, getNonBoundSourceFile, getProgram, + getCurrentProgram: () => program, getAutoImportProvider, updateIsDefinitionOfReferencedSymbols, getApplicableRefactors, diff --git a/src/services/smartSelection.ts b/src/services/smartSelection.ts index 6cd5c8f94d8..c2aa95a0eaf 100644 --- a/src/services/smartSelection.ts +++ b/src/services/smartSelection.ts @@ -52,13 +52,24 @@ namespace ts.SmartSelectionRange { // selected from open to close, including whitespace but not including the braces/etc. themselves. const isBetweenMultiLineBookends = isSyntaxList(node) && isListOpener(prevNode) && isListCloser(nextNode) && !positionsAreOnSameLine(prevNode.getStart(), nextNode.getStart(), sourceFile); - const start = isBetweenMultiLineBookends ? prevNode.getEnd() : node.getStart(); + let start = isBetweenMultiLineBookends ? prevNode.getEnd() : node.getStart(); const end = isBetweenMultiLineBookends ? nextNode.getStart() : getEndPos(sourceFile, node); if (hasJSDocNodes(node) && node.jsDoc?.length) { pushSelectionRange(first(node.jsDoc).getStart(), end); } + // (#39618 & #49807) + // When the node is a SyntaxList and its first child has a JSDoc comment, then the node's + // `start` (which usually is the result of calling `node.getStart()`) points to the first + // token after the JSDoc comment. So, we have to make sure we'd pushed the selection + // covering the JSDoc comment before diving further. + if (isSyntaxList(node)) { + const firstChild = node.getChildren()[0]; + if (firstChild && hasJSDocNodes(firstChild) && firstChild.jsDoc?.length && firstChild.getStart() !== node.pos) { + start = Math.min(start, first(firstChild.jsDoc).getStart()); + } + } pushSelectionRange(start, end); // String literals should have a stop both inside and outside their quotes. @@ -184,7 +195,10 @@ namespace ts.SmartSelectionRange { if (isPropertySignature(node)) { const children = groupChildren(node.getChildren(), child => child === node.name || contains(node.modifiers, child)); - return splitChildren(children, ({ kind }) => kind === SyntaxKind.ColonToken); + const firstJSDocChild = children[0]?.kind === SyntaxKind.JSDoc ? children[0] : undefined; + const withJSDocSeparated = firstJSDocChild? children.slice(1) : children; + const splittedChildren = splitChildren(withJSDocSeparated, ({ kind }) => kind === SyntaxKind.ColonToken); + return firstJSDocChild? [firstJSDocChild, createSyntaxList(splittedChildren)] : splittedChildren; } // Group the parameter name with its `...`, then that group with its `?`, then pivot on `=`. diff --git a/src/services/stringCompletions.ts b/src/services/stringCompletions.ts index 39ae23fe4b4..cb7260f6d80 100644 --- a/src/services/stringCompletions.ts +++ b/src/services/stringCompletions.ts @@ -1,5 +1,30 @@ /* @internal */ namespace ts.Completions.StringCompletions { + interface NameAndKindSet { + add(value: NameAndKind): void; + has(name: string): boolean; + values(): Iterator; + } + const kindPrecedence = { + [ScriptElementKind.directory]: 0, + [ScriptElementKind.scriptElement]: 1, + [ScriptElementKind.externalModuleName]: 2, + }; + function createNameAndKindSet(): NameAndKindSet { + const map = new Map(); + function add(value: NameAndKind) { + const existing = map.get(value.name); + if (!existing || kindPrecedence[existing.kind] < kindPrecedence[value.kind]) { + map.set(value.name, value); + } + } + return { + add, + has: map.has.bind(map), + values: map.values.bind(map), + }; + } + export function getStringLiteralCompletions( sourceFile: SourceFile, position: number, @@ -142,9 +167,9 @@ namespace ts.Completions.StringCompletions { case SyntaxKind.LiteralType: { const grandParent = walkUpParentheses(parent.parent); switch (grandParent.kind) { + case SyntaxKind.ExpressionWithTypeArguments: case SyntaxKind.TypeReference: { - const typeReference = grandParent as TypeReferenceNode; - const typeArgument = findAncestor(parent, n => n.parent === typeReference) as LiteralTypeNode; + const typeArgument = findAncestor(parent, n => n.parent === grandParent) as LiteralTypeNode; if (typeArgument) { return { kind: StringLiteralCompletionKind.Types, types: getStringLiteralTypes(typeChecker.getTypeArgumentConstraint(typeArgument)), isNewIdentifier: false }; } @@ -343,13 +368,14 @@ namespace ts.Completions.StringCompletions { function getStringLiteralCompletionsFromModuleNamesWorker(sourceFile: SourceFile, node: LiteralExpression, compilerOptions: CompilerOptions, host: LanguageServiceHost, typeChecker: TypeChecker, preferences: UserPreferences): readonly NameAndKind[] { const literalValue = normalizeSlashes(node.text); + const mode = isStringLiteralLike(node) ? getModeForUsageLocation(sourceFile, node) : undefined; const scriptPath = sourceFile.path; const scriptDirectory = getDirectoryPath(scriptPath); return isPathRelativeToScript(literalValue) || !compilerOptions.baseUrl && (isRootedDiskPath(literalValue) || isUrl(literalValue)) ? getCompletionEntriesForRelativeModules(literalValue, scriptDirectory, compilerOptions, host, scriptPath, getIncludeExtensionOption()) - : getCompletionEntriesForNonRelativeModules(literalValue, scriptDirectory, compilerOptions, host, typeChecker); + : getCompletionEntriesForNonRelativeModules(literalValue, scriptDirectory, mode, compilerOptions, host, getIncludeExtensionOption(), typeChecker); function getIncludeExtensionOption() { const mode = isStringLiteralLike(node) ? getModeForUsageLocation(sourceFile, node) : undefined; @@ -371,7 +397,7 @@ namespace ts.Completions.StringCompletions { compilerOptions.rootDirs, literalValue, scriptDirectory, extensionOptions, compilerOptions, host, scriptPath); } else { - return getCompletionEntriesForDirectoryFragment(literalValue, scriptDirectory, extensionOptions, host, scriptPath); + return arrayFrom(getCompletionEntriesForDirectoryFragment(literalValue, scriptDirectory, extensionOptions, host, scriptPath).values()); } } @@ -416,7 +442,7 @@ namespace ts.Completions.StringCompletions { const basePath = compilerOptions.project || host.getCurrentDirectory(); const ignoreCase = !(host.useCaseSensitiveFileNames && host.useCaseSensitiveFileNames()); const baseDirectories = getBaseDirectoriesFromRootDirs(rootDirs, basePath, scriptDirectory, ignoreCase); - return flatMap(baseDirectories, baseDirectory => getCompletionEntriesForDirectoryFragment(fragment, baseDirectory, extensionOptions, host, exclude)); + return flatMap(baseDirectories, baseDirectory => arrayFrom(getCompletionEntriesForDirectoryFragment(fragment, baseDirectory, extensionOptions, host, exclude).values())); } const enum IncludeExtensionsOption { @@ -427,7 +453,14 @@ namespace ts.Completions.StringCompletions { /** * Given a path ending at a directory, gets the completions for the path, and filters for those entries containing the basename. */ - function getCompletionEntriesForDirectoryFragment(fragment: string, scriptPath: string, { extensions, includeExtensionsOption }: ExtensionOptions, host: LanguageServiceHost, exclude?: string, result: NameAndKind[] = []): NameAndKind[] { + function getCompletionEntriesForDirectoryFragment( + fragment: string, + scriptPath: string, + extensionOptions: ExtensionOptions, + host: LanguageServiceHost, + exclude?: string, + result = createNameAndKindSet() + ): NameAndKindSet { if (fragment === undefined) { fragment = ""; } @@ -461,7 +494,7 @@ namespace ts.Completions.StringCompletions { if (versionPaths) { const packageDirectory = getDirectoryPath(packageJsonPath); const pathInPackage = absolutePath.slice(ensureTrailingDirectorySeparator(packageDirectory).length); - if (addCompletionEntriesFromPaths(result, pathInPackage, packageDirectory, extensions, versionPaths, host)) { + if (addCompletionEntriesFromPaths(result, pathInPackage, packageDirectory, extensionOptions, host, versionPaths)) { // A true result means one of the `versionPaths` was matched, which will block relative resolution // to files and folders from here. All reachable paths given the pattern match are already added. return result; @@ -474,41 +507,18 @@ namespace ts.Completions.StringCompletions { if (!tryDirectoryExists(host, baseDirectory)) return result; // Enumerate the available files if possible - const files = tryReadDirectory(host, baseDirectory, extensions, /*exclude*/ undefined, /*include*/ ["./*"]); + const files = tryReadDirectory(host, baseDirectory, extensionOptions.extensions, /*exclude*/ undefined, /*include*/ ["./*"]); if (files) { - /** - * Multiple file entries might map to the same truncated name once we remove extensions - * (happens iff includeExtensionsOption === includeExtensionsOption.Exclude) so we use a set-like data structure. Eg: - * - * both foo.ts and foo.tsx become foo - */ - const foundFiles = new Map(); // maps file to its extension for (let filePath of files) { filePath = normalizePath(filePath); if (exclude && comparePaths(filePath, exclude, scriptPath, ignoreCase) === Comparison.EqualTo) { continue; } - let foundFileName: string; - const outputExtension = moduleSpecifiers.tryGetJSExtensionForFile(filePath, host.getCompilationSettings()); - if (includeExtensionsOption === IncludeExtensionsOption.Exclude && !fileExtensionIsOneOf(filePath, [Extension.Json, Extension.Mts, Extension.Cts, Extension.Dmts, Extension.Dcts, Extension.Mjs, Extension.Cjs])) { - foundFileName = removeFileExtension(getBaseFileName(filePath)); - foundFiles.set(foundFileName, tryGetExtensionFromPath(filePath)); - } - else if ((fileExtensionIsOneOf(filePath, [Extension.Mts, Extension.Cts, Extension.Dmts, Extension.Dcts, Extension.Mjs, Extension.Cjs]) || includeExtensionsOption === IncludeExtensionsOption.ModuleSpecifierCompletion) && outputExtension) { - foundFileName = changeExtension(getBaseFileName(filePath), outputExtension); - foundFiles.set(foundFileName, outputExtension); - } - else { - foundFileName = getBaseFileName(filePath); - foundFiles.set(foundFileName, tryGetExtensionFromPath(filePath)); - } + const { name, extension } = getFilenameWithExtensionOption(getBaseFileName(filePath), host.getCompilationSettings(), extensionOptions.includeExtensionsOption); + result.add(nameAndKind(name, ScriptElementKind.scriptElement, extension)); } - - foundFiles.forEach((ext, foundFile) => { - result.push(nameAndKind(foundFile, ScriptElementKind.scriptElement, ext)); - }); } // If possible, get folder completion as well @@ -518,7 +528,7 @@ namespace ts.Completions.StringCompletions { for (const directory of directories) { const directoryName = getBaseFileName(normalizePath(directory)); if (directoryName !== "@types") { - result.push(directoryResult(directoryName)); + result.add(directoryResult(directoryName)); } } } @@ -526,18 +536,61 @@ namespace ts.Completions.StringCompletions { return result; } + function getFilenameWithExtensionOption(name: string, compilerOptions: CompilerOptions, includeExtensionsOption: IncludeExtensionsOption): { name: string, extension: Extension | undefined } { + const outputExtension = moduleSpecifiers.tryGetJSExtensionForFile(name, compilerOptions); + if (includeExtensionsOption === IncludeExtensionsOption.Exclude && !fileExtensionIsOneOf(name, [Extension.Json, Extension.Mts, Extension.Cts, Extension.Dmts, Extension.Dcts, Extension.Mjs, Extension.Cjs])) { + return { name: removeFileExtension(name), extension: tryGetExtensionFromPath(name) }; + } + else if ((fileExtensionIsOneOf(name, [Extension.Mts, Extension.Cts, Extension.Dmts, Extension.Dcts, Extension.Mjs, Extension.Cjs]) || includeExtensionsOption === IncludeExtensionsOption.ModuleSpecifierCompletion) && outputExtension) { + return { name: changeExtension(name, outputExtension), extension: outputExtension }; + } + else { + return { name, extension: tryGetExtensionFromPath(name) }; + } + } + /** @returns whether `fragment` was a match for any `paths` (which should indicate whether any other path completions should be offered) */ - function addCompletionEntriesFromPaths(result: NameAndKind[], fragment: string, baseDirectory: string, fileExtensions: readonly string[], paths: MapLike, host: LanguageServiceHost) { + function addCompletionEntriesFromPaths( + result: NameAndKindSet, + fragment: string, + baseDirectory: string, + extensionOptions: ExtensionOptions, + host: LanguageServiceHost, + paths: MapLike + ) { + const getPatternsForKey = (key: string) => paths[key]; + const comparePaths = (a: string, b: string): Comparison => { + const patternA = tryParsePattern(a); + const patternB = tryParsePattern(b); + const lengthA = typeof patternA === "object" ? patternA.prefix.length : a.length; + const lengthB = typeof patternB === "object" ? patternB.prefix.length : b.length; + return compareValues(lengthB, lengthA); + }; + return addCompletionEntriesFromPathsOrExports(result, fragment, baseDirectory, extensionOptions, host, getOwnKeys(paths), getPatternsForKey, comparePaths); + } + + /** @returns whether `fragment` was a match for any `paths` (which should indicate whether any other path completions should be offered) */ + function addCompletionEntriesFromPathsOrExports( + result: NameAndKindSet, + fragment: string, + baseDirectory: string, + extensionOptions: ExtensionOptions, + host: LanguageServiceHost, + keys: readonly string[], + getPatternsForKey: (key: string) => string[] | undefined, + comparePaths: (a: string, b: string) => Comparison, + ) { let pathResults: { results: NameAndKind[], matchedPattern: boolean }[] = []; - let matchedPathPrefixLength = -1; - for (const path in paths) { - if (!hasProperty(paths, path)) continue; - const patterns = paths[path]; + let matchedPath: string | undefined; + for (const key of keys) { + if (key === ".") continue; + const keyWithoutLeadingDotSlash = key.replace(/^\.\//, ""); // remove leading "./" + const patterns = getPatternsForKey(key); if (patterns) { - const pathPattern = tryParsePattern(path); + const pathPattern = tryParsePattern(keyWithoutLeadingDotSlash); if (!pathPattern) continue; const isMatch = typeof pathPattern === "object" && isPatternMatch(pathPattern, fragment); - const isLongestMatch = isMatch && (matchedPathPrefixLength === undefined || pathPattern.prefix.length > matchedPathPrefixLength); + const isLongestMatch = isMatch && (matchedPath === undefined || comparePaths(key, matchedPath) === Comparison.LessThan); if (isLongestMatch) { // If this is a higher priority match than anything we've seen so far, previous results from matches are invalid, e.g. // for `import {} from "some-package/|"` with a typesVersions: @@ -550,24 +603,21 @@ namespace ts.Completions.StringCompletions { // added by the '*' match, after typing `"some-package/foo/|"` we would get file results from both // ./dist/foo and ./foo, when only the latter will actually be resolvable. // See pathCompletionsTypesVersionsWildcard6.ts. - matchedPathPrefixLength = pathPattern.prefix.length; + matchedPath = key; pathResults = pathResults.filter(r => !r.matchedPattern); } - if (typeof pathPattern === "string" || matchedPathPrefixLength === undefined || pathPattern.prefix.length >= matchedPathPrefixLength) { + if (typeof pathPattern === "string" || matchedPath === undefined || comparePaths(key, matchedPath) !== Comparison.GreaterThan) { pathResults.push({ matchedPattern: isMatch, - results: getCompletionsForPathMapping(path, patterns, fragment, baseDirectory, fileExtensions, host) + results: getCompletionsForPathMapping(keyWithoutLeadingDotSlash, patterns, fragment, baseDirectory, extensionOptions, host) .map(({ name, kind, extension }) => nameAndKind(name, kind, extension)), }); } } } - const equatePaths = host.useCaseSensitiveFileNames?.() ? equateStringsCaseSensitive : equateStringsCaseInsensitive; - const equateResults: EqualityComparer = (a, b) => equatePaths(a.name, b.name); - pathResults.forEach(pathResult => pathResult.results.forEach(pathResult => pushIfUnique(result, pathResult, equateResults))); - - return matchedPathPrefixLength > -1; + pathResults.forEach(pathResult => pathResult.results.forEach(r => result.add(r))); + return matchedPath !== undefined; } /** @@ -577,24 +627,31 @@ namespace ts.Completions.StringCompletions { * Modules from node_modules (i.e. those listed in package.json) * This includes all files that are found in node_modules/moduleName/ with acceptable file extensions */ - function getCompletionEntriesForNonRelativeModules(fragment: string, scriptPath: string, compilerOptions: CompilerOptions, host: LanguageServiceHost, typeChecker: TypeChecker): readonly NameAndKind[] { + function getCompletionEntriesForNonRelativeModules( + fragment: string, + scriptPath: string, + mode: SourceFile["impliedNodeFormat"], + compilerOptions: CompilerOptions, + host: LanguageServiceHost, + includeExtensionsOption: IncludeExtensionsOption, + typeChecker: TypeChecker, + ): readonly NameAndKind[] { const { baseUrl, paths } = compilerOptions; - const result: NameAndKind[] = []; - - const extensionOptions = getExtensionOptions(compilerOptions); + const result = createNameAndKindSet(); + const extensionOptions = getExtensionOptions(compilerOptions, includeExtensionsOption); if (baseUrl) { const projectDir = compilerOptions.project || host.getCurrentDirectory(); const absolute = normalizePath(combinePaths(projectDir, baseUrl)); getCompletionEntriesForDirectoryFragment(fragment, absolute, extensionOptions, host, /*exclude*/ undefined, result); if (paths) { - addCompletionEntriesFromPaths(result, fragment, absolute, extensionOptions.extensions, paths, host); + addCompletionEntriesFromPaths(result, fragment, absolute, extensionOptions, host, paths); } } const fragmentDirectory = getFragmentDirectory(fragment); for (const ambientName of getAmbientModuleCompletions(fragment, fragmentDirectory, typeChecker)) { - result.push(nameAndKind(ambientName, ScriptElementKind.externalModuleName, /*extension*/ undefined)); + result.add(nameAndKind(ambientName, ScriptElementKind.externalModuleName, /*extension*/ undefined)); } getCompletionEntriesFromTypings(host, compilerOptions, scriptPath, fragmentDirectory, extensionOptions, result); @@ -605,9 +662,10 @@ namespace ts.Completions.StringCompletions { let foundGlobal = false; if (fragmentDirectory === undefined) { for (const moduleName of enumerateNodeModulesVisibleToScript(host, scriptPath)) { - if (!result.some(entry => entry.name === moduleName)) { + const moduleResult = nameAndKind(moduleName, ScriptElementKind.externalModuleName, /*extension*/ undefined); + if (!result.has(moduleResult.name)) { foundGlobal = true; - result.push(nameAndKind(moduleName, ScriptElementKind.externalModuleName, /*extension*/ undefined)); + result.add(moduleResult); } } } @@ -634,36 +692,27 @@ namespace ts.Completions.StringCompletions { } packagePath = combinePaths(packagePath, subName); } - const packageFile = combinePaths(ancestor, "node_modules", packagePath, "package.json"); + const packageDirectory = combinePaths(ancestor, "node_modules", packagePath); + const packageFile = combinePaths(packageDirectory, "package.json"); if (tryFileExists(host, packageFile)) { - const packageJson = readJson(packageFile, host as { readFile: (filename: string) => string | undefined }); + const packageJson = readJson(packageFile, host); const exports = (packageJson as any).exports; if (exports) { if (typeof exports !== "object" || exports === null) { // eslint-disable-line no-null/no-null return; // null exports or entrypoint only, no sub-modules available } const keys = getOwnKeys(exports); - const fragmentSubpath = components.join("/"); - const processedKeys = mapDefined(keys, k => { - if (k === ".") return undefined; - if (!startsWith(k, "./")) return undefined; - const subpath = k.substring(2); - if (!startsWith(subpath, fragmentSubpath)) return undefined; - // subpath is a valid export (barring conditions, which we don't currently check here) - if (!stringContains(subpath, "*")) { - return subpath; - } - // pattern export - only return everything up to the `*`, so the user can autocomplete, then - // keep filling in the pattern (we could speculatively return a list of options by hitting disk, - // but conditions will make that somewhat awkward, as each condition may have a different set of possible - // options for the `*`. - return subpath.slice(0, subpath.indexOf("*")); - }); - forEach(processedKeys, k => { - if (k) { - result.push(nameAndKind(k, ScriptElementKind.externalModuleName, /*extension*/ undefined)); - } - }); + const fragmentSubpath = components.join("/") + (components.length && hasTrailingDirectorySeparator(fragment) ? "/" : ""); + const conditions = mode === ModuleKind.ESNext ? ["node", "import", "types"] : ["node", "require", "types"]; + addCompletionEntriesFromPathsOrExports( + result, + fragmentSubpath, + packageDirectory, + extensionOptions, + host, + keys, + key => singleElementArray(getPatternFromFirstMatchingCondition(exports[key], conditions)), + comparePatternKeys); return; } } @@ -674,7 +723,21 @@ namespace ts.Completions.StringCompletions { } } - return result; + return arrayFrom(result.values()); + } + + function getPatternFromFirstMatchingCondition(target: unknown, conditions: readonly string[]): string | undefined { + if (typeof target === "string") { + return target; + } + if (target && typeof target === "object" && !isArray(target)) { + for (const condition in target) { + if (condition === "default" || conditions.indexOf(condition) > -1 || isApplicableVersionedTypesKey(conditions, condition)) { + const pattern = (target as MapLike)[condition]; + return getPatternFromFirstMatchingCondition(pattern, conditions); + } + } + } } function getFragmentDirectory(fragment: string): string | undefined { @@ -682,28 +745,39 @@ namespace ts.Completions.StringCompletions { } function getCompletionsForPathMapping( - path: string, patterns: readonly string[], fragment: string, baseUrl: string, fileExtensions: readonly string[], host: LanguageServiceHost, + path: string, + patterns: readonly string[], + fragment: string, + packageDirectory: string, + extensionOptions: ExtensionOptions, + host: LanguageServiceHost, ): readonly NameAndKind[] { if (!endsWith(path, "*")) { // For a path mapping "foo": ["/x/y/z.ts"], add "foo" itself as a completion. - return !stringContains(path, "*") ? justPathMappingName(path) : emptyArray; + return !stringContains(path, "*") ? justPathMappingName(path, ScriptElementKind.scriptElement) : emptyArray; } const pathPrefix = path.slice(0, path.length - 1); const remainingFragment = tryRemovePrefix(fragment, pathPrefix); if (remainingFragment === undefined) { const starIsFullPathComponent = path[path.length - 2] === "/"; - return starIsFullPathComponent ? justPathMappingName(pathPrefix) : flatMap(patterns, pattern => - getModulesForPathsPattern("", baseUrl, pattern, fileExtensions, host)?.map(({ name, ...rest }) => ({ name: pathPrefix + name, ...rest }))); + return starIsFullPathComponent ? justPathMappingName(pathPrefix, ScriptElementKind.directory) : flatMap(patterns, pattern => + getModulesForPathsPattern("", packageDirectory, pattern, extensionOptions, host)?.map(({ name, ...rest }) => ({ name: pathPrefix + name, ...rest }))); } - return flatMap(patterns, pattern => getModulesForPathsPattern(remainingFragment, baseUrl, pattern, fileExtensions, host)); + return flatMap(patterns, pattern => getModulesForPathsPattern(remainingFragment, packageDirectory, pattern, extensionOptions, host)); - function justPathMappingName(name: string): readonly NameAndKind[] { - return startsWith(name, fragment) ? [directoryResult(removeTrailingDirectorySeparator(name))] : emptyArray; + function justPathMappingName(name: string, kind: ScriptElementKind.directory | ScriptElementKind.scriptElement): readonly NameAndKind[] { + return startsWith(name, fragment) ? [{ name: removeTrailingDirectorySeparator(name), kind, extension: undefined }] : emptyArray; } } - function getModulesForPathsPattern(fragment: string, baseUrl: string, pattern: string, fileExtensions: readonly string[], host: LanguageServiceHost): readonly NameAndKind[] | undefined { + function getModulesForPathsPattern( + fragment: string, + packageDirectory: string, + pattern: string, + extensionOptions: ExtensionOptions, + host: LanguageServiceHost, + ): readonly NameAndKind[] | undefined { if (!host.readDirectory) { return undefined; } @@ -727,23 +801,36 @@ namespace ts.Completions.StringCompletions { const normalizedSuffix = normalizePath(parsed.suffix); // Need to normalize after combining: If we combinePaths("a", "../b"), we want "b" and not "a/../b". - const baseDirectory = normalizePath(combinePaths(baseUrl, expandedPrefixDirectory)); + const baseDirectory = normalizePath(combinePaths(packageDirectory, expandedPrefixDirectory)); const completePrefix = fragmentHasPath ? baseDirectory : ensureTrailingDirectorySeparator(baseDirectory) + normalizedPrefixBase; - // If we have a suffix, then we need to read the directory all the way down. We could create a glob - // that encodes the suffix, but we would have to escape the character "?" which readDirectory - // doesn't support. For now, this is safer but slower - const includeGlob = normalizedSuffix ? "**/*" : "./*"; + // If we have a suffix, then we read the directory all the way down to avoid returning completions for + // directories that don't contain files that would match the suffix. A previous comment here was concerned + // about the case where `normalizedSuffix` includes a `?` character, which should be interpreted literally, + // but will match any single character as part of the `include` pattern in `tryReadDirectory`. This is not + // a problem, because (in the extremely unusual circumstance where the suffix has a `?` in it) a `?` + // interpreted as "any character" can only return *too many* results as compared to the literal + // interpretation, so we can filter those superfluous results out via `trimPrefixAndSuffix` as we've always + // done. + const includeGlob = normalizedSuffix ? "**/*" + normalizedSuffix : "./*"; - const matches = mapDefined(tryReadDirectory(host, baseDirectory, fileExtensions, /*exclude*/ undefined, [includeGlob]), match => { - const extension = tryGetExtensionFromPath(match); - const name = trimPrefixAndSuffix(match); - return name === undefined ? undefined : nameAndKind(removeFileExtension(name), ScriptElementKind.scriptElement, extension); - }); - const directories = mapDefined(tryGetDirectories(host, baseDirectory).map(d => combinePaths(baseDirectory, d)), dir => { - const name = trimPrefixAndSuffix(dir); - return name === undefined ? undefined : directoryResult(name); + const matches = mapDefined(tryReadDirectory(host, baseDirectory, extensionOptions.extensions, /*exclude*/ undefined, [includeGlob]), match => { + const trimmedWithPattern = trimPrefixAndSuffix(match); + if (trimmedWithPattern) { + if (containsSlash(trimmedWithPattern)) { + return directoryResult(getPathComponents(removeLeadingDirectorySeparator(trimmedWithPattern))[1]); + } + const { name, extension } = getFilenameWithExtensionOption(trimmedWithPattern, host.getCompilationSettings(), extensionOptions.includeExtensionsOption); + return nameAndKind(name, ScriptElementKind.scriptElement, extension); + } }); + + // If we had a suffix, we already recursively searched for all possible files that could match + // it and returned the directories leading to those files. Otherwise, assume any directory could + // have something valid to import. + const directories = normalizedSuffix + ? emptyArray + : mapDefined(tryGetDirectories(host, baseDirectory), dir => dir === "node_modules" ? undefined : directoryResult(dir)); return [...matches, ...directories]; function trimPrefixAndSuffix(path: string): string | undefined { @@ -793,10 +880,10 @@ namespace ts.Completions.StringCompletions { const names = kind === "path" ? getCompletionEntriesForDirectoryFragment(toComplete, scriptPath, getExtensionOptions(compilerOptions, IncludeExtensionsOption.Include), host, sourceFile.path) : kind === "types" ? getCompletionEntriesFromTypings(host, compilerOptions, scriptPath, getFragmentDirectory(toComplete), getExtensionOptions(compilerOptions)) : Debug.fail(); - return addReplacementSpans(toComplete, range.pos + prefix.length, names); + return addReplacementSpans(toComplete, range.pos + prefix.length, arrayFrom(names.values())); } - function getCompletionEntriesFromTypings(host: LanguageServiceHost, options: CompilerOptions, scriptPath: string, fragmentDirectory: string | undefined, extensionOptions: ExtensionOptions, result: NameAndKind[] = []): readonly NameAndKind[] { + function getCompletionEntriesFromTypings(host: LanguageServiceHost, options: CompilerOptions, scriptPath: string, fragmentDirectory: string | undefined, extensionOptions: ExtensionOptions, result = createNameAndKindSet()): NameAndKindSet { // Check for typings specified in compiler options const seen = new Map(); @@ -823,7 +910,7 @@ namespace ts.Completions.StringCompletions { if (fragmentDirectory === undefined) { if (!seen.has(packageName)) { - result.push(nameAndKind(packageName, ScriptElementKind.externalModuleName, /*extension*/ undefined)); + result.add(nameAndKind(packageName, ScriptElementKind.externalModuleName, /*extension*/ undefined)); seen.set(packageName, true); } } diff --git a/src/services/tsconfig.json b/src/services/tsconfig.json index 080c81ef6e6..949d5c8a964 100644 --- a/src/services/tsconfig.json +++ b/src/services/tsconfig.json @@ -4,7 +4,6 @@ "outFile": "../../built/local/services.js" }, "references": [ - { "path": "../shims" }, { "path": "../compiler" }, { "path": "../jsTyping" } ], diff --git a/src/services/types.ts b/src/services/types.ts index 27c7616bf34..ff3d2ed56bc 100644 --- a/src/services/types.ts +++ b/src/services/types.ts @@ -197,7 +197,7 @@ namespace ts { } /* @internal */ - export interface PackageJsonInfo { + export interface ProjectPackageJsonInfo { fileName: string; parseable: boolean; dependencies?: ESMap; @@ -311,9 +311,9 @@ namespace ts { /* @internal */ getDocumentPositionMapper?(generatedFileName: string, sourceFileName?: string): DocumentPositionMapper | undefined; /* @internal */ getSourceFileLike?(fileName: string): SourceFileLike | undefined; - /* @internal */ getPackageJsonsVisibleToFile?(fileName: string, rootDir?: string): readonly PackageJsonInfo[]; + /* @internal */ getPackageJsonsVisibleToFile?(fileName: string, rootDir?: string): readonly ProjectPackageJsonInfo[]; /* @internal */ getNearestAncestorDirectoryWithPackageJson?(fileName: string): string | undefined; - /* @internal */ getPackageJsonsForAutoImport?(rootDir?: string): readonly PackageJsonInfo[]; + /* @internal */ getPackageJsonsForAutoImport?(rootDir?: string): readonly ProjectPackageJsonInfo[]; /* @internal */ getCachedExportInfoMap?(): ExportInfoMap; /* @internal */ getModuleSpecifierCache?(): ModuleSpecifierCache; /* @internal */ setCompilerHost?(host: CompilerHost): void; @@ -551,6 +551,7 @@ namespace ts { getEmitOutput(fileName: string, emitOnlyDtsFiles?: boolean, forceDtsEmit?: boolean): EmitOutput; getProgram(): Program | undefined; + /*@internal*/ getCurrentProgram(): Program | undefined; /* @internal */ getNonBoundSourceFile(fileName: string): SourceFile; /* @internal */ getAutoImportProvider(): Program | undefined; @@ -1045,7 +1046,12 @@ namespace ts { containerKind: ScriptElementKind; containerName: string; unverified?: boolean; - /* @internal */ isLocal?: boolean; + /** @internal + * Initially, this value is determined syntactically, but it is updated by the checker to cover + * cases like declarations that are exported in subsequent statements. As a result, the value + * may be "incomplete" if this span has yet to be checked. + */ + isLocal?: boolean; /* @internal */ isAmbient?: boolean; /* @internal */ failedAliasResolution?: boolean; } diff --git a/src/services/utilities.ts b/src/services/utilities.ts index 4d42deb27cf..a3676d4ae11 100644 --- a/src/services/utilities.ts +++ b/src/services/utilities.ts @@ -3004,12 +3004,12 @@ namespace ts { return packageJson; } - export function getPackageJsonsVisibleToFile(fileName: string, host: LanguageServiceHost): readonly PackageJsonInfo[] { + export function getPackageJsonsVisibleToFile(fileName: string, host: LanguageServiceHost): readonly ProjectPackageJsonInfo[] { if (!host.fileExists) { return []; } - const packageJsons: PackageJsonInfo[] = []; + const packageJsons: ProjectPackageJsonInfo[] = []; forEachAncestorDirectory(getDirectoryPath(fileName), ancestor => { const packageJsonFileName = combinePaths(ancestor, "package.json"); if (host.fileExists(packageJsonFileName)) { @@ -3023,7 +3023,7 @@ namespace ts { return packageJsons; } - export function createPackageJsonInfo(fileName: string, host: { readFile?(fileName: string): string | undefined }): PackageJsonInfo | undefined { + export function createPackageJsonInfo(fileName: string, host: { readFile?(fileName: string): string | undefined }): ProjectPackageJsonInfo | undefined { if (!host.readFile) { return undefined; } @@ -3032,7 +3032,7 @@ namespace ts { const dependencyKeys = ["dependencies", "devDependencies", "optionalDependencies", "peerDependencies"] as const; const stringContent = host.readFile(fileName) || ""; const content = tryParseJson(stringContent) as PackageJsonRaw | undefined; - const info: Pick = {}; + const info: Pick = {}; if (content) { for (const key of dependencyKeys) { const dependencies = content[key]; diff --git a/src/shims/collectionShims.ts b/src/shims/collectionShims.ts deleted file mode 100644 index 6b868e8714e..00000000000 --- a/src/shims/collectionShims.ts +++ /dev/null @@ -1,267 +0,0 @@ -/* @internal */ -namespace ts { - type GetIteratorCallback = | ReadonlyMapShim | undefined>(iterable: I) => IteratorShim< - I extends ReadonlyMapShim ? [K, V] : - I extends ReadonlySetShim ? T : - I extends readonly (infer T)[] ? T : - I extends undefined ? undefined : - never>; - - type IteratorResultShim = - | { value: T, done?: false } - | { value: void, done: true }; - - interface IteratorShim { - next(): IteratorResultShim; - } - - interface ReadonlyMapShim { - readonly size: number; - get(key: K): V | undefined; - has(key: K): boolean; - keys(): IteratorShim; - values(): IteratorShim; - entries(): IteratorShim<[K, V]>; - forEach(action: (value: V, key: K) => void): void; - } - - interface MapShim extends ReadonlyMapShim { - set(key: K, value: V): this; - delete(key: K): boolean; - clear(): void; - } - - type MapShimConstructor = new (iterable?: readonly (readonly [K, V])[] | ReadonlyMapShim) => MapShim; - - interface ReadonlySetShim { - readonly size: number; - has(value: T): boolean; - keys(): IteratorShim; - values(): IteratorShim; - entries(): IteratorShim<[T, T]>; - forEach(action: (value: T, key: T) => void): void; - } - - interface SetShim extends ReadonlySetShim { - add(value: T): this; - delete(value: T): boolean; - clear(): void; - } - - type SetShimConstructor = new (iterable?: readonly T[] | ReadonlySetShim) => SetShim; - - interface MapData { - size: number; - readonly head: MapEntry; - tail: MapEntry; - } - - interface MapEntry { - readonly key?: K; - value?: V; - /** - * Specifies the next entry in the linked list. - */ - next?: MapEntry; - /** - * Specifies the previous entry in the linked list. - * Must be set when the entry is part of a Map/Set. - * When 'undefined', iterators should skip the next entry. - * This will be set to 'undefined' when an entry is deleted. - * See https://github.com/Microsoft/TypeScript/pull/27292 for more information. - */ - prev?: MapEntry; - } - - interface IteratorData { - current?: MapEntry; - selector: (key: K, value: V) => U; - } - - function createMapData(): MapData { - const sentinel: MapEntry = {}; - sentinel.prev = sentinel; - return { head: sentinel, tail: sentinel, size: 0 }; - } - - function createMapEntry(key: K, value: V): MapEntry { - return { key, value, next: undefined, prev: undefined }; - } - - function sameValueZero(x: unknown, y: unknown) { - // Treats -0 === 0 and NaN === NaN - return x === y || x !== x && y !== y; - } - - function getPrev(entry: MapEntry) { - const prev = entry.prev; - // Entries without a 'prev' have been removed from the map. - // An entry whose 'prev' points to itself is the head of the list and is invalid here. - if (!prev || prev === entry) throw new Error("Illegal state"); - return prev; - } - - function getNext(entry: MapEntry | undefined) { - while (entry) { - // Entries without a 'prev' have been removed from the map. Their 'next' - // pointer should point to the previous entry prior to deletion and - // that entry should be skipped to resume iteration. - const skipNext = !entry.prev; - entry = entry.next; - if (skipNext) { - continue; - } - return entry; - } - } - - function getEntry(data: MapData, key: K): MapEntry | undefined { - // We walk backwards from 'tail' to prioritize recently added entries. - // We skip 'head' because it is an empty entry used to track iteration start. - for (let entry = data.tail; entry !== data.head; entry = getPrev(entry)) { - if (sameValueZero(entry.key, key)) { - return entry; - } - } - } - - function addOrUpdateEntry(data: MapData, key: K, value: V): MapEntry | undefined { - const existing = getEntry(data, key); - if (existing) { - existing.value = value; - return; - } - - const entry = createMapEntry(key, value); - entry.prev = data.tail; - data.tail.next = entry; - data.tail = entry; - data.size++; - return entry; - } - - function deleteEntry(data: MapData, key: K): MapEntry | undefined { - // We walk backwards from 'tail' to prioritize recently added entries. - // We skip 'head' because it is an empty entry used to track iteration start. - for (let entry = data.tail; entry !== data.head; entry = getPrev(entry)) { - // all entries in the map should have a 'prev' pointer. - if (entry.prev === undefined) throw new Error("Illegal state"); - if (sameValueZero(entry.key, key)) { - if (entry.next) { - entry.next.prev = entry.prev; - } - else { - // an entry in the map without a 'next' pointer must be the 'tail'. - if (data.tail !== entry) throw new Error("Illegal state"); - data.tail = entry.prev; - } - - entry.prev.next = entry.next; - entry.next = entry.prev; - entry.prev = undefined; - data.size--; - return entry; - } - } - } - - function clearEntries(data: MapData) { - let node = data.tail; - while (node !== data.head) { - const prev = getPrev(node); - node.next = data.head; - node.prev = undefined; - node = prev; - } - data.head.next = undefined; - data.tail = data.head; - data.size = 0; - } - - function forEachEntry(data: MapData, action: (value: V, key: K) => void) { - let entry: MapEntry | undefined = data.head; - while (entry) { - entry = getNext(entry); - if (entry) { - action(entry.value!, entry.key!); - } - } - } - - function forEachIteration(iterator: IteratorShim | undefined, action: (value: any) => void) { - if (iterator) { - for (let step = iterator.next(); !step.done; step = iterator.next()) { - action(step.value); - } - } - } - - function createIteratorData(data: MapData, selector: (key: K, value: V) => U): IteratorData { - return { current: data.head, selector }; - } - - function iteratorNext(data: IteratorData): IteratorResultShim { - // Navigate to the next entry. - data.current = getNext(data.current); - if (data.current) { - return { value: data.selector(data.current.key!, data.current.value!), done: false }; - } - else { - return { value: undefined as never, done: true }; - } - } - - /* @internal */ - export namespace ShimCollections { - export function createMapShim(getIterator: GetIteratorCallback): MapShimConstructor { - class MapIterator { - private _data: IteratorData; - constructor(data: MapData, selector: (key: K, value: V) => U) { - this._data = createIteratorData(data, selector); - } - next() { return iteratorNext(this._data); } - } - return class Map implements MapShim { - private _mapData = createMapData(); - constructor(iterable?: readonly (readonly [K, V])[] | ReadonlyMapShim) { - forEachIteration(getIterator(iterable), ([key, value]) => this.set(key, value)); - } - get size() { return this._mapData.size; } - get(key: K): V | undefined { return getEntry(this._mapData, key)?.value; } - set(key: K, value: V): this { return addOrUpdateEntry(this._mapData, key, value), this; } - has(key: K): boolean { return !!getEntry(this._mapData, key); } - delete(key: K): boolean { return !!deleteEntry(this._mapData, key); } - clear(): void { clearEntries(this._mapData); } - keys(): IteratorShim { return new MapIterator(this._mapData, (key, _value) => key); } - values(): IteratorShim { return new MapIterator(this._mapData, (_key, value) => value); } - entries(): IteratorShim<[K, V]> { return new MapIterator(this._mapData, (key, value) => [key, value]); } - forEach(action: (value: V, key: K) => void): void { forEachEntry(this._mapData, action); } - }; - } - - export function createSetShim(getIterator: GetIteratorCallback): SetShimConstructor { - class SetIterator { - private _data: IteratorData; - constructor(data: MapData, selector: (key: K, value: V) => U) { - this._data = createIteratorData(data, selector); - } - next() { return iteratorNext(this._data); } - } - return class Set implements SetShim { - private _mapData = createMapData(); - constructor(iterable?: readonly T[] | ReadonlySetShim) { - forEachIteration(getIterator(iterable), value => this.add(value)); - } - get size() { return this._mapData.size; } - add(value: T): this { return addOrUpdateEntry(this._mapData, value, value), this; } - has(value: T): boolean { return !!getEntry(this._mapData, value); } - delete(value: T): boolean { return !!deleteEntry(this._mapData, value); } - clear(): void { clearEntries(this._mapData); } - keys(): IteratorShim { return new SetIterator(this._mapData, (key, _value) => key); } - values(): IteratorShim { return new SetIterator(this._mapData, (_key, value) => value); } - entries(): IteratorShim<[T, T]> { return new SetIterator(this._mapData, (key, value) => [key, value]); } - forEach(action: (value: T, key: T) => void): void { forEachEntry(this._mapData, action); } - }; - } - } -} diff --git a/src/shims/tsconfig.json b/src/shims/tsconfig.json deleted file mode 100644 index ebea929016a..00000000000 --- a/src/shims/tsconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../tsconfig-base", - "compilerOptions": { - "outFile": "../../built/local/shims.js" - }, - "files": [ - "collectionShims.ts", - ] -} diff --git a/src/testRunner/compilerRunner.ts b/src/testRunner/compilerRunner.ts index 1d320d667cf..a6c67a17ee1 100644 --- a/src/testRunner/compilerRunner.ts +++ b/src/testRunner/compilerRunner.ts @@ -141,7 +141,8 @@ namespace Harness { "preserveConstEnums", "skipLibCheck", "exactOptionalPropertyTypes", - "useUnknownInCatchVariables" + "useDefineForClassFields", + "useUnknownInCatchVariables", ]; private fileName: string; private justName: string; diff --git a/src/testRunner/externalCompileRunner.ts b/src/testRunner/externalCompileRunner.ts index 737377d89d7..92acf6532b0 100644 --- a/src/testRunner/externalCompileRunner.ts +++ b/src/testRunner/externalCompileRunner.ts @@ -18,7 +18,7 @@ namespace Harness { abstract class ExternalCompileRunnerBase extends RunnerBase { abstract testDir: string; - abstract report(result: ExecResult, cwd: string): string | null; + abstract report(result: ExecResult): string | null; enumerateTestFiles() { return IO.getDirectories(this.testDir); } @@ -91,7 +91,7 @@ namespace Harness { } } args.push("--noEmit"); - Baseline.runBaseline(`${cls.kind()}/${directoryName}.log`, cls.report(cp.spawnSync(`node`, args, { cwd, timeout, shell: true }), cwd)); + Baseline.runBaseline(`${cls.kind()}/${directoryName}.log`, cls.report(cp.spawnSync(`node`, args, { cwd, timeout, shell: true }))); function exec(command: string, args: string[], options: { cwd: string, timeout?: number, stdio?: import("child_process").StdioOptions }): string | undefined { const res = cp.spawnSync(isWorker ? `${command} 2>&1` : command, args, { shell: true, stdio, ...options }); @@ -281,46 +281,18 @@ ${sanitizeDockerfileOutput(result.stderr.toString())}`; kind(): TestRunnerKind { return "dt"; } - report(result: ExecResult, cwd: string) { - const stdout = removeExpectedErrors(result.stdout.toString(), cwd); - const stderr = result.stderr.toString(); - + report(result: ExecResult) { // eslint-disable-next-line no-null/no-null - return !stdout.length && !stderr.length ? null : `Exit Code: ${result.status} + return !result.stdout.length && !result.stderr.length ? null : `Exit Code: ${result.status} Standard output: -${stdout.replace(/\r\n/g, "\n")} +${result.stdout.toString().replace(/\r\n/g, "\n")} Standard error: -${stderr.replace(/\r\n/g, "\n")}`; +${result.stderr.toString().replace(/\r\n/g, "\n")}`; } } - function removeExpectedErrors(errors: string, cwd: string): string { - return ts.flatten(splitBy(errors.split("\n"), s => /^\S+/.test(s)).filter(isUnexpectedError(cwd))).join("\n"); - } - /** - * Returns true if the line that caused the error contains '$ExpectError', - * or if the line before that one contains '$ExpectError'. - * '$ExpectError' is a marker used in Definitely Typed tests, - * meaning that the error should not contribute toward our error baslines. - */ - function isUnexpectedError(cwd: string) { - return (error: string[]) => { - ts.Debug.assertGreaterThanOrEqual(error.length, 1); - const match = error[0].match(/(.+\.tsx?)\((\d+),\d+\): error TS/); - if (!match) { - return true; - } - const [, errorFile, lineNumberString] = match; - const lines = fs.readFileSync(path.join(cwd, errorFile), { encoding: "utf8" }).split("\n"); - const lineNumber = parseInt(lineNumberString) - 1; - ts.Debug.assertGreaterThanOrEqual(lineNumber, 0); - ts.Debug.assertLessThan(lineNumber, lines.length); - const previousLine = lineNumber - 1 > 0 ? lines[lineNumber - 1] : ""; - return !ts.stringContains(lines[lineNumber], "$ExpectError") && !ts.stringContains(previousLine, "$ExpectError"); - }; - } /** * Split an array into multiple arrays whenever `isStart` returns true. * @example diff --git a/src/testRunner/tsconfig.json b/src/testRunner/tsconfig.json index 80cde07e7c7..c7f216ed298 100644 --- a/src/testRunner/tsconfig.json +++ b/src/testRunner/tsconfig.json @@ -14,7 +14,6 @@ ] }, "references": [ - { "path": "../shims", "prepend": true }, { "path": "../compiler", "prepend": true }, { "path": "../executeCommandLine", "prepend": true }, { "path": "../services", "prepend": true }, @@ -76,8 +75,6 @@ "unittests/publicApi.ts", "unittests/reuseProgramStructure.ts", "unittests/semver.ts", - "unittests/createMapShim.ts", - "unittests/createSetShim.ts", "unittests/transform.ts", "unittests/config/commandLineParsing.ts", "unittests/config/configurationExtension.ts", @@ -205,6 +202,7 @@ "unittests/tsserver/languageService.ts", "unittests/tsserver/maxNodeModuleJsDepth.ts", "unittests/tsserver/metadataInResponse.ts", + "unittests/tsserver/moduleResolution.ts", "unittests/tsserver/moduleSpecifierCache.ts", "unittests/tsserver/navTo.ts", "unittests/tsserver/occurences.ts", diff --git a/src/testRunner/unittests/createMapShim.ts b/src/testRunner/unittests/createMapShim.ts deleted file mode 100644 index e76718e1f24..00000000000 --- a/src/testRunner/unittests/createMapShim.ts +++ /dev/null @@ -1,326 +0,0 @@ -namespace ts { - describe("unittests:: createMapShim", () => { - - const stringKeys = [ - "1", - "3", - "2", - "4", - "0", - "999", - "A", - "B", - "C", - "Z", - "X", - "X1", - "X2", - "Y" - ]; - - const mixedKeys = [ - true, - 3, - { toString() { return "2"; } }, - "4", - false, - null, // eslint-disable-line no-null/no-null - undefined, - "B", - { toString() { return "C"; } }, - "Z", - "X", - { toString() { return "X1"; } }, - "X2", - "Y" - ]; - - function testMapIterationAddedValues(keys: K[], map: ESMap, useForEach: boolean): string { - let resultString = ""; - - map.set(keys[0], "1"); - map.set(keys[1], "3"); - map.set(keys[2], "2"); - map.set(keys[3], "4"); - - let addedThree = false; - const doForEach = (value: string, key: K) => { - resultString += `${key}:${value};`; - - // Add a new key ("0") - the map should provide this - // one in the next iteration. - if (key === keys[0]) { - map.set(keys[0], "X1"); - map.set(keys[4], "X0"); - map.set(keys[3], "X4"); - } - else if (key === keys[1]) { - if (!addedThree) { - addedThree = true; - - // Remove and re-add key "3"; the map should - // visit it after "0". - map.delete(keys[1]); - map.set(keys[1], "Y3"); - - // Change the value of "2"; the map should provide - // it when visiting the key. - map.set(keys[2], "Y2"); - } - else { - // Check that an entry added when we visit the - // currently last entry will still be visited. - map.set(keys[5], "999"); - } - } - else if (key === keys[5]) { - // Ensure that clear() behaves correctly same as removing all keys. - map.set(keys[6], "A"); - map.set(keys[7], "B"); - map.set(keys[8], "C"); - } - else if (key === keys[6]) { - map.clear(); - map.set(keys[9], "Z"); - } - else if (key === keys[9]) { - // Check that the map behaves correctly when two items are - // added and removed immediately. - map.set(keys[10], "X"); - map.set(keys[11], "X1"); - map.set(keys[12], "X2"); - map.delete(keys[11]); - map.delete(keys[12]); - map.set(keys[13], "Y"); - } - }; - - if (useForEach) { - map.forEach(doForEach); - } - else { - // Use an iterator. - const iterator = map.entries(); - while (true) { - const iterResult = iterator.next(); - if (iterResult.done) { - break; - } - - const [key, value] = iterResult.value; - doForEach(value, key); - } - } - - return resultString; - } - - let MapShim!: MapConstructor; - beforeEach(() => { - function getIterator | ReadonlyESMap | undefined>(iterable: I): Iterator< - I extends ReadonlyESMap ? [K, V] : - I extends ReadonlySet ? T : - I extends readonly (infer T)[] ? T : - I extends undefined ? undefined : - never>; - function getIterator(iterable: readonly any[] | ReadonlySet | ReadonlyESMap | undefined): Iterator | undefined { - // override `ts.getIterator` with a version that allows us to iterate over a `MapShim` in an environment with a native `Map`. - if (iterable instanceof MapShim) return iterable.entries(); - return ts.getIterator(iterable); - } - - MapShim = ShimCollections.createMapShim(getIterator); - }); - afterEach(() => { - MapShim = undefined!; - }); - - it("iterates values in insertion order and handles changes with string keys", () => { - const expectedResult = "1:1;3:3;2:Y2;4:X4;0:X0;3:Y3;999:999;A:A;Z:Z;X:X;Y:Y;"; - - // First, ensure the test actually has the same behavior as a native Map. - let nativeMap = new Map(); - const nativeMapForEachResult = testMapIterationAddedValues(stringKeys, nativeMap, /* useForEach */ true); - assert.equal(nativeMapForEachResult, expectedResult, "nativeMap-forEach"); - - nativeMap = new Map(); - const nativeMapIteratorResult = testMapIterationAddedValues(stringKeys, nativeMap, /* useForEach */ false); - assert.equal(nativeMapIteratorResult, expectedResult, "nativeMap-iterator"); - - // Then, test the map shim. - let localShimMap = new MapShim(); - const shimMapForEachResult = testMapIterationAddedValues(stringKeys, localShimMap, /* useForEach */ true); - assert.equal(shimMapForEachResult, expectedResult, "shimMap-forEach"); - - localShimMap = new MapShim(); - const shimMapIteratorResult = testMapIterationAddedValues(stringKeys, localShimMap, /* useForEach */ false); - assert.equal(shimMapIteratorResult, expectedResult, "shimMap-iterator"); - }); - - it("iterates values in insertion order and handles changes with mixed-type keys", () => { - const expectedResult = "true:1;3:3;2:Y2;4:X4;false:X0;3:Y3;null:999;undefined:A;Z:Z;X:X;Y:Y;"; - - // First, ensure the test actually has the same behavior as a native Map. - let nativeMap = new Map(); - const nativeMapForEachResult = testMapIterationAddedValues(mixedKeys, nativeMap, /* useForEach */ true); - assert.equal(nativeMapForEachResult, expectedResult, "nativeMap-forEach"); - - nativeMap = new Map(); - const nativeMapIteratorResult = testMapIterationAddedValues(mixedKeys, nativeMap, /* useForEach */ false); - assert.equal(nativeMapIteratorResult, expectedResult, "nativeMap-iterator"); - - // Then, test the map shim. - let localShimMap = new MapShim(); - const shimMapForEachResult = testMapIterationAddedValues(mixedKeys, localShimMap, /* useForEach */ true); - assert.equal(shimMapForEachResult, expectedResult, "shimMap-forEach"); - - localShimMap = new MapShim(); - const shimMapIteratorResult = testMapIterationAddedValues(mixedKeys, localShimMap, /* useForEach */ false); - assert.equal(shimMapIteratorResult, expectedResult, "shimMap-iterator"); - }); - - it("create from Array", () => { - const map = new MapShim([["a", "b"]]); - assert.equal(map.size, 1); - assert.isTrue(map.has("a")); - assert.equal(map.get("a"), "b"); - }); - - it("create from Map", () => { - const map1 = new MapShim([["a", "b"]]); - const map2 = new MapShim(map1); - assert.equal(map1.size, 1); - assert.equal(map2.size, 1); - assert.isTrue(map2.has("a")); - assert.equal(map2.get("a"), "b"); - }); - - it("set when not present", () => { - const map = new MapShim(); - const result = map.set("a", "b"); - assert.equal(map.size, 1); - assert.strictEqual(result, map); - assert.isTrue(map.has("a")); - assert.equal(map.get("a"), "b"); - }); - - it("set when present", () => { - const map = new MapShim(); - map.set("a", "z"); - const result = map.set("a", "b"); - assert.equal(map.size, 1); - assert.strictEqual(result, map); - assert.isTrue(map.has("a")); - assert.equal(map.get("a"), "b"); - }); - - it("has when not present", () => { - const map = new MapShim(); - assert.isFalse(map.has("a")); - }); - - it("has when present", () => { - const map = new MapShim(); - map.set("a", "b"); - assert.isTrue(map.has("a")); - }); - - it("get when not present", () => { - const map = new MapShim(); - assert.isUndefined(map.get("a")); - }); - - it("get when present", () => { - const map = new MapShim(); - map.set("a", "b"); - assert.equal(map.get("a"), "b"); - }); - - it("delete when not present", () => { - const map = new MapShim(); - assert.isFalse(map.delete("a")); - }); - - it("delete when present", () => { - const map = new MapShim(); - map.set("a", "b"); - assert.isTrue(map.delete("a")); - }); - - it("delete twice when present", () => { - const map = new MapShim(); - map.set("a", "b"); - assert.isTrue(map.delete("a")); - assert.isFalse(map.delete("a")); - }); - - it("remove only item and iterate", () => { - const map = new MapShim(); - map.set("a", "b"); - map.delete("a"); - const actual = arrayFrom(map.keys()); - assert.deepEqual(actual, []); - }); - - it("remove first item and iterate", () => { - const map = new MapShim(); - map.set("a", "b"); - map.set("c", "d"); - map.delete("a"); - assert.deepEqual(arrayFrom(map.keys()), ["c"]); - assert.deepEqual(arrayFrom(map.values()), ["d"]); - assert.deepEqual(arrayFrom(map.entries()), [["c", "d"]]); - }); - - it("remove last item and iterate", () => { - const map = new MapShim(); - map.set("a", "b"); - map.set("c", "d"); - map.delete("c"); - assert.deepEqual(arrayFrom(map.keys()), ["a"]); - assert.deepEqual(arrayFrom(map.values()), ["b"]); - assert.deepEqual(arrayFrom(map.entries()), [["a", "b"]]); - }); - - it("remove middle item and iterate", () => { - const map = new MapShim(); - map.set("a", "b"); - map.set("c", "d"); - map.set("e", "f"); - map.delete("c"); - assert.deepEqual(arrayFrom(map.keys()), ["a", "e"]); - assert.deepEqual(arrayFrom(map.values()), ["b", "f"]); - assert.deepEqual(arrayFrom(map.entries()), [["a", "b"], ["e", "f"]]); - }); - - it("keys", () => { - const map = new MapShim(); - map.set("c", "d"); - map.set("a", "b"); - assert.deepEqual(arrayFrom(map.keys()), ["c", "a"]); - }); - - it("values", () => { - const map = new MapShim(); - map.set("c", "d"); - map.set("a", "b"); - assert.deepEqual(arrayFrom(map.values()), ["d", "b"]); - }); - - it("entries", () => { - const map = new MapShim(); - map.set("c", "d"); - map.set("a", "b"); - assert.deepEqual(arrayFrom(map.entries()), [["c", "d"], ["a", "b"]]); - }); - - it("forEach", () => { - const map = new MapShim(); - map.set("c", "d"); - map.set("a", "b"); - const actual: [string, string][] = []; - map.forEach((value, key) => actual.push([key, value])); - assert.deepEqual(actual, [["c", "d"], ["a", "b"]]); - }); - }); -} diff --git a/src/testRunner/unittests/createSetShim.ts b/src/testRunner/unittests/createSetShim.ts deleted file mode 100644 index bef82d78e2b..00000000000 --- a/src/testRunner/unittests/createSetShim.ts +++ /dev/null @@ -1,309 +0,0 @@ -namespace ts { - describe("unittests:: createSetShim", () => { - const stringKeys = [ - "1", - "3", - "2", - "4", - "0", - "999", - "A", - "B", - "C", - "Z", - "X", - "X1", - "X2", - "Y" - ]; - - const mixedKeys = [ - true, - 3, - { toString() { return "2"; } }, - "4", - false, - null, // eslint-disable-line no-null/no-null - undefined, - "B", - { toString() { return "C"; } }, - "Z", - "X", - { toString() { return "X1"; } }, - "X2", - "Y" - ]; - - function testSetIterationAddedValues(keys: K[], set: Set, useForEach: boolean): string { - let resultString = ""; - - set.add(keys[0]); - set.add(keys[1]); - set.add(keys[2]); - set.add(keys[3]); - - let addedThree = false; - const doForEach = (key: K) => { - resultString += `${key};`; - - // Add a new key ("0") - the set should provide this - // one in the next iteration. - if (key === keys[0]) { - set.add(keys[0]); - set.add(keys[4]); - set.add(keys[3]); - } - else if (key === keys[1]) { - if (!addedThree) { - addedThree = true; - - // Remove and re-add key "3"; the set should - // visit it after "0". - set.delete(keys[1]); - set.add(keys[1]); - - // Change the value of "2"; the set should provide - // it when visiting the key. - set.add(keys[2]); - } - else { - // Check that an entry added when we visit the - // currently last entry will still be visited. - set.add(keys[5]); - } - } - else if (key === keys[5]) { - // Ensure that clear() behaves correctly same as removing all keys. - set.add(keys[6]); - set.add(keys[7]); - set.add(keys[8]); - } - else if (key === keys[6]) { - set.clear(); - set.add(keys[9]); - } - else if (key === keys[9]) { - // Check that the set behaves correctly when two items are - // added and removed immediately. - set.add(keys[10]); - set.add(keys[11]); - set.add(keys[12]); - set.delete(keys[11]); - set.delete(keys[12]); - set.add(keys[13]); - } - }; - - if (useForEach) { - set.forEach(doForEach); - } - else { - // Use an iterator. - const iterator = set.values(); - while (true) { - const iterResult = iterator.next(); - if (iterResult.done) { - break; - } - - doForEach(iterResult.value); - } - } - - return resultString; - } - - let SetShim!: SetConstructor; - beforeEach(() => { - function getIterator | ReadonlyESMap | undefined>(iterable: I): Iterator< - I extends ReadonlyESMap ? [K, V] : - I extends ReadonlySet ? T : - I extends readonly (infer T)[] ? T : - I extends undefined ? undefined : - never>; - function getIterator(iterable: readonly any[] | ReadonlySet | ReadonlyESMap | undefined): Iterator | undefined { - // override `ts.getIterator` with a version that allows us to iterate over a `SetShim` in an environment with a native `Set`. - if (iterable instanceof SetShim) return iterable.values(); - return ts.getIterator(iterable); - } - - SetShim = ShimCollections.createSetShim(getIterator); - }); - afterEach(() => { - SetShim = undefined!; - }); - - it("iterates values in insertion order and handles changes with string keys", () => { - const expectedResult = "1;3;2;4;0;3;999;A;Z;X;Y;"; - - // First, ensure the test actually has the same behavior as a native Set. - let nativeSet = new Set(); - const nativeSetForEachResult = testSetIterationAddedValues(stringKeys, nativeSet, /* useForEach */ true); - assert.equal(nativeSetForEachResult, expectedResult, "nativeSet-forEach"); - - nativeSet = new Set(); - const nativeSetIteratorResult = testSetIterationAddedValues(stringKeys, nativeSet, /* useForEach */ false); - assert.equal(nativeSetIteratorResult, expectedResult, "nativeSet-iterator"); - - // Then, test the set shim. - let localShimSet = new SetShim(); - const shimSetForEachResult = testSetIterationAddedValues(stringKeys, localShimSet, /* useForEach */ true); - assert.equal(shimSetForEachResult, expectedResult, "shimSet-forEach"); - - localShimSet = new SetShim(); - const shimSetIteratorResult = testSetIterationAddedValues(stringKeys, localShimSet, /* useForEach */ false); - assert.equal(shimSetIteratorResult, expectedResult, "shimSet-iterator"); - }); - - it("iterates values in insertion order and handles changes with mixed-type keys", () => { - const expectedResult = "true;3;2;4;false;3;null;undefined;Z;X;Y;"; - - // First, ensure the test actually has the same behavior as a native Set. - let nativeSet = new Set(); - const nativeSetForEachResult = testSetIterationAddedValues(mixedKeys, nativeSet, /* useForEach */ true); - assert.equal(nativeSetForEachResult, expectedResult, "nativeSet-forEach"); - - nativeSet = new Set(); - const nativeSetIteratorResult = testSetIterationAddedValues(mixedKeys, nativeSet, /* useForEach */ false); - assert.equal(nativeSetIteratorResult, expectedResult, "nativeSet-iterator"); - - // Then, test the set shim. - let localshimSet = new SetShim(); - const shimSetForEachResult = testSetIterationAddedValues(mixedKeys, localshimSet, /* useForEach */ true); - assert.equal(shimSetForEachResult, expectedResult, "shimSet-forEach"); - - localshimSet = new SetShim(); - const shimSetIteratorResult = testSetIterationAddedValues(mixedKeys, localshimSet, /* useForEach */ false); - assert.equal(shimSetIteratorResult, expectedResult, "shimSet-iterator"); - }); - - it("create from Array", () => { - const set = new SetShim(["a"]); - assert.equal(set.size, 1); - assert.isTrue(set.has("a")); - }); - - it("create from set", () => { - const set1 = new SetShim(["a"]); - const set2 = new SetShim(set1); - assert.equal(set1.size, 1); - assert.equal(set2.size, 1); - assert.isTrue(set2.has("a")); - }); - - it("add when not present", () => { - const set = new SetShim(); - const result = set.add("a"); - assert.equal(set.size, 1); - assert.strictEqual(result, set); - assert.isTrue(set.has("a")); - }); - - it("add when present", () => { - const set = new SetShim(); - set.add("a"); - const result = set.add("a"); - assert.equal(set.size, 1); - assert.strictEqual(result, set); - assert.isTrue(set.has("a")); - }); - - it("has when not present", () => { - const set = new SetShim(); - assert.isFalse(set.has("a")); - }); - - it("has when present", () => { - const set = new SetShim(); - set.add("a"); - assert.isTrue(set.has("a")); - }); - - it("delete when not present", () => { - const set = new SetShim(); - assert.isFalse(set.delete("a")); - }); - - it("delete when present", () => { - const set = new SetShim(); - set.add("a"); - assert.isTrue(set.delete("a")); - }); - - it("delete twice when present", () => { - const set = new SetShim(); - set.add("a"); - assert.isTrue(set.delete("a")); - assert.isFalse(set.delete("a")); - }); - - it("remove only item and iterate", () => { - const set = new SetShim(); - set.add("a"); - set.delete("a"); - const actual = arrayFrom(set.keys()); - assert.deepEqual(actual, []); - }); - - it("remove first item and iterate", () => { - const set = new SetShim(); - set.add("a"); - set.add("c"); - set.delete("a"); - assert.deepEqual(arrayFrom(set.keys()), ["c"]); - assert.deepEqual(arrayFrom(set.values()), ["c"]); - assert.deepEqual(arrayFrom(set.entries()), [["c", "c"]]); - }); - - it("remove last item and iterate", () => { - const set = new SetShim(); - set.add("a"); - set.add("c"); - set.delete("c"); - assert.deepEqual(arrayFrom(set.keys()), ["a"]); - assert.deepEqual(arrayFrom(set.values()), ["a"]); - assert.deepEqual(arrayFrom(set.entries()), [["a", "a"]]); - }); - - it("remove middle item and iterate", () => { - const set = new SetShim(); - set.add("a"); - set.add("c"); - set.add("e"); - set.delete("c"); - assert.deepEqual(arrayFrom(set.keys()), ["a", "e"]); - assert.deepEqual(arrayFrom(set.values()), ["a", "e"]); - assert.deepEqual(arrayFrom(set.entries()), [["a", "a"], ["e", "e"]]); - }); - - it("keys", () => { - const set = new SetShim(); - set.add("c"); - set.add("a"); - assert.deepEqual(arrayFrom(set.keys()), ["c", "a"]); - }); - - it("values", () => { - const set = new SetShim(); - set.add("c"); - set.add("a"); - assert.deepEqual(arrayFrom(set.values()), ["c", "a"]); - }); - - it("entries", () => { - const set = new SetShim(); - set.add("c"); - set.add("a"); - assert.deepEqual(arrayFrom(set.entries()), [["c", "c"], ["a", "a"]]); - }); - - it("forEach", () => { - const set = new SetShim(); - set.add("c"); - set.add("a"); - const actual: [string, string][] = []; - set.forEach((value, key) => actual.push([key, value])); - assert.deepEqual(actual, [["c", "c"], ["a", "a"]]); - }); - }); -} diff --git a/src/testRunner/unittests/services/transpile.ts b/src/testRunner/unittests/services/transpile.ts index 2e0c8ea2454..e0cfa72f53e 100644 --- a/src/testRunner/unittests/services/transpile.ts +++ b/src/testRunner/unittests/services/transpile.ts @@ -485,5 +485,19 @@ export { a as alias }; export * as alias from './file';`, { noSetFileName: true }); + + transpilesCorrectly("Elides import equals referenced only by export type", + `import IFoo = Namespace.IFoo;` + + `export type { IFoo };`, { + options: { compilerOptions: { module: ModuleKind.CommonJS } } + } + ); + + transpilesCorrectly("Elides import equals referenced only by type only export specifier", + `import IFoo = Namespace.IFoo;` + + `export { type IFoo };`, { + options: { compilerOptions: { module: ModuleKind.CommonJS } } + } + ); }); } diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index 6107950a2fb..f5ad6421362 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -12,7 +12,8 @@ namespace ts { host.readFile = path => { const value = originalReadFile.call(host, path); if (!value || !isBuildInfoFile(path)) return value; - const buildInfo = getBuildInfo(value); + const buildInfo = getBuildInfo(path, value); + if (!buildInfo) return value; buildInfo.version = fakes.version; return getBuildInfoText(buildInfo); }; @@ -263,7 +264,7 @@ interface Symbol { toFileName(s) : [toFileName(s[0]), s[1]] ), - dtsChangeTime: buildInfo.program.dtsChangeTime, + latestChangedDtsFile: buildInfo.program.latestChangedDtsFile, }; } const version = buildInfo.version === ts.version ? fakes.version : buildInfo.version; @@ -330,7 +331,8 @@ interface Symbol { if (!buildInfoPath || !sys.writtenFiles!.has(toPathWithSystem(sys, buildInfoPath))) return; if (!sys.fileExists(buildInfoPath)) return; - const buildInfo = getBuildInfo((originalReadCall || sys.readFile).call(sys, buildInfoPath, "utf8")!); + const buildInfo = getBuildInfo(buildInfoPath, (originalReadCall || sys.readFile).call(sys, buildInfoPath, "utf8")!); + if (!buildInfo) return sys.writeFile(`${buildInfoPath}.baseline.txt`, "Error reading valid buildinfo file"); generateBuildInfoProgramBaseline(sys, buildInfoPath, buildInfo); if (!outFile(options)) return; @@ -544,7 +546,7 @@ interface Symbol { options: { ...readableBuildInfo.program.options, noEmit: undefined }, exportedModulesMap: undefined, affectedFilesPendingEmit: undefined, - dtsChangeTime: readableBuildInfo.program.dtsChangeTime ? "FakeTime" : undefined, + latestChangedDtsFile: readableBuildInfo.program.latestChangedDtsFile ? "FakeFileName" : undefined, }, size: undefined, // Size doesnt need to be equal }, /*replacer*/ undefined, 2), diff --git a/src/testRunner/unittests/tsbuild/sample.ts b/src/testRunner/unittests/tsbuild/sample.ts index f4ca469a44d..ebf13cc9c86 100644 --- a/src/testRunner/unittests/tsbuild/sample.ts +++ b/src/testRunner/unittests/tsbuild/sample.ts @@ -168,6 +168,21 @@ namespace ts { commandLineArgs: ["--b", "/src/tests", "--verbose", "--force"], }); + verifyTscWithEdits({ + scenario: "sample1", + subScenario: "tsbuildinfo has error", + fs: () => loadProjectFromFiles({ + "/src/project/main.ts": "export const x = 10;", + "/src/project/tsconfig.json": "{}", + "/src/project/tsconfig.tsbuildinfo": "Some random string", + }), + commandLineArgs: ["--b", "src/project", "-i", "-v"], + edits: [{ + subScenario: "tsbuildinfo written has error", + modifyFs: fs => prependText(fs, "/src/project/tsconfig.tsbuildinfo", "Some random string"), + }] + }); + verifyTscCompileLike(testTscCompileLike, { scenario: "sample1", subScenario: "rebuilds completely when version in tsbuildinfo doesnt match ts version", diff --git a/src/testRunner/unittests/tsbuildWatch/programUpdates.ts b/src/testRunner/unittests/tsbuildWatch/programUpdates.ts index 58d912b30c5..ad777cc7fdc 100644 --- a/src/testRunner/unittests/tsbuildWatch/programUpdates.ts +++ b/src/testRunner/unittests/tsbuildWatch/programUpdates.ts @@ -729,5 +729,18 @@ export function someFn() { }`), } ] }); + + verifyTscWatch({ + scenario: "programUpdates", + subScenario: "tsbuildinfo has error", + sys: () => createWatchedSystem({ + "/src/project/main.ts": "export const x = 10;", + "/src/project/tsconfig.json": "{}", + "/src/project/tsconfig.tsbuildinfo": "Some random string", + [libFile.path]: libFile.content, + }), + commandLineArgs: ["--b", "src/project", "-i", "-w"], + changes: emptyArray + }); }); } \ No newline at end of file diff --git a/src/testRunner/unittests/tsc/incremental.ts b/src/testRunner/unittests/tsc/incremental.ts index de77465b505..157643f2203 100644 --- a/src/testRunner/unittests/tsc/incremental.ts +++ b/src/testRunner/unittests/tsc/incremental.ts @@ -73,6 +73,21 @@ namespace ts { edits: noChangeOnlyRuns }); + verifyTscWithEdits({ + scenario: "incremental", + subScenario: "tsbuildinfo has error", + fs: () => loadProjectFromFiles({ + "/src/project/main.ts": "export const x = 10;", + "/src/project/tsconfig.json": "{}", + "/src/project/tsconfig.tsbuildinfo": "Some random string", + }), + commandLineArgs: ["--p", "src/project", "-i"], + edits: [{ + subScenario: "tsbuildinfo written has error", + modifyFs: fs => prependText(fs, "/src/project/tsconfig.tsbuildinfo", "Some random string"), + }] + }); + describe("with noEmitOnError", () => { let projFs: vfs.FileSystem; before(() => { @@ -125,8 +140,8 @@ const a: string = 10;`, "utf-8"), function verifyNoEmitChanges(compilerOptions: CompilerOptions) { const discrepancyExplanation = () => [ ...noChangeWithExportsDiscrepancyRun.discrepancyExplanation!(), - "Clean build will not have dtsChangeTime as there was no emit and emitSignatures as undefined for files", - "Incremental will store the past dtsChangeTime and emitSignatures", + "Clean build will not have latestChangedDtsFile as there was no emit and emitSignatures as undefined for files", + "Incremental will store the past latestChangedDtsFile and emitSignatures", ]; const discrepancyIfNoDtsEmit = getEmitDeclarations(compilerOptions) ? undefined : diff --git a/src/testRunner/unittests/tscWatch/incremental.ts b/src/testRunner/unittests/tscWatch/incremental.ts index 1af240764fe..8d49e9ba246 100644 --- a/src/testRunner/unittests/tscWatch/incremental.ts +++ b/src/testRunner/unittests/tscWatch/incremental.ts @@ -374,5 +374,18 @@ export const Fragment: unique symbol; }, }); }); + + verifyTscWatch({ + scenario: "incremental", + subScenario: "tsbuildinfo has error", + sys: () => createWatchedSystem({ + "/src/project/main.ts": "export const x = 10;", + "/src/project/tsconfig.json": "{}", + "/src/project/tsconfig.tsbuildinfo": "Some random string", + [libFile.path]: libFile.content, + }), + commandLineArgs: ["--p", "src/project", "-i", "-w"], + changes: emptyArray + }); }); } diff --git a/src/testRunner/unittests/tscWatch/moduleResolution.ts b/src/testRunner/unittests/tscWatch/moduleResolution.ts index 5e596d9c9d5..1d8d546e924 100644 --- a/src/testRunner/unittests/tscWatch/moduleResolution.ts +++ b/src/testRunner/unittests/tscWatch/moduleResolution.ts @@ -72,5 +72,189 @@ namespace ts.tscWatch { }, ] }); + + verifyTscWatch({ + scenario: "moduleResolution", + subScenario: "diagnostics from cache", + sys: () => createWatchedSystem([ + { + path: `${projectRoot}/tsconfig.json`, + content: JSON.stringify({ + compilerOptions: { + moduleResolution: "nodenext", + outDir: "./dist", + declaration: true, + declarationDir: "./types" + }, + }) + }, + { + path: `${projectRoot}/package.json`, + content: JSON.stringify({ + name: "@this/package", + type: "module", + exports: { + ".": { + default: "./dist/index.js", + types: "./types/index.d.ts" + } + } + }) + }, + { + path: `${projectRoot}/index.ts`, + content: Utils.dedent` + import * as me from "@this/package"; + me.thing() + export function thing(): void {} + ` + }, + libFile + ], { currentDirectory: projectRoot }), + commandLineArgs: ["-w", "--traceResolution"], + changes: emptyArray + }); + + describe("package json file is edited", () => { + function getSys(packageFileContents: string) { + const configFile: File = { + path: `${projectRoot}/src/tsconfig.json`, + content: JSON.stringify({ + compilerOptions: { + target: "es2016", + module: "Node16", + outDir: "../out" + } + }) + }; + const packageFile: File = { + path: `${projectRoot}/package.json`, + content: packageFileContents + }; + const fileA: File = { + path: `${projectRoot}/src/fileA.ts`, + content: Utils.dedent` + import { foo } from "./fileB.mjs"; + foo(); + ` + }; + const fileB: File = { + path: `${projectRoot}/project/src/fileB.mts`, + content: Utils.dedent` + export function foo() { + } + ` + }; + return createWatchedSystem( + [configFile, fileA, fileB, packageFile, { ...libFile, path: "/a/lib/lib.es2016.full.d.ts" }], + { currentDirectory: projectRoot } + ); + } + verifyTscWatch({ + scenario: "moduleResolution", + subScenario: "package json file is edited", + commandLineArgs: ["--w", "--p", "src", "--extendedDiagnostics", "-traceResolution", "--explainFiles"], + sys: () => getSys(JSON.stringify({ name: "app", version: "1.0.0" })), + changes: [ + { + caption: "Modify package json file to add type module", + change: sys => sys.writeFile(`${projectRoot}/package.json`, JSON.stringify({ + name: "app", version: "1.0.0", type: "module", + })), + timeouts: host => { + host.runQueuedTimeoutCallbacks(); // Failed lookup updates + host.runQueuedTimeoutCallbacks(); // Actual update + }, + }, + { + caption: "Modify package.json file to remove type module", + change: sys => sys.writeFile(`${projectRoot}/package.json`, JSON.stringify({ name: "app", version: "1.0.0" })), + timeouts: host => { + host.runQueuedTimeoutCallbacks(); // Failed lookup updates + host.runQueuedTimeoutCallbacks(); // Actual update + }, + }, + { + caption: "Delete package.json", + change: sys => sys.deleteFile(`${projectRoot}/package.json`), + timeouts: host => { + host.runQueuedTimeoutCallbacks(); // Failed lookup updates + host.runQueuedTimeoutCallbacks(); // Actual update + }, + }, + { + caption: "Modify package json file to add type module", + change: sys => sys.writeFile(`${projectRoot}/package.json`, JSON.stringify({ + name: "app", version: "1.0.0", type: "module", + })), + timeouts: host => { + host.runQueuedTimeoutCallbacks(); // Failed lookup updates + host.runQueuedTimeoutCallbacks(); // Actual update + }, + }, + { + caption: "Delete package.json", + change: sys => sys.deleteFile(`${projectRoot}/package.json`), + timeouts: host => { + host.runQueuedTimeoutCallbacks(); // Failed lookup updates + host.runQueuedTimeoutCallbacks(); // Actual update + }, + }, + ], + }); + + verifyTscWatch({ + scenario: "moduleResolution", + subScenario: "package json file is edited when package json with type module exists", + commandLineArgs: ["--w", "--p", "src", "--extendedDiagnostics", "-traceResolution", "--explainFiles"], + sys: () => getSys(JSON.stringify({ + name: "app", version: "1.0.0", type: "module", + })), + changes: [ + { + caption: "Modify package.json file to remove type module", + change: sys => sys.writeFile(`${projectRoot}/package.json`, JSON.stringify({ name: "app", version: "1.0.0" })), + timeouts: host => { + host.runQueuedTimeoutCallbacks(); // Failed lookup updates + host.runQueuedTimeoutCallbacks(); // Actual update + }, + }, + { + caption: "Modify package json file to add type module", + change: sys => sys.writeFile(`${projectRoot}/package.json`, JSON.stringify({ + name: "app", version: "1.0.0", type: "module", + })), + timeouts: host => { + host.runQueuedTimeoutCallbacks(); // Failed lookup updates + host.runQueuedTimeoutCallbacks(); // Actual update + }, + }, + { + caption: "Delete package.json", + change: sys => sys.deleteFile(`${projectRoot}/package.json`), + timeouts: host => { + host.runQueuedTimeoutCallbacks(); // Failed lookup updates + host.runQueuedTimeoutCallbacks(); // Actual update + }, + }, + { + caption: "Modify package json file to without type module", + change: sys => sys.writeFile(`${projectRoot}/package.json`, JSON.stringify({ name: "app", version: "1.0.0" })), + timeouts: host => { + host.runQueuedTimeoutCallbacks(); // Failed lookup updates + host.runQueuedTimeoutCallbacks(); // Actual update + }, + }, + { + caption: "Delete package.json", + change: sys => sys.deleteFile(`${projectRoot}/package.json`), + timeouts: host => { + host.runQueuedTimeoutCallbacks(); // Failed lookup updates + host.runQueuedTimeoutCallbacks(); // Actual update + }, + }, + ], + }); + }); }); } \ No newline at end of file diff --git a/src/testRunner/unittests/tscWatch/projectsWithReferences.ts b/src/testRunner/unittests/tscWatch/projectsWithReferences.ts index 83b65de1bda..524694a6ede 100644 --- a/src/testRunner/unittests/tscWatch/projectsWithReferences.ts +++ b/src/testRunner/unittests/tscWatch/projectsWithReferences.ts @@ -29,7 +29,7 @@ namespace ts.tscWatch { }, // not ideal, but currently because of d.ts but no new file is written // There will be timeout queued even though file contents are same - timeouts: checkSingleTimeoutQueueLengthAndRun + timeouts: sys => sys.checkTimeoutQueueLength(0), }, { caption: "non local edit in logic ts, and build logic", diff --git a/src/testRunner/unittests/tsserver/moduleResolution.ts b/src/testRunner/unittests/tsserver/moduleResolution.ts new file mode 100644 index 00000000000..ec3535c5d73 --- /dev/null +++ b/src/testRunner/unittests/tsserver/moduleResolution.ts @@ -0,0 +1,121 @@ +namespace ts.projectSystem { + describe("unittests:: tsserver:: moduleResolution", () => { + describe("package json file is edited", () => { + function setup(packageFileContents: string) { + const configFile: File = { + path: `${tscWatch.projectRoot}/src/tsconfig.json`, + content: JSON.stringify({ + compilerOptions: { + target: "es2016", + module: "Node16", + outDir: "../out", + traceResolution: true, + } + }) + }; + const packageFile: File = { + path: `${tscWatch.projectRoot}/package.json`, + content: packageFileContents + }; + const fileA: File = { + path: `${tscWatch.projectRoot}/src/fileA.ts`, + content: Utils.dedent` + import { foo } from "./fileB.mjs"; + foo(); + ` + }; + const fileB: File = { + path: `${tscWatch.projectRoot}/src/fileB.mts`, + content: Utils.dedent` + export function foo() { + } + ` + }; + const host = createServerHost([configFile, fileA, fileB, packageFile, { ...libFile, path: "/a/lib/lib.es2016.full.d.ts" }]); + const session = createSession(host, { canUseEvents: true, logger: createLoggerWithInMemoryLogs() }); + openFilesForSession([fileA], session); + return { + host, session, packageFile, + verifyErr: () => verifyGetErrRequest({ files: [fileA], session, host }), + }; + } + it("package json file is edited", () => { + const { host, session, packageFile, verifyErr } = setup(JSON.stringify({ name: "app", version: "1.0.0" })); + + session.logger.info("Modify package json file to add type module"); + host.writeFile(packageFile.path, JSON.stringify({ + name: "app", version: "1.0.0", type: "module", + })); + host.runQueuedTimeoutCallbacks(); // Failed lookup updates + host.runQueuedTimeoutCallbacks(); // Actual update + verifyErr(); + + session.logger.info("Modify package json file to remove type module"); + host.writeFile(packageFile.path, packageFile.content); + host.runQueuedTimeoutCallbacks(); // Failed lookup updates + host.runQueuedTimeoutCallbacks(); // Actual update + verifyErr(); + + session.logger.info("Delete package.json"); + host.deleteFile(packageFile.path); + host.runQueuedTimeoutCallbacks(); // Failed lookup updates + host.runQueuedTimeoutCallbacks(); // Actual update + verifyErr(); + + session.logger.info("Modify package json file to add type module"); + host.writeFile(packageFile.path, JSON.stringify({ + name: "app", version: "1.0.0", type: "module", + })); + host.runQueuedTimeoutCallbacks(); // Failed lookup updates + host.runQueuedTimeoutCallbacks(); // Actual update + verifyErr(); + + session.logger.info("Delete package.json"); + host.deleteFile(packageFile.path); + host.runQueuedTimeoutCallbacks(); // Failed lookup updates + host.runQueuedTimeoutCallbacks(); // Actual update + verifyErr(); + + baselineTsserverLogs("moduleResolution", "package json file is edited", session); + }); + + it("package json file is edited when package json with type module exists", () => { + const { host, session, packageFile, verifyErr } = setup(JSON.stringify({ + name: "app", version: "1.0.0", type: "module", + })); + + session.logger.info("Modify package json file to remove type module"); + host.writeFile(packageFile.path, JSON.stringify({ name: "app", version: "1.0.0" })); + host.runQueuedTimeoutCallbacks(); // Failed lookup updates + host.runQueuedTimeoutCallbacks(); // Actual update + verifyErr(); + + session.logger.info("Modify package json file to add type module"); + host.writeFile(packageFile.path, packageFile.content); + host.runQueuedTimeoutCallbacks(); // Failed lookup updates + host.runQueuedTimeoutCallbacks(); // Actual update + verifyErr(); + + session.logger.info("Delete package.json"); + host.deleteFile(packageFile.path); + host.runQueuedTimeoutCallbacks(); // Failed lookup updates + host.runQueuedTimeoutCallbacks(); // Actual update + verifyErr(); + + session.logger.info("Modify package json file to without type module"); + host.writeFile(packageFile.path, JSON.stringify({ name: "app", version: "1.0.0" })); + host.runQueuedTimeoutCallbacks(); // Failed lookup updates + host.runQueuedTimeoutCallbacks(); // Actual update + verifyErr(); + + session.logger.info("Delete package.json"); + host.deleteFile(packageFile.path); + host.runQueuedTimeoutCallbacks(); // Failed lookup updates + host.runQueuedTimeoutCallbacks(); // Actual update + verifyErr(); + + baselineTsserverLogs("moduleResolution", "package json file is edited when package json with type module exists", session); + }); + }); + }); +} \ No newline at end of file diff --git a/src/testRunner/unittests/tsserver/symLinks.ts b/src/testRunner/unittests/tsserver/symLinks.ts index 501738ccea3..c0f1d7fde88 100644 --- a/src/testRunner/unittests/tsserver/symLinks.ts +++ b/src/testRunner/unittests/tsserver/symLinks.ts @@ -131,6 +131,16 @@ new C();` host.runQueuedTimeoutCallbacks(); // Actual update verifyGetErrRequest({ session, host, files: [recognizersDateTimeSrcFile] }); + + // Change config file's module resolution affecting option + const config = JSON.parse(host.readFile(recognizerDateTimeTsconfigPath)!); + host.writeFile(recognizerDateTimeTsconfigPath, JSON.stringify({ + ...config, + compilerOptions: { ...config.compilerOptions, resolveJsonModule: true } + })); + host.runQueuedTimeoutCallbacks(); // Scheduled invalidation of resolutions + host.runQueuedTimeoutCallbacks(); // Actual update + baselineTsserverLogs("symLinks", `module resolution${withPathMapping ? " with path mapping" : ""} when project compiles from sources`, session); }); diff --git a/src/tsconfig.json b/src/tsconfig.json index ca929ee198c..a8ae1655e8f 100644 --- a/src/tsconfig.json +++ b/src/tsconfig.json @@ -2,7 +2,6 @@ "files": [], "include": [], "references": [ - { "path": "./shims" }, { "path": "./tsc" }, { "path": "./tsserver" }, { "path": "./typingsInstaller" }, @@ -12,4 +11,4 @@ { "path": "./dynamicImportCompat" }, { "path": "./testRunner" } ] -} \ No newline at end of file +} diff --git a/src/tsserverlibrary/tsconfig.json b/src/tsserverlibrary/tsconfig.json index 28217e40cf8..0450e98a8a4 100644 --- a/src/tsserverlibrary/tsconfig.json +++ b/src/tsserverlibrary/tsconfig.json @@ -7,7 +7,6 @@ "tsserverlibrary.ts" ], "references": [ - { "path": "../shims", "prepend": true }, { "path": "../compiler", "prepend": true }, { "path": "../jsTyping", "prepend": true }, { "path": "../services", "prepend": true }, diff --git a/src/typescriptServices/tsconfig.json b/src/typescriptServices/tsconfig.json index 68b1e50254d..e2ec0c27009 100644 --- a/src/typescriptServices/tsconfig.json +++ b/src/typescriptServices/tsconfig.json @@ -7,7 +7,6 @@ "typescriptServices.ts" ], "references": [ - { "path": "../shims", "prepend": true }, { "path": "../compiler", "prepend": true }, { "path": "../jsTyping", "prepend": true }, { "path": "../services", "prepend": true }, diff --git a/tests/baselines/reference/DateTimeFormatAndNumberFormatES2021.errors.txt b/tests/baselines/reference/DateTimeFormatAndNumberFormatES2021.errors.txt index e93066c44c1..18773d060f7 100644 --- a/tests/baselines/reference/DateTimeFormatAndNumberFormatES2021.errors.txt +++ b/tests/baselines/reference/DateTimeFormatAndNumberFormatES2021.errors.txt @@ -1,6 +1,6 @@ tests/cases/compiler/DateTimeFormatAndNumberFormatES2021.ts(1,29): error TS2339: Property 'formatRange' does not exist on type 'NumberFormat'. tests/cases/compiler/DateTimeFormatAndNumberFormatES2021.ts(4,25): error TS2339: Property 'formatRange' does not exist on type 'NumberFormat'. -tests/cases/compiler/DateTimeFormatAndNumberFormatES2021.ts(5,25): error TS2339: Property 'formatRangeToParts' does not exist on type 'NumberFormat'. +tests/cases/compiler/DateTimeFormatAndNumberFormatES2021.ts(5,25): error TS2551: Property 'formatRangeToParts' does not exist on type 'NumberFormat'. Did you mean 'formatToParts'? ==== tests/cases/compiler/DateTimeFormatAndNumberFormatES2021.ts (3 errors) ==== @@ -14,6 +14,7 @@ tests/cases/compiler/DateTimeFormatAndNumberFormatES2021.ts(5,25): error TS2339: !!! error TS2339: Property 'formatRange' does not exist on type 'NumberFormat'. new Intl.NumberFormat().formatRangeToParts ~~~~~~~~~~~~~~~~~~ -!!! error TS2339: Property 'formatRangeToParts' does not exist on type 'NumberFormat'. +!!! error TS2551: Property 'formatRangeToParts' does not exist on type 'NumberFormat'. Did you mean 'formatToParts'? +!!! related TS2728 /.ts/lib.es2018.intl.d.ts:71:9: 'formatToParts' is declared here. new Intl.DateTimeFormat().formatRange new Intl.DateTimeFormat().formatRangeToParts \ No newline at end of file diff --git a/tests/baselines/reference/DeclarationErrorsNoEmitOnError.js b/tests/baselines/reference/DeclarationErrorsNoEmitOnError.js index 73c312a018b..ff3ef183f79 100644 --- a/tests/baselines/reference/DeclarationErrorsNoEmitOnError.js +++ b/tests/baselines/reference/DeclarationErrorsNoEmitOnError.js @@ -10,7 +10,7 @@ exports.__esModule = true; //// [DeclarationErrorsNoEmitOnError.d.ts] -declare type T = { +type T = { x: number; }; export interface I { diff --git a/tests/baselines/reference/accessorDeclarationOrder.js b/tests/baselines/reference/accessorDeclarationOrder.js new file mode 100644 index 00000000000..d7b0474e5bf --- /dev/null +++ b/tests/baselines/reference/accessorDeclarationOrder.js @@ -0,0 +1,61 @@ +//// [accessorDeclarationOrder.ts] +class C1 { + #name: string; + + public get name() { + return this.#name; + } + + private set name(name: string) { + this.#name = name; + } +} + +class C2 { + #name: string; + + private set name(name: string) { + this.#name = name; + } + + public get name() { + return this.#name; + } +} + +const c1 = new C1(); +const c2 = new C2(); + + +// no error +c1.name; + +// no error +c2.name; + + +//// [accessorDeclarationOrder.js] +class C1 { + #name; + get name() { + return this.#name; + } + set name(name) { + this.#name = name; + } +} +class C2 { + #name; + set name(name) { + this.#name = name; + } + get name() { + return this.#name; + } +} +const c1 = new C1(); +const c2 = new C2(); +// no error +c1.name; +// no error +c2.name; diff --git a/tests/baselines/reference/accessorDeclarationOrder.symbols b/tests/baselines/reference/accessorDeclarationOrder.symbols new file mode 100644 index 00000000000..b889c5b5fc8 --- /dev/null +++ b/tests/baselines/reference/accessorDeclarationOrder.symbols @@ -0,0 +1,72 @@ +=== tests/cases/compiler/accessorDeclarationOrder.ts === +class C1 { +>C1 : Symbol(C1, Decl(accessorDeclarationOrder.ts, 0, 0)) + + #name: string; +>#name : Symbol(C1.#name, Decl(accessorDeclarationOrder.ts, 0, 10)) + + public get name() { +>name : Symbol(C1.name, Decl(accessorDeclarationOrder.ts, 1, 18), Decl(accessorDeclarationOrder.ts, 5, 5)) + + return this.#name; +>this.#name : Symbol(C1.#name, Decl(accessorDeclarationOrder.ts, 0, 10)) +>this : Symbol(C1, Decl(accessorDeclarationOrder.ts, 0, 0)) + } + + private set name(name: string) { +>name : Symbol(C1.name, Decl(accessorDeclarationOrder.ts, 1, 18), Decl(accessorDeclarationOrder.ts, 5, 5)) +>name : Symbol(name, Decl(accessorDeclarationOrder.ts, 7, 21)) + + this.#name = name; +>this.#name : Symbol(C1.#name, Decl(accessorDeclarationOrder.ts, 0, 10)) +>this : Symbol(C1, Decl(accessorDeclarationOrder.ts, 0, 0)) +>name : Symbol(name, Decl(accessorDeclarationOrder.ts, 7, 21)) + } +} + +class C2 { +>C2 : Symbol(C2, Decl(accessorDeclarationOrder.ts, 10, 1)) + + #name: string; +>#name : Symbol(C2.#name, Decl(accessorDeclarationOrder.ts, 12, 10)) + + private set name(name: string) { +>name : Symbol(C2.name, Decl(accessorDeclarationOrder.ts, 13, 18), Decl(accessorDeclarationOrder.ts, 17, 5)) +>name : Symbol(name, Decl(accessorDeclarationOrder.ts, 15, 21)) + + this.#name = name; +>this.#name : Symbol(C2.#name, Decl(accessorDeclarationOrder.ts, 12, 10)) +>this : Symbol(C2, Decl(accessorDeclarationOrder.ts, 10, 1)) +>name : Symbol(name, Decl(accessorDeclarationOrder.ts, 15, 21)) + } + + public get name() { +>name : Symbol(C2.name, Decl(accessorDeclarationOrder.ts, 13, 18), Decl(accessorDeclarationOrder.ts, 17, 5)) + + return this.#name; +>this.#name : Symbol(C2.#name, Decl(accessorDeclarationOrder.ts, 12, 10)) +>this : Symbol(C2, Decl(accessorDeclarationOrder.ts, 10, 1)) + } +} + +const c1 = new C1(); +>c1 : Symbol(c1, Decl(accessorDeclarationOrder.ts, 24, 5)) +>C1 : Symbol(C1, Decl(accessorDeclarationOrder.ts, 0, 0)) + +const c2 = new C2(); +>c2 : Symbol(c2, Decl(accessorDeclarationOrder.ts, 25, 5)) +>C2 : Symbol(C2, Decl(accessorDeclarationOrder.ts, 10, 1)) + + +// no error +c1.name; +>c1.name : Symbol(C1.name, Decl(accessorDeclarationOrder.ts, 1, 18), Decl(accessorDeclarationOrder.ts, 5, 5)) +>c1 : Symbol(c1, Decl(accessorDeclarationOrder.ts, 24, 5)) +>name : Symbol(C1.name, Decl(accessorDeclarationOrder.ts, 1, 18), Decl(accessorDeclarationOrder.ts, 5, 5)) + +// no error +c2.name; +>c2.name : Symbol(C2.name, Decl(accessorDeclarationOrder.ts, 13, 18), Decl(accessorDeclarationOrder.ts, 17, 5)) +>c2 : Symbol(c2, Decl(accessorDeclarationOrder.ts, 25, 5)) +>name : Symbol(C2.name, Decl(accessorDeclarationOrder.ts, 13, 18), Decl(accessorDeclarationOrder.ts, 17, 5)) + diff --git a/tests/baselines/reference/accessorDeclarationOrder.types b/tests/baselines/reference/accessorDeclarationOrder.types new file mode 100644 index 00000000000..325596dd70d --- /dev/null +++ b/tests/baselines/reference/accessorDeclarationOrder.types @@ -0,0 +1,76 @@ +=== tests/cases/compiler/accessorDeclarationOrder.ts === +class C1 { +>C1 : C1 + + #name: string; +>#name : string + + public get name() { +>name : string + + return this.#name; +>this.#name : string +>this : this + } + + private set name(name: string) { +>name : string +>name : string + + this.#name = name; +>this.#name = name : string +>this.#name : string +>this : this +>name : string + } +} + +class C2 { +>C2 : C2 + + #name: string; +>#name : string + + private set name(name: string) { +>name : string +>name : string + + this.#name = name; +>this.#name = name : string +>this.#name : string +>this : this +>name : string + } + + public get name() { +>name : string + + return this.#name; +>this.#name : string +>this : this + } +} + +const c1 = new C1(); +>c1 : C1 +>new C1() : C1 +>C1 : typeof C1 + +const c2 = new C2(); +>c2 : C2 +>new C2() : C2 +>C2 : typeof C2 + + +// no error +c1.name; +>c1.name : string +>c1 : C1 +>name : string + +// no error +c2.name; +>c2.name : string +>c2 : C2 +>name : string + diff --git a/tests/baselines/reference/accessorsOverrideProperty2.errors.txt b/tests/baselines/reference/accessorsOverrideProperty2.errors.txt index 6eedcdc47e9..ce4cbb8cdd8 100644 --- a/tests/baselines/reference/accessorsOverrideProperty2.errors.txt +++ b/tests/baselines/reference/accessorsOverrideProperty2.errors.txt @@ -14,5 +14,5 @@ tests/cases/conformance/classes/propertyMemberDeclarations/accessorsOverrideProp } const obj = new Derived(); // nothing printed - console.log(obj.x); // 1 + console.log(obj.x); // number \ No newline at end of file diff --git a/tests/baselines/reference/accessorsOverrideProperty2.js b/tests/baselines/reference/accessorsOverrideProperty2.js index e16ae60363e..2a3f5723543 100644 --- a/tests/baselines/reference/accessorsOverrideProperty2.js +++ b/tests/baselines/reference/accessorsOverrideProperty2.js @@ -9,7 +9,7 @@ class Derived extends Base { } const obj = new Derived(); // nothing printed -console.log(obj.x); // 1 +console.log(obj.x); // number //// [accessorsOverrideProperty2.js] @@ -21,4 +21,4 @@ class Derived extends Base { set x(value) { console.log(`x was set to ${value}`); } } const obj = new Derived(); // nothing printed -console.log(obj.x); // 1 +console.log(obj.x); // number diff --git a/tests/baselines/reference/accessorsOverrideProperty2.symbols b/tests/baselines/reference/accessorsOverrideProperty2.symbols index eab96740256..e4fa4bc7fc5 100644 --- a/tests/baselines/reference/accessorsOverrideProperty2.symbols +++ b/tests/baselines/reference/accessorsOverrideProperty2.symbols @@ -26,7 +26,7 @@ const obj = new Derived(); // nothing printed >obj : Symbol(obj, Decl(accessorsOverrideProperty2.ts, 9, 5)) >Derived : Symbol(Derived, Decl(accessorsOverrideProperty2.ts, 2, 1)) -console.log(obj.x); // 1 +console.log(obj.x); // number >console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) >console : Symbol(console, Decl(lib.dom.d.ts, --, --)) >log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) diff --git a/tests/baselines/reference/accessorsOverrideProperty2.types b/tests/baselines/reference/accessorsOverrideProperty2.types index 860b6f4f021..2fcff56230f 100644 --- a/tests/baselines/reference/accessorsOverrideProperty2.types +++ b/tests/baselines/reference/accessorsOverrideProperty2.types @@ -31,7 +31,7 @@ const obj = new Derived(); // nothing printed >new Derived() : Derived >Derived : typeof Derived -console.log(obj.x); // 1 +console.log(obj.x); // number >console.log(obj.x) : void >console.log : (...data: any[]) => void >console : Console diff --git a/tests/baselines/reference/allowSyntheticDefaultImports6.errors.txt b/tests/baselines/reference/allowSyntheticDefaultImports6.errors.txt index 916f50162a1..fedd9b350ff 100644 --- a/tests/baselines/reference/allowSyntheticDefaultImports6.errors.txt +++ b/tests/baselines/reference/allowSyntheticDefaultImports6.errors.txt @@ -11,6 +11,6 @@ tests/cases/compiler/a.ts(1,8): error TS1259: Module '"tests/cases/compiler/b"' import Foo from "./b"; ~~~ !!! error TS1259: Module '"tests/cases/compiler/b"' can only be default-imported using the 'esModuleInterop' flag -!!! related TS2594 tests/cases/compiler/b.d.ts:4:1: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. +!!! related TS2594 tests/cases/compiler/b.d.ts:4:1: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. export var x = new Foo(); \ No newline at end of file diff --git a/tests/baselines/reference/anonClassDeclarationEmitIsAnon.js b/tests/baselines/reference/anonClassDeclarationEmitIsAnon.js index 2c7ccdcccb8..1f65a28304d 100644 --- a/tests/baselines/reference/anonClassDeclarationEmitIsAnon.js +++ b/tests/baselines/reference/anonClassDeclarationEmitIsAnon.js @@ -122,7 +122,7 @@ export declare function wrapClass(param: any): { foo(): any; }; }; -export declare type Constructor = new (...args: any[]) => T; +export type Constructor = new (...args: any[]) => T; export declare function Timestamped(Base: TBase): { new (...args: any[]): { timestamp: number; diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index fb15ec4f011..77ddcc8ffce 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -14,7 +14,7 @@ and limitations under the License. ***************************************************************************** */ declare namespace ts { - const versionMajorMinor = "4.8"; + const versionMajorMinor = "4.9"; /** The version of the TypeScript compiler release */ const version: string; /** @@ -2096,6 +2096,12 @@ declare namespace ts { * It is _public_ so that (pre)transformers can set this field, * since it switches the builtin `node` module transform. Generally speaking, if unset, * the field is treated as though it is `ModuleKind.CommonJS`. + * + * Note that this field is only set by the module resolution process when + * `moduleResolution` is `Node16` or `NodeNext`, which is implied by the `module` setting + * of `Node16` or `NodeNext`, respectively, but may be overriden (eg, by a `moduleResolution` + * of `node`). If so, this field will be unset and source files will be considered to be + * CommonJS-output-format by the node module transformer and type checker, regardless of extension or context. */ impliedNodeFormat?: ModuleKind.ESNext | ModuleKind.CommonJS; } @@ -2420,6 +2426,7 @@ declare namespace ts { UseAliasDefinedOutsideCurrentScope = 16384, UseSingleQuotesForStringLiteralType = 268435456, NoTypeReduction = 536870912, + OmitThisParameter = 33554432, AllowThisInObjectLiteral = 32768, AllowQualifiedNameInPlaceOfIdentifier = 65536, /** @deprecated AllowQualifedNameInPlaceOfIdentifier. Use AllowQualifiedNameInPlaceOfIdentifier instead. */ @@ -2450,6 +2457,7 @@ declare namespace ts { UseAliasDefinedOutsideCurrentScope = 16384, UseSingleQuotesForStringLiteralType = 268435456, NoTypeReduction = 536870912, + OmitThisParameter = 33554432, AllowUniqueESSymbolType = 1048576, AddUndefined = 131072, WriteArrowStyleSignature = 262144, @@ -2458,7 +2466,7 @@ declare namespace ts { InFirstTypeArgument = 4194304, InTypeAlias = 8388608, /** @deprecated */ WriteOwnNameForAnyLike = 0, - NodeBuilderFlagsMask = 814775659 + NodeBuilderFlagsMask = 848330091 } export enum SymbolFormatFlags { None = 0, @@ -4456,6 +4464,12 @@ declare namespace ts { /** * Gets the effective type parameters. If the node was parsed in a * JavaScript file, gets the type parameters from the `@template` tag from JSDoc. + * + * This does *not* return type parameters from a jsdoc reference to a generic type, eg + * + * type Id = (x: T) => T + * /** @type {Id} / + * function id(x) { return x } */ function getEffectiveTypeParameterDeclarations(node: DeclarationWithTypeParameters): readonly TypeParameterDeclaration[]; function getEffectiveConstraintOfTypeParameter(node: TypeParameterDeclaration): TypeNode | undefined; @@ -5405,6 +5419,10 @@ declare namespace ts { resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile): (ResolvedModule | undefined)[]; /** If provided, used to resolve type reference directives, otherwise typescript's default resolution */ resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined): (ResolvedTypeReferenceDirective | undefined)[]; + /** + * Returns the module resolution cache used by a provided `resolveModuleNames` implementation so that any non-name module resolution operations (eg, package.json lookup) can reuse it + */ + getModuleResolutionCache?(): ModuleResolutionCache | undefined; } interface WatchCompilerHost extends ProgramHost, WatchHost { /** Instead of using output d.ts file from project reference, use its source file */ @@ -6884,8 +6902,8 @@ declare namespace ts { * @param version Current version of the file. Only used if the file was not found * in the registry and a new one was created. */ - acquireDocument(fileName: string, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile; - acquireDocumentWithKey(fileName: string, path: Path, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile; + acquireDocument(fileName: string, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, sourceFileOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile; + acquireDocumentWithKey(fileName: string, path: Path, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, sourceFileOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile; /** * Request an updated version of an already existing SourceFile with a given fileName * and compilationSettings. The update will in-turn call updateLanguageServiceSourceFile @@ -6901,20 +6919,9 @@ declare namespace ts { * @param scriptSnapshot Text of the file. * @param version Current version of the file. */ - updateDocument(fileName: string, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile; - updateDocumentWithKey(fileName: string, path: Path, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile; + updateDocument(fileName: string, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, sourceFileOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile; + updateDocumentWithKey(fileName: string, path: Path, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, sourceFileOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile; getKeyForCompilationSettings(settings: CompilerOptions): DocumentRegistryBucketKey; - /** - * Informs the DocumentRegistry that a file is not needed any longer. - * - * Note: It is not allowed to call release on a SourceFile that was not acquired from - * this registry originally. - * - * @param fileName The name of the file to be released - * @param compilationSettings The compilation settings used to acquire the file - */ - /**@deprecated pass scriptKind for correctness */ - releaseDocument(fileName: string, compilationSettings: CompilerOptions): void; /** * Informs the DocumentRegistry that a file is not needed any longer. * @@ -6925,11 +6932,24 @@ declare namespace ts { * @param compilationSettings The compilation settings used to acquire the file * @param scriptKind The script kind of the file to be released */ - releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind: ScriptKind): void; + /**@deprecated pass scriptKind and impliedNodeFormat for correctness */ + releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind?: ScriptKind): void; /** - * @deprecated pass scriptKind for correctness */ - releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey): void; - releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind): void; + * Informs the DocumentRegistry that a file is not needed any longer. + * + * Note: It is not allowed to call release on a SourceFile that was not acquired from + * this registry originally. + * + * @param fileName The name of the file to be released + * @param compilationSettings The compilation settings used to acquire the file + * @param scriptKind The script kind of the file to be released + * @param impliedNodeFormat The implied source file format of the file to be released + */ + releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind: ScriptKind, impliedNodeFormat: SourceFile["impliedNodeFormat"]): void; + /** + * @deprecated pass scriptKind for and impliedNodeFormat correctness */ + releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind?: ScriptKind): void; + releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind, impliedNodeFormat: SourceFile["impliedNodeFormat"]): void; reportStats(): string; } type DocumentRegistryBucketKey = string & { diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index ed87f7ef891..41938960fa8 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -14,7 +14,7 @@ and limitations under the License. ***************************************************************************** */ declare namespace ts { - const versionMajorMinor = "4.8"; + const versionMajorMinor = "4.9"; /** The version of the TypeScript compiler release */ const version: string; /** @@ -2096,6 +2096,12 @@ declare namespace ts { * It is _public_ so that (pre)transformers can set this field, * since it switches the builtin `node` module transform. Generally speaking, if unset, * the field is treated as though it is `ModuleKind.CommonJS`. + * + * Note that this field is only set by the module resolution process when + * `moduleResolution` is `Node16` or `NodeNext`, which is implied by the `module` setting + * of `Node16` or `NodeNext`, respectively, but may be overriden (eg, by a `moduleResolution` + * of `node`). If so, this field will be unset and source files will be considered to be + * CommonJS-output-format by the node module transformer and type checker, regardless of extension or context. */ impliedNodeFormat?: ModuleKind.ESNext | ModuleKind.CommonJS; } @@ -2420,6 +2426,7 @@ declare namespace ts { UseAliasDefinedOutsideCurrentScope = 16384, UseSingleQuotesForStringLiteralType = 268435456, NoTypeReduction = 536870912, + OmitThisParameter = 33554432, AllowThisInObjectLiteral = 32768, AllowQualifiedNameInPlaceOfIdentifier = 65536, /** @deprecated AllowQualifedNameInPlaceOfIdentifier. Use AllowQualifiedNameInPlaceOfIdentifier instead. */ @@ -2450,6 +2457,7 @@ declare namespace ts { UseAliasDefinedOutsideCurrentScope = 16384, UseSingleQuotesForStringLiteralType = 268435456, NoTypeReduction = 536870912, + OmitThisParameter = 33554432, AllowUniqueESSymbolType = 1048576, AddUndefined = 131072, WriteArrowStyleSignature = 262144, @@ -2458,7 +2466,7 @@ declare namespace ts { InFirstTypeArgument = 4194304, InTypeAlias = 8388608, /** @deprecated */ WriteOwnNameForAnyLike = 0, - NodeBuilderFlagsMask = 814775659 + NodeBuilderFlagsMask = 848330091 } export enum SymbolFormatFlags { None = 0, @@ -4456,6 +4464,12 @@ declare namespace ts { /** * Gets the effective type parameters. If the node was parsed in a * JavaScript file, gets the type parameters from the `@template` tag from JSDoc. + * + * This does *not* return type parameters from a jsdoc reference to a generic type, eg + * + * type Id = (x: T) => T + * /** @type {Id} / + * function id(x) { return x } */ function getEffectiveTypeParameterDeclarations(node: DeclarationWithTypeParameters): readonly TypeParameterDeclaration[]; function getEffectiveConstraintOfTypeParameter(node: TypeParameterDeclaration): TypeNode | undefined; @@ -5405,6 +5419,10 @@ declare namespace ts { resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile): (ResolvedModule | undefined)[]; /** If provided, used to resolve type reference directives, otherwise typescript's default resolution */ resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined): (ResolvedTypeReferenceDirective | undefined)[]; + /** + * Returns the module resolution cache used by a provided `resolveModuleNames` implementation so that any non-name module resolution operations (eg, package.json lookup) can reuse it + */ + getModuleResolutionCache?(): ModuleResolutionCache | undefined; } interface WatchCompilerHost extends ProgramHost, WatchHost { /** Instead of using output d.ts file from project reference, use its source file */ @@ -6884,8 +6902,8 @@ declare namespace ts { * @param version Current version of the file. Only used if the file was not found * in the registry and a new one was created. */ - acquireDocument(fileName: string, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile; - acquireDocumentWithKey(fileName: string, path: Path, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile; + acquireDocument(fileName: string, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, sourceFileOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile; + acquireDocumentWithKey(fileName: string, path: Path, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, sourceFileOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile; /** * Request an updated version of an already existing SourceFile with a given fileName * and compilationSettings. The update will in-turn call updateLanguageServiceSourceFile @@ -6901,20 +6919,9 @@ declare namespace ts { * @param scriptSnapshot Text of the file. * @param version Current version of the file. */ - updateDocument(fileName: string, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile; - updateDocumentWithKey(fileName: string, path: Path, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile; + updateDocument(fileName: string, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, sourceFileOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile; + updateDocumentWithKey(fileName: string, path: Path, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, sourceFileOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile; getKeyForCompilationSettings(settings: CompilerOptions): DocumentRegistryBucketKey; - /** - * Informs the DocumentRegistry that a file is not needed any longer. - * - * Note: It is not allowed to call release on a SourceFile that was not acquired from - * this registry originally. - * - * @param fileName The name of the file to be released - * @param compilationSettings The compilation settings used to acquire the file - */ - /**@deprecated pass scriptKind for correctness */ - releaseDocument(fileName: string, compilationSettings: CompilerOptions): void; /** * Informs the DocumentRegistry that a file is not needed any longer. * @@ -6925,11 +6932,24 @@ declare namespace ts { * @param compilationSettings The compilation settings used to acquire the file * @param scriptKind The script kind of the file to be released */ - releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind: ScriptKind): void; + /**@deprecated pass scriptKind and impliedNodeFormat for correctness */ + releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind?: ScriptKind): void; /** - * @deprecated pass scriptKind for correctness */ - releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey): void; - releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind): void; + * Informs the DocumentRegistry that a file is not needed any longer. + * + * Note: It is not allowed to call release on a SourceFile that was not acquired from + * this registry originally. + * + * @param fileName The name of the file to be released + * @param compilationSettings The compilation settings used to acquire the file + * @param scriptKind The script kind of the file to be released + * @param impliedNodeFormat The implied source file format of the file to be released + */ + releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind: ScriptKind, impliedNodeFormat: SourceFile["impliedNodeFormat"]): void; + /** + * @deprecated pass scriptKind for and impliedNodeFormat correctness */ + releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind?: ScriptKind): void; + releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind, impliedNodeFormat: SourceFile["impliedNodeFormat"]): void; reportStats(): string; } type DocumentRegistryBucketKey = string & { diff --git a/tests/baselines/reference/assignFromStringInterface2.errors.txt b/tests/baselines/reference/assignFromStringInterface2.errors.txt index 0fc3284bf00..93644655679 100644 --- a/tests/baselines/reference/assignFromStringInterface2.errors.txt +++ b/tests/baselines/reference/assignFromStringInterface2.errors.txt @@ -17,8 +17,8 @@ tests/cases/conformance/types/primitives/string/assignFromStringInterface2.ts(48 indexOf(searchString: string, position?: number): number; lastIndexOf(searchString: string, position?: number): number; localeCompare(that: string): number; - match(regexp: string): string[]; - match(regexp: RegExp): string[]; + match(regexp: string): RegExpMatchArray; + match(regexp: RegExp): RegExpMatchArray; replace(searchValue: string, replaceValue: string): string; replace(searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string; replace(searchValue: RegExp, replaceValue: string): string; @@ -44,11 +44,11 @@ tests/cases/conformance/types/primitives/string/assignFromStringInterface2.ts(48 var a: String; var b: NotString; - a = x; - a = b; + a = x; + a = b; - b = a; - b = x; + b = a; + b = x; x = a; // expected error ~ diff --git a/tests/baselines/reference/assignFromStringInterface2.js b/tests/baselines/reference/assignFromStringInterface2.js index 5636a4806cc..ac8a3af66d5 100644 --- a/tests/baselines/reference/assignFromStringInterface2.js +++ b/tests/baselines/reference/assignFromStringInterface2.js @@ -12,8 +12,8 @@ interface NotString { indexOf(searchString: string, position?: number): number; lastIndexOf(searchString: string, position?: number): number; localeCompare(that: string): number; - match(regexp: string): string[]; - match(regexp: RegExp): string[]; + match(regexp: string): RegExpMatchArray; + match(regexp: RegExp): RegExpMatchArray; replace(searchValue: string, replaceValue: string): string; replace(searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string; replace(searchValue: RegExp, replaceValue: string): string; @@ -39,11 +39,11 @@ var x = ''; var a: String; var b: NotString; -a = x; -a = b; +a = x; +a = b; -b = a; -b = x; +b = a; +b = x; x = a; // expected error x = b; // expected error diff --git a/tests/baselines/reference/assignFromStringInterface2.symbols b/tests/baselines/reference/assignFromStringInterface2.symbols index c050922bc98..6b49a36c5db 100644 --- a/tests/baselines/reference/assignFromStringInterface2.symbols +++ b/tests/baselines/reference/assignFromStringInterface2.symbols @@ -41,35 +41,37 @@ interface NotString { >localeCompare : Symbol(NotString.localeCompare, Decl(assignFromStringInterface2.ts, 11, 65)) >that : Symbol(that, Decl(assignFromStringInterface2.ts, 12, 18)) - match(regexp: string): string[]; ->match : Symbol(NotString.match, Decl(assignFromStringInterface2.ts, 12, 40), Decl(assignFromStringInterface2.ts, 13, 36)) + match(regexp: string): RegExpMatchArray; +>match : Symbol(NotString.match, Decl(assignFromStringInterface2.ts, 12, 40), Decl(assignFromStringInterface2.ts, 13, 44)) >regexp : Symbol(regexp, Decl(assignFromStringInterface2.ts, 13, 10)) +>RegExpMatchArray : Symbol(RegExpMatchArray, Decl(lib.es5.d.ts, --, --)) - match(regexp: RegExp): string[]; ->match : Symbol(NotString.match, Decl(assignFromStringInterface2.ts, 12, 40), Decl(assignFromStringInterface2.ts, 13, 36)) + match(regexp: RegExp): RegExpMatchArray; +>match : Symbol(NotString.match, Decl(assignFromStringInterface2.ts, 12, 40), Decl(assignFromStringInterface2.ts, 13, 44)) >regexp : Symbol(regexp, Decl(assignFromStringInterface2.ts, 14, 10)) >RegExp : Symbol(RegExp, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>RegExpMatchArray : Symbol(RegExpMatchArray, Decl(lib.es5.d.ts, --, --)) replace(searchValue: string, replaceValue: string): string; ->replace : Symbol(NotString.replace, Decl(assignFromStringInterface2.ts, 14, 36), Decl(assignFromStringInterface2.ts, 15, 63), Decl(assignFromStringInterface2.ts, 16, 102), Decl(assignFromStringInterface2.ts, 17, 63)) +>replace : Symbol(NotString.replace, Decl(assignFromStringInterface2.ts, 14, 44), Decl(assignFromStringInterface2.ts, 15, 63), Decl(assignFromStringInterface2.ts, 16, 102), Decl(assignFromStringInterface2.ts, 17, 63)) >searchValue : Symbol(searchValue, Decl(assignFromStringInterface2.ts, 15, 12)) >replaceValue : Symbol(replaceValue, Decl(assignFromStringInterface2.ts, 15, 32)) replace(searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string; ->replace : Symbol(NotString.replace, Decl(assignFromStringInterface2.ts, 14, 36), Decl(assignFromStringInterface2.ts, 15, 63), Decl(assignFromStringInterface2.ts, 16, 102), Decl(assignFromStringInterface2.ts, 17, 63)) +>replace : Symbol(NotString.replace, Decl(assignFromStringInterface2.ts, 14, 44), Decl(assignFromStringInterface2.ts, 15, 63), Decl(assignFromStringInterface2.ts, 16, 102), Decl(assignFromStringInterface2.ts, 17, 63)) >searchValue : Symbol(searchValue, Decl(assignFromStringInterface2.ts, 16, 12)) >replaceValue : Symbol(replaceValue, Decl(assignFromStringInterface2.ts, 16, 32)) >substring : Symbol(substring, Decl(assignFromStringInterface2.ts, 16, 48)) >args : Symbol(args, Decl(assignFromStringInterface2.ts, 16, 66)) replace(searchValue: RegExp, replaceValue: string): string; ->replace : Symbol(NotString.replace, Decl(assignFromStringInterface2.ts, 14, 36), Decl(assignFromStringInterface2.ts, 15, 63), Decl(assignFromStringInterface2.ts, 16, 102), Decl(assignFromStringInterface2.ts, 17, 63)) +>replace : Symbol(NotString.replace, Decl(assignFromStringInterface2.ts, 14, 44), Decl(assignFromStringInterface2.ts, 15, 63), Decl(assignFromStringInterface2.ts, 16, 102), Decl(assignFromStringInterface2.ts, 17, 63)) >searchValue : Symbol(searchValue, Decl(assignFromStringInterface2.ts, 17, 12)) >RegExp : Symbol(RegExp, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >replaceValue : Symbol(replaceValue, Decl(assignFromStringInterface2.ts, 17, 32)) replace(searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string; ->replace : Symbol(NotString.replace, Decl(assignFromStringInterface2.ts, 14, 36), Decl(assignFromStringInterface2.ts, 15, 63), Decl(assignFromStringInterface2.ts, 16, 102), Decl(assignFromStringInterface2.ts, 17, 63)) +>replace : Symbol(NotString.replace, Decl(assignFromStringInterface2.ts, 14, 44), Decl(assignFromStringInterface2.ts, 15, 63), Decl(assignFromStringInterface2.ts, 16, 102), Decl(assignFromStringInterface2.ts, 17, 63)) >searchValue : Symbol(searchValue, Decl(assignFromStringInterface2.ts, 18, 12)) >RegExp : Symbol(RegExp, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >replaceValue : Symbol(replaceValue, Decl(assignFromStringInterface2.ts, 18, 32)) @@ -147,19 +149,19 @@ var b: NotString; >b : Symbol(b, Decl(assignFromStringInterface2.ts, 38, 3)) >NotString : Symbol(NotString, Decl(assignFromStringInterface2.ts, 2, 1)) -a = x; +a = x; >a : Symbol(a, Decl(assignFromStringInterface2.ts, 37, 3)) >x : Symbol(x, Decl(assignFromStringInterface2.ts, 36, 3)) -a = b; +a = b; >a : Symbol(a, Decl(assignFromStringInterface2.ts, 37, 3)) >b : Symbol(b, Decl(assignFromStringInterface2.ts, 38, 3)) -b = a; +b = a; >b : Symbol(b, Decl(assignFromStringInterface2.ts, 38, 3)) >a : Symbol(a, Decl(assignFromStringInterface2.ts, 37, 3)) -b = x; +b = x; >b : Symbol(b, Decl(assignFromStringInterface2.ts, 38, 3)) >x : Symbol(x, Decl(assignFromStringInterface2.ts, 36, 3)) diff --git a/tests/baselines/reference/assignFromStringInterface2.types b/tests/baselines/reference/assignFromStringInterface2.types index 103fea90217..800269ffca3 100644 --- a/tests/baselines/reference/assignFromStringInterface2.types +++ b/tests/baselines/reference/assignFromStringInterface2.types @@ -37,12 +37,12 @@ interface NotString { >localeCompare : (that: string) => number >that : string - match(regexp: string): string[]; ->match : { (regexp: string): string[]; (regexp: RegExp): string[]; } + match(regexp: string): RegExpMatchArray; +>match : { (regexp: string): RegExpMatchArray; (regexp: RegExp): RegExpMatchArray; } >regexp : string - match(regexp: RegExp): string[]; ->match : { (regexp: string): string[]; (regexp: RegExp): string[]; } + match(regexp: RegExp): RegExpMatchArray; +>match : { (regexp: string): RegExpMatchArray; (regexp: RegExp): RegExpMatchArray; } >regexp : RegExp replace(searchValue: string, replaceValue: string): string; @@ -137,22 +137,22 @@ var a: String; var b: NotString; >b : NotString -a = x; +a = x; >a = x : string >a : String >x : string -a = b; +a = b; >a = b : NotString >a : String >b : NotString -b = a; +b = a; >b = a : String >b : NotString >a : String -b = x; +b = x; >b = x : string >b : NotString >x : string diff --git a/tests/baselines/reference/asyncArrowFunction10_es2017.errors.txt b/tests/baselines/reference/asyncArrowFunction10_es2017.errors.txt index 45ae071639c..90dbe5f76f6 100644 --- a/tests/baselines/reference/asyncArrowFunction10_es2017.errors.txt +++ b/tests/baselines/reference/asyncArrowFunction10_es2017.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction10_es2017.ts(3,11): error TS2304: Cannot find name 'await'. +tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction10_es2017.ts(3,11): error TS2552: Cannot find name 'await'. Did you mean 'Awaited'? ==== tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction10_es2017.ts (1 errors) ==== @@ -6,6 +6,6 @@ tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction10_es2 // Legal to use 'await' in a type context. var v: await; ~~~~~ -!!! error TS2304: Cannot find name 'await'. +!!! error TS2552: Cannot find name 'await'. Did you mean 'Awaited'? } \ No newline at end of file diff --git a/tests/baselines/reference/asyncArrowFunction10_es5.errors.txt b/tests/baselines/reference/asyncArrowFunction10_es5.errors.txt index 5b4505ebfde..2a465734aff 100644 --- a/tests/baselines/reference/asyncArrowFunction10_es5.errors.txt +++ b/tests/baselines/reference/asyncArrowFunction10_es5.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction10_es5.ts(3,11): error TS2304: Cannot find name 'await'. +tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction10_es5.ts(3,11): error TS2552: Cannot find name 'await'. Did you mean 'Awaited'? ==== tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction10_es5.ts (1 errors) ==== @@ -6,6 +6,6 @@ tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction10_es5.ts // Legal to use 'await' in a type context. var v: await; ~~~~~ -!!! error TS2304: Cannot find name 'await'. +!!! error TS2552: Cannot find name 'await'. Did you mean 'Awaited'? } \ No newline at end of file diff --git a/tests/baselines/reference/asyncArrowFunction10_es6.errors.txt b/tests/baselines/reference/asyncArrowFunction10_es6.errors.txt index a5a6b45b45b..968ca849bc2 100644 --- a/tests/baselines/reference/asyncArrowFunction10_es6.errors.txt +++ b/tests/baselines/reference/asyncArrowFunction10_es6.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction10_es6.ts(3,11): error TS2304: Cannot find name 'await'. +tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction10_es6.ts(3,11): error TS2552: Cannot find name 'await'. Did you mean 'Awaited'? ==== tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction10_es6.ts (1 errors) ==== @@ -6,6 +6,6 @@ tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction10_es6.ts // Legal to use 'await' in a type context. var v: await; ~~~~~ -!!! error TS2304: Cannot find name 'await'. +!!! error TS2552: Cannot find name 'await'. Did you mean 'Awaited'? } \ No newline at end of file diff --git a/tests/baselines/reference/asyncArrowFunction11_es5.symbols b/tests/baselines/reference/asyncArrowFunction11_es5.symbols index aff484d5927..b78c43d12eb 100644 --- a/tests/baselines/reference/asyncArrowFunction11_es5.symbols +++ b/tests/baselines/reference/asyncArrowFunction11_es5.symbols @@ -8,9 +8,9 @@ class A { >args : Symbol(args, Decl(asyncArrowFunction11_es5.ts, 2, 15)) await Promise.resolve(); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const obj = { ["a"]: () => this }; // computed property name after `await` triggers case >obj : Symbol(obj, Decl(asyncArrowFunction11_es5.ts, 4, 13)) diff --git a/tests/baselines/reference/asyncArrowFunction11_es5.types b/tests/baselines/reference/asyncArrowFunction11_es5.types index ac144c61b8b..e3860195a5f 100644 --- a/tests/baselines/reference/asyncArrowFunction11_es5.types +++ b/tests/baselines/reference/asyncArrowFunction11_es5.types @@ -11,9 +11,9 @@ class A { await Promise.resolve(); >await Promise.resolve() : void >Promise.resolve() : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } const obj = { ["a"]: () => this }; // computed property name after `await` triggers case >obj : { a: () => this; } diff --git a/tests/baselines/reference/asyncArrowFunction9_es2017.errors.txt b/tests/baselines/reference/asyncArrowFunction9_es2017.errors.txt index 7088e40bae2..a857ec7505c 100644 --- a/tests/baselines/reference/asyncArrowFunction9_es2017.errors.txt +++ b/tests/baselines/reference/asyncArrowFunction9_es2017.errors.txt @@ -16,7 +16,7 @@ tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction9_es20 !!! error TS1005: ',' expected. ~~~~~~~ !!! error TS2403: Subsequent variable declarations must have the same type. Variable 'Promise' must be of type 'PromiseConstructor', but here has type 'any'. -!!! related TS6203 /.ts/lib.es2015.promise.d.ts:78:13: 'Promise' was also declared here. +!!! related TS6203 /.ts/lib.es2015.promise.d.ts:83:13: 'Promise' was also declared here. ~ !!! error TS1005: ',' expected. ~~ diff --git a/tests/baselines/reference/asyncArrowFunction9_es5.errors.txt b/tests/baselines/reference/asyncArrowFunction9_es5.errors.txt index bd89949dbc1..77ffd050cd6 100644 --- a/tests/baselines/reference/asyncArrowFunction9_es5.errors.txt +++ b/tests/baselines/reference/asyncArrowFunction9_es5.errors.txt @@ -16,7 +16,7 @@ tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction9_es5.ts( !!! error TS1005: ',' expected. ~~~~~~~ !!! error TS2403: Subsequent variable declarations must have the same type. Variable 'Promise' must be of type 'PromiseConstructor', but here has type 'any'. -!!! related TS6203 /.ts/lib.es2015.promise.d.ts:78:13: 'Promise' was also declared here. +!!! related TS6203 /.ts/lib.es2015.promise.d.ts:83:13: 'Promise' was also declared here. ~ !!! error TS1005: ',' expected. ~~ diff --git a/tests/baselines/reference/asyncArrowFunction9_es6.errors.txt b/tests/baselines/reference/asyncArrowFunction9_es6.errors.txt index 3335bebfa81..aba7af02e73 100644 --- a/tests/baselines/reference/asyncArrowFunction9_es6.errors.txt +++ b/tests/baselines/reference/asyncArrowFunction9_es6.errors.txt @@ -16,7 +16,7 @@ tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction9_es6.ts( !!! error TS1005: ',' expected. ~~~~~~~ !!! error TS2403: Subsequent variable declarations must have the same type. Variable 'Promise' must be of type 'PromiseConstructor', but here has type 'any'. -!!! related TS6203 /.ts/lib.es2015.promise.d.ts:78:13: 'Promise' was also declared here. +!!! related TS6203 /.ts/lib.es2015.promise.d.ts:83:13: 'Promise' was also declared here. ~ !!! error TS1005: ',' expected. ~~ diff --git a/tests/baselines/reference/asyncFunctionContextuallyTypedReturns.types b/tests/baselines/reference/asyncFunctionContextuallyTypedReturns.types index a5b9c879c75..c349d687b9b 100644 --- a/tests/baselines/reference/asyncFunctionContextuallyTypedReturns.types +++ b/tests/baselines/reference/asyncFunctionContextuallyTypedReturns.types @@ -21,7 +21,7 @@ f(v => v ? [0] : Promise.reject()); f(async v => v ? [0] : Promise.reject()); >f(async v => v ? [0] : Promise.reject()) : void >f : (cb: (v: boolean) => [0] | PromiseLike<[0]>) => void ->async v => v ? [0] : Promise.reject() : (v: boolean) => Promise<[0] | [0]> +>async v => v ? [0] : Promise.reject() : (v: boolean) => Promise<[0]> >v : boolean >v ? [0] : Promise.reject() : [0] | Promise<[0]> >v : boolean diff --git a/tests/baselines/reference/asyncFunctionDeclaration13_es2017.errors.txt b/tests/baselines/reference/asyncFunctionDeclaration13_es2017.errors.txt index 41ea0a7cafb..c18b0e84408 100644 --- a/tests/baselines/reference/asyncFunctionDeclaration13_es2017.errors.txt +++ b/tests/baselines/reference/asyncFunctionDeclaration13_es2017.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration13_es2017.ts(3,11): error TS2304: Cannot find name 'await'. +tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration13_es2017.ts(3,11): error TS2552: Cannot find name 'await'. Did you mean 'Awaited'? ==== tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration13_es2017.ts (1 errors) ==== @@ -6,6 +6,6 @@ tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclarati // Legal to use 'await' in a type context. var v: await; ~~~~~ -!!! error TS2304: Cannot find name 'await'. +!!! error TS2552: Cannot find name 'await'. Did you mean 'Awaited'? } \ No newline at end of file diff --git a/tests/baselines/reference/asyncFunctionDeclaration13_es5.errors.txt b/tests/baselines/reference/asyncFunctionDeclaration13_es5.errors.txt index ce83aabc4be..58a7318d9aa 100644 --- a/tests/baselines/reference/asyncFunctionDeclaration13_es5.errors.txt +++ b/tests/baselines/reference/asyncFunctionDeclaration13_es5.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration13_es5.ts(3,11): error TS2304: Cannot find name 'await'. +tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration13_es5.ts(3,11): error TS2552: Cannot find name 'await'. Did you mean 'Awaited'? ==== tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration13_es5.ts (1 errors) ==== @@ -6,6 +6,6 @@ tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration1 // Legal to use 'await' in a type context. var v: await; ~~~~~ -!!! error TS2304: Cannot find name 'await'. +!!! error TS2552: Cannot find name 'await'. Did you mean 'Awaited'? } \ No newline at end of file diff --git a/tests/baselines/reference/asyncFunctionDeclaration13_es6.errors.txt b/tests/baselines/reference/asyncFunctionDeclaration13_es6.errors.txt index 6cf65ca4e3a..be0b1a8d9d0 100644 --- a/tests/baselines/reference/asyncFunctionDeclaration13_es6.errors.txt +++ b/tests/baselines/reference/asyncFunctionDeclaration13_es6.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration13_es6.ts(3,11): error TS2304: Cannot find name 'await'. +tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration13_es6.ts(3,11): error TS2552: Cannot find name 'await'. Did you mean 'Awaited'? ==== tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration13_es6.ts (1 errors) ==== @@ -6,6 +6,6 @@ tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration1 // Legal to use 'await' in a type context. var v: await; ~~~~~ -!!! error TS2304: Cannot find name 'await'. +!!! error TS2552: Cannot find name 'await'. Did you mean 'Awaited'? } \ No newline at end of file diff --git a/tests/baselines/reference/asyncFunctionReturnType.symbols b/tests/baselines/reference/asyncFunctionReturnType.symbols index 25a7e944c6a..72fe3c9c2a9 100644 --- a/tests/baselines/reference/asyncFunctionReturnType.symbols +++ b/tests/baselines/reference/asyncFunctionReturnType.symbols @@ -46,9 +46,9 @@ async function fIndexedTypeForPromiseOfStringProp(obj: Obj): PromiseObj : Symbol(Obj, Decl(asyncFunctionReturnType.ts, 8, 1)) return Promise.resolve(obj.stringProp); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >obj.stringProp : Symbol(Obj.stringProp, Decl(asyncFunctionReturnType.ts, 11, 15)) >obj : Symbol(obj, Decl(asyncFunctionReturnType.ts, 20, 50)) >stringProp : Symbol(Obj.stringProp, Decl(asyncFunctionReturnType.ts, 11, 15)) @@ -62,9 +62,9 @@ async function fIndexedTypeForExplicitPromiseOfStringProp(obj: Obj): PromiseObj : Symbol(Obj, Decl(asyncFunctionReturnType.ts, 8, 1)) return Promise.resolve(obj.stringProp); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Obj : Symbol(Obj, Decl(asyncFunctionReturnType.ts, 8, 1)) >obj.stringProp : Symbol(Obj.stringProp, Decl(asyncFunctionReturnType.ts, 11, 15)) >obj : Symbol(obj, Decl(asyncFunctionReturnType.ts, 24, 58)) @@ -92,9 +92,9 @@ async function fIndexedTypeForPromiseOfAnyProp(obj: Obj): PromiseObj : Symbol(Obj, Decl(asyncFunctionReturnType.ts, 8, 1)) return Promise.resolve(obj.anyProp); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >obj.anyProp : Symbol(Obj.anyProp, Decl(asyncFunctionReturnType.ts, 12, 23)) >obj : Symbol(obj, Decl(asyncFunctionReturnType.ts, 32, 47)) >anyProp : Symbol(Obj.anyProp, Decl(asyncFunctionReturnType.ts, 12, 23)) @@ -108,9 +108,9 @@ async function fIndexedTypeForExplicitPromiseOfAnyProp(obj: Obj): PromiseObj : Symbol(Obj, Decl(asyncFunctionReturnType.ts, 8, 1)) return Promise.resolve(obj.anyProp); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Obj : Symbol(Obj, Decl(asyncFunctionReturnType.ts, 8, 1)) >obj.anyProp : Symbol(Obj.anyProp, Decl(asyncFunctionReturnType.ts, 12, 23)) >obj : Symbol(obj, Decl(asyncFunctionReturnType.ts, 36, 55)) @@ -142,9 +142,9 @@ async function fGenericIndexedTypeForPromiseOfStringProp(obj: >TObj : Symbol(TObj, Decl(asyncFunctionReturnType.ts, 44, 57)) return Promise.resolve(obj.stringProp); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >obj.stringProp : Symbol(Obj.stringProp, Decl(asyncFunctionReturnType.ts, 11, 15)) >obj : Symbol(obj, Decl(asyncFunctionReturnType.ts, 44, 75)) >stringProp : Symbol(Obj.stringProp, Decl(asyncFunctionReturnType.ts, 11, 15)) @@ -160,9 +160,9 @@ async function fGenericIndexedTypeForExplicitPromiseOfStringPropTObj : Symbol(TObj, Decl(asyncFunctionReturnType.ts, 48, 65)) return Promise.resolve(obj.stringProp); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >TObj : Symbol(TObj, Decl(asyncFunctionReturnType.ts, 48, 65)) >obj.stringProp : Symbol(Obj.stringProp, Decl(asyncFunctionReturnType.ts, 11, 15)) >obj : Symbol(obj, Decl(asyncFunctionReturnType.ts, 48, 83)) @@ -194,9 +194,9 @@ async function fGenericIndexedTypeForPromiseOfAnyProp(obj: TOb >TObj : Symbol(TObj, Decl(asyncFunctionReturnType.ts, 56, 54)) return Promise.resolve(obj.anyProp); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >obj.anyProp : Symbol(Obj.anyProp, Decl(asyncFunctionReturnType.ts, 12, 23)) >obj : Symbol(obj, Decl(asyncFunctionReturnType.ts, 56, 72)) >anyProp : Symbol(Obj.anyProp, Decl(asyncFunctionReturnType.ts, 12, 23)) @@ -212,9 +212,9 @@ async function fGenericIndexedTypeForExplicitPromiseOfAnyProp( >TObj : Symbol(TObj, Decl(asyncFunctionReturnType.ts, 60, 62)) return Promise.resolve(obj.anyProp); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >TObj : Symbol(TObj, Decl(asyncFunctionReturnType.ts, 60, 62)) >obj.anyProp : Symbol(Obj.anyProp, Decl(asyncFunctionReturnType.ts, 12, 23)) >obj : Symbol(obj, Decl(asyncFunctionReturnType.ts, 60, 80)) @@ -255,9 +255,9 @@ async function fGenericIndexedTypeForPromiseOfKPropK : Symbol(K, Decl(asyncFunctionReturnType.ts, 68, 69)) return Promise.resolve(obj[key]); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >obj : Symbol(obj, Decl(asyncFunctionReturnType.ts, 68, 92)) >key : Symbol(key, Decl(asyncFunctionReturnType.ts, 68, 102)) } @@ -277,9 +277,9 @@ async function fGenericIndexedTypeForExplicitPromiseOfKPropK : Symbol(K, Decl(asyncFunctionReturnType.ts, 72, 77)) return Promise.resolve(obj[key]); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >TObj : Symbol(TObj, Decl(asyncFunctionReturnType.ts, 72, 60)) >K : Symbol(K, Decl(asyncFunctionReturnType.ts, 72, 77)) >obj : Symbol(obj, Decl(asyncFunctionReturnType.ts, 72, 100)) diff --git a/tests/baselines/reference/asyncFunctionReturnType.types b/tests/baselines/reference/asyncFunctionReturnType.types index 3c48607ce51..46acb1daf51 100644 --- a/tests/baselines/reference/asyncFunctionReturnType.types +++ b/tests/baselines/reference/asyncFunctionReturnType.types @@ -44,9 +44,9 @@ async function fIndexedTypeForPromiseOfStringProp(obj: Obj): PromisePromise.resolve(obj.stringProp) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >obj.stringProp : string >obj : Obj >stringProp : string @@ -58,9 +58,9 @@ async function fIndexedTypeForExplicitPromiseOfStringProp(obj: Obj): Promise(obj.stringProp); >Promise.resolve(obj.stringProp) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >obj.stringProp : string >obj : Obj >stringProp : string @@ -82,9 +82,9 @@ async function fIndexedTypeForPromiseOfAnyProp(obj: Obj): PromisePromise.resolve(obj.anyProp) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >obj.anyProp : any >obj : Obj >anyProp : any @@ -96,9 +96,9 @@ async function fIndexedTypeForExplicitPromiseOfAnyProp(obj: Obj): Promise(obj.anyProp); >Promise.resolve(obj.anyProp) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >obj.anyProp : any >obj : Obj >anyProp : any @@ -120,9 +120,9 @@ async function fGenericIndexedTypeForPromiseOfStringProp(obj: return Promise.resolve(obj.stringProp); >Promise.resolve(obj.stringProp) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >obj.stringProp : string >obj : TObj >stringProp : string @@ -133,10 +133,10 @@ async function fGenericIndexedTypeForExplicitPromiseOfStringPropobj : TObj return Promise.resolve(obj.stringProp); ->Promise.resolve(obj.stringProp) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve(obj.stringProp) : Promise> +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >obj.stringProp : string >obj : TObj >stringProp : string @@ -158,9 +158,9 @@ async function fGenericIndexedTypeForPromiseOfAnyProp(obj: TOb return Promise.resolve(obj.anyProp); >Promise.resolve(obj.anyProp) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >obj.anyProp : any >obj : TObj >anyProp : any @@ -171,10 +171,10 @@ async function fGenericIndexedTypeForExplicitPromiseOfAnyProp( >obj : TObj return Promise.resolve(obj.anyProp); ->Promise.resolve(obj.anyProp) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve(obj.anyProp) : Promise> +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >obj.anyProp : any >obj : TObj >anyProp : any @@ -197,10 +197,10 @@ async function fGenericIndexedTypeForPromiseOfKPropkey : K return Promise.resolve(obj[key]); ->Promise.resolve(obj[key]) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve(obj[key]) : Promise> +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >obj[key] : TObj[K] >obj : TObj >key : K @@ -212,10 +212,10 @@ async function fGenericIndexedTypeForExplicitPromiseOfKPropkey : K return Promise.resolve(obj[key]); ->Promise.resolve(obj[key]) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve(obj[key]) : Promise> +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >obj[key] : TObj[K] >obj : TObj >key : K diff --git a/tests/baselines/reference/asyncGeneratorGenericNonWrappedReturn.symbols b/tests/baselines/reference/asyncGeneratorGenericNonWrappedReturn.symbols new file mode 100644 index 00000000000..611c7587c69 --- /dev/null +++ b/tests/baselines/reference/asyncGeneratorGenericNonWrappedReturn.symbols @@ -0,0 +1,17 @@ +=== tests/cases/conformance/generators/asyncGeneratorGenericNonWrappedReturn.ts === +// #48966 + +export async function* test(a: T): AsyncGenerator { +>test : Symbol(test, Decl(asyncGeneratorGenericNonWrappedReturn.ts, 0, 0)) +>T : Symbol(T, Decl(asyncGeneratorGenericNonWrappedReturn.ts, 2, 28)) +>a : Symbol(a, Decl(asyncGeneratorGenericNonWrappedReturn.ts, 2, 31)) +>T : Symbol(T, Decl(asyncGeneratorGenericNonWrappedReturn.ts, 2, 28)) +>AsyncGenerator : Symbol(AsyncGenerator, Decl(lib.es2018.asyncgenerator.d.ts, --, --)) +>T : Symbol(T, Decl(asyncGeneratorGenericNonWrappedReturn.ts, 2, 28)) +>T : Symbol(T, Decl(asyncGeneratorGenericNonWrappedReturn.ts, 2, 28)) +>T : Symbol(T, Decl(asyncGeneratorGenericNonWrappedReturn.ts, 2, 28)) + + return a // `T` should be allowed here even though the generator's `returnType` is `Awaited` +>a : Symbol(a, Decl(asyncGeneratorGenericNonWrappedReturn.ts, 2, 31)) +} + diff --git a/tests/baselines/reference/asyncGeneratorGenericNonWrappedReturn.types b/tests/baselines/reference/asyncGeneratorGenericNonWrappedReturn.types new file mode 100644 index 00000000000..d10c4619a51 --- /dev/null +++ b/tests/baselines/reference/asyncGeneratorGenericNonWrappedReturn.types @@ -0,0 +1,11 @@ +=== tests/cases/conformance/generators/asyncGeneratorGenericNonWrappedReturn.ts === +// #48966 + +export async function* test(a: T): AsyncGenerator { +>test : (a: T) => AsyncGenerator +>a : T + + return a // `T` should be allowed here even though the generator's `returnType` is `Awaited` +>a : T +} + diff --git a/tests/baselines/reference/awaitCallExpressionInSyncFunction.symbols b/tests/baselines/reference/awaitCallExpressionInSyncFunction.symbols index b41b6c2f67a..898725dce4b 100644 --- a/tests/baselines/reference/awaitCallExpressionInSyncFunction.symbols +++ b/tests/baselines/reference/awaitCallExpressionInSyncFunction.symbols @@ -4,9 +4,9 @@ function foo() { const foo = await(Promise.resolve(1)); >foo : Symbol(foo, Decl(awaitCallExpressionInSyncFunction.ts, 1, 8)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) return foo; >foo : Symbol(foo, Decl(awaitCallExpressionInSyncFunction.ts, 1, 8)) diff --git a/tests/baselines/reference/awaitCallExpressionInSyncFunction.types b/tests/baselines/reference/awaitCallExpressionInSyncFunction.types index d3aeb8a7236..aa5b0a415a2 100644 --- a/tests/baselines/reference/awaitCallExpressionInSyncFunction.types +++ b/tests/baselines/reference/awaitCallExpressionInSyncFunction.types @@ -7,9 +7,9 @@ function foo() { >await(Promise.resolve(1)) : any >await : any >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 return foo; diff --git a/tests/baselines/reference/awaitedType.errors.txt b/tests/baselines/reference/awaitedType.errors.txt index f367a1b81bc..b829b3f22e7 100644 --- a/tests/baselines/reference/awaitedType.errors.txt +++ b/tests/baselines/reference/awaitedType.errors.txt @@ -168,4 +168,23 @@ tests/cases/compiler/awaitedType.ts(22,12): error TS2589: Type instantiation is // helps with tests where '.types' just prints out the type alias name type _Expect = TActual; - \ No newline at end of file + + // https://github.com/microsoft/TypeScript/issues/48320 + async function f17 Promise>(fn: T) { + const ret: Awaited> = await fn(1, 2, 3); + return ret; + } + async function f17_usage() { + const x = await f17(async () => 123 as const); + return { x }; + } + + // https://github.com/microsoft/TypeScript/issues/47144 + type GenericStructure< + AcceptableKeyType extends string = string + > = Record; + + async function brokenExample(structurePromise: Promise>, key: AcceptableKeyType): Promise { + const structure = await structurePromise; + structure[key] = 1; + } \ No newline at end of file diff --git a/tests/baselines/reference/awaitedType.js b/tests/baselines/reference/awaitedType.js index 70204376de7..3cdacff404e 100644 --- a/tests/baselines/reference/awaitedType.js +++ b/tests/baselines/reference/awaitedType.js @@ -160,7 +160,26 @@ async function f16(x: T) { // helps with tests where '.types' just prints out the type alias name type _Expect = TActual; - + +// https://github.com/microsoft/TypeScript/issues/48320 +async function f17 Promise>(fn: T) { + const ret: Awaited> = await fn(1, 2, 3); + return ret; +} +async function f17_usage() { + const x = await f17(async () => 123 as const); + return { x }; +} + +// https://github.com/microsoft/TypeScript/issues/47144 +type GenericStructure< + AcceptableKeyType extends string = string +> = Record; + +async function brokenExample(structurePromise: Promise>, key: AcceptableKeyType): Promise { + const structure = await structurePromise; + structure[key] = 1; +} //// [awaitedType.js] async function main() { @@ -263,3 +282,16 @@ async function f16(x) { // y: T const y = await x; } +// https://github.com/microsoft/TypeScript/issues/48320 +async function f17(fn) { + const ret = await fn(1, 2, 3); + return ret; +} +async function f17_usage() { + const x = await f17(async () => 123); + return { x }; +} +async function brokenExample(structurePromise, key) { + const structure = await structurePromise; + structure[key] = 1; +} diff --git a/tests/baselines/reference/awaitedType.symbols b/tests/baselines/reference/awaitedType.symbols index 594afc9fc2e..2f8d493332e 100644 --- a/tests/baselines/reference/awaitedType.symbols +++ b/tests/baselines/reference/awaitedType.symbols @@ -403,3 +403,64 @@ type _Expect = TActual; >TExpected : Symbol(TExpected, Decl(awaitedType.ts, 160, 39)) >TActual : Symbol(TActual, Decl(awaitedType.ts, 160, 13)) +// https://github.com/microsoft/TypeScript/issues/48320 +async function f17 Promise>(fn: T) { +>f17 : Symbol(f17, Decl(awaitedType.ts, 160, 61)) +>T : Symbol(T, Decl(awaitedType.ts, 163, 19)) +>args : Symbol(args, Decl(awaitedType.ts, 163, 30)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>fn : Symbol(fn, Decl(awaitedType.ts, 163, 63)) +>T : Symbol(T, Decl(awaitedType.ts, 163, 19)) + + const ret: Awaited> = await fn(1, 2, 3); +>ret : Symbol(ret, Decl(awaitedType.ts, 164, 9)) +>Awaited : Symbol(Awaited, Decl(lib.es5.d.ts, --, --)) +>ReturnType : Symbol(ReturnType, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(awaitedType.ts, 163, 19)) +>fn : Symbol(fn, Decl(awaitedType.ts, 163, 63)) + + return ret; +>ret : Symbol(ret, Decl(awaitedType.ts, 164, 9)) +} +async function f17_usage() { +>f17_usage : Symbol(f17_usage, Decl(awaitedType.ts, 166, 1)) + + const x = await f17(async () => 123 as const); +>x : Symbol(x, Decl(awaitedType.ts, 168, 9)) +>f17 : Symbol(f17, Decl(awaitedType.ts, 160, 61)) +>const : Symbol(const) + + return { x }; +>x : Symbol(x, Decl(awaitedType.ts, 169, 12)) +} + +// https://github.com/microsoft/TypeScript/issues/47144 +type GenericStructure< +>GenericStructure : Symbol(GenericStructure, Decl(awaitedType.ts, 170, 1)) + + AcceptableKeyType extends string = string +>AcceptableKeyType : Symbol(AcceptableKeyType, Decl(awaitedType.ts, 173, 22)) + +> = Record; +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>AcceptableKeyType : Symbol(AcceptableKeyType, Decl(awaitedType.ts, 173, 22)) + +async function brokenExample(structurePromise: Promise>, key: AcceptableKeyType): Promise { +>brokenExample : Symbol(brokenExample, Decl(awaitedType.ts, 175, 38)) +>AcceptableKeyType : Symbol(AcceptableKeyType, Decl(awaitedType.ts, 177, 29)) +>structurePromise : Symbol(structurePromise, Decl(awaitedType.ts, 177, 72)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>GenericStructure : Symbol(GenericStructure, Decl(awaitedType.ts, 170, 1)) +>AcceptableKeyType : Symbol(AcceptableKeyType, Decl(awaitedType.ts, 177, 29)) +>key : Symbol(key, Decl(awaitedType.ts, 177, 135)) +>AcceptableKeyType : Symbol(AcceptableKeyType, Decl(awaitedType.ts, 177, 29)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) + + const structure = await structurePromise; +>structure : Symbol(structure, Decl(awaitedType.ts, 178, 7)) +>structurePromise : Symbol(structurePromise, Decl(awaitedType.ts, 177, 72)) + + structure[key] = 1; +>structure : Symbol(structure, Decl(awaitedType.ts, 178, 7)) +>key : Symbol(key, Decl(awaitedType.ts, 177, 135)) +} diff --git a/tests/baselines/reference/awaitedType.types b/tests/baselines/reference/awaitedType.types index 5af5babaedf..e18e31e00c7 100644 --- a/tests/baselines/reference/awaitedType.types +++ b/tests/baselines/reference/awaitedType.types @@ -116,7 +116,7 @@ async function main() { >Promise.all : { (values: Iterable>): Promise[]>; (values: T): Promise<{ -readonly [P in keyof T]: Awaited; }>; } >Promise : PromiseConstructor >all : { (values: Iterable>): Promise[]>; (values: T): Promise<{ -readonly [P in keyof T]: Awaited; }>; } ->[ MaybePromise(1), MaybePromise('2'), MaybePromise(true), ] : [number | Promise<1> | PromiseLike<1>, string | Promise<"2"> | PromiseLike<"2">, MaybePromise] +>[ MaybePromise(1), MaybePromise('2'), MaybePromise(true), ] : [number | Promise<1> | PromiseLike<1>, string | Promise<"2"> | PromiseLike<"2">, true | Promise | PromiseLike] MaybePromise(1), >MaybePromise(1) : 1 | Promise<1> | PromiseLike<1> @@ -278,8 +278,8 @@ async function f11 void): void // y: Awaited const y = await x; ->y : unknown ->await x : unknown +>y : Awaited +>await x : Awaited >x : T } @@ -358,3 +358,62 @@ async function f16(x: T) { type _Expect = TActual; >_Expect : TActual +// https://github.com/microsoft/TypeScript/issues/48320 +async function f17 Promise>(fn: T) { +>f17 : Promise>(fn: T) => Promise> +>args : any[] +>fn : T + + const ret: Awaited> = await fn(1, 2, 3); +>ret : Awaited> +>await fn(1, 2, 3) : any +>fn(1, 2, 3) : Promise +>fn : T +>1 : 1 +>2 : 2 +>3 : 3 + + return ret; +>ret : Awaited> +} +async function f17_usage() { +>f17_usage : () => Promise<{ x: 123; }> + + const x = await f17(async () => 123 as const); +>x : 123 +>await f17(async () => 123 as const) : 123 +>f17(async () => 123 as const) : Promise> +>f17 : Promise>(fn: T) => Promise> +>async () => 123 as const : () => Promise<123> +>123 as const : 123 +>123 : 123 + + return { x }; +>{ x } : { x: 123; } +>x : 123 +} + +// https://github.com/microsoft/TypeScript/issues/47144 +type GenericStructure< +>GenericStructure : GenericStructure + + AcceptableKeyType extends string = string +> = Record; + +async function brokenExample(structurePromise: Promise>, key: AcceptableKeyType): Promise { +>brokenExample : (structurePromise: Promise>, key: AcceptableKeyType) => Promise +>structurePromise : Promise> +>key : AcceptableKeyType + + const structure = await structurePromise; +>structure : GenericStructure +>await structurePromise : GenericStructure +>structurePromise : Promise> + + structure[key] = 1; +>structure[key] = 1 : 1 +>structure[key] : GenericStructure[AcceptableKeyType] +>structure : GenericStructure +>key : AcceptableKeyType +>1 : 1 +} diff --git a/tests/baselines/reference/awaitedTypeJQuery.js b/tests/baselines/reference/awaitedTypeJQuery.js new file mode 100644 index 00000000000..5963a2d9380 --- /dev/null +++ b/tests/baselines/reference/awaitedTypeJQuery.js @@ -0,0 +1,129 @@ +//// [awaitedTypeJQuery.ts] +/// + +interface Thenable extends PromiseLike { } + +// JQuery's Promise type +interface PromiseBase { + then( + doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => PromiseBase | Thenable | ARD, + failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => PromiseBase | Thenable | ARF, + progressFilter: (t: TN, u: UN, v: VN, ...s: SN[]) => PromiseBase | Thenable | ANP): PromiseBase; + then( + doneFilter: null, + failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => PromiseBase | Thenable | ARF, + progressFilter: (t: TN, u: UN, v: VN, ...s: SN[]) => PromiseBase | Thenable | ANP): PromiseBase; + then( + doneFilter: null, + failFilter: null, + progressFilter?: (t: TN, u: UN, v: VN, ...s: SN[]) => PromiseBase | Thenable | ANP): PromiseBase; + then( + doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => PromiseBase | Thenable | ARD, + failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => PromiseBase | Thenable | ARF, + progressFilter?: null): PromiseBase; + then( + doneFilter: null, + failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => PromiseBase | Thenable | ARF, + progressFilter?: null): PromiseBase; + then( + doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => PromiseBase | Thenable | ARD, + failFilter?: null, + progressFilter?: null): PromiseBase; +} + +interface Promise3 extends PromiseBase { } + +type T = Awaited>; // string + +//// [awaitedTypeJQuery.js] +/// diff --git a/tests/baselines/reference/awaitedTypeJQuery.symbols b/tests/baselines/reference/awaitedTypeJQuery.symbols new file mode 100644 index 00000000000..ca774f76bdb --- /dev/null +++ b/tests/baselines/reference/awaitedTypeJQuery.symbols @@ -0,0 +1,793 @@ +=== tests/cases/compiler/awaitedTypeJQuery.ts === +/// + +interface Thenable extends PromiseLike { } +>Thenable : Symbol(Thenable, Decl(awaitedTypeJQuery.ts, 0, 0)) +>T : Symbol(T, Decl(awaitedTypeJQuery.ts, 2, 19)) +>PromiseLike : Symbol(PromiseLike, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(awaitedTypeJQuery.ts, 2, 19)) + +// JQuery's Promise type +interface PromiseBasePromiseBase : Symbol(PromiseBase, Decl(awaitedTypeJQuery.ts, 2, 48)) +>TR : Symbol(TR, Decl(awaitedTypeJQuery.ts, 5, 22)) +>TJ : Symbol(TJ, Decl(awaitedTypeJQuery.ts, 5, 25)) +>TN : Symbol(TN, Decl(awaitedTypeJQuery.ts, 5, 29)) + + UR, UJ, UN, +>UR : Symbol(UR, Decl(awaitedTypeJQuery.ts, 5, 33)) +>UJ : Symbol(UJ, Decl(awaitedTypeJQuery.ts, 6, 7)) +>UN : Symbol(UN, Decl(awaitedTypeJQuery.ts, 6, 11)) + + VR, VJ, VN, +>VR : Symbol(VR, Decl(awaitedTypeJQuery.ts, 6, 15)) +>VJ : Symbol(VJ, Decl(awaitedTypeJQuery.ts, 7, 7)) +>VN : Symbol(VN, Decl(awaitedTypeJQuery.ts, 7, 11)) + + SR, SJ, SN> { +>SR : Symbol(SR, Decl(awaitedTypeJQuery.ts, 7, 15)) +>SJ : Symbol(SJ, Decl(awaitedTypeJQuery.ts, 8, 7)) +>SN : Symbol(SN, Decl(awaitedTypeJQuery.ts, 8, 11)) + + thenthen : Symbol(PromiseBase.then, Decl(awaitedTypeJQuery.ts, 8, 17), Decl(awaitedTypeJQuery.ts, 35, 59), Decl(awaitedTypeJQuery.ts, 55, 41), Decl(awaitedTypeJQuery.ts, 68, 23), Decl(awaitedTypeJQuery.ts, 88, 41) ... and 1 more) +>ARD : Symbol(ARD, Decl(awaitedTypeJQuery.ts, 9, 9)) +>AJD : Symbol(AJD, Decl(awaitedTypeJQuery.ts, 9, 21)) +>AND : Symbol(AND, Decl(awaitedTypeJQuery.ts, 9, 34)) + + BRD = never, BJD = never, BND = never, +>BRD : Symbol(BRD, Decl(awaitedTypeJQuery.ts, 9, 47)) +>BJD : Symbol(BJD, Decl(awaitedTypeJQuery.ts, 10, 20)) +>BND : Symbol(BND, Decl(awaitedTypeJQuery.ts, 10, 33)) + + CRD = never, CJD = never, CND = never, +>CRD : Symbol(CRD, Decl(awaitedTypeJQuery.ts, 10, 46)) +>CJD : Symbol(CJD, Decl(awaitedTypeJQuery.ts, 11, 20)) +>CND : Symbol(CND, Decl(awaitedTypeJQuery.ts, 11, 33)) + + RRD = never, RJD = never, RND = never, +>RRD : Symbol(RRD, Decl(awaitedTypeJQuery.ts, 11, 46)) +>RJD : Symbol(RJD, Decl(awaitedTypeJQuery.ts, 12, 20)) +>RND : Symbol(RND, Decl(awaitedTypeJQuery.ts, 12, 33)) + + ARF = never, AJF = never, ANF = never, +>ARF : Symbol(ARF, Decl(awaitedTypeJQuery.ts, 12, 46)) +>AJF : Symbol(AJF, Decl(awaitedTypeJQuery.ts, 13, 20)) +>ANF : Symbol(ANF, Decl(awaitedTypeJQuery.ts, 13, 33)) + + BRF = never, BJF = never, BNF = never, +>BRF : Symbol(BRF, Decl(awaitedTypeJQuery.ts, 13, 46)) +>BJF : Symbol(BJF, Decl(awaitedTypeJQuery.ts, 14, 20)) +>BNF : Symbol(BNF, Decl(awaitedTypeJQuery.ts, 14, 33)) + + CRF = never, CJF = never, CNF = never, +>CRF : Symbol(CRF, Decl(awaitedTypeJQuery.ts, 14, 46)) +>CJF : Symbol(CJF, Decl(awaitedTypeJQuery.ts, 15, 20)) +>CNF : Symbol(CNF, Decl(awaitedTypeJQuery.ts, 15, 33)) + + RRF = never, RJF = never, RNF = never, +>RRF : Symbol(RRF, Decl(awaitedTypeJQuery.ts, 15, 46)) +>RJF : Symbol(RJF, Decl(awaitedTypeJQuery.ts, 16, 20)) +>RNF : Symbol(RNF, Decl(awaitedTypeJQuery.ts, 16, 33)) + + ARP = never, AJP = never, ANP = never, +>ARP : Symbol(ARP, Decl(awaitedTypeJQuery.ts, 16, 46)) +>AJP : Symbol(AJP, Decl(awaitedTypeJQuery.ts, 17, 20)) +>ANP : Symbol(ANP, Decl(awaitedTypeJQuery.ts, 17, 33)) + + BRP = never, BJP = never, BNP = never, +>BRP : Symbol(BRP, Decl(awaitedTypeJQuery.ts, 17, 46)) +>BJP : Symbol(BJP, Decl(awaitedTypeJQuery.ts, 18, 20)) +>BNP : Symbol(BNP, Decl(awaitedTypeJQuery.ts, 18, 33)) + + CRP = never, CJP = never, CNP = never, +>CRP : Symbol(CRP, Decl(awaitedTypeJQuery.ts, 18, 46)) +>CJP : Symbol(CJP, Decl(awaitedTypeJQuery.ts, 19, 20)) +>CNP : Symbol(CNP, Decl(awaitedTypeJQuery.ts, 19, 33)) + + RRP = never, RJP = never, RNP = never>( +>RRP : Symbol(RRP, Decl(awaitedTypeJQuery.ts, 19, 46)) +>RJP : Symbol(RJP, Decl(awaitedTypeJQuery.ts, 20, 20)) +>RNP : Symbol(RNP, Decl(awaitedTypeJQuery.ts, 20, 33)) + + doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => PromiseBasedoneFilter : Symbol(doneFilter, Decl(awaitedTypeJQuery.ts, 20, 47)) +>t : Symbol(t, Decl(awaitedTypeJQuery.ts, 21, 25)) +>TR : Symbol(TR, Decl(awaitedTypeJQuery.ts, 5, 22)) +>u : Symbol(u, Decl(awaitedTypeJQuery.ts, 21, 31)) +>UR : Symbol(UR, Decl(awaitedTypeJQuery.ts, 5, 33)) +>v : Symbol(v, Decl(awaitedTypeJQuery.ts, 21, 38)) +>VR : Symbol(VR, Decl(awaitedTypeJQuery.ts, 6, 15)) +>s : Symbol(s, Decl(awaitedTypeJQuery.ts, 21, 45)) +>SR : Symbol(SR, Decl(awaitedTypeJQuery.ts, 7, 15)) +>PromiseBase : Symbol(PromiseBase, Decl(awaitedTypeJQuery.ts, 2, 48)) +>ARD : Symbol(ARD, Decl(awaitedTypeJQuery.ts, 9, 9)) +>AJD : Symbol(AJD, Decl(awaitedTypeJQuery.ts, 9, 21)) +>AND : Symbol(AND, Decl(awaitedTypeJQuery.ts, 9, 34)) + + BRD, BJD, BND, +>BRD : Symbol(BRD, Decl(awaitedTypeJQuery.ts, 9, 47)) +>BJD : Symbol(BJD, Decl(awaitedTypeJQuery.ts, 10, 20)) +>BND : Symbol(BND, Decl(awaitedTypeJQuery.ts, 10, 33)) + + CRD, CJD, CND, +>CRD : Symbol(CRD, Decl(awaitedTypeJQuery.ts, 10, 46)) +>CJD : Symbol(CJD, Decl(awaitedTypeJQuery.ts, 11, 20)) +>CND : Symbol(CND, Decl(awaitedTypeJQuery.ts, 11, 33)) + + RRD, RJD, RND> | Thenable | ARD, +>RRD : Symbol(RRD, Decl(awaitedTypeJQuery.ts, 11, 46)) +>RJD : Symbol(RJD, Decl(awaitedTypeJQuery.ts, 12, 20)) +>RND : Symbol(RND, Decl(awaitedTypeJQuery.ts, 12, 33)) +>Thenable : Symbol(Thenable, Decl(awaitedTypeJQuery.ts, 0, 0)) +>ARD : Symbol(ARD, Decl(awaitedTypeJQuery.ts, 9, 9)) +>ARD : Symbol(ARD, Decl(awaitedTypeJQuery.ts, 9, 9)) + + failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => PromiseBasefailFilter : Symbol(failFilter, Decl(awaitedTypeJQuery.ts, 24, 53)) +>t : Symbol(t, Decl(awaitedTypeJQuery.ts, 25, 25)) +>TJ : Symbol(TJ, Decl(awaitedTypeJQuery.ts, 5, 25)) +>u : Symbol(u, Decl(awaitedTypeJQuery.ts, 25, 31)) +>UJ : Symbol(UJ, Decl(awaitedTypeJQuery.ts, 6, 7)) +>v : Symbol(v, Decl(awaitedTypeJQuery.ts, 25, 38)) +>VJ : Symbol(VJ, Decl(awaitedTypeJQuery.ts, 7, 7)) +>s : Symbol(s, Decl(awaitedTypeJQuery.ts, 25, 45)) +>SJ : Symbol(SJ, Decl(awaitedTypeJQuery.ts, 8, 7)) +>PromiseBase : Symbol(PromiseBase, Decl(awaitedTypeJQuery.ts, 2, 48)) +>ARF : Symbol(ARF, Decl(awaitedTypeJQuery.ts, 12, 46)) +>AJF : Symbol(AJF, Decl(awaitedTypeJQuery.ts, 13, 20)) +>ANF : Symbol(ANF, Decl(awaitedTypeJQuery.ts, 13, 33)) + + BRF, BJF, BNF, +>BRF : Symbol(BRF, Decl(awaitedTypeJQuery.ts, 13, 46)) +>BJF : Symbol(BJF, Decl(awaitedTypeJQuery.ts, 14, 20)) +>BNF : Symbol(BNF, Decl(awaitedTypeJQuery.ts, 14, 33)) + + CRF, CJF, CNF, +>CRF : Symbol(CRF, Decl(awaitedTypeJQuery.ts, 14, 46)) +>CJF : Symbol(CJF, Decl(awaitedTypeJQuery.ts, 15, 20)) +>CNF : Symbol(CNF, Decl(awaitedTypeJQuery.ts, 15, 33)) + + RRF, RJF, RNF> | Thenable | ARF, +>RRF : Symbol(RRF, Decl(awaitedTypeJQuery.ts, 15, 46)) +>RJF : Symbol(RJF, Decl(awaitedTypeJQuery.ts, 16, 20)) +>RNF : Symbol(RNF, Decl(awaitedTypeJQuery.ts, 16, 33)) +>Thenable : Symbol(Thenable, Decl(awaitedTypeJQuery.ts, 0, 0)) +>ARF : Symbol(ARF, Decl(awaitedTypeJQuery.ts, 12, 46)) +>ARF : Symbol(ARF, Decl(awaitedTypeJQuery.ts, 12, 46)) + + progressFilter: (t: TN, u: UN, v: VN, ...s: SN[]) => PromiseBaseprogressFilter : Symbol(progressFilter, Decl(awaitedTypeJQuery.ts, 28, 53)) +>t : Symbol(t, Decl(awaitedTypeJQuery.ts, 29, 29)) +>TN : Symbol(TN, Decl(awaitedTypeJQuery.ts, 5, 29)) +>u : Symbol(u, Decl(awaitedTypeJQuery.ts, 29, 35)) +>UN : Symbol(UN, Decl(awaitedTypeJQuery.ts, 6, 11)) +>v : Symbol(v, Decl(awaitedTypeJQuery.ts, 29, 42)) +>VN : Symbol(VN, Decl(awaitedTypeJQuery.ts, 7, 11)) +>s : Symbol(s, Decl(awaitedTypeJQuery.ts, 29, 49)) +>SN : Symbol(SN, Decl(awaitedTypeJQuery.ts, 8, 11)) +>PromiseBase : Symbol(PromiseBase, Decl(awaitedTypeJQuery.ts, 2, 48)) +>ARP : Symbol(ARP, Decl(awaitedTypeJQuery.ts, 16, 46)) +>AJP : Symbol(AJP, Decl(awaitedTypeJQuery.ts, 17, 20)) +>ANP : Symbol(ANP, Decl(awaitedTypeJQuery.ts, 17, 33)) + + BRP, BJP, BNP, +>BRP : Symbol(BRP, Decl(awaitedTypeJQuery.ts, 17, 46)) +>BJP : Symbol(BJP, Decl(awaitedTypeJQuery.ts, 18, 20)) +>BNP : Symbol(BNP, Decl(awaitedTypeJQuery.ts, 18, 33)) + + CRP, CJP, CNP, +>CRP : Symbol(CRP, Decl(awaitedTypeJQuery.ts, 18, 46)) +>CJP : Symbol(CJP, Decl(awaitedTypeJQuery.ts, 19, 20)) +>CNP : Symbol(CNP, Decl(awaitedTypeJQuery.ts, 19, 33)) + + RRP, RJP, RNP> | Thenable | ANP): PromiseBaseRRP : Symbol(RRP, Decl(awaitedTypeJQuery.ts, 19, 46)) +>RJP : Symbol(RJP, Decl(awaitedTypeJQuery.ts, 20, 20)) +>RNP : Symbol(RNP, Decl(awaitedTypeJQuery.ts, 20, 33)) +>Thenable : Symbol(Thenable, Decl(awaitedTypeJQuery.ts, 0, 0)) +>ANP : Symbol(ANP, Decl(awaitedTypeJQuery.ts, 17, 33)) +>ANP : Symbol(ANP, Decl(awaitedTypeJQuery.ts, 17, 33)) +>PromiseBase : Symbol(PromiseBase, Decl(awaitedTypeJQuery.ts, 2, 48)) +>ARD : Symbol(ARD, Decl(awaitedTypeJQuery.ts, 9, 9)) +>ARF : Symbol(ARF, Decl(awaitedTypeJQuery.ts, 12, 46)) +>ARP : Symbol(ARP, Decl(awaitedTypeJQuery.ts, 16, 46)) +>AJD : Symbol(AJD, Decl(awaitedTypeJQuery.ts, 9, 21)) +>AJF : Symbol(AJF, Decl(awaitedTypeJQuery.ts, 13, 20)) +>AJP : Symbol(AJP, Decl(awaitedTypeJQuery.ts, 17, 20)) +>AND : Symbol(AND, Decl(awaitedTypeJQuery.ts, 9, 34)) +>ANF : Symbol(ANF, Decl(awaitedTypeJQuery.ts, 13, 33)) +>ANP : Symbol(ANP, Decl(awaitedTypeJQuery.ts, 17, 33)) + + BRD | BRF | BRP, BJD | BJF | BJP, BND | BNF | BNP, +>BRD : Symbol(BRD, Decl(awaitedTypeJQuery.ts, 9, 47)) +>BRF : Symbol(BRF, Decl(awaitedTypeJQuery.ts, 13, 46)) +>BRP : Symbol(BRP, Decl(awaitedTypeJQuery.ts, 17, 46)) +>BJD : Symbol(BJD, Decl(awaitedTypeJQuery.ts, 10, 20)) +>BJF : Symbol(BJF, Decl(awaitedTypeJQuery.ts, 14, 20)) +>BJP : Symbol(BJP, Decl(awaitedTypeJQuery.ts, 18, 20)) +>BND : Symbol(BND, Decl(awaitedTypeJQuery.ts, 10, 33)) +>BNF : Symbol(BNF, Decl(awaitedTypeJQuery.ts, 14, 33)) +>BNP : Symbol(BNP, Decl(awaitedTypeJQuery.ts, 18, 33)) + + CRD | CRF | CRP, CJD | CJF | CJP, CND | CNF | CNP, +>CRD : Symbol(CRD, Decl(awaitedTypeJQuery.ts, 10, 46)) +>CRF : Symbol(CRF, Decl(awaitedTypeJQuery.ts, 14, 46)) +>CRP : Symbol(CRP, Decl(awaitedTypeJQuery.ts, 18, 46)) +>CJD : Symbol(CJD, Decl(awaitedTypeJQuery.ts, 11, 20)) +>CJF : Symbol(CJF, Decl(awaitedTypeJQuery.ts, 15, 20)) +>CJP : Symbol(CJP, Decl(awaitedTypeJQuery.ts, 19, 20)) +>CND : Symbol(CND, Decl(awaitedTypeJQuery.ts, 11, 33)) +>CNF : Symbol(CNF, Decl(awaitedTypeJQuery.ts, 15, 33)) +>CNP : Symbol(CNP, Decl(awaitedTypeJQuery.ts, 19, 33)) + + RRD | RRF | RRP, RJD | RJF | RJP, RND | RNF | RNP>; +>RRD : Symbol(RRD, Decl(awaitedTypeJQuery.ts, 11, 46)) +>RRF : Symbol(RRF, Decl(awaitedTypeJQuery.ts, 15, 46)) +>RRP : Symbol(RRP, Decl(awaitedTypeJQuery.ts, 19, 46)) +>RJD : Symbol(RJD, Decl(awaitedTypeJQuery.ts, 12, 20)) +>RJF : Symbol(RJF, Decl(awaitedTypeJQuery.ts, 16, 20)) +>RJP : Symbol(RJP, Decl(awaitedTypeJQuery.ts, 20, 20)) +>RND : Symbol(RND, Decl(awaitedTypeJQuery.ts, 12, 33)) +>RNF : Symbol(RNF, Decl(awaitedTypeJQuery.ts, 16, 33)) +>RNP : Symbol(RNP, Decl(awaitedTypeJQuery.ts, 20, 33)) + + thenthen : Symbol(PromiseBase.then, Decl(awaitedTypeJQuery.ts, 8, 17), Decl(awaitedTypeJQuery.ts, 35, 59), Decl(awaitedTypeJQuery.ts, 55, 41), Decl(awaitedTypeJQuery.ts, 68, 23), Decl(awaitedTypeJQuery.ts, 88, 41) ... and 1 more) +>ARF : Symbol(ARF, Decl(awaitedTypeJQuery.ts, 36, 9)) +>AJF : Symbol(AJF, Decl(awaitedTypeJQuery.ts, 36, 21)) +>ANF : Symbol(ANF, Decl(awaitedTypeJQuery.ts, 36, 34)) + + BRF = never, BJF = never, BNF = never, +>BRF : Symbol(BRF, Decl(awaitedTypeJQuery.ts, 36, 47)) +>BJF : Symbol(BJF, Decl(awaitedTypeJQuery.ts, 37, 20)) +>BNF : Symbol(BNF, Decl(awaitedTypeJQuery.ts, 37, 33)) + + CRF = never, CJF = never, CNF = never, +>CRF : Symbol(CRF, Decl(awaitedTypeJQuery.ts, 37, 46)) +>CJF : Symbol(CJF, Decl(awaitedTypeJQuery.ts, 38, 20)) +>CNF : Symbol(CNF, Decl(awaitedTypeJQuery.ts, 38, 33)) + + RRF = never, RJF = never, RNF = never, +>RRF : Symbol(RRF, Decl(awaitedTypeJQuery.ts, 38, 46)) +>RJF : Symbol(RJF, Decl(awaitedTypeJQuery.ts, 39, 20)) +>RNF : Symbol(RNF, Decl(awaitedTypeJQuery.ts, 39, 33)) + + ARP = never, AJP = never, ANP = never, +>ARP : Symbol(ARP, Decl(awaitedTypeJQuery.ts, 39, 46)) +>AJP : Symbol(AJP, Decl(awaitedTypeJQuery.ts, 40, 20)) +>ANP : Symbol(ANP, Decl(awaitedTypeJQuery.ts, 40, 33)) + + BRP = never, BJP = never, BNP = never, +>BRP : Symbol(BRP, Decl(awaitedTypeJQuery.ts, 40, 46)) +>BJP : Symbol(BJP, Decl(awaitedTypeJQuery.ts, 41, 20)) +>BNP : Symbol(BNP, Decl(awaitedTypeJQuery.ts, 41, 33)) + + CRP = never, CJP = never, CNP = never, +>CRP : Symbol(CRP, Decl(awaitedTypeJQuery.ts, 41, 46)) +>CJP : Symbol(CJP, Decl(awaitedTypeJQuery.ts, 42, 20)) +>CNP : Symbol(CNP, Decl(awaitedTypeJQuery.ts, 42, 33)) + + RRP = never, RJP = never, RNP = never>( +>RRP : Symbol(RRP, Decl(awaitedTypeJQuery.ts, 42, 46)) +>RJP : Symbol(RJP, Decl(awaitedTypeJQuery.ts, 43, 20)) +>RNP : Symbol(RNP, Decl(awaitedTypeJQuery.ts, 43, 33)) + + doneFilter: null, +>doneFilter : Symbol(doneFilter, Decl(awaitedTypeJQuery.ts, 43, 47)) + + failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => PromiseBasefailFilter : Symbol(failFilter, Decl(awaitedTypeJQuery.ts, 44, 29)) +>t : Symbol(t, Decl(awaitedTypeJQuery.ts, 45, 25)) +>TJ : Symbol(TJ, Decl(awaitedTypeJQuery.ts, 5, 25)) +>u : Symbol(u, Decl(awaitedTypeJQuery.ts, 45, 31)) +>UJ : Symbol(UJ, Decl(awaitedTypeJQuery.ts, 6, 7)) +>v : Symbol(v, Decl(awaitedTypeJQuery.ts, 45, 38)) +>VJ : Symbol(VJ, Decl(awaitedTypeJQuery.ts, 7, 7)) +>s : Symbol(s, Decl(awaitedTypeJQuery.ts, 45, 45)) +>SJ : Symbol(SJ, Decl(awaitedTypeJQuery.ts, 8, 7)) +>PromiseBase : Symbol(PromiseBase, Decl(awaitedTypeJQuery.ts, 2, 48)) +>ARF : Symbol(ARF, Decl(awaitedTypeJQuery.ts, 36, 9)) +>AJF : Symbol(AJF, Decl(awaitedTypeJQuery.ts, 36, 21)) +>ANF : Symbol(ANF, Decl(awaitedTypeJQuery.ts, 36, 34)) + + BRF, BJF, BNF, +>BRF : Symbol(BRF, Decl(awaitedTypeJQuery.ts, 36, 47)) +>BJF : Symbol(BJF, Decl(awaitedTypeJQuery.ts, 37, 20)) +>BNF : Symbol(BNF, Decl(awaitedTypeJQuery.ts, 37, 33)) + + CRF, CJF, CNF, +>CRF : Symbol(CRF, Decl(awaitedTypeJQuery.ts, 37, 46)) +>CJF : Symbol(CJF, Decl(awaitedTypeJQuery.ts, 38, 20)) +>CNF : Symbol(CNF, Decl(awaitedTypeJQuery.ts, 38, 33)) + + RRF, RJF, RNF> | Thenable | ARF, +>RRF : Symbol(RRF, Decl(awaitedTypeJQuery.ts, 38, 46)) +>RJF : Symbol(RJF, Decl(awaitedTypeJQuery.ts, 39, 20)) +>RNF : Symbol(RNF, Decl(awaitedTypeJQuery.ts, 39, 33)) +>Thenable : Symbol(Thenable, Decl(awaitedTypeJQuery.ts, 0, 0)) +>ARF : Symbol(ARF, Decl(awaitedTypeJQuery.ts, 36, 9)) +>ARF : Symbol(ARF, Decl(awaitedTypeJQuery.ts, 36, 9)) + + progressFilter: (t: TN, u: UN, v: VN, ...s: SN[]) => PromiseBaseprogressFilter : Symbol(progressFilter, Decl(awaitedTypeJQuery.ts, 48, 53)) +>t : Symbol(t, Decl(awaitedTypeJQuery.ts, 49, 29)) +>TN : Symbol(TN, Decl(awaitedTypeJQuery.ts, 5, 29)) +>u : Symbol(u, Decl(awaitedTypeJQuery.ts, 49, 35)) +>UN : Symbol(UN, Decl(awaitedTypeJQuery.ts, 6, 11)) +>v : Symbol(v, Decl(awaitedTypeJQuery.ts, 49, 42)) +>VN : Symbol(VN, Decl(awaitedTypeJQuery.ts, 7, 11)) +>s : Symbol(s, Decl(awaitedTypeJQuery.ts, 49, 49)) +>SN : Symbol(SN, Decl(awaitedTypeJQuery.ts, 8, 11)) +>PromiseBase : Symbol(PromiseBase, Decl(awaitedTypeJQuery.ts, 2, 48)) +>ARP : Symbol(ARP, Decl(awaitedTypeJQuery.ts, 39, 46)) +>AJP : Symbol(AJP, Decl(awaitedTypeJQuery.ts, 40, 20)) +>ANP : Symbol(ANP, Decl(awaitedTypeJQuery.ts, 40, 33)) + + BRP, BJP, BNP, +>BRP : Symbol(BRP, Decl(awaitedTypeJQuery.ts, 40, 46)) +>BJP : Symbol(BJP, Decl(awaitedTypeJQuery.ts, 41, 20)) +>BNP : Symbol(BNP, Decl(awaitedTypeJQuery.ts, 41, 33)) + + CRP, CJP, CNP, +>CRP : Symbol(CRP, Decl(awaitedTypeJQuery.ts, 41, 46)) +>CJP : Symbol(CJP, Decl(awaitedTypeJQuery.ts, 42, 20)) +>CNP : Symbol(CNP, Decl(awaitedTypeJQuery.ts, 42, 33)) + + RRP, RJP, RNP> | Thenable | ANP): PromiseBaseRRP : Symbol(RRP, Decl(awaitedTypeJQuery.ts, 42, 46)) +>RJP : Symbol(RJP, Decl(awaitedTypeJQuery.ts, 43, 20)) +>RNP : Symbol(RNP, Decl(awaitedTypeJQuery.ts, 43, 33)) +>Thenable : Symbol(Thenable, Decl(awaitedTypeJQuery.ts, 0, 0)) +>ANP : Symbol(ANP, Decl(awaitedTypeJQuery.ts, 40, 33)) +>ANP : Symbol(ANP, Decl(awaitedTypeJQuery.ts, 40, 33)) +>PromiseBase : Symbol(PromiseBase, Decl(awaitedTypeJQuery.ts, 2, 48)) +>ARF : Symbol(ARF, Decl(awaitedTypeJQuery.ts, 36, 9)) +>ARP : Symbol(ARP, Decl(awaitedTypeJQuery.ts, 39, 46)) +>AJF : Symbol(AJF, Decl(awaitedTypeJQuery.ts, 36, 21)) +>AJP : Symbol(AJP, Decl(awaitedTypeJQuery.ts, 40, 20)) +>ANF : Symbol(ANF, Decl(awaitedTypeJQuery.ts, 36, 34)) +>ANP : Symbol(ANP, Decl(awaitedTypeJQuery.ts, 40, 33)) + + BRF | BRP, BJF | BJP, BNF | BNP, +>BRF : Symbol(BRF, Decl(awaitedTypeJQuery.ts, 36, 47)) +>BRP : Symbol(BRP, Decl(awaitedTypeJQuery.ts, 40, 46)) +>BJF : Symbol(BJF, Decl(awaitedTypeJQuery.ts, 37, 20)) +>BJP : Symbol(BJP, Decl(awaitedTypeJQuery.ts, 41, 20)) +>BNF : Symbol(BNF, Decl(awaitedTypeJQuery.ts, 37, 33)) +>BNP : Symbol(BNP, Decl(awaitedTypeJQuery.ts, 41, 33)) + + CRF | CRP, CJF | CJP, CNF | CNP, +>CRF : Symbol(CRF, Decl(awaitedTypeJQuery.ts, 37, 46)) +>CRP : Symbol(CRP, Decl(awaitedTypeJQuery.ts, 41, 46)) +>CJF : Symbol(CJF, Decl(awaitedTypeJQuery.ts, 38, 20)) +>CJP : Symbol(CJP, Decl(awaitedTypeJQuery.ts, 42, 20)) +>CNF : Symbol(CNF, Decl(awaitedTypeJQuery.ts, 38, 33)) +>CNP : Symbol(CNP, Decl(awaitedTypeJQuery.ts, 42, 33)) + + RRF | RRP, RJF | RJP, RNF | RNP>; +>RRF : Symbol(RRF, Decl(awaitedTypeJQuery.ts, 38, 46)) +>RRP : Symbol(RRP, Decl(awaitedTypeJQuery.ts, 42, 46)) +>RJF : Symbol(RJF, Decl(awaitedTypeJQuery.ts, 39, 20)) +>RJP : Symbol(RJP, Decl(awaitedTypeJQuery.ts, 43, 20)) +>RNF : Symbol(RNF, Decl(awaitedTypeJQuery.ts, 39, 33)) +>RNP : Symbol(RNP, Decl(awaitedTypeJQuery.ts, 43, 33)) + + thenthen : Symbol(PromiseBase.then, Decl(awaitedTypeJQuery.ts, 8, 17), Decl(awaitedTypeJQuery.ts, 35, 59), Decl(awaitedTypeJQuery.ts, 55, 41), Decl(awaitedTypeJQuery.ts, 68, 23), Decl(awaitedTypeJQuery.ts, 88, 41) ... and 1 more) +>ARP : Symbol(ARP, Decl(awaitedTypeJQuery.ts, 56, 9)) +>AJP : Symbol(AJP, Decl(awaitedTypeJQuery.ts, 56, 21)) +>ANP : Symbol(ANP, Decl(awaitedTypeJQuery.ts, 56, 34)) + + BRP = never, BJP = never, BNP = never, +>BRP : Symbol(BRP, Decl(awaitedTypeJQuery.ts, 56, 47)) +>BJP : Symbol(BJP, Decl(awaitedTypeJQuery.ts, 57, 20)) +>BNP : Symbol(BNP, Decl(awaitedTypeJQuery.ts, 57, 33)) + + CRP = never, CJP = never, CNP = never, +>CRP : Symbol(CRP, Decl(awaitedTypeJQuery.ts, 57, 46)) +>CJP : Symbol(CJP, Decl(awaitedTypeJQuery.ts, 58, 20)) +>CNP : Symbol(CNP, Decl(awaitedTypeJQuery.ts, 58, 33)) + + RRP = never, RJP = never, RNP = never>( +>RRP : Symbol(RRP, Decl(awaitedTypeJQuery.ts, 58, 46)) +>RJP : Symbol(RJP, Decl(awaitedTypeJQuery.ts, 59, 20)) +>RNP : Symbol(RNP, Decl(awaitedTypeJQuery.ts, 59, 33)) + + doneFilter: null, +>doneFilter : Symbol(doneFilter, Decl(awaitedTypeJQuery.ts, 59, 47)) + + failFilter: null, +>failFilter : Symbol(failFilter, Decl(awaitedTypeJQuery.ts, 60, 29)) + + progressFilter?: (t: TN, u: UN, v: VN, ...s: SN[]) => PromiseBaseprogressFilter : Symbol(progressFilter, Decl(awaitedTypeJQuery.ts, 61, 29)) +>t : Symbol(t, Decl(awaitedTypeJQuery.ts, 62, 30)) +>TN : Symbol(TN, Decl(awaitedTypeJQuery.ts, 5, 29)) +>u : Symbol(u, Decl(awaitedTypeJQuery.ts, 62, 36)) +>UN : Symbol(UN, Decl(awaitedTypeJQuery.ts, 6, 11)) +>v : Symbol(v, Decl(awaitedTypeJQuery.ts, 62, 43)) +>VN : Symbol(VN, Decl(awaitedTypeJQuery.ts, 7, 11)) +>s : Symbol(s, Decl(awaitedTypeJQuery.ts, 62, 50)) +>SN : Symbol(SN, Decl(awaitedTypeJQuery.ts, 8, 11)) +>PromiseBase : Symbol(PromiseBase, Decl(awaitedTypeJQuery.ts, 2, 48)) +>ARP : Symbol(ARP, Decl(awaitedTypeJQuery.ts, 56, 9)) +>AJP : Symbol(AJP, Decl(awaitedTypeJQuery.ts, 56, 21)) +>ANP : Symbol(ANP, Decl(awaitedTypeJQuery.ts, 56, 34)) + + BRP, BJP, BNP, +>BRP : Symbol(BRP, Decl(awaitedTypeJQuery.ts, 56, 47)) +>BJP : Symbol(BJP, Decl(awaitedTypeJQuery.ts, 57, 20)) +>BNP : Symbol(BNP, Decl(awaitedTypeJQuery.ts, 57, 33)) + + CRP, CJP, CNP, +>CRP : Symbol(CRP, Decl(awaitedTypeJQuery.ts, 57, 46)) +>CJP : Symbol(CJP, Decl(awaitedTypeJQuery.ts, 58, 20)) +>CNP : Symbol(CNP, Decl(awaitedTypeJQuery.ts, 58, 33)) + + RRP, RJP, RNP> | Thenable | ANP): PromiseBaseRRP : Symbol(RRP, Decl(awaitedTypeJQuery.ts, 58, 46)) +>RJP : Symbol(RJP, Decl(awaitedTypeJQuery.ts, 59, 20)) +>RNP : Symbol(RNP, Decl(awaitedTypeJQuery.ts, 59, 33)) +>Thenable : Symbol(Thenable, Decl(awaitedTypeJQuery.ts, 0, 0)) +>ANP : Symbol(ANP, Decl(awaitedTypeJQuery.ts, 56, 34)) +>ANP : Symbol(ANP, Decl(awaitedTypeJQuery.ts, 56, 34)) +>PromiseBase : Symbol(PromiseBase, Decl(awaitedTypeJQuery.ts, 2, 48)) +>ARP : Symbol(ARP, Decl(awaitedTypeJQuery.ts, 56, 9)) +>AJP : Symbol(AJP, Decl(awaitedTypeJQuery.ts, 56, 21)) +>ANP : Symbol(ANP, Decl(awaitedTypeJQuery.ts, 56, 34)) + + BRP, BJP, BNP, +>BRP : Symbol(BRP, Decl(awaitedTypeJQuery.ts, 56, 47)) +>BJP : Symbol(BJP, Decl(awaitedTypeJQuery.ts, 57, 20)) +>BNP : Symbol(BNP, Decl(awaitedTypeJQuery.ts, 57, 33)) + + CRP, CJP, CNP, +>CRP : Symbol(CRP, Decl(awaitedTypeJQuery.ts, 57, 46)) +>CJP : Symbol(CJP, Decl(awaitedTypeJQuery.ts, 58, 20)) +>CNP : Symbol(CNP, Decl(awaitedTypeJQuery.ts, 58, 33)) + + RRP, RJP, RNP>; +>RRP : Symbol(RRP, Decl(awaitedTypeJQuery.ts, 58, 46)) +>RJP : Symbol(RJP, Decl(awaitedTypeJQuery.ts, 59, 20)) +>RNP : Symbol(RNP, Decl(awaitedTypeJQuery.ts, 59, 33)) + + thenthen : Symbol(PromiseBase.then, Decl(awaitedTypeJQuery.ts, 8, 17), Decl(awaitedTypeJQuery.ts, 35, 59), Decl(awaitedTypeJQuery.ts, 55, 41), Decl(awaitedTypeJQuery.ts, 68, 23), Decl(awaitedTypeJQuery.ts, 88, 41) ... and 1 more) +>ARD : Symbol(ARD, Decl(awaitedTypeJQuery.ts, 69, 9)) +>AJD : Symbol(AJD, Decl(awaitedTypeJQuery.ts, 69, 21)) +>AND : Symbol(AND, Decl(awaitedTypeJQuery.ts, 69, 34)) + + BRD = never, BJD = never, BND = never, +>BRD : Symbol(BRD, Decl(awaitedTypeJQuery.ts, 69, 47)) +>BJD : Symbol(BJD, Decl(awaitedTypeJQuery.ts, 70, 20)) +>BND : Symbol(BND, Decl(awaitedTypeJQuery.ts, 70, 33)) + + CRD = never, CJD = never, CND = never, +>CRD : Symbol(CRD, Decl(awaitedTypeJQuery.ts, 70, 46)) +>CJD : Symbol(CJD, Decl(awaitedTypeJQuery.ts, 71, 20)) +>CND : Symbol(CND, Decl(awaitedTypeJQuery.ts, 71, 33)) + + RRD = never, RJD = never, RND = never, +>RRD : Symbol(RRD, Decl(awaitedTypeJQuery.ts, 71, 46)) +>RJD : Symbol(RJD, Decl(awaitedTypeJQuery.ts, 72, 20)) +>RND : Symbol(RND, Decl(awaitedTypeJQuery.ts, 72, 33)) + + ARF = never, AJF = never, ANF = never, +>ARF : Symbol(ARF, Decl(awaitedTypeJQuery.ts, 72, 46)) +>AJF : Symbol(AJF, Decl(awaitedTypeJQuery.ts, 73, 20)) +>ANF : Symbol(ANF, Decl(awaitedTypeJQuery.ts, 73, 33)) + + BRF = never, BJF = never, BNF = never, +>BRF : Symbol(BRF, Decl(awaitedTypeJQuery.ts, 73, 46)) +>BJF : Symbol(BJF, Decl(awaitedTypeJQuery.ts, 74, 20)) +>BNF : Symbol(BNF, Decl(awaitedTypeJQuery.ts, 74, 33)) + + CRF = never, CJF = never, CNF = never, +>CRF : Symbol(CRF, Decl(awaitedTypeJQuery.ts, 74, 46)) +>CJF : Symbol(CJF, Decl(awaitedTypeJQuery.ts, 75, 20)) +>CNF : Symbol(CNF, Decl(awaitedTypeJQuery.ts, 75, 33)) + + RRF = never, RJF = never, RNF = never>( +>RRF : Symbol(RRF, Decl(awaitedTypeJQuery.ts, 75, 46)) +>RJF : Symbol(RJF, Decl(awaitedTypeJQuery.ts, 76, 20)) +>RNF : Symbol(RNF, Decl(awaitedTypeJQuery.ts, 76, 33)) + + doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => PromiseBasedoneFilter : Symbol(doneFilter, Decl(awaitedTypeJQuery.ts, 76, 47)) +>t : Symbol(t, Decl(awaitedTypeJQuery.ts, 77, 25)) +>TR : Symbol(TR, Decl(awaitedTypeJQuery.ts, 5, 22)) +>u : Symbol(u, Decl(awaitedTypeJQuery.ts, 77, 31)) +>UR : Symbol(UR, Decl(awaitedTypeJQuery.ts, 5, 33)) +>v : Symbol(v, Decl(awaitedTypeJQuery.ts, 77, 38)) +>VR : Symbol(VR, Decl(awaitedTypeJQuery.ts, 6, 15)) +>s : Symbol(s, Decl(awaitedTypeJQuery.ts, 77, 45)) +>SR : Symbol(SR, Decl(awaitedTypeJQuery.ts, 7, 15)) +>PromiseBase : Symbol(PromiseBase, Decl(awaitedTypeJQuery.ts, 2, 48)) +>ARD : Symbol(ARD, Decl(awaitedTypeJQuery.ts, 69, 9)) +>AJD : Symbol(AJD, Decl(awaitedTypeJQuery.ts, 69, 21)) +>AND : Symbol(AND, Decl(awaitedTypeJQuery.ts, 69, 34)) + + BRD, BJD, BND, +>BRD : Symbol(BRD, Decl(awaitedTypeJQuery.ts, 69, 47)) +>BJD : Symbol(BJD, Decl(awaitedTypeJQuery.ts, 70, 20)) +>BND : Symbol(BND, Decl(awaitedTypeJQuery.ts, 70, 33)) + + CRD, CJD, CND, +>CRD : Symbol(CRD, Decl(awaitedTypeJQuery.ts, 70, 46)) +>CJD : Symbol(CJD, Decl(awaitedTypeJQuery.ts, 71, 20)) +>CND : Symbol(CND, Decl(awaitedTypeJQuery.ts, 71, 33)) + + RRD, RJD, RND> | Thenable | ARD, +>RRD : Symbol(RRD, Decl(awaitedTypeJQuery.ts, 71, 46)) +>RJD : Symbol(RJD, Decl(awaitedTypeJQuery.ts, 72, 20)) +>RND : Symbol(RND, Decl(awaitedTypeJQuery.ts, 72, 33)) +>Thenable : Symbol(Thenable, Decl(awaitedTypeJQuery.ts, 0, 0)) +>ARD : Symbol(ARD, Decl(awaitedTypeJQuery.ts, 69, 9)) +>ARD : Symbol(ARD, Decl(awaitedTypeJQuery.ts, 69, 9)) + + failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => PromiseBasefailFilter : Symbol(failFilter, Decl(awaitedTypeJQuery.ts, 80, 53)) +>t : Symbol(t, Decl(awaitedTypeJQuery.ts, 81, 25)) +>TJ : Symbol(TJ, Decl(awaitedTypeJQuery.ts, 5, 25)) +>u : Symbol(u, Decl(awaitedTypeJQuery.ts, 81, 31)) +>UJ : Symbol(UJ, Decl(awaitedTypeJQuery.ts, 6, 7)) +>v : Symbol(v, Decl(awaitedTypeJQuery.ts, 81, 38)) +>VJ : Symbol(VJ, Decl(awaitedTypeJQuery.ts, 7, 7)) +>s : Symbol(s, Decl(awaitedTypeJQuery.ts, 81, 45)) +>SJ : Symbol(SJ, Decl(awaitedTypeJQuery.ts, 8, 7)) +>PromiseBase : Symbol(PromiseBase, Decl(awaitedTypeJQuery.ts, 2, 48)) +>ARF : Symbol(ARF, Decl(awaitedTypeJQuery.ts, 72, 46)) +>AJF : Symbol(AJF, Decl(awaitedTypeJQuery.ts, 73, 20)) +>ANF : Symbol(ANF, Decl(awaitedTypeJQuery.ts, 73, 33)) + + BRF, BJF, BNF, +>BRF : Symbol(BRF, Decl(awaitedTypeJQuery.ts, 73, 46)) +>BJF : Symbol(BJF, Decl(awaitedTypeJQuery.ts, 74, 20)) +>BNF : Symbol(BNF, Decl(awaitedTypeJQuery.ts, 74, 33)) + + CRF, CJF, CNF, +>CRF : Symbol(CRF, Decl(awaitedTypeJQuery.ts, 74, 46)) +>CJF : Symbol(CJF, Decl(awaitedTypeJQuery.ts, 75, 20)) +>CNF : Symbol(CNF, Decl(awaitedTypeJQuery.ts, 75, 33)) + + RRF, RJF, RNF> | Thenable | ARF, +>RRF : Symbol(RRF, Decl(awaitedTypeJQuery.ts, 75, 46)) +>RJF : Symbol(RJF, Decl(awaitedTypeJQuery.ts, 76, 20)) +>RNF : Symbol(RNF, Decl(awaitedTypeJQuery.ts, 76, 33)) +>Thenable : Symbol(Thenable, Decl(awaitedTypeJQuery.ts, 0, 0)) +>ARF : Symbol(ARF, Decl(awaitedTypeJQuery.ts, 72, 46)) +>ARF : Symbol(ARF, Decl(awaitedTypeJQuery.ts, 72, 46)) + + progressFilter?: null): PromiseBaseprogressFilter : Symbol(progressFilter, Decl(awaitedTypeJQuery.ts, 84, 53)) +>PromiseBase : Symbol(PromiseBase, Decl(awaitedTypeJQuery.ts, 2, 48)) +>ARD : Symbol(ARD, Decl(awaitedTypeJQuery.ts, 69, 9)) +>ARF : Symbol(ARF, Decl(awaitedTypeJQuery.ts, 72, 46)) +>AJD : Symbol(AJD, Decl(awaitedTypeJQuery.ts, 69, 21)) +>AJF : Symbol(AJF, Decl(awaitedTypeJQuery.ts, 73, 20)) +>AND : Symbol(AND, Decl(awaitedTypeJQuery.ts, 69, 34)) +>ANF : Symbol(ANF, Decl(awaitedTypeJQuery.ts, 73, 33)) + + BRD | BRF, BJD | BJF, BND | BNF, +>BRD : Symbol(BRD, Decl(awaitedTypeJQuery.ts, 69, 47)) +>BRF : Symbol(BRF, Decl(awaitedTypeJQuery.ts, 73, 46)) +>BJD : Symbol(BJD, Decl(awaitedTypeJQuery.ts, 70, 20)) +>BJF : Symbol(BJF, Decl(awaitedTypeJQuery.ts, 74, 20)) +>BND : Symbol(BND, Decl(awaitedTypeJQuery.ts, 70, 33)) +>BNF : Symbol(BNF, Decl(awaitedTypeJQuery.ts, 74, 33)) + + CRD | CRF, CJD | CJF, CND | CNF, +>CRD : Symbol(CRD, Decl(awaitedTypeJQuery.ts, 70, 46)) +>CRF : Symbol(CRF, Decl(awaitedTypeJQuery.ts, 74, 46)) +>CJD : Symbol(CJD, Decl(awaitedTypeJQuery.ts, 71, 20)) +>CJF : Symbol(CJF, Decl(awaitedTypeJQuery.ts, 75, 20)) +>CND : Symbol(CND, Decl(awaitedTypeJQuery.ts, 71, 33)) +>CNF : Symbol(CNF, Decl(awaitedTypeJQuery.ts, 75, 33)) + + RRD | RRF, RJD | RJF, RND | RNF>; +>RRD : Symbol(RRD, Decl(awaitedTypeJQuery.ts, 71, 46)) +>RRF : Symbol(RRF, Decl(awaitedTypeJQuery.ts, 75, 46)) +>RJD : Symbol(RJD, Decl(awaitedTypeJQuery.ts, 72, 20)) +>RJF : Symbol(RJF, Decl(awaitedTypeJQuery.ts, 76, 20)) +>RND : Symbol(RND, Decl(awaitedTypeJQuery.ts, 72, 33)) +>RNF : Symbol(RNF, Decl(awaitedTypeJQuery.ts, 76, 33)) + + thenthen : Symbol(PromiseBase.then, Decl(awaitedTypeJQuery.ts, 8, 17), Decl(awaitedTypeJQuery.ts, 35, 59), Decl(awaitedTypeJQuery.ts, 55, 41), Decl(awaitedTypeJQuery.ts, 68, 23), Decl(awaitedTypeJQuery.ts, 88, 41) ... and 1 more) +>ARF : Symbol(ARF, Decl(awaitedTypeJQuery.ts, 89, 9)) +>AJF : Symbol(AJF, Decl(awaitedTypeJQuery.ts, 89, 21)) +>ANF : Symbol(ANF, Decl(awaitedTypeJQuery.ts, 89, 34)) + + BRF = never, BJF = never, BNF = never, +>BRF : Symbol(BRF, Decl(awaitedTypeJQuery.ts, 89, 47)) +>BJF : Symbol(BJF, Decl(awaitedTypeJQuery.ts, 90, 20)) +>BNF : Symbol(BNF, Decl(awaitedTypeJQuery.ts, 90, 33)) + + CRF = never, CJF = never, CNF = never, +>CRF : Symbol(CRF, Decl(awaitedTypeJQuery.ts, 90, 46)) +>CJF : Symbol(CJF, Decl(awaitedTypeJQuery.ts, 91, 20)) +>CNF : Symbol(CNF, Decl(awaitedTypeJQuery.ts, 91, 33)) + + RRF = never, RJF = never, RNF = never>( +>RRF : Symbol(RRF, Decl(awaitedTypeJQuery.ts, 91, 46)) +>RJF : Symbol(RJF, Decl(awaitedTypeJQuery.ts, 92, 20)) +>RNF : Symbol(RNF, Decl(awaitedTypeJQuery.ts, 92, 33)) + + doneFilter: null, +>doneFilter : Symbol(doneFilter, Decl(awaitedTypeJQuery.ts, 92, 47)) + + failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => PromiseBasefailFilter : Symbol(failFilter, Decl(awaitedTypeJQuery.ts, 93, 29)) +>t : Symbol(t, Decl(awaitedTypeJQuery.ts, 94, 25)) +>TJ : Symbol(TJ, Decl(awaitedTypeJQuery.ts, 5, 25)) +>u : Symbol(u, Decl(awaitedTypeJQuery.ts, 94, 31)) +>UJ : Symbol(UJ, Decl(awaitedTypeJQuery.ts, 6, 7)) +>v : Symbol(v, Decl(awaitedTypeJQuery.ts, 94, 38)) +>VJ : Symbol(VJ, Decl(awaitedTypeJQuery.ts, 7, 7)) +>s : Symbol(s, Decl(awaitedTypeJQuery.ts, 94, 45)) +>SJ : Symbol(SJ, Decl(awaitedTypeJQuery.ts, 8, 7)) +>PromiseBase : Symbol(PromiseBase, Decl(awaitedTypeJQuery.ts, 2, 48)) +>ARF : Symbol(ARF, Decl(awaitedTypeJQuery.ts, 89, 9)) +>AJF : Symbol(AJF, Decl(awaitedTypeJQuery.ts, 89, 21)) +>ANF : Symbol(ANF, Decl(awaitedTypeJQuery.ts, 89, 34)) + + BRF, BJF, BNF, +>BRF : Symbol(BRF, Decl(awaitedTypeJQuery.ts, 89, 47)) +>BJF : Symbol(BJF, Decl(awaitedTypeJQuery.ts, 90, 20)) +>BNF : Symbol(BNF, Decl(awaitedTypeJQuery.ts, 90, 33)) + + CRF, CJF, CNF, +>CRF : Symbol(CRF, Decl(awaitedTypeJQuery.ts, 90, 46)) +>CJF : Symbol(CJF, Decl(awaitedTypeJQuery.ts, 91, 20)) +>CNF : Symbol(CNF, Decl(awaitedTypeJQuery.ts, 91, 33)) + + RRF, RJF, RNF> | Thenable | ARF, +>RRF : Symbol(RRF, Decl(awaitedTypeJQuery.ts, 91, 46)) +>RJF : Symbol(RJF, Decl(awaitedTypeJQuery.ts, 92, 20)) +>RNF : Symbol(RNF, Decl(awaitedTypeJQuery.ts, 92, 33)) +>Thenable : Symbol(Thenable, Decl(awaitedTypeJQuery.ts, 0, 0)) +>ARF : Symbol(ARF, Decl(awaitedTypeJQuery.ts, 89, 9)) +>ARF : Symbol(ARF, Decl(awaitedTypeJQuery.ts, 89, 9)) + + progressFilter?: null): PromiseBaseprogressFilter : Symbol(progressFilter, Decl(awaitedTypeJQuery.ts, 97, 53)) +>PromiseBase : Symbol(PromiseBase, Decl(awaitedTypeJQuery.ts, 2, 48)) +>ARF : Symbol(ARF, Decl(awaitedTypeJQuery.ts, 89, 9)) +>AJF : Symbol(AJF, Decl(awaitedTypeJQuery.ts, 89, 21)) +>ANF : Symbol(ANF, Decl(awaitedTypeJQuery.ts, 89, 34)) + + BRF, BJF, BNF, +>BRF : Symbol(BRF, Decl(awaitedTypeJQuery.ts, 89, 47)) +>BJF : Symbol(BJF, Decl(awaitedTypeJQuery.ts, 90, 20)) +>BNF : Symbol(BNF, Decl(awaitedTypeJQuery.ts, 90, 33)) + + CRF, CJF, CNF, +>CRF : Symbol(CRF, Decl(awaitedTypeJQuery.ts, 90, 46)) +>CJF : Symbol(CJF, Decl(awaitedTypeJQuery.ts, 91, 20)) +>CNF : Symbol(CNF, Decl(awaitedTypeJQuery.ts, 91, 33)) + + RRF, RJF, RNF>; +>RRF : Symbol(RRF, Decl(awaitedTypeJQuery.ts, 91, 46)) +>RJF : Symbol(RJF, Decl(awaitedTypeJQuery.ts, 92, 20)) +>RNF : Symbol(RNF, Decl(awaitedTypeJQuery.ts, 92, 33)) + + thenthen : Symbol(PromiseBase.then, Decl(awaitedTypeJQuery.ts, 8, 17), Decl(awaitedTypeJQuery.ts, 35, 59), Decl(awaitedTypeJQuery.ts, 55, 41), Decl(awaitedTypeJQuery.ts, 68, 23), Decl(awaitedTypeJQuery.ts, 88, 41) ... and 1 more) +>ARD : Symbol(ARD, Decl(awaitedTypeJQuery.ts, 102, 9)) +>AJD : Symbol(AJD, Decl(awaitedTypeJQuery.ts, 102, 21)) +>AND : Symbol(AND, Decl(awaitedTypeJQuery.ts, 102, 34)) + + BRD = never, BJD = never, BND = never, +>BRD : Symbol(BRD, Decl(awaitedTypeJQuery.ts, 102, 47)) +>BJD : Symbol(BJD, Decl(awaitedTypeJQuery.ts, 103, 20)) +>BND : Symbol(BND, Decl(awaitedTypeJQuery.ts, 103, 33)) + + CRD = never, CJD = never, CND = never, +>CRD : Symbol(CRD, Decl(awaitedTypeJQuery.ts, 103, 46)) +>CJD : Symbol(CJD, Decl(awaitedTypeJQuery.ts, 104, 20)) +>CND : Symbol(CND, Decl(awaitedTypeJQuery.ts, 104, 33)) + + RRD = never, RJD = never, RND = never>( +>RRD : Symbol(RRD, Decl(awaitedTypeJQuery.ts, 104, 46)) +>RJD : Symbol(RJD, Decl(awaitedTypeJQuery.ts, 105, 20)) +>RND : Symbol(RND, Decl(awaitedTypeJQuery.ts, 105, 33)) + + doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => PromiseBasedoneFilter : Symbol(doneFilter, Decl(awaitedTypeJQuery.ts, 105, 47)) +>t : Symbol(t, Decl(awaitedTypeJQuery.ts, 106, 25)) +>TR : Symbol(TR, Decl(awaitedTypeJQuery.ts, 5, 22)) +>u : Symbol(u, Decl(awaitedTypeJQuery.ts, 106, 31)) +>UR : Symbol(UR, Decl(awaitedTypeJQuery.ts, 5, 33)) +>v : Symbol(v, Decl(awaitedTypeJQuery.ts, 106, 38)) +>VR : Symbol(VR, Decl(awaitedTypeJQuery.ts, 6, 15)) +>s : Symbol(s, Decl(awaitedTypeJQuery.ts, 106, 45)) +>SR : Symbol(SR, Decl(awaitedTypeJQuery.ts, 7, 15)) +>PromiseBase : Symbol(PromiseBase, Decl(awaitedTypeJQuery.ts, 2, 48)) +>ARD : Symbol(ARD, Decl(awaitedTypeJQuery.ts, 102, 9)) +>AJD : Symbol(AJD, Decl(awaitedTypeJQuery.ts, 102, 21)) +>AND : Symbol(AND, Decl(awaitedTypeJQuery.ts, 102, 34)) + + BRD, BJD, BND, +>BRD : Symbol(BRD, Decl(awaitedTypeJQuery.ts, 102, 47)) +>BJD : Symbol(BJD, Decl(awaitedTypeJQuery.ts, 103, 20)) +>BND : Symbol(BND, Decl(awaitedTypeJQuery.ts, 103, 33)) + + CRD, CJD, CND, +>CRD : Symbol(CRD, Decl(awaitedTypeJQuery.ts, 103, 46)) +>CJD : Symbol(CJD, Decl(awaitedTypeJQuery.ts, 104, 20)) +>CND : Symbol(CND, Decl(awaitedTypeJQuery.ts, 104, 33)) + + RRD, RJD, RND> | Thenable | ARD, +>RRD : Symbol(RRD, Decl(awaitedTypeJQuery.ts, 104, 46)) +>RJD : Symbol(RJD, Decl(awaitedTypeJQuery.ts, 105, 20)) +>RND : Symbol(RND, Decl(awaitedTypeJQuery.ts, 105, 33)) +>Thenable : Symbol(Thenable, Decl(awaitedTypeJQuery.ts, 0, 0)) +>ARD : Symbol(ARD, Decl(awaitedTypeJQuery.ts, 102, 9)) +>ARD : Symbol(ARD, Decl(awaitedTypeJQuery.ts, 102, 9)) + + failFilter?: null, +>failFilter : Symbol(failFilter, Decl(awaitedTypeJQuery.ts, 109, 53)) + + progressFilter?: null): PromiseBaseprogressFilter : Symbol(progressFilter, Decl(awaitedTypeJQuery.ts, 110, 30)) +>PromiseBase : Symbol(PromiseBase, Decl(awaitedTypeJQuery.ts, 2, 48)) +>ARD : Symbol(ARD, Decl(awaitedTypeJQuery.ts, 102, 9)) +>AJD : Symbol(AJD, Decl(awaitedTypeJQuery.ts, 102, 21)) +>AND : Symbol(AND, Decl(awaitedTypeJQuery.ts, 102, 34)) + + BRD, BJD, BND, +>BRD : Symbol(BRD, Decl(awaitedTypeJQuery.ts, 102, 47)) +>BJD : Symbol(BJD, Decl(awaitedTypeJQuery.ts, 103, 20)) +>BND : Symbol(BND, Decl(awaitedTypeJQuery.ts, 103, 33)) + + CRD, CJD, CND, +>CRD : Symbol(CRD, Decl(awaitedTypeJQuery.ts, 103, 46)) +>CJD : Symbol(CJD, Decl(awaitedTypeJQuery.ts, 104, 20)) +>CND : Symbol(CND, Decl(awaitedTypeJQuery.ts, 104, 33)) + + RRD, RJD, RND>; +>RRD : Symbol(RRD, Decl(awaitedTypeJQuery.ts, 104, 46)) +>RJD : Symbol(RJD, Decl(awaitedTypeJQuery.ts, 105, 20)) +>RND : Symbol(RND, Decl(awaitedTypeJQuery.ts, 105, 33)) +} + +interface Promise3Promise3 : Symbol(Promise3, Decl(awaitedTypeJQuery.ts, 115, 1)) +>TR : Symbol(TR, Decl(awaitedTypeJQuery.ts, 117, 19)) +>TJ : Symbol(TJ, Decl(awaitedTypeJQuery.ts, 117, 22)) +>TN : Symbol(TN, Decl(awaitedTypeJQuery.ts, 117, 26)) + + UR, UJ, UN, +>UR : Symbol(UR, Decl(awaitedTypeJQuery.ts, 117, 30)) +>UJ : Symbol(UJ, Decl(awaitedTypeJQuery.ts, 118, 7)) +>UN : Symbol(UN, Decl(awaitedTypeJQuery.ts, 118, 11)) + + VR, VJ, VN> extends PromiseBaseVR : Symbol(VR, Decl(awaitedTypeJQuery.ts, 118, 15)) +>VJ : Symbol(VJ, Decl(awaitedTypeJQuery.ts, 119, 7)) +>VN : Symbol(VN, Decl(awaitedTypeJQuery.ts, 119, 11)) +>PromiseBase : Symbol(PromiseBase, Decl(awaitedTypeJQuery.ts, 2, 48)) +>TR : Symbol(TR, Decl(awaitedTypeJQuery.ts, 117, 19)) +>TJ : Symbol(TJ, Decl(awaitedTypeJQuery.ts, 117, 22)) +>TN : Symbol(TN, Decl(awaitedTypeJQuery.ts, 117, 26)) + + UR, UJ, UN, +>UR : Symbol(UR, Decl(awaitedTypeJQuery.ts, 117, 30)) +>UJ : Symbol(UJ, Decl(awaitedTypeJQuery.ts, 118, 7)) +>UN : Symbol(UN, Decl(awaitedTypeJQuery.ts, 118, 11)) + + VR, VJ, VN, +>VR : Symbol(VR, Decl(awaitedTypeJQuery.ts, 118, 15)) +>VJ : Symbol(VJ, Decl(awaitedTypeJQuery.ts, 119, 7)) +>VN : Symbol(VN, Decl(awaitedTypeJQuery.ts, 119, 11)) + + never, never, never> { } + +type T = Awaited>; // string +>T : Symbol(T, Decl(awaitedTypeJQuery.ts, 122, 28)) +>Awaited : Symbol(Awaited, Decl(lib.es5.d.ts, --, --)) +>Promise3 : Symbol(Promise3, Decl(awaitedTypeJQuery.ts, 115, 1)) +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>Element : Symbol(Element, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) + diff --git a/tests/baselines/reference/awaitedTypeJQuery.types b/tests/baselines/reference/awaitedTypeJQuery.types new file mode 100644 index 00000000000..365344c9ab7 --- /dev/null +++ b/tests/baselines/reference/awaitedTypeJQuery.types @@ -0,0 +1,224 @@ +=== tests/cases/compiler/awaitedTypeJQuery.ts === +/// + +interface Thenable extends PromiseLike { } + +// JQuery's Promise type +interface PromiseBase { + thenthen : { (doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => PromiseBase | Thenable | ARD, failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => PromiseBase | Thenable | ARF, progressFilter: (t: TN, u: UN, v: VN, ...s: SN[]) => PromiseBase | Thenable | ANP): PromiseBase; (doneFilter: null, failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => ARF | PromiseBase | Thenable, progressFilter: (t: TN, u: UN, v: VN, ...s: SN[]) => ANP | PromiseBase | Thenable): PromiseBase; (doneFilter: null, failFilter: null, progressFilter?: (t: TN, u: UN, v: VN, ...s: SN[]) => ANP | PromiseBase | Thenable): PromiseBase; (doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => ARD | PromiseBase | Thenable, failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => ARF | PromiseBase | Thenable, progressFilter?: null): PromiseBase; (doneFilter: null, failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => ARF | PromiseBase | Thenable, progressFilter?: null): PromiseBase; (doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => ARD | PromiseBase | Thenable, failFilter?: null, progressFilter?: null): PromiseBase; } + + BRD = never, BJD = never, BND = never, + CRD = never, CJD = never, CND = never, + RRD = never, RJD = never, RND = never, + ARF = never, AJF = never, ANF = never, + BRF = never, BJF = never, BNF = never, + CRF = never, CJF = never, CNF = never, + RRF = never, RJF = never, RNF = never, + ARP = never, AJP = never, ANP = never, + BRP = never, BJP = never, BNP = never, + CRP = never, CJP = never, CNP = never, + RRP = never, RJP = never, RNP = never>( + doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => PromiseBasedoneFilter : (t: TR, u: UR, v: VR, ...s: SR[]) => PromiseBase | Thenable | ARD +>t : TR +>u : UR +>v : VR +>s : SR[] + + BRD, BJD, BND, + CRD, CJD, CND, + RRD, RJD, RND> | Thenable | ARD, + failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => PromiseBasefailFilter : (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => PromiseBase | Thenable | ARF +>t : TJ +>u : UJ +>v : VJ +>s : SJ[] + + BRF, BJF, BNF, + CRF, CJF, CNF, + RRF, RJF, RNF> | Thenable | ARF, + progressFilter: (t: TN, u: UN, v: VN, ...s: SN[]) => PromiseBaseprogressFilter : (t: TN, u: UN, v: VN, ...s: SN[]) => PromiseBase | Thenable | ANP +>t : TN +>u : UN +>v : VN +>s : SN[] + + BRP, BJP, BNP, + CRP, CJP, CNP, + RRP, RJP, RNP> | Thenable | ANP): PromiseBase; + thenthen : { (doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => ARD | PromiseBase | Thenable, failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => ARF | PromiseBase | Thenable, progressFilter: (t: TN, u: UN, v: VN, ...s: SN[]) => ANP | PromiseBase | Thenable): PromiseBase; (doneFilter: null, failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => PromiseBase | Thenable | ARF, progressFilter: (t: TN, u: UN, v: VN, ...s: SN[]) => PromiseBase | Thenable | ANP): PromiseBase; (doneFilter: null, failFilter: null, progressFilter?: (t: TN, u: UN, v: VN, ...s: SN[]) => ANP | PromiseBase | Thenable): PromiseBase; (doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => ARD | PromiseBase | Thenable, failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => ARF | PromiseBase | Thenable, progressFilter?: null): PromiseBase; (doneFilter: null, failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => ARF | PromiseBase | Thenable, progressFilter?: null): PromiseBase; (doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => ARD | PromiseBase | Thenable, failFilter?: null, progressFilter?: null): PromiseBase; } + + BRF = never, BJF = never, BNF = never, + CRF = never, CJF = never, CNF = never, + RRF = never, RJF = never, RNF = never, + ARP = never, AJP = never, ANP = never, + BRP = never, BJP = never, BNP = never, + CRP = never, CJP = never, CNP = never, + RRP = never, RJP = never, RNP = never>( + doneFilter: null, +>doneFilter : null +>null : null + + failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => PromiseBasefailFilter : (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => PromiseBase | Thenable | ARF +>t : TJ +>u : UJ +>v : VJ +>s : SJ[] + + BRF, BJF, BNF, + CRF, CJF, CNF, + RRF, RJF, RNF> | Thenable | ARF, + progressFilter: (t: TN, u: UN, v: VN, ...s: SN[]) => PromiseBaseprogressFilter : (t: TN, u: UN, v: VN, ...s: SN[]) => PromiseBase | Thenable | ANP +>t : TN +>u : UN +>v : VN +>s : SN[] + + BRP, BJP, BNP, + CRP, CJP, CNP, + RRP, RJP, RNP> | Thenable | ANP): PromiseBase; + thenthen : { (doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => ARD | PromiseBase | Thenable, failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => ARF | PromiseBase | Thenable, progressFilter: (t: TN, u: UN, v: VN, ...s: SN[]) => ANP | PromiseBase | Thenable): PromiseBase; (doneFilter: null, failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => ARF | PromiseBase | Thenable, progressFilter: (t: TN, u: UN, v: VN, ...s: SN[]) => ANP | PromiseBase | Thenable): PromiseBase; (doneFilter: null, failFilter: null, progressFilter?: (t: TN, u: UN, v: VN, ...s: SN[]) => PromiseBase | Thenable | ANP): PromiseBase; (doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => ARD | PromiseBase | Thenable, failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => ARF | PromiseBase | Thenable, progressFilter?: null): PromiseBase; (doneFilter: null, failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => ARF | PromiseBase | Thenable, progressFilter?: null): PromiseBase; (doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => ARD | PromiseBase | Thenable, failFilter?: null, progressFilter?: null): PromiseBase; } + + BRP = never, BJP = never, BNP = never, + CRP = never, CJP = never, CNP = never, + RRP = never, RJP = never, RNP = never>( + doneFilter: null, +>doneFilter : null +>null : null + + failFilter: null, +>failFilter : null +>null : null + + progressFilter?: (t: TN, u: UN, v: VN, ...s: SN[]) => PromiseBaseprogressFilter : (t: TN, u: UN, v: VN, ...s: SN[]) => PromiseBase | Thenable | ANP +>t : TN +>u : UN +>v : VN +>s : SN[] + + BRP, BJP, BNP, + CRP, CJP, CNP, + RRP, RJP, RNP> | Thenable | ANP): PromiseBase; + thenthen : { (doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => ARD | PromiseBase | Thenable, failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => ARF | PromiseBase | Thenable, progressFilter: (t: TN, u: UN, v: VN, ...s: SN[]) => ANP | PromiseBase | Thenable): PromiseBase; (doneFilter: null, failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => ARF | PromiseBase | Thenable, progressFilter: (t: TN, u: UN, v: VN, ...s: SN[]) => ANP | PromiseBase | Thenable): PromiseBase; (doneFilter: null, failFilter: null, progressFilter?: (t: TN, u: UN, v: VN, ...s: SN[]) => ANP | PromiseBase | Thenable): PromiseBase; (doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => PromiseBase | Thenable | ARD, failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => PromiseBase | Thenable | ARF, progressFilter?: null): PromiseBase; (doneFilter: null, failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => ARF | PromiseBase | Thenable, progressFilter?: null): PromiseBase; (doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => ARD | PromiseBase | Thenable, failFilter?: null, progressFilter?: null): PromiseBase; } + + BRD = never, BJD = never, BND = never, + CRD = never, CJD = never, CND = never, + RRD = never, RJD = never, RND = never, + ARF = never, AJF = never, ANF = never, + BRF = never, BJF = never, BNF = never, + CRF = never, CJF = never, CNF = never, + RRF = never, RJF = never, RNF = never>( + doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => PromiseBasedoneFilter : (t: TR, u: UR, v: VR, ...s: SR[]) => PromiseBase | Thenable | ARD +>t : TR +>u : UR +>v : VR +>s : SR[] + + BRD, BJD, BND, + CRD, CJD, CND, + RRD, RJD, RND> | Thenable | ARD, + failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => PromiseBasefailFilter : (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => PromiseBase | Thenable | ARF +>t : TJ +>u : UJ +>v : VJ +>s : SJ[] + + BRF, BJF, BNF, + CRF, CJF, CNF, + RRF, RJF, RNF> | Thenable | ARF, + progressFilter?: null): PromiseBaseprogressFilter : null +>null : null + + BRD | BRF, BJD | BJF, BND | BNF, + CRD | CRF, CJD | CJF, CND | CNF, + RRD | RRF, RJD | RJF, RND | RNF>; + thenthen : { (doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => ARD | PromiseBase | Thenable, failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => ARF | PromiseBase | Thenable, progressFilter: (t: TN, u: UN, v: VN, ...s: SN[]) => ANP | PromiseBase | Thenable): PromiseBase; (doneFilter: null, failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => ARF | PromiseBase | Thenable, progressFilter: (t: TN, u: UN, v: VN, ...s: SN[]) => ANP | PromiseBase | Thenable): PromiseBase; (doneFilter: null, failFilter: null, progressFilter?: (t: TN, u: UN, v: VN, ...s: SN[]) => ANP | PromiseBase | Thenable): PromiseBase; (doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => ARD | PromiseBase | Thenable, failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => ARF | PromiseBase | Thenable, progressFilter?: null): PromiseBase; (doneFilter: null, failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => PromiseBase | Thenable | ARF, progressFilter?: null): PromiseBase; (doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => ARD | PromiseBase | Thenable, failFilter?: null, progressFilter?: null): PromiseBase; } + + BRF = never, BJF = never, BNF = never, + CRF = never, CJF = never, CNF = never, + RRF = never, RJF = never, RNF = never>( + doneFilter: null, +>doneFilter : null +>null : null + + failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => PromiseBasefailFilter : (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => PromiseBase | Thenable | ARF +>t : TJ +>u : UJ +>v : VJ +>s : SJ[] + + BRF, BJF, BNF, + CRF, CJF, CNF, + RRF, RJF, RNF> | Thenable | ARF, + progressFilter?: null): PromiseBaseprogressFilter : null +>null : null + + BRF, BJF, BNF, + CRF, CJF, CNF, + RRF, RJF, RNF>; + thenthen : { (doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => ARD | PromiseBase | Thenable, failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => ARF | PromiseBase | Thenable, progressFilter: (t: TN, u: UN, v: VN, ...s: SN[]) => ANP | PromiseBase | Thenable): PromiseBase; (doneFilter: null, failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => ARF | PromiseBase | Thenable, progressFilter: (t: TN, u: UN, v: VN, ...s: SN[]) => ANP | PromiseBase | Thenable): PromiseBase; (doneFilter: null, failFilter: null, progressFilter?: (t: TN, u: UN, v: VN, ...s: SN[]) => ANP | PromiseBase | Thenable): PromiseBase; (doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => ARD | PromiseBase | Thenable, failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => ARF | PromiseBase | Thenable, progressFilter?: null): PromiseBase; (doneFilter: null, failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => ARF | PromiseBase | Thenable, progressFilter?: null): PromiseBase; (doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => PromiseBase | Thenable | ARD, failFilter?: null, progressFilter?: null): PromiseBase; } + + BRD = never, BJD = never, BND = never, + CRD = never, CJD = never, CND = never, + RRD = never, RJD = never, RND = never>( + doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => PromiseBasedoneFilter : (t: TR, u: UR, v: VR, ...s: SR[]) => PromiseBase | Thenable | ARD +>t : TR +>u : UR +>v : VR +>s : SR[] + + BRD, BJD, BND, + CRD, CJD, CND, + RRD, RJD, RND> | Thenable | ARD, + failFilter?: null, +>failFilter : null +>null : null + + progressFilter?: null): PromiseBaseprogressFilter : null +>null : null + + BRD, BJD, BND, + CRD, CJD, CND, + RRD, RJD, RND>; +} + +interface Promise3 extends PromiseBase { } + +type T = Awaited>; // string +>T : string + diff --git a/tests/baselines/reference/awaitedTypeStrictNull.types b/tests/baselines/reference/awaitedTypeStrictNull.types index e3deb7d2247..da9a0a92f50 100644 --- a/tests/baselines/reference/awaitedTypeStrictNull.types +++ b/tests/baselines/reference/awaitedTypeStrictNull.types @@ -116,7 +116,7 @@ async function main() { >Promise.all : { (values: Iterable>): Promise[]>; (values: T): Promise<{ -readonly [P in keyof T]: Awaited; }>; } >Promise : PromiseConstructor >all : { (values: Iterable>): Promise[]>; (values: T): Promise<{ -readonly [P in keyof T]: Awaited; }>; } ->[ MaybePromise(1), MaybePromise('2'), MaybePromise(true), ] : [number | Promise<1> | PromiseLike<1>, string | Promise<"2"> | PromiseLike<"2">, MaybePromise] +>[ MaybePromise(1), MaybePromise('2'), MaybePromise(true), ] : [number | Promise<1> | PromiseLike<1>, string | Promise<"2"> | PromiseLike<"2">, true | Promise | PromiseLike] MaybePromise(1), >MaybePromise(1) : 1 | Promise<1> | PromiseLike<1> diff --git a/tests/baselines/reference/bestChoiceType.symbols b/tests/baselines/reference/bestChoiceType.symbols index c7732890347..00723562233 100644 --- a/tests/baselines/reference/bestChoiceType.symbols +++ b/tests/baselines/reference/bestChoiceType.symbols @@ -2,14 +2,12 @@ // Repro from #10041 (''.match(/ /) || []).map(s => s.toLowerCase()); ->(''.match(/ /) || []).map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --)) +>(''.match(/ /) || []).map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >''.match : Symbol(String.match, Decl(lib.es5.d.ts, --, --)) >match : Symbol(String.match, Decl(lib.es5.d.ts, --, --)) ->map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --)) +>map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >s : Symbol(s, Decl(bestChoiceType.ts, 2, 26)) ->s.toLowerCase : Symbol(String.toLowerCase, Decl(lib.es5.d.ts, --, --)) >s : Symbol(s, Decl(bestChoiceType.ts, 2, 26)) ->toLowerCase : Symbol(String.toLowerCase, Decl(lib.es5.d.ts, --, --)) // Similar cases @@ -27,13 +25,11 @@ function f1() { let z = y.map(s => s.toLowerCase()); >z : Symbol(z, Decl(bestChoiceType.ts, 9, 7)) ->y.map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --)) +>y.map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >y : Symbol(y, Decl(bestChoiceType.ts, 8, 7)) ->map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --)) +>map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >s : Symbol(s, Decl(bestChoiceType.ts, 9, 18)) ->s.toLowerCase : Symbol(String.toLowerCase, Decl(lib.es5.d.ts, --, --)) >s : Symbol(s, Decl(bestChoiceType.ts, 9, 18)) ->toLowerCase : Symbol(String.toLowerCase, Decl(lib.es5.d.ts, --, --)) } function f2() { @@ -51,12 +47,10 @@ function f2() { let z = y.map(s => s.toLowerCase()); >z : Symbol(z, Decl(bestChoiceType.ts, 15, 7)) ->y.map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --)) +>y.map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >y : Symbol(y, Decl(bestChoiceType.ts, 14, 7)) ->map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --)) +>map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >s : Symbol(s, Decl(bestChoiceType.ts, 15, 18)) ->s.toLowerCase : Symbol(String.toLowerCase, Decl(lib.es5.d.ts, --, --)) >s : Symbol(s, Decl(bestChoiceType.ts, 15, 18)) ->toLowerCase : Symbol(String.toLowerCase, Decl(lib.es5.d.ts, --, --)) } diff --git a/tests/baselines/reference/bestChoiceType.types b/tests/baselines/reference/bestChoiceType.types index 49997d1e273..05d77542f6c 100644 --- a/tests/baselines/reference/bestChoiceType.types +++ b/tests/baselines/reference/bestChoiceType.types @@ -2,23 +2,23 @@ // Repro from #10041 (''.match(/ /) || []).map(s => s.toLowerCase()); ->(''.match(/ /) || []).map(s => s.toLowerCase()) : string[] ->(''.match(/ /) || []).map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[] ->(''.match(/ /) || []) : RegExpMatchArray ->''.match(/ /) || [] : RegExpMatchArray +>(''.match(/ /) || []).map(s => s.toLowerCase()) : any[] +>(''.match(/ /) || []).map : ((callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: never, index: number, array: never[]) => U, thisArg?: any) => U[]) +>(''.match(/ /) || []) : RegExpMatchArray | [] +>''.match(/ /) || [] : RegExpMatchArray | [] >''.match(/ /) : RegExpMatchArray | null >''.match : (regexp: string | RegExp) => RegExpMatchArray | null >'' : "" >match : (regexp: string | RegExp) => RegExpMatchArray | null >/ / : RegExp ->[] : never[] ->map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[] ->s => s.toLowerCase() : (s: string) => string ->s : string ->s.toLowerCase() : string ->s.toLowerCase : () => string ->s : string ->toLowerCase : () => string +>[] : [] +>map : ((callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: never, index: number, array: never[]) => U, thisArg?: any) => U[]) +>s => s.toLowerCase() : (s: any) => any +>s : any +>s.toLowerCase() : any +>s.toLowerCase : any +>s : any +>toLowerCase : any // Similar cases @@ -34,23 +34,23 @@ function f1() { >/ / : RegExp let y = x || []; ->y : RegExpMatchArray ->x || [] : RegExpMatchArray +>y : RegExpMatchArray | [] +>x || [] : RegExpMatchArray | [] >x : RegExpMatchArray | null ->[] : never[] +>[] : [] let z = y.map(s => s.toLowerCase()); ->z : string[] ->y.map(s => s.toLowerCase()) : string[] ->y.map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[] ->y : RegExpMatchArray ->map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[] ->s => s.toLowerCase() : (s: string) => string ->s : string ->s.toLowerCase() : string ->s.toLowerCase : () => string ->s : string ->toLowerCase : () => string +>z : any[] +>y.map(s => s.toLowerCase()) : any[] +>y.map : ((callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: never, index: number, array: never[]) => U, thisArg?: any) => U[]) +>y : RegExpMatchArray | [] +>map : ((callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: never, index: number, array: never[]) => U, thisArg?: any) => U[]) +>s => s.toLowerCase() : (s: any) => any +>s : any +>s.toLowerCase() : any +>s.toLowerCase : any +>s : any +>toLowerCase : any } function f2() { @@ -65,23 +65,23 @@ function f2() { >/ / : RegExp let y = x ? x : []; ->y : RegExpMatchArray ->x ? x : [] : RegExpMatchArray +>y : RegExpMatchArray | never[] +>x ? x : [] : RegExpMatchArray | never[] >x : RegExpMatchArray | null >x : RegExpMatchArray >[] : never[] let z = y.map(s => s.toLowerCase()); ->z : string[] ->y.map(s => s.toLowerCase()) : string[] ->y.map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[] ->y : RegExpMatchArray ->map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[] ->s => s.toLowerCase() : (s: string) => string ->s : string ->s.toLowerCase() : string ->s.toLowerCase : () => string ->s : string ->toLowerCase : () => string +>z : any[] +>y.map(s => s.toLowerCase()) : any[] +>y.map : ((callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: never, index: number, array: never[]) => U, thisArg?: any) => U[]) +>y : RegExpMatchArray | never[] +>map : ((callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: never, index: number, array: never[]) => U, thisArg?: any) => U[]) +>s => s.toLowerCase() : (s: any) => any +>s : any +>s.toLowerCase() : any +>s.toLowerCase : any +>s : any +>toLowerCase : any } diff --git a/tests/baselines/reference/bestCommonTypeOfTuple.types b/tests/baselines/reference/bestCommonTypeOfTuple.types index 4cc64a25505..adc1934498a 100644 --- a/tests/baselines/reference/bestCommonTypeOfTuple.types +++ b/tests/baselines/reference/bestCommonTypeOfTuple.types @@ -46,9 +46,9 @@ t1 = [f1, f2]; >f2 : (x: number) => number t2 = [E1.one, E2.two]; ->t2 = [E1.one, E2.two] : [E1.one, E2.two] +>t2 = [E1.one, E2.two] : [E1, E2] >t2 : [E1, E2] ->[E1.one, E2.two] : [E1.one, E2.two] +>[E1.one, E2.two] : [E1, E2] >E1.one : E1 >E1 : typeof E1 >one : E1 @@ -64,9 +64,9 @@ t3 = [5, undefined]; >undefined : undefined t4 = [E1.one, E2.two, 20]; ->t4 = [E1.one, E2.two, 20] : [E1.one, E2.two, number] +>t4 = [E1.one, E2.two, 20] : [E1, E2, number] >t4 : [E1, E2, number] ->[E1.one, E2.two, 20] : [E1.one, E2.two, number] +>[E1.one, E2.two, 20] : [E1, E2, number] >E1.one : E1 >E1 : typeof E1 >one : E1 diff --git a/tests/baselines/reference/bigintWithoutLib.errors.txt b/tests/baselines/reference/bigintWithoutLib.errors.txt index c41d3fb4461..4ff8527c2a4 100644 --- a/tests/baselines/reference/bigintWithoutLib.errors.txt +++ b/tests/baselines/reference/bigintWithoutLib.errors.txt @@ -11,13 +11,13 @@ tests/cases/compiler/bigintWithoutLib.ts(13,38): error TS2554: Expected 0 argume tests/cases/compiler/bigintWithoutLib.ts(14,38): error TS2554: Expected 0 arguments, but got 2. tests/cases/compiler/bigintWithoutLib.ts(15,38): error TS2554: Expected 0 arguments, but got 2. tests/cases/compiler/bigintWithoutLib.ts(18,18): error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. -tests/cases/compiler/bigintWithoutLib.ts(18,38): error TS2552: Cannot find name 'BigInt64Array'. Did you mean 'bigIntArray'? -tests/cases/compiler/bigintWithoutLib.ts(19,19): error TS2552: Cannot find name 'BigInt64Array'. Did you mean 'bigIntArray'? -tests/cases/compiler/bigintWithoutLib.ts(20,19): error TS2552: Cannot find name 'BigInt64Array'. Did you mean 'bigIntArray'? +tests/cases/compiler/bigintWithoutLib.ts(18,38): error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +tests/cases/compiler/bigintWithoutLib.ts(19,19): error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +tests/cases/compiler/bigintWithoutLib.ts(20,19): error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. tests/cases/compiler/bigintWithoutLib.ts(20,34): error TS2737: BigInt literals are not available when targeting lower than ES2020. tests/cases/compiler/bigintWithoutLib.ts(20,38): error TS2737: BigInt literals are not available when targeting lower than ES2020. tests/cases/compiler/bigintWithoutLib.ts(20,42): error TS2737: BigInt literals are not available when targeting lower than ES2020. -tests/cases/compiler/bigintWithoutLib.ts(21,19): error TS2552: Cannot find name 'BigInt64Array'. Did you mean 'bigIntArray'? +tests/cases/compiler/bigintWithoutLib.ts(21,19): error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. tests/cases/compiler/bigintWithoutLib.ts(22,19): error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. tests/cases/compiler/bigintWithoutLib.ts(23,19): error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. tests/cases/compiler/bigintWithoutLib.ts(24,19): error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. @@ -97,16 +97,13 @@ tests/cases/compiler/bigintWithoutLib.ts(56,36): error TS2345: Argument of type ~~~~~~~~~~~~~ !!! error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. ~~~~~~~~~~~~~ -!!! error TS2552: Cannot find name 'BigInt64Array'. Did you mean 'bigIntArray'? -!!! related TS2728 tests/cases/compiler/bigintWithoutLib.ts:18:5: 'bigIntArray' is declared here. +!!! error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. bigIntArray = new BigInt64Array(10); ~~~~~~~~~~~~~ -!!! error TS2552: Cannot find name 'BigInt64Array'. Did you mean 'bigIntArray'? -!!! related TS2728 tests/cases/compiler/bigintWithoutLib.ts:18:5: 'bigIntArray' is declared here. +!!! error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. bigIntArray = new BigInt64Array([1n, 2n, 3n]); ~~~~~~~~~~~~~ -!!! error TS2552: Cannot find name 'BigInt64Array'. Did you mean 'bigIntArray'? -!!! related TS2728 tests/cases/compiler/bigintWithoutLib.ts:18:5: 'bigIntArray' is declared here. +!!! error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. ~~ !!! error TS2737: BigInt literals are not available when targeting lower than ES2020. ~~ @@ -115,8 +112,7 @@ tests/cases/compiler/bigintWithoutLib.ts(56,36): error TS2345: Argument of type !!! error TS2737: BigInt literals are not available when targeting lower than ES2020. bigIntArray = new BigInt64Array([1, 2, 3]); ~~~~~~~~~~~~~ -!!! error TS2552: Cannot find name 'BigInt64Array'. Did you mean 'bigIntArray'? -!!! related TS2728 tests/cases/compiler/bigintWithoutLib.ts:18:5: 'bigIntArray' is declared here. +!!! error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. bigIntArray = new BigInt64Array(new ArrayBuffer(80)); ~~~~~~~~~~~~~ !!! error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. diff --git a/tests/baselines/reference/caseInsensitiveFileSystemWithCapsImportTypeDeclarations.js b/tests/baselines/reference/caseInsensitiveFileSystemWithCapsImportTypeDeclarations.js index 5222e062817..55752266f16 100644 --- a/tests/baselines/reference/caseInsensitiveFileSystemWithCapsImportTypeDeclarations.js +++ b/tests/baselines/reference/caseInsensitiveFileSystemWithCapsImportTypeDeclarations.js @@ -48,15 +48,15 @@ exports.Broken = Broken; //// [types.d.ts] -export declare type Merge = T & U; +export type Merge = T & U; //// [type-a.d.ts] -export declare type TypeA = { +export type TypeA = { a: string; }; //// [type-b.d.ts] import { Merge } from './types'; import { TypeA } from './type-a'; -export declare type TypeB = Merge; //// [index.d.ts] diff --git a/tests/baselines/reference/castingTuple.types b/tests/baselines/reference/castingTuple.types index 0c20dadc2be..199c28149c7 100644 --- a/tests/baselines/reference/castingTuple.types +++ b/tests/baselines/reference/castingTuple.types @@ -90,7 +90,7 @@ var eleFromCDA2 = classCDATuple[5]; // C | D | A var t10: [E1, E2] = [E1.one, E2.one]; >t10 : [E1, E2] ->[E1.one, E2.one] : [E1.one, E2.one] +>[E1.one, E2.one] : [E1, E2] >E1.one : E1 >E1 : typeof E1 >one : E1 diff --git a/tests/baselines/reference/checkIndexConstraintOfJavascriptClassExpression.errors.txt b/tests/baselines/reference/checkIndexConstraintOfJavascriptClassExpression.errors.txt index 0b65f4fd3be..c2defbf8699 100644 --- a/tests/baselines/reference/checkIndexConstraintOfJavascriptClassExpression.errors.txt +++ b/tests/baselines/reference/checkIndexConstraintOfJavascriptClassExpression.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/weird.js(1,1): error TS2304: Cannot find name 'someFunction'. +tests/cases/compiler/weird.js(1,1): error TS2552: Cannot find name 'someFunction'. Did you mean 'Function'? tests/cases/compiler/weird.js(1,23): error TS7006: Parameter 'BaseClass' implicitly has an 'any' type. tests/cases/compiler/weird.js(9,17): error TS7006: Parameter 'error' implicitly has an 'any' type. @@ -6,7 +6,8 @@ tests/cases/compiler/weird.js(9,17): error TS7006: Parameter 'error' implicitly ==== tests/cases/compiler/weird.js (3 errors) ==== someFunction(function(BaseClass) { ~~~~~~~~~~~~ -!!! error TS2304: Cannot find name 'someFunction'. +!!! error TS2552: Cannot find name 'someFunction'. Did you mean 'Function'? +!!! related TS2728 /.ts/lib.es5.d.ts:318:13: 'Function' is declared here. ~~~~~~~~~ !!! error TS7006: Parameter 'BaseClass' implicitly has an 'any' type. 'use strict'; diff --git a/tests/baselines/reference/checkJsdocTypeTag5.types b/tests/baselines/reference/checkJsdocTypeTag5.types index 816f86a80a6..c2dca1475da 100644 --- a/tests/baselines/reference/checkJsdocTypeTag5.types +++ b/tests/baselines/reference/checkJsdocTypeTag5.types @@ -44,7 +44,7 @@ var k = function (x) { return x } /** @typedef {(x: 'hi' | 'bye') => 0 | 1 | 2} Argle */ /** @type {Argle} */ function blargle(s) { ->blargle : (s: "hi" | "bye") => 0 | 1 | 2 +>blargle : (x: 'hi' | 'bye') => 0 | 1 | 2 >s : "hi" | "bye" return 0; @@ -55,7 +55,7 @@ function blargle(s) { var zeroonetwo = blargle('hi') >zeroonetwo : 0 | 1 | 2 >blargle('hi') : 0 | 1 | 2 ->blargle : (s: "hi" | "bye") => 0 | 1 | 2 +>blargle : (x: "hi" | "bye") => 0 | 1 | 2 >'hi' : "hi" /** @typedef {{(s: string): 0 | 1; (b: boolean): 2 | 3 }} Gioconda */ diff --git a/tests/baselines/reference/checkJsdocTypeTag6.errors.txt b/tests/baselines/reference/checkJsdocTypeTag6.errors.txt index 1106e60da75..605ddad823a 100644 --- a/tests/baselines/reference/checkJsdocTypeTag6.errors.txt +++ b/tests/baselines/reference/checkJsdocTypeTag6.errors.txt @@ -1,9 +1,13 @@ tests/cases/conformance/jsdoc/test.js(1,12): error TS8030: The type of a function declaration must match the function's signature. tests/cases/conformance/jsdoc/test.js(7,5): error TS2322: Type '(prop: any) => void' is not assignable to type '{ prop: string; }'. tests/cases/conformance/jsdoc/test.js(10,12): error TS8030: The type of a function declaration must match the function's signature. +tests/cases/conformance/jsdoc/test.js(23,12): error TS8030: The type of a function declaration must match the function's signature. +tests/cases/conformance/jsdoc/test.js(27,7): error TS2322: Type '(more: any) => void' is not assignable to type '() => void'. +tests/cases/conformance/jsdoc/test.js(30,7): error TS2322: Type '(more: any) => void' is not assignable to type '() => void'. +tests/cases/conformance/jsdoc/test.js(34,3): error TS2322: Type '(more: any) => void' is not assignable to type '() => void'. -==== tests/cases/conformance/jsdoc/test.js (3 errors) ==== +==== tests/cases/conformance/jsdoc/test.js (7 errors) ==== /** @type {number} */ ~~~~~~ !!! error TS8030: The type of a function declaration must match the function's signature. @@ -28,4 +32,29 @@ tests/cases/conformance/jsdoc/test.js(10,12): error TS8030: The type of a functi // TODO: Should be an error since signature doesn't match. /** @type {(a: number, b: number, c: number) => number} */ function add3(a, b) { return a + b; } + + // Confirm initializers are compatible. + // They can't have more parameters than the type/context. + + /** @type {() => void} */ + ~~~~~~~~~~ +!!! error TS8030: The type of a function declaration must match the function's signature. + function funcWithMoreParameters(more) {} // error + + /** @type {() => void} */ + const variableWithMoreParameters = function (more) {}; // error + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2322: Type '(more: any) => void' is not assignable to type '() => void'. + + /** @type {() => void} */ + const arrowWithMoreParameters = (more) => {}; // error + ~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2322: Type '(more: any) => void' is not assignable to type '() => void'. + + ({ + /** @type {() => void} */ + methodWithMoreParameters(more) {}, // error + ~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2322: Type '(more: any) => void' is not assignable to type '() => void'. + }); \ No newline at end of file diff --git a/tests/baselines/reference/checkJsdocTypeTag6.symbols b/tests/baselines/reference/checkJsdocTypeTag6.symbols index b7ddd9f289b..e87b49f2a1d 100644 --- a/tests/baselines/reference/checkJsdocTypeTag6.symbols +++ b/tests/baselines/reference/checkJsdocTypeTag6.symbols @@ -37,3 +37,29 @@ function add3(a, b) { return a + b; } >a : Symbol(a, Decl(test.js, 17, 14)) >b : Symbol(b, Decl(test.js, 17, 16)) +// Confirm initializers are compatible. +// They can't have more parameters than the type/context. + +/** @type {() => void} */ +function funcWithMoreParameters(more) {} // error +>funcWithMoreParameters : Symbol(funcWithMoreParameters, Decl(test.js, 17, 37)) +>more : Symbol(more, Decl(test.js, 23, 32)) + +/** @type {() => void} */ +const variableWithMoreParameters = function (more) {}; // error +>variableWithMoreParameters : Symbol(variableWithMoreParameters, Decl(test.js, 26, 5)) +>more : Symbol(more, Decl(test.js, 26, 45)) + +/** @type {() => void} */ +const arrowWithMoreParameters = (more) => {}; // error +>arrowWithMoreParameters : Symbol(arrowWithMoreParameters, Decl(test.js, 29, 5)) +>more : Symbol(more, Decl(test.js, 29, 33)) + +({ + /** @type {() => void} */ + methodWithMoreParameters(more) {}, // error +>methodWithMoreParameters : Symbol(methodWithMoreParameters, Decl(test.js, 31, 2)) +>more : Symbol(more, Decl(test.js, 33, 27)) + +}); + diff --git a/tests/baselines/reference/checkJsdocTypeTag6.types b/tests/baselines/reference/checkJsdocTypeTag6.types index 16f22e1332b..3feb2222e29 100644 --- a/tests/baselines/reference/checkJsdocTypeTag6.types +++ b/tests/baselines/reference/checkJsdocTypeTag6.types @@ -16,7 +16,7 @@ var g = function (prop) { /** @type {(a: number) => number} */ function add1(a, b) { return a + b; } ->add1 : (a: number, b: any) => number +>add1 : (a: number) => number >a : number >b : any >a + b : any @@ -35,10 +35,41 @@ function add2(a, b) { return a + b; } // TODO: Should be an error since signature doesn't match. /** @type {(a: number, b: number, c: number) => number} */ function add3(a, b) { return a + b; } ->add3 : (a: number, b: number) => number +>add3 : (a: number, b: number, c: number) => number >a : number >b : number >a + b : number >a : number >b : number +// Confirm initializers are compatible. +// They can't have more parameters than the type/context. + +/** @type {() => void} */ +function funcWithMoreParameters(more) {} // error +>funcWithMoreParameters : () => void +>more : any + +/** @type {() => void} */ +const variableWithMoreParameters = function (more) {}; // error +>variableWithMoreParameters : () => void +>function (more) {} : (more: any) => void +>more : any + +/** @type {() => void} */ +const arrowWithMoreParameters = (more) => {}; // error +>arrowWithMoreParameters : () => void +>(more) => {} : (more: any) => void +>more : any + +({ +>({ /** @type {() => void} */ methodWithMoreParameters(more) {}, // error}) : { methodWithMoreParameters(): void; } +>{ /** @type {() => void} */ methodWithMoreParameters(more) {}, // error} : { methodWithMoreParameters(): void; } + + /** @type {() => void} */ + methodWithMoreParameters(more) {}, // error +>methodWithMoreParameters : (more: any) => void +>more : any + +}); + diff --git a/tests/baselines/reference/checkJsdocTypeTag7.symbols b/tests/baselines/reference/checkJsdocTypeTag7.symbols index 7013bb921a5..50b91e09845 100644 --- a/tests/baselines/reference/checkJsdocTypeTag7.symbols +++ b/tests/baselines/reference/checkJsdocTypeTag7.symbols @@ -11,5 +11,9 @@ class C { >foo : Symbol(C.foo, Decl(test.js, 4, 9)) >a : Symbol(a, Decl(test.js, 6, 8)) >b : Symbol(b, Decl(test.js, 6, 10)) + + /** @type {(optional?) => void} */ + methodWithOptionalParameters() {} +>methodWithOptionalParameters : Symbol(C.methodWithOptionalParameters, Decl(test.js, 6, 16)) } diff --git a/tests/baselines/reference/checkJsdocTypeTag7.types b/tests/baselines/reference/checkJsdocTypeTag7.types index f4aac580fee..990535c17e4 100644 --- a/tests/baselines/reference/checkJsdocTypeTag7.types +++ b/tests/baselines/reference/checkJsdocTypeTag7.types @@ -11,5 +11,9 @@ class C { >foo : (a: string, b: number) => void >a : string >b : number + + /** @type {(optional?) => void} */ + methodWithOptionalParameters() {} +>methodWithOptionalParameters : (optional?: any) => void } diff --git a/tests/baselines/reference/circularAccessorAnnotations.js b/tests/baselines/reference/circularAccessorAnnotations.js index 2cdb41d7fa2..c6309a60ecd 100644 --- a/tests/baselines/reference/circularAccessorAnnotations.js +++ b/tests/baselines/reference/circularAccessorAnnotations.js @@ -41,13 +41,13 @@ declare const c3: { get foo(): string; set foo(value: typeof c3.foo); }; -declare type T1 = { +type T1 = { get foo(): T1["foo"]; }; -declare type T2 = { +type T2 = { set foo(value: T2["foo"]); }; -declare type T3 = { +type T3 = { get foo(): string; set foo(value: T3["foo"]); }; diff --git a/tests/baselines/reference/circularBaseTypes.js b/tests/baselines/reference/circularBaseTypes.js index 1c5f77c1b2e..e495dbdab9a 100644 --- a/tests/baselines/reference/circularBaseTypes.js +++ b/tests/baselines/reference/circularBaseTypes.js @@ -20,10 +20,10 @@ function f(m) { //// [circularBaseTypes.d.ts] -declare type M = { +type M = { value: T; }; interface M2 extends M { } -declare type M3 = M2[keyof M2]; +type M3 = M2[keyof M2]; declare function f(m: M3): any; diff --git a/tests/baselines/reference/circularContextualReturnType.symbols b/tests/baselines/reference/circularContextualReturnType.symbols index b313077c45e..207daf487cc 100644 --- a/tests/baselines/reference/circularContextualReturnType.symbols +++ b/tests/baselines/reference/circularContextualReturnType.symbols @@ -2,17 +2,17 @@ // Repro from #17711 Object.freeze({ ->Object.freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>Object.freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) foo() { >foo : Symbol(foo, Decl(circularContextualReturnType.ts, 2, 15)) return Object.freeze('a'); ->Object.freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>Object.freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) }, }); diff --git a/tests/baselines/reference/circularContextualReturnType.types b/tests/baselines/reference/circularContextualReturnType.types index 883cf67ba57..faaaee956da 100644 --- a/tests/baselines/reference/circularContextualReturnType.types +++ b/tests/baselines/reference/circularContextualReturnType.types @@ -3,9 +3,9 @@ Object.freeze({ >Object.freeze({ foo() { return Object.freeze('a'); },}) : Readonly<{ foo(): string; }> ->Object.freeze : { (a: T[]): readonly T[]; (f: T): T; (o: T): Readonly; (o: T): Readonly; } +>Object.freeze : { (f: T): T; (o: T): Readonly; (o: T): Readonly; } >Object : ObjectConstructor ->freeze : { (a: T[]): readonly T[]; (f: T): T; (o: T): Readonly; (o: T): Readonly; } +>freeze : { (f: T): T; (o: T): Readonly; (o: T): Readonly; } >{ foo() { return Object.freeze('a'); },} : { foo(): string; } foo() { @@ -13,9 +13,9 @@ Object.freeze({ return Object.freeze('a'); >Object.freeze('a') : string ->Object.freeze : { (a: T[]): readonly T[]; (f: T): T; (o: T): Readonly; (o: T): Readonly; } +>Object.freeze : { (f: T): T; (o: T): Readonly; (o: T): Readonly; } >Object : ObjectConstructor ->freeze : { (a: T[]): readonly T[]; (f: T): T; (o: T): Readonly; (o: T): Readonly; } +>freeze : { (f: T): T; (o: T): Readonly; (o: T): Readonly; } >'a' : "a" }, diff --git a/tests/baselines/reference/circularIndexedAccessErrors.js b/tests/baselines/reference/circularIndexedAccessErrors.js index 499d5b483e4..493ab4181f3 100644 --- a/tests/baselines/reference/circularIndexedAccessErrors.js +++ b/tests/baselines/reference/circularIndexedAccessErrors.js @@ -56,10 +56,10 @@ function foo() { //// [circularIndexedAccessErrors.d.ts] -declare type T1 = { +type T1 = { x: T1["x"]; }; -declare type T2 = { +type T2 = { x: T2[K]; y: number; }; diff --git a/tests/baselines/reference/classMemberInitializerScoping2(target=es2017,usedefineforclassfields=false).errors.txt b/tests/baselines/reference/classMemberInitializerScoping2(target=es2017,usedefineforclassfields=false).errors.txt new file mode 100644 index 00000000000..d214ea13716 --- /dev/null +++ b/tests/baselines/reference/classMemberInitializerScoping2(target=es2017,usedefineforclassfields=false).errors.txt @@ -0,0 +1,12 @@ +tests/cases/compiler/classMemberInitializerScoping2.ts(3,9): error TS2301: Initializer of instance member variable 'p' cannot reference identifier 'x' declared in the constructor. + + +==== tests/cases/compiler/classMemberInitializerScoping2.ts (1 errors) ==== + const x = 1 + class C { + p = x + ~ +!!! error TS2301: Initializer of instance member variable 'p' cannot reference identifier 'x' declared in the constructor. + constructor(x: string) { } + } + \ No newline at end of file diff --git a/tests/baselines/reference/classMemberInitializerScoping2(target=es2017,usedefineforclassfields=false).js b/tests/baselines/reference/classMemberInitializerScoping2(target=es2017,usedefineforclassfields=false).js new file mode 100644 index 00000000000..9591c174fc9 --- /dev/null +++ b/tests/baselines/reference/classMemberInitializerScoping2(target=es2017,usedefineforclassfields=false).js @@ -0,0 +1,15 @@ +//// [classMemberInitializerScoping2.ts] +const x = 1 +class C { + p = x + constructor(x: string) { } +} + + +//// [classMemberInitializerScoping2.js] +const x = 1; +class C { + constructor(x) { + this.p = x; + } +} diff --git a/tests/baselines/reference/classMemberInitializerScoping2(target=es2017,usedefineforclassfields=false).symbols b/tests/baselines/reference/classMemberInitializerScoping2(target=es2017,usedefineforclassfields=false).symbols new file mode 100644 index 00000000000..78c02088261 --- /dev/null +++ b/tests/baselines/reference/classMemberInitializerScoping2(target=es2017,usedefineforclassfields=false).symbols @@ -0,0 +1,14 @@ +=== tests/cases/compiler/classMemberInitializerScoping2.ts === +const x = 1 +>x : Symbol(x, Decl(classMemberInitializerScoping2.ts, 0, 5)) + +class C { +>C : Symbol(C, Decl(classMemberInitializerScoping2.ts, 0, 11)) + + p = x +>p : Symbol(C.p, Decl(classMemberInitializerScoping2.ts, 1, 9)) + + constructor(x: string) { } +>x : Symbol(x, Decl(classMemberInitializerScoping2.ts, 3, 16)) +} + diff --git a/tests/baselines/reference/classMemberInitializerScoping2(target=es2017,usedefineforclassfields=false).types b/tests/baselines/reference/classMemberInitializerScoping2(target=es2017,usedefineforclassfields=false).types new file mode 100644 index 00000000000..20cff56773b --- /dev/null +++ b/tests/baselines/reference/classMemberInitializerScoping2(target=es2017,usedefineforclassfields=false).types @@ -0,0 +1,16 @@ +=== tests/cases/compiler/classMemberInitializerScoping2.ts === +const x = 1 +>x : 1 +>1 : 1 + +class C { +>C : C + + p = x +>p : any +>x : any + + constructor(x: string) { } +>x : string +} + diff --git a/tests/baselines/reference/classMemberInitializerScoping2(target=es2017,usedefineforclassfields=true).errors.txt b/tests/baselines/reference/classMemberInitializerScoping2(target=es2017,usedefineforclassfields=true).errors.txt new file mode 100644 index 00000000000..d214ea13716 --- /dev/null +++ b/tests/baselines/reference/classMemberInitializerScoping2(target=es2017,usedefineforclassfields=true).errors.txt @@ -0,0 +1,12 @@ +tests/cases/compiler/classMemberInitializerScoping2.ts(3,9): error TS2301: Initializer of instance member variable 'p' cannot reference identifier 'x' declared in the constructor. + + +==== tests/cases/compiler/classMemberInitializerScoping2.ts (1 errors) ==== + const x = 1 + class C { + p = x + ~ +!!! error TS2301: Initializer of instance member variable 'p' cannot reference identifier 'x' declared in the constructor. + constructor(x: string) { } + } + \ No newline at end of file diff --git a/tests/baselines/reference/classMemberInitializerScoping2(target=es2017,usedefineforclassfields=true).js b/tests/baselines/reference/classMemberInitializerScoping2(target=es2017,usedefineforclassfields=true).js new file mode 100644 index 00000000000..c2f4708c351 --- /dev/null +++ b/tests/baselines/reference/classMemberInitializerScoping2(target=es2017,usedefineforclassfields=true).js @@ -0,0 +1,20 @@ +//// [classMemberInitializerScoping2.ts] +const x = 1 +class C { + p = x + constructor(x: string) { } +} + + +//// [classMemberInitializerScoping2.js] +const x = 1; +class C { + constructor(x) { + Object.defineProperty(this, "p", { + enumerable: true, + configurable: true, + writable: true, + value: x + }); + } +} diff --git a/tests/baselines/reference/classMemberInitializerScoping2(target=es2017,usedefineforclassfields=true).symbols b/tests/baselines/reference/classMemberInitializerScoping2(target=es2017,usedefineforclassfields=true).symbols new file mode 100644 index 00000000000..78c02088261 --- /dev/null +++ b/tests/baselines/reference/classMemberInitializerScoping2(target=es2017,usedefineforclassfields=true).symbols @@ -0,0 +1,14 @@ +=== tests/cases/compiler/classMemberInitializerScoping2.ts === +const x = 1 +>x : Symbol(x, Decl(classMemberInitializerScoping2.ts, 0, 5)) + +class C { +>C : Symbol(C, Decl(classMemberInitializerScoping2.ts, 0, 11)) + + p = x +>p : Symbol(C.p, Decl(classMemberInitializerScoping2.ts, 1, 9)) + + constructor(x: string) { } +>x : Symbol(x, Decl(classMemberInitializerScoping2.ts, 3, 16)) +} + diff --git a/tests/baselines/reference/classMemberInitializerScoping2(target=es2017,usedefineforclassfields=true).types b/tests/baselines/reference/classMemberInitializerScoping2(target=es2017,usedefineforclassfields=true).types new file mode 100644 index 00000000000..20cff56773b --- /dev/null +++ b/tests/baselines/reference/classMemberInitializerScoping2(target=es2017,usedefineforclassfields=true).types @@ -0,0 +1,16 @@ +=== tests/cases/compiler/classMemberInitializerScoping2.ts === +const x = 1 +>x : 1 +>1 : 1 + +class C { +>C : C + + p = x +>p : any +>x : any + + constructor(x: string) { } +>x : string +} + diff --git a/tests/baselines/reference/classMemberInitializerScoping2(target=esnext,usedefineforclassfields=false).errors.txt b/tests/baselines/reference/classMemberInitializerScoping2(target=esnext,usedefineforclassfields=false).errors.txt new file mode 100644 index 00000000000..d214ea13716 --- /dev/null +++ b/tests/baselines/reference/classMemberInitializerScoping2(target=esnext,usedefineforclassfields=false).errors.txt @@ -0,0 +1,12 @@ +tests/cases/compiler/classMemberInitializerScoping2.ts(3,9): error TS2301: Initializer of instance member variable 'p' cannot reference identifier 'x' declared in the constructor. + + +==== tests/cases/compiler/classMemberInitializerScoping2.ts (1 errors) ==== + const x = 1 + class C { + p = x + ~ +!!! error TS2301: Initializer of instance member variable 'p' cannot reference identifier 'x' declared in the constructor. + constructor(x: string) { } + } + \ No newline at end of file diff --git a/tests/baselines/reference/classMemberInitializerScoping2(target=esnext,usedefineforclassfields=false).js b/tests/baselines/reference/classMemberInitializerScoping2(target=esnext,usedefineforclassfields=false).js new file mode 100644 index 00000000000..9591c174fc9 --- /dev/null +++ b/tests/baselines/reference/classMemberInitializerScoping2(target=esnext,usedefineforclassfields=false).js @@ -0,0 +1,15 @@ +//// [classMemberInitializerScoping2.ts] +const x = 1 +class C { + p = x + constructor(x: string) { } +} + + +//// [classMemberInitializerScoping2.js] +const x = 1; +class C { + constructor(x) { + this.p = x; + } +} diff --git a/tests/baselines/reference/classMemberInitializerScoping2(target=esnext,usedefineforclassfields=false).symbols b/tests/baselines/reference/classMemberInitializerScoping2(target=esnext,usedefineforclassfields=false).symbols new file mode 100644 index 00000000000..78c02088261 --- /dev/null +++ b/tests/baselines/reference/classMemberInitializerScoping2(target=esnext,usedefineforclassfields=false).symbols @@ -0,0 +1,14 @@ +=== tests/cases/compiler/classMemberInitializerScoping2.ts === +const x = 1 +>x : Symbol(x, Decl(classMemberInitializerScoping2.ts, 0, 5)) + +class C { +>C : Symbol(C, Decl(classMemberInitializerScoping2.ts, 0, 11)) + + p = x +>p : Symbol(C.p, Decl(classMemberInitializerScoping2.ts, 1, 9)) + + constructor(x: string) { } +>x : Symbol(x, Decl(classMemberInitializerScoping2.ts, 3, 16)) +} + diff --git a/tests/baselines/reference/classMemberInitializerScoping2(target=esnext,usedefineforclassfields=false).types b/tests/baselines/reference/classMemberInitializerScoping2(target=esnext,usedefineforclassfields=false).types new file mode 100644 index 00000000000..20cff56773b --- /dev/null +++ b/tests/baselines/reference/classMemberInitializerScoping2(target=esnext,usedefineforclassfields=false).types @@ -0,0 +1,16 @@ +=== tests/cases/compiler/classMemberInitializerScoping2.ts === +const x = 1 +>x : 1 +>1 : 1 + +class C { +>C : C + + p = x +>p : any +>x : any + + constructor(x: string) { } +>x : string +} + diff --git a/tests/baselines/reference/classMemberInitializerScoping2(target=esnext,usedefineforclassfields=true).js b/tests/baselines/reference/classMemberInitializerScoping2(target=esnext,usedefineforclassfields=true).js new file mode 100644 index 00000000000..2d008f66474 --- /dev/null +++ b/tests/baselines/reference/classMemberInitializerScoping2(target=esnext,usedefineforclassfields=true).js @@ -0,0 +1,14 @@ +//// [classMemberInitializerScoping2.ts] +const x = 1 +class C { + p = x + constructor(x: string) { } +} + + +//// [classMemberInitializerScoping2.js] +const x = 1; +class C { + p = x; + constructor(x) { } +} diff --git a/tests/baselines/reference/classMemberInitializerScoping2(target=esnext,usedefineforclassfields=true).symbols b/tests/baselines/reference/classMemberInitializerScoping2(target=esnext,usedefineforclassfields=true).symbols new file mode 100644 index 00000000000..cf486c1e6f1 --- /dev/null +++ b/tests/baselines/reference/classMemberInitializerScoping2(target=esnext,usedefineforclassfields=true).symbols @@ -0,0 +1,15 @@ +=== tests/cases/compiler/classMemberInitializerScoping2.ts === +const x = 1 +>x : Symbol(x, Decl(classMemberInitializerScoping2.ts, 0, 5)) + +class C { +>C : Symbol(C, Decl(classMemberInitializerScoping2.ts, 0, 11)) + + p = x +>p : Symbol(C.p, Decl(classMemberInitializerScoping2.ts, 1, 9)) +>x : Symbol(x, Decl(classMemberInitializerScoping2.ts, 0, 5)) + + constructor(x: string) { } +>x : Symbol(x, Decl(classMemberInitializerScoping2.ts, 3, 16)) +} + diff --git a/tests/baselines/reference/classMemberInitializerScoping2(target=esnext,usedefineforclassfields=true).types b/tests/baselines/reference/classMemberInitializerScoping2(target=esnext,usedefineforclassfields=true).types new file mode 100644 index 00000000000..9e045ca57e0 --- /dev/null +++ b/tests/baselines/reference/classMemberInitializerScoping2(target=esnext,usedefineforclassfields=true).types @@ -0,0 +1,16 @@ +=== tests/cases/compiler/classMemberInitializerScoping2.ts === +const x = 1 +>x : 1 +>1 : 1 + +class C { +>C : C + + p = x +>p : number +>x : 1 + + constructor(x: string) { } +>x : string +} + diff --git a/tests/baselines/reference/classPropInitializationInferenceWithElementAccess.symbols b/tests/baselines/reference/classPropInitializationInferenceWithElementAccess.symbols new file mode 100644 index 00000000000..d8916efa2bf --- /dev/null +++ b/tests/baselines/reference/classPropInitializationInferenceWithElementAccess.symbols @@ -0,0 +1,41 @@ +=== tests/cases/compiler/classPropInitializationInferenceWithElementAccess.ts === +// repro #49339 +export class Cls { +>Cls : Symbol(Cls, Decl(classPropInitializationInferenceWithElementAccess.ts, 0, 0)) + + x; +>x : Symbol(Cls.x, Decl(classPropInitializationInferenceWithElementAccess.ts, 1, 18)) + + y; +>y : Symbol(Cls.y, Decl(classPropInitializationInferenceWithElementAccess.ts, 2, 6)) + + z; +>z : Symbol(Cls.z, Decl(classPropInitializationInferenceWithElementAccess.ts, 3, 6)) + + 0; +>0 : Symbol(Cls[0], Decl(classPropInitializationInferenceWithElementAccess.ts, 4, 6)) + + constructor(seed: number) { +>seed : Symbol(seed, Decl(classPropInitializationInferenceWithElementAccess.ts, 8, 16)) + + this['x'] = [seed]; +>this : Symbol(Cls, Decl(classPropInitializationInferenceWithElementAccess.ts, 0, 0)) +>'x' : Symbol(Cls.x, Decl(classPropInitializationInferenceWithElementAccess.ts, 1, 18)) +>seed : Symbol(seed, Decl(classPropInitializationInferenceWithElementAccess.ts, 8, 16)) + + this['y'] = { seed }; +>this : Symbol(Cls, Decl(classPropInitializationInferenceWithElementAccess.ts, 0, 0)) +>'y' : Symbol(Cls.y, Decl(classPropInitializationInferenceWithElementAccess.ts, 2, 6)) +>seed : Symbol(seed, Decl(classPropInitializationInferenceWithElementAccess.ts, 10, 21)) + + this['z'] = `${seed}`; +>this : Symbol(Cls, Decl(classPropInitializationInferenceWithElementAccess.ts, 0, 0)) +>'z' : Symbol(Cls.z, Decl(classPropInitializationInferenceWithElementAccess.ts, 3, 6)) +>seed : Symbol(seed, Decl(classPropInitializationInferenceWithElementAccess.ts, 8, 16)) + + this[0] = [seed]; +>this : Symbol(Cls, Decl(classPropInitializationInferenceWithElementAccess.ts, 0, 0)) +>0 : Symbol(Cls[0], Decl(classPropInitializationInferenceWithElementAccess.ts, 4, 6)) +>seed : Symbol(seed, Decl(classPropInitializationInferenceWithElementAccess.ts, 8, 16)) + } +} diff --git a/tests/baselines/reference/classPropInitializationInferenceWithElementAccess.types b/tests/baselines/reference/classPropInitializationInferenceWithElementAccess.types new file mode 100644 index 00000000000..397394b2350 --- /dev/null +++ b/tests/baselines/reference/classPropInitializationInferenceWithElementAccess.types @@ -0,0 +1,53 @@ +=== tests/cases/compiler/classPropInitializationInferenceWithElementAccess.ts === +// repro #49339 +export class Cls { +>Cls : Cls + + x; +>x : number[] + + y; +>y : { seed: number; } + + z; +>z : string + + 0; +>0 : number[] + + constructor(seed: number) { +>seed : number + + this['x'] = [seed]; +>this['x'] = [seed] : number[] +>this['x'] : number[] +>this : this +>'x' : "x" +>[seed] : number[] +>seed : number + + this['y'] = { seed }; +>this['y'] = { seed } : { seed: number; } +>this['y'] : { seed: number; } +>this : this +>'y' : "y" +>{ seed } : { seed: number; } +>seed : number + + this['z'] = `${seed}`; +>this['z'] = `${seed}` : string +>this['z'] : string +>this : this +>'z' : "z" +>`${seed}` : string +>seed : number + + this[0] = [seed]; +>this[0] = [seed] : number[] +>this[0] : number[] +>this : this +>0 : 0 +>[seed] : number[] +>seed : number + } +} diff --git a/tests/baselines/reference/classStaticBlock23(target=es2022).symbols b/tests/baselines/reference/classStaticBlock23(target=es2022).symbols index 2e15bade3be..bbe48c4520b 100644 --- a/tests/baselines/reference/classStaticBlock23(target=es2022).symbols +++ b/tests/baselines/reference/classStaticBlock23(target=es2022).symbols @@ -4,9 +4,9 @@ const nums = [1, 2, 3].map(n => Promise.resolve(n)) >[1, 2, 3].map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --)) >map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --)) >n : Symbol(n, Decl(classStaticBlock23.ts, 0, 27)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >n : Symbol(n, Decl(classStaticBlock23.ts, 0, 27)) class C { diff --git a/tests/baselines/reference/classStaticBlock23(target=es2022).types b/tests/baselines/reference/classStaticBlock23(target=es2022).types index 421336fa087..f7d3d60be78 100644 --- a/tests/baselines/reference/classStaticBlock23(target=es2022).types +++ b/tests/baselines/reference/classStaticBlock23(target=es2022).types @@ -11,9 +11,9 @@ const nums = [1, 2, 3].map(n => Promise.resolve(n)) >n => Promise.resolve(n) : (n: number) => Promise >n : number >Promise.resolve(n) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >n : number class C { diff --git a/tests/baselines/reference/classStaticBlock23(target=esnext).symbols b/tests/baselines/reference/classStaticBlock23(target=esnext).symbols index 2e15bade3be..bbe48c4520b 100644 --- a/tests/baselines/reference/classStaticBlock23(target=esnext).symbols +++ b/tests/baselines/reference/classStaticBlock23(target=esnext).symbols @@ -4,9 +4,9 @@ const nums = [1, 2, 3].map(n => Promise.resolve(n)) >[1, 2, 3].map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --)) >map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --)) >n : Symbol(n, Decl(classStaticBlock23.ts, 0, 27)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >n : Symbol(n, Decl(classStaticBlock23.ts, 0, 27)) class C { diff --git a/tests/baselines/reference/classStaticBlock23(target=esnext).types b/tests/baselines/reference/classStaticBlock23(target=esnext).types index 421336fa087..f7d3d60be78 100644 --- a/tests/baselines/reference/classStaticBlock23(target=esnext).types +++ b/tests/baselines/reference/classStaticBlock23(target=esnext).types @@ -11,9 +11,9 @@ const nums = [1, 2, 3].map(n => Promise.resolve(n)) >n => Promise.resolve(n) : (n: number) => Promise >n : number >Promise.resolve(n) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >n : number class C { diff --git a/tests/baselines/reference/coAndContraVariantInferences.js b/tests/baselines/reference/coAndContraVariantInferences.js index e90343a44f2..a437d6de245 100644 --- a/tests/baselines/reference/coAndContraVariantInferences.js +++ b/tests/baselines/reference/coAndContraVariantInferences.js @@ -50,10 +50,10 @@ call(actionB, printFn); //// [coAndContraVariantInferences.d.ts] -declare type A = { +type A = { kind: 'a'; }; -declare type B = { +type B = { kind: 'b'; }; declare const a: A; diff --git a/tests/baselines/reference/commonMissingSemicolons.errors.txt b/tests/baselines/reference/commonMissingSemicolons.errors.txt index 15df55ec4aa..6e07e72bdac 100644 --- a/tests/baselines/reference/commonMissingSemicolons.errors.txt +++ b/tests/baselines/reference/commonMissingSemicolons.errors.txt @@ -39,7 +39,7 @@ tests/cases/compiler/commonMissingSemicolons.ts(26,18): error TS1003: Identifier tests/cases/compiler/commonMissingSemicolons.ts(27,1): error TS2304: Cannot find name 'functionMyFunction'. tests/cases/compiler/commonMissingSemicolons.ts(30,1): error TS1435: Unknown keyword or identifier. Did you mean 'interface'? tests/cases/compiler/commonMissingSemicolons.ts(30,1): error TS2304: Cannot find name 'interfaced'. -tests/cases/compiler/commonMissingSemicolons.ts(30,12): error TS1434: Unexpected keyword or identifier. +tests/cases/compiler/commonMissingSemicolons.ts(30,12): error TS1435: Unknown keyword or identifier. Did you mean 'interface'? tests/cases/compiler/commonMissingSemicolons.ts(30,12): error TS2304: Cannot find name 'myInterface2'. tests/cases/compiler/commonMissingSemicolons.ts(32,1): error TS2693: 'interface' only refers to a type, but is being used as a value here. tests/cases/compiler/commonMissingSemicolons.ts(32,11): error TS1438: Interface must be given a name. @@ -193,7 +193,7 @@ tests/cases/compiler/commonMissingSemicolons.ts(78,1): error TS1128: Declaration ~~~~~~~~~~ !!! error TS2304: Cannot find name 'interfaced'. ~~~~~~~~~~~~ -!!! error TS1434: Unexpected keyword or identifier. +!!! error TS1435: Unknown keyword or identifier. Did you mean 'interface'? ~~~~~~~~~~~~ !!! error TS2304: Cannot find name 'myInterface2'. interface interface { } diff --git a/tests/baselines/reference/computedPropertyNames45_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames45_ES5.errors.txt index dca0d5f5a16..4ee1e6ad441 100644 --- a/tests/baselines/reference/computedPropertyNames45_ES5.errors.txt +++ b/tests/baselines/reference/computedPropertyNames45_ES5.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES5.ts(5,9): error TS2411: Property '["get1"]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. +tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES5.ts(10,5): error TS2411: Property '["get1"]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES5.ts(11,9): error TS2411: Property '["set1"]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. @@ -8,13 +8,14 @@ tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES5.ts(11 class C { get ["get1"]() { return new Foo } - ~~~~~~~~ -!!! error TS2411: Property '["get1"]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. } class D extends C { // No error when the indexer is in a class more derived than the computed property [s: string]: Foo2; + ~~~~~~~~~~~~~~~~~~ +!!! error TS2411: Property '["get1"]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. +!!! related TS2728 tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES5.ts:5:9: '["get1"]' is declared here. set ["set1"](p: Foo) { } ~~~~~~~~ !!! error TS2411: Property '["set1"]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. diff --git a/tests/baselines/reference/computedPropertyNames45_ES6.errors.txt b/tests/baselines/reference/computedPropertyNames45_ES6.errors.txt index 5bd2d5caa4a..d25826ef8fb 100644 --- a/tests/baselines/reference/computedPropertyNames45_ES6.errors.txt +++ b/tests/baselines/reference/computedPropertyNames45_ES6.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES6.ts(5,9): error TS2411: Property '["get1"]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. +tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES6.ts(10,5): error TS2411: Property '["get1"]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES6.ts(11,9): error TS2411: Property '["set1"]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. @@ -8,13 +8,14 @@ tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES6.ts(11 class C { get ["get1"]() { return new Foo } - ~~~~~~~~ -!!! error TS2411: Property '["get1"]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. } class D extends C { // No error when the indexer is in a class more derived than the computed property [s: string]: Foo2; + ~~~~~~~~~~~~~~~~~~ +!!! error TS2411: Property '["get1"]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. +!!! related TS2728 tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES6.ts:5:9: '["get1"]' is declared here. set ["set1"](p: Foo) { } ~~~~~~~~ !!! error TS2411: Property '["set1"]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. diff --git a/tests/baselines/reference/conditionalTypes1.js b/tests/baselines/reference/conditionalTypes1.js index 7ce19ce17e7..156568ac3d4 100644 --- a/tests/baselines/reference/conditionalTypes1.js +++ b/tests/baselines/reference/conditionalTypes1.js @@ -460,19 +460,19 @@ assign(a, { o: 2, c: { 0: { a: 2, c: '213123' } } }); //// [conditionalTypes1.d.ts] -declare type T00 = Exclude<"a" | "b" | "c" | "d", "a" | "c" | "f">; -declare type T01 = Extract<"a" | "b" | "c" | "d", "a" | "c" | "f">; -declare type T02 = Exclude void), Function>; -declare type T03 = Extract void), Function>; -declare type T04 = NonNullable; -declare type T05 = NonNullable<(() => string) | string[] | null | undefined>; +type T00 = Exclude<"a" | "b" | "c" | "d", "a" | "c" | "f">; +type T01 = Extract<"a" | "b" | "c" | "d", "a" | "c" | "f">; +type T02 = Exclude void), Function>; +type T03 = Extract void), Function>; +type T04 = NonNullable; +type T05 = NonNullable<(() => string) | string[] | null | undefined>; declare function f1(x: T, y: NonNullable): void; declare function f2(x: T, y: NonNullable): void; declare function f3(x: Partial[keyof T], y: NonNullable[keyof T]>): void; declare function f4(x: T["x"], y: NonNullable): void; -declare type Options = { +type Options = { k: "a"; a: number; } | { @@ -482,26 +482,26 @@ declare type Options = { k: "c"; c: boolean; }; -declare type T10 = Exclude; -declare type T11 = Extract; -declare type T12 = Exclude; -declare type T13 = Extract; -declare type T14 = Exclude; -declare type T15 = Extract; declare function f5(p: K): Extract = Extract = Extract; -declare type T16 = OptionsOfKind<"a" | "b">; -declare type Select = Extract; +type Select = Extract; -declare type T17 = Select; -declare type TypeName = T extends string ? "string" : T extends number ? "number" : T extends boolean ? "boolean" : T extends undefined ? "undefined" : T extends Function ? "function" : "object"; -declare type T20 = TypeName void)>; -declare type T21 = TypeName; -declare type T22 = TypeName; -declare type T23 = TypeName<{}>; -declare type KnockoutObservable = { +type T17 = Select; +type TypeName = T extends string ? "string" : T extends number ? "number" : T extends boolean ? "boolean" : T extends undefined ? "undefined" : T extends Function ? "function" : "object"; +type T20 = TypeName void)>; +type T21 = TypeName; +type T22 = TypeName; +type T23 = TypeName<{}>; +type KnockoutObservable = { object: T; }; -declare type KnockoutObservableArray = { +type KnockoutObservableArray = { array: T; }; -declare type KnockedOut = T extends any[] ? KnockoutObservableArray : KnockoutObservable; -declare type KnockedOutObj = { +type KnockedOut = T extends any[] ? KnockoutObservableArray : KnockoutObservable; +type KnockedOutObj = { [P in keyof T]: KnockedOut; }; interface Item { @@ -539,139 +539,139 @@ interface Item { name: string; subitems: string[]; } -declare type KOItem = KnockedOutObj; +type KOItem = KnockedOutObj; interface Part { id: number; name: string; subparts: Part[]; updatePart(newName: string): void; } -declare type FunctionPropertyNames = { +type FunctionPropertyNames = { [K in keyof T]: T[K] extends Function ? K : never; }[keyof T]; -declare type FunctionProperties = Pick>; -declare type NonFunctionPropertyNames = { +type FunctionProperties = Pick>; +type NonFunctionPropertyNames = { [K in keyof T]: T[K] extends Function ? never : K; }[keyof T]; -declare type NonFunctionProperties = Pick>; -declare type T30 = FunctionProperties; -declare type T31 = NonFunctionProperties; +type NonFunctionProperties = Pick>; +type T30 = FunctionProperties; +type T31 = NonFunctionProperties; declare function f7(x: T, y: FunctionProperties, z: NonFunctionProperties): void; declare function f8(x: keyof T, y: FunctionPropertyNames, z: NonFunctionPropertyNames): void; -declare type DeepReadonly = T extends any[] ? DeepReadonlyArray : T extends object ? DeepReadonlyObject : T; +type DeepReadonly = T extends any[] ? DeepReadonlyArray : T extends object ? DeepReadonlyObject : T; interface DeepReadonlyArray extends ReadonlyArray> { } -declare type DeepReadonlyObject = { +type DeepReadonlyObject = { readonly [P in NonFunctionPropertyNames]: DeepReadonly; }; declare function f10(part: DeepReadonly): void; -declare type ZeroOf = T extends number ? 0 : T extends string ? "" : false; +type ZeroOf = T extends number ? 0 : T extends string ? "" : false; declare function zeroOf(value: T): ZeroOf; declare function f20(n: number, b: boolean, x: number | boolean, y: T): void; declare function f21(x: T, y: ZeroOf): void; -declare type T35 = T[]; -declare type T36 = T extends { +type T36 = T extends { a: string; } ? T extends { b: number; } ? T35 : never : never; -declare type T37 = T extends { +type T37 = T extends { b: number; } ? T extends { a: string; } ? T35 : never : never; -declare type T38 = [T] extends [{ +type T38 = [T] extends [{ a: string; }] ? [T] extends [{ b: number; }] ? T35 : never : never; -declare type Extends = T extends U ? true : false; -declare type If = C extends true ? T : F; -declare type Not = If; -declare type And = If; -declare type Or = If; -declare type IsString = Extends; -declare type Q1 = IsString; -declare type Q2 = IsString<"abc">; -declare type Q3 = IsString; -declare type Q4 = IsString; -declare type N1 = Not; -declare type N2 = Not; -declare type N3 = Not; -declare type A1 = And; -declare type A2 = And; -declare type A3 = And; -declare type A4 = And; -declare type A5 = And; -declare type A6 = And; -declare type A7 = And; -declare type A8 = And; -declare type A9 = And; -declare type O1 = Or; -declare type O2 = Or; -declare type O3 = Or; -declare type O4 = Or; -declare type O5 = Or; -declare type O6 = Or; -declare type O7 = Or; -declare type O8 = Or; -declare type O9 = Or; -declare type T40 = never extends never ? true : false; -declare type T41 = number extends never ? true : false; -declare type T42 = never extends number ? true : false; -declare type IsNever = [T] extends [never] ? true : false; -declare type T50 = IsNever; -declare type T51 = IsNever; -declare type T52 = IsNever; +type Extends = T extends U ? true : false; +type If = C extends true ? T : F; +type Not = If; +type And = If; +type Or = If; +type IsString = Extends; +type Q1 = IsString; +type Q2 = IsString<"abc">; +type Q3 = IsString; +type Q4 = IsString; +type N1 = Not; +type N2 = Not; +type N3 = Not; +type A1 = And; +type A2 = And; +type A3 = And; +type A4 = And; +type A5 = And; +type A6 = And; +type A7 = And; +type A8 = And; +type A9 = And; +type O1 = Or; +type O2 = Or; +type O3 = Or; +type O4 = Or; +type O5 = Or; +type O6 = Or; +type O7 = Or; +type O8 = Or; +type O9 = Or; +type T40 = never extends never ? true : false; +type T41 = number extends never ? true : false; +type T42 = never extends number ? true : false; +type IsNever = [T] extends [never] ? true : false; +type T50 = IsNever; +type T51 = IsNever; +type T52 = IsNever; declare function f22(x: T extends (infer U)[] ? U[] : never): void; declare function f23(x: T extends (infer U)[] ? U[] : never): void; -declare type Eq = T extends U ? U extends T ? true : false : false; -declare type T60 = Eq; -declare type T61 = Eq; -declare type T62 = Eq; -declare type T63 = Eq; -declare type Eq1 = Eq extends false ? false : true; -declare type T70 = Eq1; -declare type T71 = Eq1; -declare type T72 = Eq1; -declare type T73 = Eq1; -declare type Eq2 = Eq extends true ? true : false; -declare type T80 = Eq2; -declare type T81 = Eq2; -declare type T82 = Eq2; -declare type T83 = Eq2; -declare type Foo = T extends string ? boolean : number; -declare type Bar = T extends string ? boolean : number; +type Eq = T extends U ? U extends T ? true : false : false; +type T60 = Eq; +type T61 = Eq; +type T62 = Eq; +type T63 = Eq; +type Eq1 = Eq extends false ? false : true; +type T70 = Eq1; +type T71 = Eq1; +type T72 = Eq1; +type T73 = Eq1; +type Eq2 = Eq extends true ? true : false; +type T80 = Eq2; +type T81 = Eq2; +type T82 = Eq2; +type T83 = Eq2; +type Foo = T extends string ? boolean : number; +type Bar = T extends string ? boolean : number; declare const convert: (value: Foo) => Bar; -declare type Baz = Foo; +type Baz = Foo; declare const convert2: (value: Foo) => Foo; declare function f31(): void; declare function f32(): void; declare function f33(): void; -declare type T90 = T extends 0 ? 0 : () => 0; -declare type T91 = T extends 0 ? 0 : () => 0; +type T90 = T extends 0 ? 0 : () => 0; +type T91 = T extends 0 ? 0 : () => 0; declare const f40: (a: T90) => T91; declare const f41: (a: T91) => T90; -declare type T92 = T extends () => 0 ? () => 1 : () => 2; -declare type T93 = T extends () => 0 ? () => 1 : () => 2; +type T92 = T extends () => 0 ? () => 1 : () => 2; +type T93 = T extends () => 0 ? () => 1 : () => 2; declare const f42: (a: T92) => T93; declare const f43: (a: T93) => T92; -declare type T94 = T extends string ? true : 42; -declare type T95 = T extends string ? boolean : number; +type T94 = T extends string ? true : 42; +type T95 = T extends string ? boolean : number; declare const f44: (value: T94) => T95; declare const f45: (value: T95) => T94; declare function f50(): void; -declare type OldDiff = ({ +type OldDiff = ({ [P in T]: P; } & { [P in U]: never; } & { [x: string]: never; })[T]; -declare type NewDiff = T extends U ? never : T; +type NewDiff = T extends U ? never : T; interface A { a: 'a'; } @@ -683,16 +683,16 @@ interface B2 extends A { b: 'b'; c: NewDiff; } -declare type c1 = B1['c']; -declare type c2 = B2['c']; -declare type NonFooKeys1 = OldDiff; -declare type NonFooKeys2 = Exclude; -declare type Test1 = NonFooKeys1<{ +type c1 = B1['c']; +type c2 = B2['c']; +type NonFooKeys1 = OldDiff; +type NonFooKeys2 = Exclude; +type Test1 = NonFooKeys1<{ foo: 1; bar: 2; baz: 3; }>; -declare type Test2 = NonFooKeys2<{ +type Test2 = NonFooKeys2<{ foo: 1; bar: 2; baz: 3; @@ -703,13 +703,13 @@ interface Foo2 { interface Bar2 { bar: string; } -declare type FooBar = Foo2 | Bar2; +type FooBar = Foo2 | Bar2; declare interface ExtractFooBar { } -declare type Extracted = { +type Extracted = { [K in keyof Struct]: Struct[K] extends FooBar ? ExtractFooBar : Struct[K]; }; -declare type RecursivePartial = { +type RecursivePartial = { [P in keyof T]?: T[P] extends Array ? { [index: number]: RecursivePartial; } : T[P] extends object ? RecursivePartial : T[P]; @@ -723,5 +723,5 @@ declare var a: { c: string; }[]; }; -declare type Weird1 = ((a: U) => never) extends ((a: U) => never) ? never : never; -declare type Weird2 = ((a: U) => U) extends ((a: U) => infer T) ? T : never; +type Weird1 = ((a: U) => never) extends ((a: U) => never) ? never : never; +type Weird2 = ((a: U) => U) extends ((a: U) => infer T) ? T : never; diff --git a/tests/baselines/reference/conditionalTypes2.js b/tests/baselines/reference/conditionalTypes2.js index f775bf0564b..beeb2958e42 100644 --- a/tests/baselines/reference/conditionalTypes2.js +++ b/tests/baselines/reference/conditionalTypes2.js @@ -343,10 +343,10 @@ declare function getFunction(item: T): Extract; declare function f10(x: T): void; declare function f11(x: string | (() => string) | undefined): void; declare function f12(x: string | (() => string) | undefined): void; -declare type Foo = { +type Foo = { foo: string; }; -declare type Bar = { +type Bar = { bar: string; }; declare function fooBar(x: { @@ -357,7 +357,7 @@ declare function fooBat(x: { foo: string; bat: string; }): void; -declare type Extract2 = T extends U ? T extends V ? T : never : never; +type Extract2 = T extends U ? T extends V ? T : never : never; declare function f20(x: Extract, Bar>, y: Extract, z: Extract2): void; declare function f21(x: Extract, Bar>, y: Extract, z: Extract2): void; declare class Opt { @@ -381,79 +381,79 @@ interface B1 extends A1 { declare function toString1(value: object | Function): string; declare function toString2(value: Function): string; declare function foo(value: T): void; -declare type A = T extends object ? { +type A = T extends object ? { [Q in { [P in keyof T]: T[P] extends V ? P : P; }[keyof T]]: A; } : T extends V ? T : never; -declare type B = T extends object ? { +type B = T extends object ? { [Q in { [P in keyof T]: T[P] extends V ? P : P; }[keyof T]]: B; } : T extends V ? T : never; -declare type C = { +type C = { [Q in { [P in keyof T]: T[P] extends V ? P : P; }[keyof T]]: C; }; -declare type A2 = T extends object ? T extends any[] ? T : { +type A2 = T extends object ? T extends any[] ? T : { [Q in keyof T]: A2; } : T; -declare type B2 = T extends object ? T extends any[] ? T : { +type B2 = T extends object ? T extends any[] ? T : { [Q in keyof T]: B2; } : T; -declare type C2 = T extends object ? { +type C2 = T extends object ? { [Q in keyof T]: C2; } : T; -declare type MaybeTrue = true extends T["b"] ? "yes" : "no"; -declare type T0 = MaybeTrue<{ +type T0 = MaybeTrue<{ b: never; }>; -declare type T1 = MaybeTrue<{ +type T1 = MaybeTrue<{ b: false; }>; -declare type T2 = MaybeTrue<{ +type T2 = MaybeTrue<{ b: true; }>; -declare type T3 = MaybeTrue<{ +type T3 = MaybeTrue<{ b: boolean; }>; -declare type Union = 'a' | 'b'; -declare type Product = { +type Union = 'a' | 'b'; +type Product = { f1: A; f2: B; }; -declare type ProductUnion = Product<'a', 0> | Product<'b', 1>; -declare type UnionComplement = { +type ProductUnion = Product<'a', 0> | Product<'b', 1>; +type UnionComplement = { [K in Union]: Exclude; }; -declare type UCA = UnionComplement['a']; -declare type UCB = UnionComplement['b']; -declare type UnionComplementComplement = { +type UCA = UnionComplement['a']; +type UCB = UnionComplement['b']; +type UnionComplementComplement = { [K in Union]: Exclude>; }; -declare type UCCA = UnionComplementComplement['a']; -declare type UCCB = UnionComplementComplement['b']; -declare type ProductComplement = { +type UCCA = UnionComplementComplement['a']; +type UCCB = UnionComplementComplement['b']; +type ProductComplement = { [K in Union]: Exclude; }; -declare type PCA = ProductComplement['a']; -declare type PCB = ProductComplement['b']; -declare type ProductComplementComplement = { +type PCA = ProductComplement['a']; +type PCB = ProductComplement['b']; +type ProductComplementComplement = { [K in Union]: Exclude>; }; -declare type PCCA = ProductComplementComplement['a']; -declare type PCCB = ProductComplementComplement['b']; -declare type Hmm = U extends T ? { +type PCCA = ProductComplementComplement['a']; +type PCCB = ProductComplementComplement['b']; +type Hmm = U extends T ? { [K in keyof U]: number; } : never; -declare type What = Hmm<{}, { +type What = Hmm<{}, { a: string; }>; declare const w: What; @@ -462,7 +462,7 @@ declare function exportCommand(functionToCall: IExportCallback { (response: IRootResponse): void; } -declare type IRootResponse = TResponse extends IRecord ? IRecordResponse : IResponse; +type IRootResponse = TResponse extends IRecord ? IRecordResponse : IResponse; interface IRecord { readonly Id: string; } @@ -478,12 +478,12 @@ declare type GetPropertyNamesOfType = { declare type GetAllPropertiesOfType = Pick, RestrictToType>>; declare function ff(x: Foo3): void; declare function gg(f: (x: Foo3) => void): void; -declare type Foo3 = T extends number ? { +type Foo3 = T extends number ? { n: T; } : { x: T; }; -declare type Wat = { +type Wat = { x: { y: 0; z: 1; @@ -493,4 +493,4 @@ declare type Wat = { [P in K]: 0; }; } ? true : false; -declare type Huh = Wat<"y">; +type Huh = Wat<"y">; diff --git a/tests/baselines/reference/constAssertions.js b/tests/baselines/reference/constAssertions.js index 5e3b2b8b187..6b6fc108b04 100644 --- a/tests/baselines/reference/constAssertions.js +++ b/tests/baselines/reference/constAssertions.js @@ -304,9 +304,9 @@ declare const ts1: "foo-bar"; declare const ts2: "foo-1" | "foo-0"; declare const ts3: "top-left" | "top-right" | "bottom-left" | "bottom-right"; declare function ff3(x: 'foo' | 'bar', y: object): `foo${string}` | `bar${string}`; -declare type Action = "verify" | "write"; -declare type ContentMatch = "match" | "nonMatch"; -declare type Outcome = `${Action}_${ContentMatch}`; +type Action = "verify" | "write"; +type ContentMatch = "match" | "nonMatch"; +type Outcome = `${Action}_${ContentMatch}`; declare function ff4(verify: boolean, contentMatches: boolean): "verify_match" | "verify_nonMatch" | "write_match" | "write_nonMatch"; declare function ff5(verify: boolean, contentMatches: boolean): "verify_match" | "verify_nonMatch" | "write_match" | "write_nonMatch"; declare function accessorNames(propName: S): readonly [`get-${S}`, `set-${S}`]; diff --git a/tests/baselines/reference/constructorParametersInVariableDeclarations.errors.txt b/tests/baselines/reference/constructorParametersInVariableDeclarations.errors.txt index 3220a4cd87c..503b3917508 100644 --- a/tests/baselines/reference/constructorParametersInVariableDeclarations.errors.txt +++ b/tests/baselines/reference/constructorParametersInVariableDeclarations.errors.txt @@ -1,22 +1,22 @@ -tests/cases/compiler/constructorParametersInVariableDeclarations.ts(2,17): error TS2304: Cannot find name 'x'. -tests/cases/compiler/constructorParametersInVariableDeclarations.ts(3,22): error TS2304: Cannot find name 'x'. -tests/cases/compiler/constructorParametersInVariableDeclarations.ts(4,23): error TS2304: Cannot find name 'x'. -tests/cases/compiler/constructorParametersInVariableDeclarations.ts(10,17): error TS2304: Cannot find name 'x'. -tests/cases/compiler/constructorParametersInVariableDeclarations.ts(11,22): error TS2304: Cannot find name 'x'. -tests/cases/compiler/constructorParametersInVariableDeclarations.ts(12,23): error TS2304: Cannot find name 'x'. +tests/cases/compiler/constructorParametersInVariableDeclarations.ts(2,17): error TS2301: Initializer of instance member variable 'a' cannot reference identifier 'x' declared in the constructor. +tests/cases/compiler/constructorParametersInVariableDeclarations.ts(3,22): error TS2301: Initializer of instance member variable 'b' cannot reference identifier 'x' declared in the constructor. +tests/cases/compiler/constructorParametersInVariableDeclarations.ts(4,23): error TS2301: Initializer of instance member variable 'c' cannot reference identifier 'x' declared in the constructor. +tests/cases/compiler/constructorParametersInVariableDeclarations.ts(10,17): error TS2301: Initializer of instance member variable 'a' cannot reference identifier 'x' declared in the constructor. +tests/cases/compiler/constructorParametersInVariableDeclarations.ts(11,22): error TS2301: Initializer of instance member variable 'b' cannot reference identifier 'x' declared in the constructor. +tests/cases/compiler/constructorParametersInVariableDeclarations.ts(12,23): error TS2301: Initializer of instance member variable 'c' cannot reference identifier 'x' declared in the constructor. ==== tests/cases/compiler/constructorParametersInVariableDeclarations.ts (6 errors) ==== class A { private a = x; ~ -!!! error TS2304: Cannot find name 'x'. +!!! error TS2301: Initializer of instance member variable 'a' cannot reference identifier 'x' declared in the constructor. private b = { p: x }; ~ -!!! error TS2304: Cannot find name 'x'. +!!! error TS2301: Initializer of instance member variable 'b' cannot reference identifier 'x' declared in the constructor. private c = () => x; ~ -!!! error TS2304: Cannot find name 'x'. +!!! error TS2301: Initializer of instance member variable 'c' cannot reference identifier 'x' declared in the constructor. constructor(x: number) { } } @@ -24,13 +24,13 @@ tests/cases/compiler/constructorParametersInVariableDeclarations.ts(12,23): erro class B { private a = x; ~ -!!! error TS2304: Cannot find name 'x'. +!!! error TS2301: Initializer of instance member variable 'a' cannot reference identifier 'x' declared in the constructor. private b = { p: x }; ~ -!!! error TS2304: Cannot find name 'x'. +!!! error TS2301: Initializer of instance member variable 'b' cannot reference identifier 'x' declared in the constructor. private c = () => x; ~ -!!! error TS2304: Cannot find name 'x'. +!!! error TS2301: Initializer of instance member variable 'c' cannot reference identifier 'x' declared in the constructor. constructor() { var x = 1; } diff --git a/tests/baselines/reference/contextualSignatureInObjectFreeze.symbols b/tests/baselines/reference/contextualSignatureInObjectFreeze.symbols index 68e9d81c600..a9a164bf77e 100644 --- a/tests/baselines/reference/contextualSignatureInObjectFreeze.symbols +++ b/tests/baselines/reference/contextualSignatureInObjectFreeze.symbols @@ -2,9 +2,9 @@ // #49101 Object.freeze({ ->Object.freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>Object.freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) f: function () { } >f : Symbol(f, Decl(contextualSignatureInObjectFreeze.ts, 2, 15)) diff --git a/tests/baselines/reference/contextualSignatureInObjectFreeze.types b/tests/baselines/reference/contextualSignatureInObjectFreeze.types index a2d8418cbf0..5c847f60c1e 100644 --- a/tests/baselines/reference/contextualSignatureInObjectFreeze.types +++ b/tests/baselines/reference/contextualSignatureInObjectFreeze.types @@ -3,9 +3,9 @@ Object.freeze({ >Object.freeze({ f: function () { }}) : Readonly<{ f: () => void; }> ->Object.freeze : { (a: T[]): readonly T[]; (f: T): T; (o: T): Readonly; (o: T): Readonly; } +>Object.freeze : { (f: T): T; (o: T): Readonly; (o: T): Readonly; } >Object : ObjectConstructor ->freeze : { (a: T[]): readonly T[]; (f: T): T; (o: T): Readonly; (o: T): Readonly; } +>freeze : { (f: T): T; (o: T): Readonly; (o: T): Readonly; } >{ f: function () { }} : { f: () => void; } f: function () { } diff --git a/tests/baselines/reference/contextualTypeFunctionObjectPropertyIntersection.js b/tests/baselines/reference/contextualTypeFunctionObjectPropertyIntersection.js deleted file mode 100644 index 65213deade4..00000000000 --- a/tests/baselines/reference/contextualTypeFunctionObjectPropertyIntersection.js +++ /dev/null @@ -1,42 +0,0 @@ -//// [contextualTypeFunctionObjectPropertyIntersection.ts] -type Action = (ev: TEvent) => void; - -interface MachineConfig { - schema: { - events: TEvent; - }; - on?: { - [K in TEvent["type"]]?: Action; - } & { - "*"?: Action; - }; -} - -declare function createMachine( - config: MachineConfig -): void; - -createMachine({ - schema: { - events: {} as { type: "FOO" } | { type: "BAR" }, - }, - on: { - FOO: (ev) => { - ev.type; // should be 'FOO' - }, - }, -}); - - -//// [contextualTypeFunctionObjectPropertyIntersection.js] -"use strict"; -createMachine({ - schema: { - events: {} - }, - on: { - FOO: function (ev) { - ev.type; // should be 'FOO' - } - } -}); diff --git a/tests/baselines/reference/contextualTypeFunctionObjectPropertyIntersection.symbols b/tests/baselines/reference/contextualTypeFunctionObjectPropertyIntersection.symbols deleted file mode 100644 index 4690985350a..00000000000 --- a/tests/baselines/reference/contextualTypeFunctionObjectPropertyIntersection.symbols +++ /dev/null @@ -1,82 +0,0 @@ -=== tests/cases/compiler/contextualTypeFunctionObjectPropertyIntersection.ts === -type Action = (ev: TEvent) => void; ->Action : Symbol(Action, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 0, 0)) ->TEvent : Symbol(TEvent, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 0, 12)) ->type : Symbol(type, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 0, 28)) ->ev : Symbol(ev, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 0, 48)) ->TEvent : Symbol(TEvent, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 0, 12)) - -interface MachineConfig { ->MachineConfig : Symbol(MachineConfig, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 0, 68)) ->TEvent : Symbol(TEvent, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 2, 24)) ->type : Symbol(type, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 2, 40)) - - schema: { ->schema : Symbol(MachineConfig.schema, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 2, 58)) - - events: TEvent; ->events : Symbol(events, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 3, 11)) ->TEvent : Symbol(TEvent, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 2, 24)) - - }; - on?: { ->on : Symbol(MachineConfig.on, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 5, 4)) - - [K in TEvent["type"]]?: Action; ->K : Symbol(K, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 7, 5)) ->TEvent : Symbol(TEvent, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 2, 24)) ->Action : Symbol(Action, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 0, 0)) ->TEvent : Symbol(TEvent, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 2, 24)) ->type : Symbol(type, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 7, 51)) ->K : Symbol(K, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 7, 5)) ->TEvent : Symbol(TEvent, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 2, 24)) - - } & { - "*"?: Action; ->"*" : Symbol("*", Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 8, 7)) ->Action : Symbol(Action, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 0, 0)) ->TEvent : Symbol(TEvent, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 2, 24)) - - }; -} - -declare function createMachine( ->createMachine : Symbol(createMachine, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 11, 1)) ->TEvent : Symbol(TEvent, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 13, 31)) ->type : Symbol(type, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 13, 47)) - - config: MachineConfig ->config : Symbol(config, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 13, 64)) ->MachineConfig : Symbol(MachineConfig, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 0, 68)) ->TEvent : Symbol(TEvent, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 13, 31)) - -): void; - -createMachine({ ->createMachine : Symbol(createMachine, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 11, 1)) - - schema: { ->schema : Symbol(schema, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 17, 15)) - - events: {} as { type: "FOO" } | { type: "BAR" }, ->events : Symbol(events, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 18, 11)) ->type : Symbol(type, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 19, 19)) ->type : Symbol(type, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 19, 37)) - - }, - on: { ->on : Symbol(on, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 20, 4)) - - FOO: (ev) => { ->FOO : Symbol(FOO, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 21, 7)) ->ev : Symbol(ev, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 22, 10)) - - ev.type; // should be 'FOO' ->ev.type : Symbol(type, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 19, 19)) ->ev : Symbol(ev, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 22, 10)) ->type : Symbol(type, Decl(contextualTypeFunctionObjectPropertyIntersection.ts, 19, 19)) - - }, - }, -}); - diff --git a/tests/baselines/reference/contextualTypeFunctionObjectPropertyIntersection.types b/tests/baselines/reference/contextualTypeFunctionObjectPropertyIntersection.types deleted file mode 100644 index 30ba52626fa..00000000000 --- a/tests/baselines/reference/contextualTypeFunctionObjectPropertyIntersection.types +++ /dev/null @@ -1,73 +0,0 @@ -=== tests/cases/compiler/contextualTypeFunctionObjectPropertyIntersection.ts === -type Action = (ev: TEvent) => void; ->Action : Action ->type : string ->ev : TEvent - -interface MachineConfig { ->type : string - - schema: { ->schema : { events: TEvent; } - - events: TEvent; ->events : TEvent - - }; - on?: { ->on : ({ [K in TEvent["type"]]?: Action | undefined; } & { "*"?: Action | undefined; }) | undefined - - [K in TEvent["type"]]?: Action; ->type : K - - } & { - "*"?: Action; ->"*" : Action | undefined - - }; -} - -declare function createMachine( ->createMachine : (config: MachineConfig) => void ->type : string - - config: MachineConfig ->config : MachineConfig - -): void; - -createMachine({ ->createMachine({ schema: { events: {} as { type: "FOO" } | { type: "BAR" }, }, on: { FOO: (ev) => { ev.type; // should be 'FOO' }, },}) : void ->createMachine : (config: MachineConfig) => void ->{ schema: { events: {} as { type: "FOO" } | { type: "BAR" }, }, on: { FOO: (ev) => { ev.type; // should be 'FOO' }, },} : { schema: { events: { type: "FOO"; } | { type: "BAR"; }; }; on: { FOO: (ev: { type: "FOO"; }) => void; }; } - - schema: { ->schema : { events: { type: "FOO"; } | { type: "BAR"; }; } ->{ events: {} as { type: "FOO" } | { type: "BAR" }, } : { events: { type: "FOO"; } | { type: "BAR"; }; } - - events: {} as { type: "FOO" } | { type: "BAR" }, ->events : { type: "FOO"; } | { type: "BAR"; } ->{} as { type: "FOO" } | { type: "BAR" } : { type: "FOO"; } | { type: "BAR"; } ->{} : {} ->type : "FOO" ->type : "BAR" - - }, - on: { ->on : { FOO: (ev: { type: "FOO"; }) => void; } ->{ FOO: (ev) => { ev.type; // should be 'FOO' }, } : { FOO: (ev: { type: "FOO"; }) => void; } - - FOO: (ev) => { ->FOO : (ev: { type: "FOO"; }) => void ->(ev) => { ev.type; // should be 'FOO' } : (ev: { type: "FOO"; }) => void ->ev : { type: "FOO"; } - - ev.type; // should be 'FOO' ->ev.type : "FOO" ->ev : { type: "FOO"; } ->type : "FOO" - - }, - }, -}); - diff --git a/tests/baselines/reference/contextualTypeOnYield1.js b/tests/baselines/reference/contextualTypeOnYield1.js new file mode 100644 index 00000000000..3d9acac393a --- /dev/null +++ b/tests/baselines/reference/contextualTypeOnYield1.js @@ -0,0 +1,12 @@ +//// [contextualTypeOnYield1.ts] +type FuncOrGeneratorFunc = () => (number | Generator<(arg: number) => void, any, void>) + +const f: FuncOrGeneratorFunc = function*() { + yield (num) => console.log(num); // `num` should be inferred to have type `number`. +} + +//// [contextualTypeOnYield1.js] +"use strict"; +const f = function* () { + yield (num) => console.log(num); // `num` should be inferred to have type `number`. +}; diff --git a/tests/baselines/reference/contextualTypeOnYield1.symbols b/tests/baselines/reference/contextualTypeOnYield1.symbols new file mode 100644 index 00000000000..0ea5d180b8f --- /dev/null +++ b/tests/baselines/reference/contextualTypeOnYield1.symbols @@ -0,0 +1,17 @@ +=== tests/cases/compiler/contextualTypeOnYield1.ts === +type FuncOrGeneratorFunc = () => (number | Generator<(arg: number) => void, any, void>) +>FuncOrGeneratorFunc : Symbol(FuncOrGeneratorFunc, Decl(contextualTypeOnYield1.ts, 0, 0)) +>Generator : Symbol(Generator, Decl(lib.es2015.generator.d.ts, --, --)) +>arg : Symbol(arg, Decl(contextualTypeOnYield1.ts, 0, 54)) + +const f: FuncOrGeneratorFunc = function*() { +>f : Symbol(f, Decl(contextualTypeOnYield1.ts, 2, 5)) +>FuncOrGeneratorFunc : Symbol(FuncOrGeneratorFunc, Decl(contextualTypeOnYield1.ts, 0, 0)) + + yield (num) => console.log(num); // `num` should be inferred to have type `number`. +>num : Symbol(num, Decl(contextualTypeOnYield1.ts, 3, 9)) +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>num : Symbol(num, Decl(contextualTypeOnYield1.ts, 3, 9)) +} diff --git a/tests/baselines/reference/contextualTypeOnYield1.types b/tests/baselines/reference/contextualTypeOnYield1.types new file mode 100644 index 00000000000..60cac2c6c1c --- /dev/null +++ b/tests/baselines/reference/contextualTypeOnYield1.types @@ -0,0 +1,19 @@ +=== tests/cases/compiler/contextualTypeOnYield1.ts === +type FuncOrGeneratorFunc = () => (number | Generator<(arg: number) => void, any, void>) +>FuncOrGeneratorFunc : () => number | Generator<(arg: number) => void, any, void> +>arg : number + +const f: FuncOrGeneratorFunc = function*() { +>f : FuncOrGeneratorFunc +>function*() { yield (num) => console.log(num); // `num` should be inferred to have type `number`.} : () => Generator<(num: number) => void, void, unknown> + + yield (num) => console.log(num); // `num` should be inferred to have type `number`. +>yield (num) => console.log(num) : any +>(num) => console.log(num) : (num: number) => void +>num : number +>console.log(num) : void +>console.log : (...data: any[]) => void +>console : Console +>log : (...data: any[]) => void +>num : number +} diff --git a/tests/baselines/reference/contextualTypeOnYield2.js b/tests/baselines/reference/contextualTypeOnYield2.js new file mode 100644 index 00000000000..965050dc60a --- /dev/null +++ b/tests/baselines/reference/contextualTypeOnYield2.js @@ -0,0 +1,11 @@ +//// [contextualTypeOnYield2.ts] +type OrGen = () => (number | Generator void, undefined>); +const g: OrGen = function* () { + return (num) => console.log(num); +} + +//// [contextualTypeOnYield2.js] +"use strict"; +const g = function* () { + return (num) => console.log(num); +}; diff --git a/tests/baselines/reference/contextualTypeOnYield2.symbols b/tests/baselines/reference/contextualTypeOnYield2.symbols new file mode 100644 index 00000000000..240c23fcfbc --- /dev/null +++ b/tests/baselines/reference/contextualTypeOnYield2.symbols @@ -0,0 +1,17 @@ +=== tests/cases/compiler/contextualTypeOnYield2.ts === +type OrGen = () => (number | Generator void, undefined>); +>OrGen : Symbol(OrGen, Decl(contextualTypeOnYield2.ts, 0, 0)) +>Generator : Symbol(Generator, Decl(lib.es2015.generator.d.ts, --, --)) +>arg : Symbol(arg, Decl(contextualTypeOnYield2.ts, 0, 48)) + +const g: OrGen = function* () { +>g : Symbol(g, Decl(contextualTypeOnYield2.ts, 1, 5)) +>OrGen : Symbol(OrGen, Decl(contextualTypeOnYield2.ts, 0, 0)) + + return (num) => console.log(num); +>num : Symbol(num, Decl(contextualTypeOnYield2.ts, 2, 12)) +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>num : Symbol(num, Decl(contextualTypeOnYield2.ts, 2, 12)) +} diff --git a/tests/baselines/reference/contextualTypeOnYield2.types b/tests/baselines/reference/contextualTypeOnYield2.types new file mode 100644 index 00000000000..0ae99969ac7 --- /dev/null +++ b/tests/baselines/reference/contextualTypeOnYield2.types @@ -0,0 +1,18 @@ +=== tests/cases/compiler/contextualTypeOnYield2.ts === +type OrGen = () => (number | Generator void, undefined>); +>OrGen : () => number | Generator void, undefined> +>arg : number + +const g: OrGen = function* () { +>g : OrGen +>function* () { return (num) => console.log(num);} : () => Generator void, unknown> + + return (num) => console.log(num); +>(num) => console.log(num) : (num: number) => void +>num : number +>console.log(num) : void +>console.log : (...data: any[]) => void +>console : Console +>log : (...data: any[]) => void +>num : number +} diff --git a/tests/baselines/reference/contextuallyTypedBooleanLiterals.js b/tests/baselines/reference/contextuallyTypedBooleanLiterals.js index 702a92440ad..3dfbe4db429 100644 --- a/tests/baselines/reference/contextuallyTypedBooleanLiterals.js +++ b/tests/baselines/reference/contextuallyTypedBooleanLiterals.js @@ -38,7 +38,7 @@ var x = observable(false); //// [contextuallyTypedBooleanLiterals.d.ts] -declare type Box = { +type Box = { get: () => T; set: (value: T) => void; }; diff --git a/tests/baselines/reference/contextuallyTypedSymbolNamedProperties.js b/tests/baselines/reference/contextuallyTypedSymbolNamedProperties.js index fc949d87312..e12ec40edfc 100644 --- a/tests/baselines/reference/contextuallyTypedSymbolNamedProperties.js +++ b/tests/baselines/reference/contextuallyTypedSymbolNamedProperties.js @@ -35,7 +35,7 @@ const x = { [A]: s => s.length }; //// [contextuallyTypedSymbolNamedProperties.d.ts] declare const A: unique symbol; declare const B: unique symbol; -declare type Action = { +type Action = { type: typeof A; data: string; } | { diff --git a/tests/baselines/reference/controlFlowAliasing.js b/tests/baselines/reference/controlFlowAliasing.js index 96d965a2d2b..98d42382862 100644 --- a/tests/baselines/reference/controlFlowAliasing.js +++ b/tests/baselines/reference/controlFlowAliasing.js @@ -664,7 +664,7 @@ declare function f40(obj: { kind: 'bar'; bar?: number; }): void; -declare type Data = { +type Data = { kind: 'str'; payload: string; } | { diff --git a/tests/baselines/reference/controlFlowBinaryOrExpression.symbols b/tests/baselines/reference/controlFlowBinaryOrExpression.symbols index 5251973005f..3c2bfaa2f7c 100644 --- a/tests/baselines/reference/controlFlowBinaryOrExpression.symbols +++ b/tests/baselines/reference/controlFlowBinaryOrExpression.symbols @@ -64,9 +64,9 @@ if (isNodeList(sourceObj)) { >sourceObj : Symbol(sourceObj, Decl(controlFlowBinaryOrExpression.ts, 23, 3)) sourceObj.length; ->sourceObj.length : Symbol(length, Decl(controlFlowBinaryOrExpression.ts, 10, 27), Decl(controlFlowBinaryOrExpression.ts, 14, 33)) +>sourceObj.length : Symbol(NodeList.length, Decl(controlFlowBinaryOrExpression.ts, 10, 27)) >sourceObj : Symbol(sourceObj, Decl(controlFlowBinaryOrExpression.ts, 23, 3)) ->length : Symbol(length, Decl(controlFlowBinaryOrExpression.ts, 10, 27), Decl(controlFlowBinaryOrExpression.ts, 14, 33)) +>length : Symbol(NodeList.length, Decl(controlFlowBinaryOrExpression.ts, 10, 27)) } if (isHTMLCollection(sourceObj)) { @@ -74,9 +74,9 @@ if (isHTMLCollection(sourceObj)) { >sourceObj : Symbol(sourceObj, Decl(controlFlowBinaryOrExpression.ts, 23, 3)) sourceObj.length; ->sourceObj.length : Symbol(length, Decl(controlFlowBinaryOrExpression.ts, 10, 27), Decl(controlFlowBinaryOrExpression.ts, 14, 33)) +>sourceObj.length : Symbol(HTMLCollection.length, Decl(controlFlowBinaryOrExpression.ts, 14, 33)) >sourceObj : Symbol(sourceObj, Decl(controlFlowBinaryOrExpression.ts, 23, 3)) ->length : Symbol(length, Decl(controlFlowBinaryOrExpression.ts, 10, 27), Decl(controlFlowBinaryOrExpression.ts, 14, 33)) +>length : Symbol(HTMLCollection.length, Decl(controlFlowBinaryOrExpression.ts, 14, 33)) } if (isNodeList(sourceObj) || isHTMLCollection(sourceObj)) { diff --git a/tests/baselines/reference/controlFlowBinaryOrExpression.types b/tests/baselines/reference/controlFlowBinaryOrExpression.types index 9c188295a82..23e6034ce1c 100644 --- a/tests/baselines/reference/controlFlowBinaryOrExpression.types +++ b/tests/baselines/reference/controlFlowBinaryOrExpression.types @@ -69,18 +69,18 @@ if (isNodeList(sourceObj)) { sourceObj.length; >sourceObj.length : number ->sourceObj : NodeList | HTMLCollection +>sourceObj : NodeList >length : number } if (isHTMLCollection(sourceObj)) { >isHTMLCollection(sourceObj) : boolean >isHTMLCollection : (sourceObj: any) => sourceObj is HTMLCollection ->sourceObj : EventTargetLike +>sourceObj : NodeList | { a: string; } sourceObj.length; >sourceObj.length : number ->sourceObj : NodeList | HTMLCollection +>sourceObj : HTMLCollection >length : number } @@ -88,7 +88,7 @@ if (isNodeList(sourceObj) || isHTMLCollection(sourceObj)) { >isNodeList(sourceObj) || isHTMLCollection(sourceObj) : boolean >isNodeList(sourceObj) : boolean >isNodeList : (sourceObj: any) => sourceObj is NodeList ->sourceObj : EventTargetLike +>sourceObj : HTMLCollection | { a: string; } >isHTMLCollection(sourceObj) : boolean >isHTMLCollection : (sourceObj: any) => sourceObj is HTMLCollection >sourceObj : { a: string; } diff --git a/tests/baselines/reference/controlFlowBindingElement.js b/tests/baselines/reference/controlFlowBindingElement.js new file mode 100644 index 00000000000..e08cb83372f --- /dev/null +++ b/tests/baselines/reference/controlFlowBindingElement.js @@ -0,0 +1,136 @@ +//// [controlFlowBindingElement.ts] +{ + const data = { param: 'value' }; + + const { + param = (() => { throw new Error('param is not defined') })(), + } = data; + + console.log(param); // should not trigger 'Unreachable code detected.' +} + + +{ + const data = { param: 'value' }; + + let foo: string | undefined = ""; + const { + param = (() => { throw new Error('param is not defined') })(), + } = data; + + foo; // should be string +} + +{ + const data = { param: 'value' }; + + let foo: string | undefined = ""; + const { + param = (() => { foo = undefined })(), + } = data; + + foo; // should be string | undefined +} + +{ + const data = { param: 'value' }; + + let foo: string | undefined = ""; + const { + param = (() => { return "" + 1 })(), + } = data; + + foo; // should be string +} + +{ + interface Window { + window: Window; + } + + let foo: string | undefined; + let window = {} as Window; + window.window = window; + + const { [(() => { foo = ""; return 'window' as const })()]: + { [(() => { return 'window' as const })()]: bar } } = window; + + foo; // should be string +} + +{ + interface Window { + window: Window; + } + + let foo: string | undefined; + let window = {} as Window; + window.window = window; + + const { [(() => { return 'window' as const })()]: + { [(() => { foo = ""; return 'window' as const })()]: bar } } = window; + + foo; // should be string +} + +{ + interface Window { + window: Window; + } + + let foo: string | undefined; + let window = {} as Window; + window.window = window; + + const { [(() => { return 'window' as const })()]: + { [(() => { return 'window' as const })()]: bar = (() => { foo = ""; return window; })() } } = window; + + foo; // should be string | undefined +} + + +//// [controlFlowBindingElement.js] +{ + var data = { param: 'value' }; + var _a = data.param, param = _a === void 0 ? (function () { throw new Error('param is not defined'); })() : _a; + console.log(param); // should not trigger 'Unreachable code detected.' +} +{ + var data = { param: 'value' }; + var foo = ""; + var _b = data.param, param = _b === void 0 ? (function () { throw new Error('param is not defined'); })() : _b; + foo; // should be string +} +{ + var data = { param: 'value' }; + var foo_1 = ""; + var _c = data.param, param = _c === void 0 ? (function () { foo_1 = undefined; })() : _c; + foo_1; // should be string | undefined +} +{ + var data = { param: 'value' }; + var foo = ""; + var _d = data.param, param = _d === void 0 ? (function () { return "" + 1; })() : _d; + foo; // should be string +} +{ + var foo_2; + var window_1 = {}; + window_1.window = window_1; + var _e = window_1, _f = (function () { foo_2 = ""; return 'window'; })(), _g = (function () { return 'window'; })(), bar = _e[_f][_g]; + foo_2; // should be string +} +{ + var foo_3; + var window_2 = {}; + window_2.window = window_2; + var _h = window_2, _j = (function () { return 'window'; })(), _k = (function () { foo_3 = ""; return 'window'; })(), bar = _h[_j][_k]; + foo_3; // should be string +} +{ + var foo_4; + var window_3 = {}; + window_3.window = window_3; + var _l = window_3, _m = (function () { return 'window'; })(), _o = (function () { return 'window'; })(), _p = _l[_m][_o], bar = _p === void 0 ? (function () { foo_4 = ""; return window_3; })() : _p; + foo_4; // should be string | undefined +} diff --git a/tests/baselines/reference/controlFlowBindingElement.symbols b/tests/baselines/reference/controlFlowBindingElement.symbols new file mode 100644 index 00000000000..683a8e2c7be --- /dev/null +++ b/tests/baselines/reference/controlFlowBindingElement.symbols @@ -0,0 +1,188 @@ +=== tests/cases/conformance/controlFlow/controlFlowBindingElement.ts === +{ + const data = { param: 'value' }; +>data : Symbol(data, Decl(controlFlowBindingElement.ts, 1, 9)) +>param : Symbol(param, Decl(controlFlowBindingElement.ts, 1, 19)) + + const { + param = (() => { throw new Error('param is not defined') })(), +>param : Symbol(param, Decl(controlFlowBindingElement.ts, 3, 11)) +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + } = data; +>data : Symbol(data, Decl(controlFlowBindingElement.ts, 1, 9)) + + console.log(param); // should not trigger 'Unreachable code detected.' +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>param : Symbol(param, Decl(controlFlowBindingElement.ts, 3, 11)) +} + + +{ + const data = { param: 'value' }; +>data : Symbol(data, Decl(controlFlowBindingElement.ts, 12, 9)) +>param : Symbol(param, Decl(controlFlowBindingElement.ts, 12, 19)) + + let foo: string | undefined = ""; +>foo : Symbol(foo, Decl(controlFlowBindingElement.ts, 14, 7)) + + const { + param = (() => { throw new Error('param is not defined') })(), +>param : Symbol(param, Decl(controlFlowBindingElement.ts, 15, 11)) +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + } = data; +>data : Symbol(data, Decl(controlFlowBindingElement.ts, 12, 9)) + + foo; // should be string +>foo : Symbol(foo, Decl(controlFlowBindingElement.ts, 14, 7)) +} + +{ + const data = { param: 'value' }; +>data : Symbol(data, Decl(controlFlowBindingElement.ts, 23, 9)) +>param : Symbol(param, Decl(controlFlowBindingElement.ts, 23, 19)) + + let foo: string | undefined = ""; +>foo : Symbol(foo, Decl(controlFlowBindingElement.ts, 25, 7)) + + const { + param = (() => { foo = undefined })(), +>param : Symbol(param, Decl(controlFlowBindingElement.ts, 26, 11)) +>foo : Symbol(foo, Decl(controlFlowBindingElement.ts, 25, 7)) +>undefined : Symbol(undefined) + + } = data; +>data : Symbol(data, Decl(controlFlowBindingElement.ts, 23, 9)) + + foo; // should be string | undefined +>foo : Symbol(foo, Decl(controlFlowBindingElement.ts, 25, 7)) +} + +{ + const data = { param: 'value' }; +>data : Symbol(data, Decl(controlFlowBindingElement.ts, 34, 9)) +>param : Symbol(param, Decl(controlFlowBindingElement.ts, 34, 19)) + + let foo: string | undefined = ""; +>foo : Symbol(foo, Decl(controlFlowBindingElement.ts, 36, 7)) + + const { + param = (() => { return "" + 1 })(), +>param : Symbol(param, Decl(controlFlowBindingElement.ts, 37, 11)) + + } = data; +>data : Symbol(data, Decl(controlFlowBindingElement.ts, 34, 9)) + + foo; // should be string +>foo : Symbol(foo, Decl(controlFlowBindingElement.ts, 36, 7)) +} + +{ + interface Window { +>Window : Symbol(Window, Decl(controlFlowBindingElement.ts, 44, 1)) + + window: Window; +>window : Symbol(Window.window, Decl(controlFlowBindingElement.ts, 45, 22)) +>Window : Symbol(Window, Decl(controlFlowBindingElement.ts, 44, 1)) + } + + let foo: string | undefined; +>foo : Symbol(foo, Decl(controlFlowBindingElement.ts, 49, 7)) + + let window = {} as Window; +>window : Symbol(window, Decl(controlFlowBindingElement.ts, 50, 7)) +>Window : Symbol(Window, Decl(controlFlowBindingElement.ts, 44, 1)) + + window.window = window; +>window.window : Symbol(Window.window, Decl(controlFlowBindingElement.ts, 45, 22)) +>window : Symbol(window, Decl(controlFlowBindingElement.ts, 50, 7)) +>window : Symbol(Window.window, Decl(controlFlowBindingElement.ts, 45, 22)) +>window : Symbol(window, Decl(controlFlowBindingElement.ts, 50, 7)) + + const { [(() => { foo = ""; return 'window' as const })()]: +>foo : Symbol(foo, Decl(controlFlowBindingElement.ts, 49, 7)) +>const : Symbol(const) + + { [(() => { return 'window' as const })()]: bar } } = window; +>const : Symbol(const) +>bar : Symbol(bar, Decl(controlFlowBindingElement.ts, 54, 9)) +>window : Symbol(window, Decl(controlFlowBindingElement.ts, 50, 7)) + + foo; // should be string +>foo : Symbol(foo, Decl(controlFlowBindingElement.ts, 49, 7)) +} + +{ + interface Window { +>Window : Symbol(Window, Decl(controlFlowBindingElement.ts, 59, 1)) + + window: Window; +>window : Symbol(Window.window, Decl(controlFlowBindingElement.ts, 60, 22)) +>Window : Symbol(Window, Decl(controlFlowBindingElement.ts, 59, 1)) + } + + let foo: string | undefined; +>foo : Symbol(foo, Decl(controlFlowBindingElement.ts, 64, 7)) + + let window = {} as Window; +>window : Symbol(window, Decl(controlFlowBindingElement.ts, 65, 7)) +>Window : Symbol(Window, Decl(controlFlowBindingElement.ts, 59, 1)) + + window.window = window; +>window.window : Symbol(Window.window, Decl(controlFlowBindingElement.ts, 60, 22)) +>window : Symbol(window, Decl(controlFlowBindingElement.ts, 65, 7)) +>window : Symbol(Window.window, Decl(controlFlowBindingElement.ts, 60, 22)) +>window : Symbol(window, Decl(controlFlowBindingElement.ts, 65, 7)) + + const { [(() => { return 'window' as const })()]: +>const : Symbol(const) + + { [(() => { foo = ""; return 'window' as const })()]: bar } } = window; +>foo : Symbol(foo, Decl(controlFlowBindingElement.ts, 64, 7)) +>const : Symbol(const) +>bar : Symbol(bar, Decl(controlFlowBindingElement.ts, 69, 9)) +>window : Symbol(window, Decl(controlFlowBindingElement.ts, 65, 7)) + + foo; // should be string +>foo : Symbol(foo, Decl(controlFlowBindingElement.ts, 64, 7)) +} + +{ + interface Window { +>Window : Symbol(Window, Decl(controlFlowBindingElement.ts, 74, 1)) + + window: Window; +>window : Symbol(Window.window, Decl(controlFlowBindingElement.ts, 75, 22)) +>Window : Symbol(Window, Decl(controlFlowBindingElement.ts, 74, 1)) + } + + let foo: string | undefined; +>foo : Symbol(foo, Decl(controlFlowBindingElement.ts, 79, 7)) + + let window = {} as Window; +>window : Symbol(window, Decl(controlFlowBindingElement.ts, 80, 7)) +>Window : Symbol(Window, Decl(controlFlowBindingElement.ts, 74, 1)) + + window.window = window; +>window.window : Symbol(Window.window, Decl(controlFlowBindingElement.ts, 75, 22)) +>window : Symbol(window, Decl(controlFlowBindingElement.ts, 80, 7)) +>window : Symbol(Window.window, Decl(controlFlowBindingElement.ts, 75, 22)) +>window : Symbol(window, Decl(controlFlowBindingElement.ts, 80, 7)) + + const { [(() => { return 'window' as const })()]: +>const : Symbol(const) + + { [(() => { return 'window' as const })()]: bar = (() => { foo = ""; return window; })() } } = window; +>const : Symbol(const) +>bar : Symbol(bar, Decl(controlFlowBindingElement.ts, 84, 9)) +>foo : Symbol(foo, Decl(controlFlowBindingElement.ts, 79, 7)) +>window : Symbol(window, Decl(controlFlowBindingElement.ts, 80, 7)) +>window : Symbol(window, Decl(controlFlowBindingElement.ts, 80, 7)) + + foo; // should be string | undefined +>foo : Symbol(foo, Decl(controlFlowBindingElement.ts, 79, 7)) +} + diff --git a/tests/baselines/reference/controlFlowBindingElement.types b/tests/baselines/reference/controlFlowBindingElement.types new file mode 100644 index 00000000000..8c9c6ac79a5 --- /dev/null +++ b/tests/baselines/reference/controlFlowBindingElement.types @@ -0,0 +1,250 @@ +=== tests/cases/conformance/controlFlow/controlFlowBindingElement.ts === +{ + const data = { param: 'value' }; +>data : { param: string; } +>{ param: 'value' } : { param: string; } +>param : string +>'value' : "value" + + const { + param = (() => { throw new Error('param is not defined') })(), +>param : string +>(() => { throw new Error('param is not defined') })() : never +>(() => { throw new Error('param is not defined') }) : () => never +>() => { throw new Error('param is not defined') } : () => never +>new Error('param is not defined') : Error +>Error : ErrorConstructor +>'param is not defined' : "param is not defined" + + } = data; +>data : { param: string; } + + console.log(param); // should not trigger 'Unreachable code detected.' +>console.log(param) : void +>console.log : (...data: any[]) => void +>console : Console +>log : (...data: any[]) => void +>param : string +} + + +{ + const data = { param: 'value' }; +>data : { param: string; } +>{ param: 'value' } : { param: string; } +>param : string +>'value' : "value" + + let foo: string | undefined = ""; +>foo : string | undefined +>"" : "" + + const { + param = (() => { throw new Error('param is not defined') })(), +>param : string +>(() => { throw new Error('param is not defined') })() : never +>(() => { throw new Error('param is not defined') }) : () => never +>() => { throw new Error('param is not defined') } : () => never +>new Error('param is not defined') : Error +>Error : ErrorConstructor +>'param is not defined' : "param is not defined" + + } = data; +>data : { param: string; } + + foo; // should be string +>foo : string +} + +{ + const data = { param: 'value' }; +>data : { param: string; } +>{ param: 'value' } : { param: string; } +>param : string +>'value' : "value" + + let foo: string | undefined = ""; +>foo : string | undefined +>"" : "" + + const { + param = (() => { foo = undefined })(), +>param : string | void +>(() => { foo = undefined })() : void +>(() => { foo = undefined }) : () => void +>() => { foo = undefined } : () => void +>foo = undefined : undefined +>foo : string | undefined +>undefined : undefined + + } = data; +>data : { param: string; } + + foo; // should be string | undefined +>foo : string | undefined +} + +{ + const data = { param: 'value' }; +>data : { param: string; } +>{ param: 'value' } : { param: string; } +>param : string +>'value' : "value" + + let foo: string | undefined = ""; +>foo : string | undefined +>"" : "" + + const { + param = (() => { return "" + 1 })(), +>param : string +>(() => { return "" + 1 })() : string +>(() => { return "" + 1 }) : () => string +>() => { return "" + 1 } : () => string +>"" + 1 : string +>"" : "" +>1 : 1 + + } = data; +>data : { param: string; } + + foo; // should be string +>foo : string +} + +{ + interface Window { + window: Window; +>window : Window + } + + let foo: string | undefined; +>foo : string | undefined + + let window = {} as Window; +>window : Window +>{} as Window : Window +>{} : {} + + window.window = window; +>window.window = window : Window +>window.window : Window +>window : Window +>window : Window +>window : Window + + const { [(() => { foo = ""; return 'window' as const })()]: +>(() => { foo = ""; return 'window' as const })() : "window" +>(() => { foo = ""; return 'window' as const }) : () => "window" +>() => { foo = ""; return 'window' as const } : () => "window" +>foo = "" : "" +>foo : string | undefined +>"" : "" +>'window' as const : "window" +>'window' : "window" + + { [(() => { return 'window' as const })()]: bar } } = window; +>(() => { return 'window' as const })() : "window" +>(() => { return 'window' as const }) : () => "window" +>() => { return 'window' as const } : () => "window" +>'window' as const : "window" +>'window' : "window" +>bar : Window +>window : Window + + foo; // should be string +>foo : string +} + +{ + interface Window { + window: Window; +>window : Window + } + + let foo: string | undefined; +>foo : string | undefined + + let window = {} as Window; +>window : Window +>{} as Window : Window +>{} : {} + + window.window = window; +>window.window = window : Window +>window.window : Window +>window : Window +>window : Window +>window : Window + + const { [(() => { return 'window' as const })()]: +>(() => { return 'window' as const })() : "window" +>(() => { return 'window' as const }) : () => "window" +>() => { return 'window' as const } : () => "window" +>'window' as const : "window" +>'window' : "window" + + { [(() => { foo = ""; return 'window' as const })()]: bar } } = window; +>(() => { foo = ""; return 'window' as const })() : "window" +>(() => { foo = ""; return 'window' as const }) : () => "window" +>() => { foo = ""; return 'window' as const } : () => "window" +>foo = "" : "" +>foo : string | undefined +>"" : "" +>'window' as const : "window" +>'window' : "window" +>bar : Window +>window : Window + + foo; // should be string +>foo : string +} + +{ + interface Window { + window: Window; +>window : Window + } + + let foo: string | undefined; +>foo : string | undefined + + let window = {} as Window; +>window : Window +>{} as Window : Window +>{} : {} + + window.window = window; +>window.window = window : Window +>window.window : Window +>window : Window +>window : Window +>window : Window + + const { [(() => { return 'window' as const })()]: +>(() => { return 'window' as const })() : "window" +>(() => { return 'window' as const }) : () => "window" +>() => { return 'window' as const } : () => "window" +>'window' as const : "window" +>'window' : "window" + + { [(() => { return 'window' as const })()]: bar = (() => { foo = ""; return window; })() } } = window; +>(() => { return 'window' as const })() : "window" +>(() => { return 'window' as const }) : () => "window" +>() => { return 'window' as const } : () => "window" +>'window' as const : "window" +>'window' : "window" +>bar : Window +>(() => { foo = ""; return window; })() : Window +>(() => { foo = ""; return window; }) : () => Window +>() => { foo = ""; return window; } : () => Window +>foo = "" : "" +>foo : string | undefined +>"" : "" +>window : Window +>window : Window + + foo; // should be string | undefined +>foo : string | undefined +} + diff --git a/tests/baselines/reference/controlFlowBindingPatternOrder.errors.txt b/tests/baselines/reference/controlFlowBindingPatternOrder.errors.txt new file mode 100644 index 00000000000..37b608c3071 --- /dev/null +++ b/tests/baselines/reference/controlFlowBindingPatternOrder.errors.txt @@ -0,0 +1,39 @@ +tests/cases/conformance/controlFlow/controlFlowBindingPatternOrder.ts(10,11): error TS2322: Type '0 | 9' is not assignable to type '9'. + Type '0' is not assignable to type '9'. +tests/cases/conformance/controlFlow/controlFlowBindingPatternOrder.ts(25,11): error TS2322: Type '0 | 9 | 8' is not assignable to type '0 | 8'. + Type '9' is not assignable to type '0 | 8'. + + +==== tests/cases/conformance/controlFlow/controlFlowBindingPatternOrder.ts (2 errors) ==== + // https://github.com/microsoft/TypeScript/pull/41094#issuecomment-716044363 + { + let a: 0 | 1 = 0; + const [{ [(a = 1)]: b } = [9, a] as const] = []; + const bb: 0 = b; + } + { + let a: 0 | 1 = 1; + const [{ [a]: b } = [9, a = 0] as const] = []; + const bb: 9 = b; + ~~ +!!! error TS2322: Type '0 | 9' is not assignable to type '9'. +!!! error TS2322: Type '0' is not assignable to type '9'. + } + { + let a: 0 | 1 | 2 = 1; + const [{ [a]: b } = [9, a = 0, 5] as const] = []; + const bb: 0 | 9 = b; + } + { + let a: 0 | 1 = 0; + const [{ [(a = 1)]: b } = [9, a] as const] = [[9, 8] as const]; + const bb: 0 | 8 = b; + } + { + let a: 0 | 1 = 1; + const [{ [a]: b } = [a = 0, 9] as const] = [[8, 9] as const]; + const bb: 0 | 8 = b; + ~~ +!!! error TS2322: Type '0 | 9 | 8' is not assignable to type '0 | 8'. +!!! error TS2322: Type '9' is not assignable to type '0 | 8'. + } \ No newline at end of file diff --git a/tests/baselines/reference/controlFlowBindingPatternOrder.symbols b/tests/baselines/reference/controlFlowBindingPatternOrder.symbols index fea01b4d125..7791d4540e0 100644 --- a/tests/baselines/reference/controlFlowBindingPatternOrder.symbols +++ b/tests/baselines/reference/controlFlowBindingPatternOrder.symbols @@ -29,25 +29,24 @@ >b : Symbol(b, Decl(controlFlowBindingPatternOrder.ts, 8, 12)) } { - let a: 0 | 1 = 0; + let a: 0 | 1 | 2 = 1; >a : Symbol(a, Decl(controlFlowBindingPatternOrder.ts, 12, 7)) - const [{ [(a = 1)]: b } = [9, a] as const] = [[9, 8] as const]; + const [{ [a]: b } = [9, a = 0, 5] as const] = []; >a : Symbol(a, Decl(controlFlowBindingPatternOrder.ts, 12, 7)) >b : Symbol(b, Decl(controlFlowBindingPatternOrder.ts, 13, 12)) >a : Symbol(a, Decl(controlFlowBindingPatternOrder.ts, 12, 7)) ->const : Symbol(const) >const : Symbol(const) - const bb: 0 | 8 = b; + const bb: 0 | 9 = b; >bb : Symbol(bb, Decl(controlFlowBindingPatternOrder.ts, 14, 9)) >b : Symbol(b, Decl(controlFlowBindingPatternOrder.ts, 13, 12)) } { - let a: 0 | 1 = 1; + let a: 0 | 1 = 0; >a : Symbol(a, Decl(controlFlowBindingPatternOrder.ts, 17, 7)) - const [{ [a]: b } = [a = 0, 9] as const] = [[8, 9] as const]; + const [{ [(a = 1)]: b } = [9, a] as const] = [[9, 8] as const]; >a : Symbol(a, Decl(controlFlowBindingPatternOrder.ts, 17, 7)) >b : Symbol(b, Decl(controlFlowBindingPatternOrder.ts, 18, 12)) >a : Symbol(a, Decl(controlFlowBindingPatternOrder.ts, 17, 7)) @@ -58,3 +57,18 @@ >bb : Symbol(bb, Decl(controlFlowBindingPatternOrder.ts, 19, 9)) >b : Symbol(b, Decl(controlFlowBindingPatternOrder.ts, 18, 12)) } +{ + let a: 0 | 1 = 1; +>a : Symbol(a, Decl(controlFlowBindingPatternOrder.ts, 22, 7)) + + const [{ [a]: b } = [a = 0, 9] as const] = [[8, 9] as const]; +>a : Symbol(a, Decl(controlFlowBindingPatternOrder.ts, 22, 7)) +>b : Symbol(b, Decl(controlFlowBindingPatternOrder.ts, 23, 12)) +>a : Symbol(a, Decl(controlFlowBindingPatternOrder.ts, 22, 7)) +>const : Symbol(const) +>const : Symbol(const) + + const bb: 0 | 8 = b; +>bb : Symbol(bb, Decl(controlFlowBindingPatternOrder.ts, 24, 9)) +>b : Symbol(b, Decl(controlFlowBindingPatternOrder.ts, 23, 12)) +} diff --git a/tests/baselines/reference/controlFlowBindingPatternOrder.types b/tests/baselines/reference/controlFlowBindingPatternOrder.types index 5c9d426c23b..dd7e782885b 100644 --- a/tests/baselines/reference/controlFlowBindingPatternOrder.types +++ b/tests/baselines/reference/controlFlowBindingPatternOrder.types @@ -27,8 +27,8 @@ >1 : 1 const [{ [a]: b } = [9, a = 0] as const] = []; ->a : 0 ->b : 9 +>a : 0 | 1 +>b : 0 | 9 >[9, a = 0] as const : readonly [9, 0] >[9, a = 0] : readonly [9, 0] >9 : 9 @@ -39,7 +39,28 @@ const bb: 9 = b; >bb : 9 ->b : 9 +>b : 0 | 9 +} +{ + let a: 0 | 1 | 2 = 1; +>a : 0 | 1 | 2 +>1 : 1 + + const [{ [a]: b } = [9, a = 0, 5] as const] = []; +>a : 0 | 1 +>b : 0 | 9 +>[9, a = 0, 5] as const : readonly [9, 0, 5] +>[9, a = 0, 5] : readonly [9, 0, 5] +>9 : 9 +>a = 0 : 0 +>a : 0 | 1 | 2 +>0 : 0 +>5 : 5 +>[] : [] + + const bb: 0 | 9 = b; +>bb : 0 | 9 +>b : 0 | 9 } { let a: 0 | 1 = 0; @@ -72,8 +93,8 @@ >1 : 1 const [{ [a]: b } = [a = 0, 9] as const] = [[8, 9] as const]; ->a : 0 ->b : 0 | 8 +>a : 0 | 1 +>b : 0 | 9 | 8 >[a = 0, 9] as const : readonly [0, 9] >[a = 0, 9] : readonly [0, 9] >a = 0 : 0 @@ -88,5 +109,5 @@ const bb: 0 | 8 = b; >bb : 0 | 8 ->b : 0 | 8 +>b : 0 | 9 | 8 } diff --git a/tests/baselines/reference/controlFlowFavorAssertedTypeThroughTypePredicate.errors.txt b/tests/baselines/reference/controlFlowFavorAssertedTypeThroughTypePredicate.errors.txt new file mode 100644 index 00000000000..4ae99c4108d --- /dev/null +++ b/tests/baselines/reference/controlFlowFavorAssertedTypeThroughTypePredicate.errors.txt @@ -0,0 +1,51 @@ +tests/cases/compiler/controlFlowFavorAssertedTypeThroughTypePredicate.ts(26,5): error TS7053: Element implicitly has an 'any' type because expression of type '"attr"' can't be used to index type '{}'. + Property 'attr' does not exist on type '{}'. +tests/cases/compiler/controlFlowFavorAssertedTypeThroughTypePredicate.ts(34,5): error TS7053: Element implicitly has an 'any' type because expression of type '"attr"' can't be used to index type '{}'. + Property 'attr' does not exist on type '{}'. + + +==== tests/cases/compiler/controlFlowFavorAssertedTypeThroughTypePredicate.ts (2 errors) ==== + // repro 49988#issuecomment-1192016929 + + declare function isObject1(value: unknown): value is Record; + + declare const obj1: {}; + if (isObject1(obj1)) { + obj1; + obj1['attr']; + } + // check type after conditional block + obj1; + + declare const obj2: {} | undefined; + if (isObject1(obj2)) { + obj2; + obj2['attr']; + } + // check type after conditional block + obj2; + + declare function isObject2(value: unknown): value is {}; + + declare const obj3: Record; + if (isObject2(obj3)) { + obj3; + obj3['attr']; + ~~~~~~~~~~~~ +!!! error TS7053: Element implicitly has an 'any' type because expression of type '"attr"' can't be used to index type '{}'. +!!! error TS7053: Property 'attr' does not exist on type '{}'. + } + // check type after conditional block + obj3; + + declare const obj4: Record | undefined; + if (isObject2(obj4)) { + obj4; + obj4['attr']; + ~~~~~~~~~~~~ +!!! error TS7053: Element implicitly has an 'any' type because expression of type '"attr"' can't be used to index type '{}'. +!!! error TS7053: Property 'attr' does not exist on type '{}'. + } + // check type after conditional block + obj4; + \ No newline at end of file diff --git a/tests/baselines/reference/controlFlowFavorAssertedTypeThroughTypePredicate.symbols b/tests/baselines/reference/controlFlowFavorAssertedTypeThroughTypePredicate.symbols new file mode 100644 index 00000000000..5d7f64ae9f3 --- /dev/null +++ b/tests/baselines/reference/controlFlowFavorAssertedTypeThroughTypePredicate.symbols @@ -0,0 +1,84 @@ +=== tests/cases/compiler/controlFlowFavorAssertedTypeThroughTypePredicate.ts === +// repro 49988#issuecomment-1192016929 + +declare function isObject1(value: unknown): value is Record; +>isObject1 : Symbol(isObject1, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 0, 0)) +>value : Symbol(value, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 2, 27)) +>value : Symbol(value, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 2, 27)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) + +declare const obj1: {}; +>obj1 : Symbol(obj1, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 4, 13)) + +if (isObject1(obj1)) { +>isObject1 : Symbol(isObject1, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 0, 0)) +>obj1 : Symbol(obj1, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 4, 13)) + + obj1; +>obj1 : Symbol(obj1, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 4, 13)) + + obj1['attr']; +>obj1 : Symbol(obj1, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 4, 13)) +} +// check type after conditional block +obj1; +>obj1 : Symbol(obj1, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 4, 13)) + +declare const obj2: {} | undefined; +>obj2 : Symbol(obj2, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 12, 13)) + +if (isObject1(obj2)) { +>isObject1 : Symbol(isObject1, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 0, 0)) +>obj2 : Symbol(obj2, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 12, 13)) + + obj2; +>obj2 : Symbol(obj2, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 12, 13)) + + obj2['attr']; +>obj2 : Symbol(obj2, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 12, 13)) +} +// check type after conditional block +obj2; +>obj2 : Symbol(obj2, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 12, 13)) + +declare function isObject2(value: unknown): value is {}; +>isObject2 : Symbol(isObject2, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 18, 5)) +>value : Symbol(value, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 20, 27)) +>value : Symbol(value, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 20, 27)) + +declare const obj3: Record; +>obj3 : Symbol(obj3, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 22, 13)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) + +if (isObject2(obj3)) { +>isObject2 : Symbol(isObject2, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 18, 5)) +>obj3 : Symbol(obj3, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 22, 13)) + + obj3; +>obj3 : Symbol(obj3, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 22, 13)) + + obj3['attr']; +>obj3 : Symbol(obj3, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 22, 13)) +} +// check type after conditional block +obj3; +>obj3 : Symbol(obj3, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 22, 13)) + +declare const obj4: Record | undefined; +>obj4 : Symbol(obj4, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 30, 13)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) + +if (isObject2(obj4)) { +>isObject2 : Symbol(isObject2, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 18, 5)) +>obj4 : Symbol(obj4, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 30, 13)) + + obj4; +>obj4 : Symbol(obj4, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 30, 13)) + + obj4['attr']; +>obj4 : Symbol(obj4, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 30, 13)) +} +// check type after conditional block +obj4; +>obj4 : Symbol(obj4, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 30, 13)) + diff --git a/tests/baselines/reference/controlFlowFavorAssertedTypeThroughTypePredicate.types b/tests/baselines/reference/controlFlowFavorAssertedTypeThroughTypePredicate.types new file mode 100644 index 00000000000..395da42f876 --- /dev/null +++ b/tests/baselines/reference/controlFlowFavorAssertedTypeThroughTypePredicate.types @@ -0,0 +1,91 @@ +=== tests/cases/compiler/controlFlowFavorAssertedTypeThroughTypePredicate.ts === +// repro 49988#issuecomment-1192016929 + +declare function isObject1(value: unknown): value is Record; +>isObject1 : (value: unknown) => value is Record +>value : unknown + +declare const obj1: {}; +>obj1 : {} + +if (isObject1(obj1)) { +>isObject1(obj1) : boolean +>isObject1 : (value: unknown) => value is Record +>obj1 : {} + + obj1; +>obj1 : Record + + obj1['attr']; +>obj1['attr'] : unknown +>obj1 : Record +>'attr' : "attr" +} +// check type after conditional block +obj1; +>obj1 : Record + +declare const obj2: {} | undefined; +>obj2 : {} | undefined + +if (isObject1(obj2)) { +>isObject1(obj2) : boolean +>isObject1 : (value: unknown) => value is Record +>obj2 : {} | undefined + + obj2; +>obj2 : Record + + obj2['attr']; +>obj2['attr'] : unknown +>obj2 : Record +>'attr' : "attr" +} +// check type after conditional block +obj2; +>obj2 : Record | undefined + +declare function isObject2(value: unknown): value is {}; +>isObject2 : (value: unknown) => value is {} +>value : unknown + +declare const obj3: Record; +>obj3 : Record + +if (isObject2(obj3)) { +>isObject2(obj3) : boolean +>isObject2 : (value: unknown) => value is {} +>obj3 : Record + + obj3; +>obj3 : {} + + obj3['attr']; +>obj3['attr'] : any +>obj3 : {} +>'attr' : "attr" +} +// check type after conditional block +obj3; +>obj3 : {} + +declare const obj4: Record | undefined; +>obj4 : Record | undefined + +if (isObject2(obj4)) { +>isObject2(obj4) : boolean +>isObject2 : (value: unknown) => value is {} +>obj4 : Record | undefined + + obj4; +>obj4 : {} + + obj4['attr']; +>obj4['attr'] : any +>obj4 : {} +>'attr' : "attr" +} +// check type after conditional block +obj4; +>obj4 : {} | undefined + diff --git a/tests/baselines/reference/controlFlowOptionalChain.types b/tests/baselines/reference/controlFlowOptionalChain.types index 8eb843fb060..b16f6972ef4 100644 --- a/tests/baselines/reference/controlFlowOptionalChain.types +++ b/tests/baselines/reference/controlFlowOptionalChain.types @@ -1768,9 +1768,9 @@ function f30(o: Thing | undefined) { >foo : string | number | undefined o.foo; ->o.foo : string | number +>o.foo : NonNullable >o : Thing ->foo : string | number +>foo : NonNullable } } diff --git a/tests/baselines/reference/controlFlowParameter.js b/tests/baselines/reference/controlFlowParameter.js new file mode 100644 index 00000000000..283061f6650 --- /dev/null +++ b/tests/baselines/reference/controlFlowParameter.js @@ -0,0 +1,60 @@ +//// [controlFlowParameter.ts] +function f1( + required: unknown = (() => { + throw new Error("bad"); + })() +) { + console.log("ok"); // should not trigger 'Unreachable code detected.' +} + +function f2( + a: number | string | undefined, + required: unknown = (() => { + a = 1; + })() +) { + a; // should be number | string | undefined +} + +function f3( + a: number | string | undefined = 1, + required: unknown = (() => { + a = ""; + })() +) { + a; // should be number | string +} + +function f4( + a: number | string | undefined = 1, + { [(a = "")]: b } = {} as any +) { + a; // should be string +} + + +//// [controlFlowParameter.js] +function f1(required) { + if (required === void 0) { required = (function () { + throw new Error("bad"); + })(); } + console.log("ok"); // should not trigger 'Unreachable code detected.' +} +function f2(a, required) { + if (required === void 0) { required = (function () { + a = 1; + })(); } + a; // should be number | string | undefined +} +function f3(a, required) { + if (a === void 0) { a = 1; } + if (required === void 0) { required = (function () { + a = ""; + })(); } + a; // should be number | string +} +function f4(a, _a) { + if (a === void 0) { a = 1; } + var _b = _a === void 0 ? {} : _a, _c = (a = ""), b = _b[_c]; + a; // should be string +} diff --git a/tests/baselines/reference/controlFlowParameter.symbols b/tests/baselines/reference/controlFlowParameter.symbols new file mode 100644 index 00000000000..b2f58685a0c --- /dev/null +++ b/tests/baselines/reference/controlFlowParameter.symbols @@ -0,0 +1,69 @@ +=== tests/cases/conformance/controlFlow/controlFlowParameter.ts === +function f1( +>f1 : Symbol(f1, Decl(controlFlowParameter.ts, 0, 0)) + + required: unknown = (() => { +>required : Symbol(required, Decl(controlFlowParameter.ts, 0, 12)) + + throw new Error("bad"); +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + })() +) { + console.log("ok"); // should not trigger 'Unreachable code detected.' +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +} + +function f2( +>f2 : Symbol(f2, Decl(controlFlowParameter.ts, 6, 1)) + + a: number | string | undefined, +>a : Symbol(a, Decl(controlFlowParameter.ts, 8, 12)) + + required: unknown = (() => { +>required : Symbol(required, Decl(controlFlowParameter.ts, 9, 33)) + + a = 1; +>a : Symbol(a, Decl(controlFlowParameter.ts, 8, 12)) + + })() +) { + a; // should be number | string | undefined +>a : Symbol(a, Decl(controlFlowParameter.ts, 8, 12)) +} + +function f3( +>f3 : Symbol(f3, Decl(controlFlowParameter.ts, 15, 1)) + + a: number | string | undefined = 1, +>a : Symbol(a, Decl(controlFlowParameter.ts, 17, 12)) + + required: unknown = (() => { +>required : Symbol(required, Decl(controlFlowParameter.ts, 18, 37)) + + a = ""; +>a : Symbol(a, Decl(controlFlowParameter.ts, 17, 12)) + + })() +) { + a; // should be number | string +>a : Symbol(a, Decl(controlFlowParameter.ts, 17, 12)) +} + +function f4( +>f4 : Symbol(f4, Decl(controlFlowParameter.ts, 24, 1)) + + a: number | string | undefined = 1, +>a : Symbol(a, Decl(controlFlowParameter.ts, 26, 12)) + + { [(a = "")]: b } = {} as any +>a : Symbol(a, Decl(controlFlowParameter.ts, 26, 12)) +>b : Symbol(b, Decl(controlFlowParameter.ts, 28, 3)) + +) { + a; // should be string +>a : Symbol(a, Decl(controlFlowParameter.ts, 26, 12)) +} + diff --git a/tests/baselines/reference/controlFlowParameter.types b/tests/baselines/reference/controlFlowParameter.types new file mode 100644 index 00000000000..0a77f532f1b --- /dev/null +++ b/tests/baselines/reference/controlFlowParameter.types @@ -0,0 +1,93 @@ +=== tests/cases/conformance/controlFlow/controlFlowParameter.ts === +function f1( +>f1 : (required?: unknown) => void + + required: unknown = (() => { +>required : unknown +>(() => { throw new Error("bad"); })() : never +>(() => { throw new Error("bad"); }) : () => never +>() => { throw new Error("bad"); } : () => never + + throw new Error("bad"); +>new Error("bad") : Error +>Error : ErrorConstructor +>"bad" : "bad" + + })() +) { + console.log("ok"); // should not trigger 'Unreachable code detected.' +>console.log("ok") : void +>console.log : (...data: any[]) => void +>console : Console +>log : (...data: any[]) => void +>"ok" : "ok" +} + +function f2( +>f2 : (a: number | string | undefined, required?: unknown) => void + + a: number | string | undefined, +>a : string | number | undefined + + required: unknown = (() => { +>required : unknown +>(() => { a = 1; })() : void +>(() => { a = 1; }) : () => void +>() => { a = 1; } : () => void + + a = 1; +>a = 1 : 1 +>a : string | number | undefined +>1 : 1 + + })() +) { + a; // should be number | string | undefined +>a : string | number | undefined +} + +function f3( +>f3 : (a?: number | string | undefined, required?: unknown) => void + + a: number | string | undefined = 1, +>a : string | number | undefined +>1 : 1 + + required: unknown = (() => { +>required : unknown +>(() => { a = ""; })() : void +>(() => { a = ""; }) : () => void +>() => { a = ""; } : () => void + + a = ""; +>a = "" : "" +>a : string | number | undefined +>"" : "" + + })() +) { + a; // should be number | string +>a : string | number +} + +function f4( +>f4 : (a?: number | string | undefined, { [(a = "")]: b }?: any) => void + + a: number | string | undefined = 1, +>a : string | number | undefined +>1 : 1 + + { [(a = "")]: b } = {} as any +>(a = "") : "" +>a = "" : "" +>a : string | number | undefined +>"" : "" +>b : any +>{} as any : any +>{} : {} + +) { + a; // should be string +>a : string +} + diff --git a/tests/baselines/reference/correlatedUnions.js b/tests/baselines/reference/correlatedUnions.js index 0d6698588d3..53dae6d8ab2 100644 --- a/tests/baselines/reference/correlatedUnions.js +++ b/tests/baselines/reference/correlatedUnions.js @@ -358,12 +358,12 @@ var BAR_LOOKUP = makeCompleteLookupMapping(ALL_BARS, 'name'); //// [correlatedUnions.d.ts] -declare type RecordMap = { +type RecordMap = { n: number; s: string; b: boolean; }; -declare type UnionRecord = { +type UnionRecord = { [P in K]: { kind: P; v: RecordMap[P]; @@ -373,39 +373,39 @@ declare type UnionRecord = { declare function processRecord(rec: UnionRecord): void; declare const r1: UnionRecord<'n'>; declare const r2: UnionRecord; -declare type TextFieldData = { +type TextFieldData = { value: string; }; -declare type SelectFieldData = { +type SelectFieldData = { options: string[]; selectedValue: string; }; -declare type FieldMap = { +type FieldMap = { text: TextFieldData; select: SelectFieldData; }; -declare type FormField = { +type FormField = { type: K; data: FieldMap[K]; }; -declare type RenderFunc = (props: FieldMap[K]) => void; -declare type RenderFuncMap = { +type RenderFunc = (props: FieldMap[K]) => void; +type RenderFuncMap = { [K in keyof FieldMap]: RenderFunc; }; declare function renderTextField(props: TextFieldData): void; declare function renderSelectField(props: SelectFieldData): void; declare const renderFuncs: RenderFuncMap; declare function renderField(field: FormField): void; -declare type TypeMap = { +type TypeMap = { foo: string; bar: number; }; -declare type Keys = keyof TypeMap; -declare type HandlerMap = { +type Keys = keyof TypeMap; +type HandlerMap = { [P in Keys]: (x: TypeMap[P]) => void; }; declare const handlers: HandlerMap; -declare type DataEntry = { +type DataEntry = { [P in K]: { type: P; data: TypeMap[P]; @@ -413,25 +413,25 @@ declare type DataEntry = { }[K]; declare const data: DataEntry[]; declare function process(data: DataEntry[]): void; -declare type LetterMap = { +type LetterMap = { A: string; B: number; }; -declare type LetterCaller = { +type LetterCaller = { [P in K]: { letter: Record; caller: (x: Record) => void; }; }[K]; declare function call({ letter, caller }: LetterCaller): void; -declare type A = { +type A = { A: string; }; -declare type B = { +type B = { B: number; }; -declare type ACaller = (a: A) => void; -declare type BCaller = (b: B) => void; +type ACaller = (a: A) => void; +type BCaller = (b: B) => void; declare const xx: { letter: A; caller: ACaller; @@ -439,7 +439,7 @@ declare const xx: { letter: B; caller: BCaller; }; -declare type Ev = { +type Ev = { [P in K]: { readonly name: P; readonly once?: boolean; @@ -459,12 +459,12 @@ declare const scrollEvent: { readonly callback: (ev: Event) => void; }; declare function ff1(): void; -declare type ArgMap = { +type ArgMap = { a: number; b: string; }; -declare type Func = (x: ArgMap[K]) => void; -declare type Funcs = { +type Func = (x: ArgMap[K]) => void; +type Funcs = { [K in keyof ArgMap]: Func; }; declare function f1(funcs: Funcs, key: K, arg: ArgMap[K]): void; @@ -502,7 +502,7 @@ declare const BAR_LOOKUP: { readonly name: "b"; }; }; -declare type BarLookup = typeof BAR_LOOKUP; -declare type Baz = { +type BarLookup = typeof BAR_LOOKUP; +type Baz = { [K in keyof BarLookup]: BarLookup[K]['name']; }; diff --git a/tests/baselines/reference/declarationEmitClassMixinLocalClassDeclaration.js b/tests/baselines/reference/declarationEmitClassMixinLocalClassDeclaration.js index 995985e1992..5a51cb5a9a4 100644 --- a/tests/baselines/reference/declarationEmitClassMixinLocalClassDeclaration.js +++ b/tests/baselines/reference/declarationEmitClassMixinLocalClassDeclaration.js @@ -72,9 +72,9 @@ exports.XmlElement2 = XmlElement2; //// [declarationEmitClassMixinLocalClassDeclaration.d.ts] -export declare type AnyFunction = (...input: any[]) => Result; -export declare type AnyConstructor = (new (...input: any[]) => Instance) & Static; -declare type MixinHelperFunc = (required: [A], arg: T) => T extends AnyFunction ? M : never; +export type AnyFunction = (...input: any[]) => Result; +export type AnyConstructor = (new (...input: any[]) => Instance) & Static; +type MixinHelperFunc = (required: [A], arg: T) => T extends AnyFunction ? M : never; export declare const Mixin: MixinHelperFunc; export declare class Base { } diff --git a/tests/baselines/reference/declarationEmitDestructuringParameterProperties.js b/tests/baselines/reference/declarationEmitDestructuringParameterProperties.js index 8f5650a296b..9678ca93cbe 100644 --- a/tests/baselines/reference/declarationEmitDestructuringParameterProperties.js +++ b/tests/baselines/reference/declarationEmitDestructuringParameterProperties.js @@ -44,14 +44,14 @@ declare class C1 { z: string; constructor([x, y, z]: string[]); } -declare type TupleType1 = [string, number, boolean]; +type TupleType1 = [string, number, boolean]; declare class C2 { x: string; y: number; z: boolean; constructor([x, y, z]: TupleType1); } -declare type ObjType1 = { +type ObjType1 = { x: number; y: string; z: boolean; diff --git a/tests/baselines/reference/declarationEmitDistributiveConditionalWithInfer.js b/tests/baselines/reference/declarationEmitDistributiveConditionalWithInfer.js new file mode 100644 index 00000000000..1e161e0ca65 --- /dev/null +++ b/tests/baselines/reference/declarationEmitDistributiveConditionalWithInfer.js @@ -0,0 +1,18 @@ +//// [declarationEmitDistributiveConditionalWithInfer.ts] +// This function's type is changed on declaration +export const fun = ( + subFun: () + => FlatArray[]) => { }; + + +//// [declarationEmitDistributiveConditionalWithInfer.js] +"use strict"; +exports.__esModule = true; +exports.fun = void 0; +// This function's type is changed on declaration +var fun = function (subFun) { }; +exports.fun = fun; + + +//// [declarationEmitDistributiveConditionalWithInfer.d.ts] +export declare const fun: (subFun: () => (Collection[Field] extends infer T ? T extends Collection[Field] ? T extends readonly (infer InnerArr)[] ? InnerArr : T : never : never)[]) => void; diff --git a/tests/baselines/reference/declarationEmitDistributiveConditionalWithInfer.symbols b/tests/baselines/reference/declarationEmitDistributiveConditionalWithInfer.symbols new file mode 100644 index 00000000000..b6f70927536 --- /dev/null +++ b/tests/baselines/reference/declarationEmitDistributiveConditionalWithInfer.symbols @@ -0,0 +1,16 @@ +=== tests/cases/compiler/declarationEmitDistributiveConditionalWithInfer.ts === +// This function's type is changed on declaration +export const fun = ( +>fun : Symbol(fun, Decl(declarationEmitDistributiveConditionalWithInfer.ts, 1, 12)) + + subFun: () +>subFun : Symbol(subFun, Decl(declarationEmitDistributiveConditionalWithInfer.ts, 1, 20)) +>Collection : Symbol(Collection, Decl(declarationEmitDistributiveConditionalWithInfer.ts, 2, 13)) +>Field : Symbol(Field, Decl(declarationEmitDistributiveConditionalWithInfer.ts, 2, 24)) +>Collection : Symbol(Collection, Decl(declarationEmitDistributiveConditionalWithInfer.ts, 2, 13)) + + => FlatArray[]) => { }; +>FlatArray : Symbol(FlatArray, Decl(lib.es2019.array.d.ts, --, --)) +>Collection : Symbol(Collection, Decl(declarationEmitDistributiveConditionalWithInfer.ts, 2, 13)) +>Field : Symbol(Field, Decl(declarationEmitDistributiveConditionalWithInfer.ts, 2, 24)) + diff --git a/tests/baselines/reference/declarationEmitDistributiveConditionalWithInfer.types b/tests/baselines/reference/declarationEmitDistributiveConditionalWithInfer.types new file mode 100644 index 00000000000..08ee505927b --- /dev/null +++ b/tests/baselines/reference/declarationEmitDistributiveConditionalWithInfer.types @@ -0,0 +1,11 @@ +=== tests/cases/compiler/declarationEmitDistributiveConditionalWithInfer.ts === +// This function's type is changed on declaration +export const fun = ( +>fun : (subFun: () => (Collection[Field] extends readonly (infer InnerArr)[] ? InnerArr : Collection[Field])[]) => void +>( subFun: () => FlatArray[]) => { } : (subFun: () => (Collection[Field] extends readonly (infer InnerArr)[] ? InnerArr : Collection[Field])[]) => void + + subFun: () +>subFun : () => (Collection[Field] extends readonly (infer InnerArr)[] ? InnerArr : Collection[Field])[] + + => FlatArray[]) => { }; + diff --git a/tests/baselines/reference/declarationEmitExportAliasVisibiilityMarking.js b/tests/baselines/reference/declarationEmitExportAliasVisibiilityMarking.js index 4f554c808cf..1c9a4212abc 100644 --- a/tests/baselines/reference/declarationEmitExportAliasVisibiilityMarking.js +++ b/tests/baselines/reference/declarationEmitExportAliasVisibiilityMarking.js @@ -30,8 +30,8 @@ exports.lazyCard = lazyCard; //// [Types.d.ts] -declare type Suit = 'Hearts' | 'Spades' | 'Clubs' | 'Diamonds'; -declare type Rank = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 'Jack' | 'Queen' | 'King'; +type Suit = 'Hearts' | 'Spades' | 'Clubs' | 'Diamonds'; +type Rank = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 'Jack' | 'Queen' | 'King'; export { Suit, Rank }; //// [Card.d.ts] import { Suit, Rank } from './Types'; diff --git a/tests/baselines/reference/declarationEmitExpressionInExtends6.errors.txt b/tests/baselines/reference/declarationEmitExpressionInExtends6.errors.txt deleted file mode 100644 index acd1e1a7c9e..00000000000 --- a/tests/baselines/reference/declarationEmitExpressionInExtends6.errors.txt +++ /dev/null @@ -1,15 +0,0 @@ -/b.ts(2,30): error TS4021: 'extends' clause of exported class has or is using private name 'Foo'. - - -==== /b.ts (1 errors) ==== - const { Foo } = require("./a"); - export default class extends Foo {} - ~~~ -!!! error TS4021: 'extends' clause of exported class has or is using private name 'Foo'. - -==== /node_modules/@types/node/index.d.ts (0 errors) ==== - declare const require: any; - -==== /a.js (0 errors) ==== - export class Foo {} - \ No newline at end of file diff --git a/tests/baselines/reference/declarationEmitExpressionInExtends6.js b/tests/baselines/reference/declarationEmitExpressionInExtends6.js index 3e6f13b3887..c4e9df05e21 100644 --- a/tests/baselines/reference/declarationEmitExpressionInExtends6.js +++ b/tests/baselines/reference/declarationEmitExpressionInExtends6.js @@ -3,14 +3,25 @@ //// [index.d.ts] declare const require: any; -//// [a.js] +//// [a.ts] export class Foo {} //// [b.ts] -const { Foo } = require("./a"); +import * as A from "./a"; +const { Foo } = A; export default class extends Foo {} +//// [a.js] +"use strict"; +exports.__esModule = true; +exports.Foo = void 0; +var Foo = /** @class */ (function () { + function Foo() { + } + return Foo; +}()); +exports.Foo = Foo; //// [b.js] "use strict"; var __extends = (this && this.__extends) || (function () { @@ -29,7 +40,8 @@ var __extends = (this && this.__extends) || (function () { }; })(); exports.__esModule = true; -var Foo = require("./a").Foo; +var A = require("./a"); +var Foo = A.Foo; var default_1 = /** @class */ (function (_super) { __extends(default_1, _super); function default_1() { @@ -38,3 +50,14 @@ var default_1 = /** @class */ (function (_super) { return default_1; }(Foo)); exports["default"] = default_1; + + +//// [a.d.ts] +export declare class Foo { +} +//// [b.d.ts] +import * as A from "./a"; +declare const Foo: typeof A.Foo; +export default class extends Foo { +} +export {}; diff --git a/tests/baselines/reference/declarationEmitExpressionInExtends6.symbols b/tests/baselines/reference/declarationEmitExpressionInExtends6.symbols index 32eaa9018c2..0a7c2a159bd 100644 --- a/tests/baselines/reference/declarationEmitExpressionInExtends6.symbols +++ b/tests/baselines/reference/declarationEmitExpressionInExtends6.symbols @@ -1,12 +1,19 @@ -=== /b.ts === -const { Foo } = require("./a"); ->Foo : Symbol(Foo, Decl(b.ts, 0, 7)) ->require : Symbol(require, Decl(index.d.ts, 0, 13)) - -export default class extends Foo {} ->Foo : Symbol(Foo, Decl(b.ts, 0, 7)) - === /node_modules/@types/node/index.d.ts === declare const require: any; >require : Symbol(require, Decl(index.d.ts, 0, 13)) +=== /a.ts === +export class Foo {} +>Foo : Symbol(Foo, Decl(a.ts, 0, 0)) + +=== /b.ts === +import * as A from "./a"; +>A : Symbol(A, Decl(b.ts, 0, 6)) + +const { Foo } = A; +>Foo : Symbol(Foo, Decl(b.ts, 1, 7)) +>A : Symbol(A, Decl(b.ts, 0, 6)) + +export default class extends Foo {} +>Foo : Symbol(Foo, Decl(b.ts, 1, 7)) + diff --git a/tests/baselines/reference/declarationEmitExpressionInExtends6.types b/tests/baselines/reference/declarationEmitExpressionInExtends6.types index 03ec99ecc4f..520350cf4e1 100644 --- a/tests/baselines/reference/declarationEmitExpressionInExtends6.types +++ b/tests/baselines/reference/declarationEmitExpressionInExtends6.types @@ -1,14 +1,19 @@ -=== /b.ts === -const { Foo } = require("./a"); ->Foo : any ->require("./a") : any ->require : any ->"./a" : "./a" - -export default class extends Foo {} ->Foo : any - === /node_modules/@types/node/index.d.ts === declare const require: any; >require : any +=== /a.ts === +export class Foo {} +>Foo : Foo + +=== /b.ts === +import * as A from "./a"; +>A : typeof A + +const { Foo } = A; +>Foo : typeof A.Foo +>A : typeof A + +export default class extends Foo {} +>Foo : A.Foo + diff --git a/tests/baselines/reference/declarationEmitExpressionWithNonlocalPrivateUniqueSymbol.js b/tests/baselines/reference/declarationEmitExpressionWithNonlocalPrivateUniqueSymbol.js index b6cf51808c8..85dbd8939b0 100644 --- a/tests/baselines/reference/declarationEmitExpressionWithNonlocalPrivateUniqueSymbol.js +++ b/tests/baselines/reference/declarationEmitExpressionWithNonlocalPrivateUniqueSymbol.js @@ -21,7 +21,7 @@ exports.A1 = a_1.A; //// [a.d.ts] -declare type AX = { +type AX = { readonly A: unique symbol; }; export declare const A: AX; diff --git a/tests/baselines/reference/declarationEmitInferredTypeAlias5.js b/tests/baselines/reference/declarationEmitInferredTypeAlias5.js index 835b0e95726..e3ea15d889e 100644 --- a/tests/baselines/reference/declarationEmitInferredTypeAlias5.js +++ b/tests/baselines/reference/declarationEmitInferredTypeAlias5.js @@ -24,7 +24,7 @@ exports.v = v; //// [0.d.ts] -export declare type Data = string | boolean; +export type Data = string | boolean; //// [1.d.ts] declare let v: string | boolean; export { v }; diff --git a/tests/baselines/reference/declarationEmitInferredTypeAlias7.js b/tests/baselines/reference/declarationEmitInferredTypeAlias7.js index 2eb3756bab8..fb6aa06d14b 100644 --- a/tests/baselines/reference/declarationEmitInferredTypeAlias7.js +++ b/tests/baselines/reference/declarationEmitInferredTypeAlias7.js @@ -21,7 +21,7 @@ exports.v = v; //// [0.d.ts] -export declare type Data = string | boolean; +export type Data = string | boolean; //// [1.d.ts] declare let v: string | boolean; export { v }; diff --git a/tests/baselines/reference/declarationEmitInferredTypeAlias8.js b/tests/baselines/reference/declarationEmitInferredTypeAlias8.js index 0919c9a2282..90761d123ad 100644 --- a/tests/baselines/reference/declarationEmitInferredTypeAlias8.js +++ b/tests/baselines/reference/declarationEmitInferredTypeAlias8.js @@ -14,7 +14,7 @@ function returnSomeGlobalValue() { //// [declarationEmitInferredTypeAlias8.d.ts] -declare type Foo = T | { +type Foo = T | { x: Foo; }; declare var x: Foo; diff --git a/tests/baselines/reference/declarationEmitInferredTypeAlias9.js b/tests/baselines/reference/declarationEmitInferredTypeAlias9.js index d00a56caa50..39672035224 100644 --- a/tests/baselines/reference/declarationEmitInferredTypeAlias9.js +++ b/tests/baselines/reference/declarationEmitInferredTypeAlias9.js @@ -18,7 +18,7 @@ exports.returnSomeGlobalValue = returnSomeGlobalValue; //// [declarationEmitInferredTypeAlias9.d.ts] -declare type Foo = T | { +type Foo = T | { x: Foo; }; export declare function returnSomeGlobalValue(): Foo; diff --git a/tests/baselines/reference/declarationEmitInlinedDistributiveConditional.js b/tests/baselines/reference/declarationEmitInlinedDistributiveConditional.js index fafb13d1d5c..e15849d9ba1 100644 --- a/tests/baselines/reference/declarationEmitInlinedDistributiveConditional.js +++ b/tests/baselines/reference/declarationEmitInlinedDistributiveConditional.js @@ -47,8 +47,8 @@ export declare function excludePrivateKeys1(obj: Obj): { export declare function excludePrivateKeys2(obj: Obj): { [K in PublicKeys2]: Obj[K]; }; -export declare type PublicKeys1 = T extends `_${string}` ? never : T; -declare type PublicKeys2 = T extends `_${string}` ? never : T; +export type PublicKeys1 = T extends `_${string}` ? never : T; +type PublicKeys2 = T extends `_${string}` ? never : T; export {}; //// [api.d.ts] export declare const dropPrivateProps1: (obj: Obj) => { [K in import("./internal").PublicKeys1]: Obj[K]; }; diff --git a/tests/baselines/reference/declarationEmitMappedPrivateTypeTypeParameter.js b/tests/baselines/reference/declarationEmitMappedPrivateTypeTypeParameter.js index 79debe1b4b8..cc255490f15 100644 --- a/tests/baselines/reference/declarationEmitMappedPrivateTypeTypeParameter.js +++ b/tests/baselines/reference/declarationEmitMappedPrivateTypeTypeParameter.js @@ -17,4 +17,4 @@ exports.__esModule = true; //// [Helpers.d.ts] -export declare type StringKeyOf = Extract; +export type StringKeyOf = Extract; diff --git a/tests/baselines/reference/declarationEmitMappedTypeDistributivityPreservesConstraints.js b/tests/baselines/reference/declarationEmitMappedTypeDistributivityPreservesConstraints.js new file mode 100644 index 00000000000..bd8974d1ce3 --- /dev/null +++ b/tests/baselines/reference/declarationEmitMappedTypeDistributivityPreservesConstraints.js @@ -0,0 +1,61 @@ +//// [tests/cases/compiler/declarationEmitMappedTypeDistributivityPreservesConstraints.ts] //// + +//// [types.ts] +type Fns = Record unknown> + +type Map = { [K in keyof T]: T[K]; }; + +type AllArg = { [K in keyof T]: Parameters }; + +function fn }>(sliceIndex: T): AllArg { + return null!; +} + +export default { fn }; + +//// [reexport.ts] +import test from "./types"; +export default { test }; + +//// [types.js] +"use strict"; +exports.__esModule = true; +function fn(sliceIndex) { + return null; +} +exports["default"] = { fn: fn }; +//// [reexport.js] +"use strict"; +exports.__esModule = true; +var types_1 = require("./types"); +exports["default"] = { test: types_1["default"] }; + + +//// [types.d.ts] +type Fns = Record unknown>; +type Map = { + [K in keyof T]: T[K]; +}; +type AllArg = { + [K in keyof T]: Parameters; +}; +declare function fn; +}>(sliceIndex: T): AllArg; +declare const _default: { + fn: typeof fn; +}; +export default _default; +//// [reexport.d.ts] +declare const _default: { + test: { + fn: unknown; + } ? { [K in keyof T]: T_1["x"][K]; } : never; + }>(sliceIndex: T_1) => T_1["x"] extends infer T_2 extends { + [x: string]: (...params: unknown[]) => unknown; + } ? { [K_1 in keyof T_2]: Parameters; } : never; + }; +}; +export default _default; diff --git a/tests/baselines/reference/declarationEmitMappedTypeDistributivityPreservesConstraints.symbols b/tests/baselines/reference/declarationEmitMappedTypeDistributivityPreservesConstraints.symbols new file mode 100644 index 00000000000..c996d9f4d6c --- /dev/null +++ b/tests/baselines/reference/declarationEmitMappedTypeDistributivityPreservesConstraints.symbols @@ -0,0 +1,49 @@ +=== tests/cases/compiler/types.ts === +type Fns = Record unknown> +>Fns : Symbol(Fns, Decl(types.ts, 0, 0)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>params : Symbol(params, Decl(types.ts, 0, 27)) + +type Map = { [K in keyof T]: T[K]; }; +>Map : Symbol(Map, Decl(types.ts, 0, 60)) +>T : Symbol(T, Decl(types.ts, 2, 9)) +>Fns : Symbol(Fns, Decl(types.ts, 0, 0)) +>K : Symbol(K, Decl(types.ts, 2, 29)) +>T : Symbol(T, Decl(types.ts, 2, 9)) +>T : Symbol(T, Decl(types.ts, 2, 9)) +>K : Symbol(K, Decl(types.ts, 2, 29)) + +type AllArg = { [K in keyof T]: Parameters }; +>AllArg : Symbol(AllArg, Decl(types.ts, 2, 52)) +>T : Symbol(T, Decl(types.ts, 4, 12)) +>Fns : Symbol(Fns, Decl(types.ts, 0, 0)) +>K : Symbol(K, Decl(types.ts, 4, 32)) +>T : Symbol(T, Decl(types.ts, 4, 12)) +>Parameters : Symbol(Parameters, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(types.ts, 4, 12)) +>K : Symbol(K, Decl(types.ts, 4, 32)) + +function fn }>(sliceIndex: T): AllArg { +>fn : Symbol(fn, Decl(types.ts, 4, 66)) +>T : Symbol(T, Decl(types.ts, 6, 12)) +>x : Symbol(x, Decl(types.ts, 6, 23)) +>Map : Symbol(Map, Decl(types.ts, 0, 60)) +>T : Symbol(T, Decl(types.ts, 6, 12)) +>sliceIndex : Symbol(sliceIndex, Decl(types.ts, 6, 42)) +>T : Symbol(T, Decl(types.ts, 6, 12)) +>AllArg : Symbol(AllArg, Decl(types.ts, 2, 52)) +>T : Symbol(T, Decl(types.ts, 6, 12)) + + return null!; +} + +export default { fn }; +>fn : Symbol(fn, Decl(types.ts, 10, 16)) + +=== tests/cases/compiler/reexport.ts === +import test from "./types"; +>test : Symbol(test, Decl(reexport.ts, 0, 6)) + +export default { test }; +>test : Symbol(test, Decl(reexport.ts, 1, 16)) + diff --git a/tests/baselines/reference/declarationEmitMappedTypeDistributivityPreservesConstraints.types b/tests/baselines/reference/declarationEmitMappedTypeDistributivityPreservesConstraints.types new file mode 100644 index 00000000000..41b6e4b4bd3 --- /dev/null +++ b/tests/baselines/reference/declarationEmitMappedTypeDistributivityPreservesConstraints.types @@ -0,0 +1,33 @@ +=== tests/cases/compiler/types.ts === +type Fns = Record unknown> +>Fns : { [x: string]: (...params: unknown[]) => unknown; } +>params : unknown[] + +type Map = { [K in keyof T]: T[K]; }; +>Map : Map + +type AllArg = { [K in keyof T]: Parameters }; +>AllArg : AllArg + +function fn }>(sliceIndex: T): AllArg { +>fn : ; }>(sliceIndex: T) => AllArg +>x : Map +>sliceIndex : T + + return null!; +>null! : null +>null : null +} + +export default { fn }; +>{ fn } : { fn: ; }>(sliceIndex: T) => AllArg; } +>fn : ; }>(sliceIndex: T) => AllArg + +=== tests/cases/compiler/reexport.ts === +import test from "./types"; +>test : { fn: (sliceIndex: T) => { [K in keyof T["x"]]: Parameters; }; } + +export default { test }; +>{ test } : { test: { fn: (sliceIndex: T) => { [K in keyof T["x"]]: Parameters; }; }; } +>test : { fn: (sliceIndex: T) => { [K in keyof T["x"]]: Parameters; }; } + diff --git a/tests/baselines/reference/declarationEmitNoNonRequiredParens.js b/tests/baselines/reference/declarationEmitNoNonRequiredParens.js index d6d8a4751c4..ebc784f64b4 100644 --- a/tests/baselines/reference/declarationEmitNoNonRequiredParens.js +++ b/tests/baselines/reference/declarationEmitNoNonRequiredParens.js @@ -26,5 +26,5 @@ export declare enum Test { B = 1, C = 2 } -export declare type TestType = typeof Test; +export type TestType = typeof Test; export declare const bar: Test[]; diff --git a/tests/baselines/reference/declarationEmitNonExportedBindingPattern.js b/tests/baselines/reference/declarationEmitNonExportedBindingPattern.js new file mode 100644 index 00000000000..4184178ceb6 --- /dev/null +++ b/tests/baselines/reference/declarationEmitNonExportedBindingPattern.js @@ -0,0 +1,48 @@ +//// [test.ts] +function getFoo() { + return { foo: { test: 42 } } +} + +const { foo } = getFoo() + +export type AliasType = typeof foo + +const { foo: renamed } = getFoo() + +export type AliasType2 = typeof renamed + +function getNested() { + return { a: { b: { c: 'd' } } } +} + +const { a: { b: { c } } } = getNested() + +export type AliasType3 = typeof c + + +//// [test.js] +"use strict"; +exports.__esModule = true; +function getFoo() { + return { foo: { test: 42 } }; +} +var foo = getFoo().foo; +var renamed = getFoo().foo; +function getNested() { + return { a: { b: { c: 'd' } } }; +} +var c = getNested().a.b.c; + + +//// [test.d.ts] +declare const foo: { + test: number; +}; +export type AliasType = typeof foo; +declare const renamed: { + test: number; +}; +export type AliasType2 = typeof renamed; +declare const c: string; +export type AliasType3 = typeof c; +export {}; diff --git a/tests/baselines/reference/declarationEmitNonExportedBindingPattern.symbols b/tests/baselines/reference/declarationEmitNonExportedBindingPattern.symbols new file mode 100644 index 00000000000..e87423045c8 --- /dev/null +++ b/tests/baselines/reference/declarationEmitNonExportedBindingPattern.symbols @@ -0,0 +1,45 @@ +=== tests/cases/compiler/test.ts === +function getFoo() { +>getFoo : Symbol(getFoo, Decl(test.ts, 0, 0)) + + return { foo: { test: 42 } } +>foo : Symbol(foo, Decl(test.ts, 1, 10)) +>test : Symbol(test, Decl(test.ts, 1, 17)) +} + +const { foo } = getFoo() +>foo : Symbol(foo, Decl(test.ts, 4, 7)) +>getFoo : Symbol(getFoo, Decl(test.ts, 0, 0)) + +export type AliasType = typeof foo +>AliasType : Symbol(AliasType, Decl(test.ts, 4, 24)) +>foo : Symbol(foo, Decl(test.ts, 4, 7)) + +const { foo: renamed } = getFoo() +>foo : Symbol(foo, Decl(test.ts, 1, 10)) +>renamed : Symbol(renamed, Decl(test.ts, 8, 7)) +>getFoo : Symbol(getFoo, Decl(test.ts, 0, 0)) + +export type AliasType2 = typeof renamed +>AliasType2 : Symbol(AliasType2, Decl(test.ts, 8, 33)) +>renamed : Symbol(renamed, Decl(test.ts, 8, 7)) + +function getNested() { +>getNested : Symbol(getNested, Decl(test.ts, 10, 39)) + + return { a: { b: { c: 'd' } } } +>a : Symbol(a, Decl(test.ts, 13, 10)) +>b : Symbol(b, Decl(test.ts, 13, 15)) +>c : Symbol(c, Decl(test.ts, 13, 20)) +} + +const { a: { b: { c } } } = getNested() +>a : Symbol(a, Decl(test.ts, 13, 10)) +>b : Symbol(b, Decl(test.ts, 13, 15)) +>c : Symbol(c, Decl(test.ts, 16, 17)) +>getNested : Symbol(getNested, Decl(test.ts, 10, 39)) + +export type AliasType3 = typeof c +>AliasType3 : Symbol(AliasType3, Decl(test.ts, 16, 39)) +>c : Symbol(c, Decl(test.ts, 16, 17)) + diff --git a/tests/baselines/reference/declarationEmitNonExportedBindingPattern.types b/tests/baselines/reference/declarationEmitNonExportedBindingPattern.types new file mode 100644 index 00000000000..518a991a6ee --- /dev/null +++ b/tests/baselines/reference/declarationEmitNonExportedBindingPattern.types @@ -0,0 +1,55 @@ +=== tests/cases/compiler/test.ts === +function getFoo() { +>getFoo : () => { foo: { test: number; }; } + + return { foo: { test: 42 } } +>{ foo: { test: 42 } } : { foo: { test: number; }; } +>foo : { test: number; } +>{ test: 42 } : { test: number; } +>test : number +>42 : 42 +} + +const { foo } = getFoo() +>foo : { test: number; } +>getFoo() : { foo: { test: number; }; } +>getFoo : () => { foo: { test: number; }; } + +export type AliasType = typeof foo +>AliasType : { test: number; } +>foo : { test: number; } + +const { foo: renamed } = getFoo() +>foo : any +>renamed : { test: number; } +>getFoo() : { foo: { test: number; }; } +>getFoo : () => { foo: { test: number; }; } + +export type AliasType2 = typeof renamed +>AliasType2 : { test: number; } +>renamed : { test: number; } + +function getNested() { +>getNested : () => { a: { b: { c: string; }; }; } + + return { a: { b: { c: 'd' } } } +>{ a: { b: { c: 'd' } } } : { a: { b: { c: string; }; }; } +>a : { b: { c: string; }; } +>{ b: { c: 'd' } } : { b: { c: string; }; } +>b : { c: string; } +>{ c: 'd' } : { c: string; } +>c : string +>'d' : "d" +} + +const { a: { b: { c } } } = getNested() +>a : any +>b : any +>c : string +>getNested() : { a: { b: { c: string; }; }; } +>getNested : () => { a: { b: { c: string; }; }; } + +export type AliasType3 = typeof c +>AliasType3 : string +>c : string + diff --git a/tests/baselines/reference/declarationEmitPrivatePromiseLikeInterface.js b/tests/baselines/reference/declarationEmitPrivatePromiseLikeInterface.js index 1b5766d7fc0..ec9d5aefcf8 100644 --- a/tests/baselines/reference/declarationEmitPrivatePromiseLikeInterface.js +++ b/tests/baselines/reference/declarationEmitPrivatePromiseLikeInterface.js @@ -63,7 +63,7 @@ exports.Api = Api; //// [http-client.d.ts] -declare type TPromise = Omit, "then" | "catch"> & { +type TPromise = Omit, "then" | "catch"> & { then(onfulfilled?: ((value: ResolveType) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: RejectType) => TResult2 | PromiseLike) | undefined | null): TPromise; catch(onrejected?: ((reason: RejectType) => TResult | PromiseLike) | undefined | null): TPromise; }; diff --git a/tests/baselines/reference/declarationEmitShadowingInferNotRenamed.js b/tests/baselines/reference/declarationEmitShadowingInferNotRenamed.js index d69903c0413..803a677f206 100644 --- a/tests/baselines/reference/declarationEmitShadowingInferNotRenamed.js +++ b/tests/baselines/reference/declarationEmitShadowingInferNotRenamed.js @@ -32,8 +32,8 @@ exports.createClient = createClient; //// [declarationEmitShadowingInferNotRenamed.d.ts] -declare type Client = string; -declare type UpdatedClient = C & { +type Client = string; +type UpdatedClient = C & { foo: number; }; export declare const createClient: Client> | (new (...args: any[]) => Client)>(clientDef: D) => D extends new (...args: any[]) => infer C ? UpdatedClient : { [K in keyof D]: D[K] extends new (...args: any[]) => infer C_1 ? UpdatedClient : never; }; diff --git a/tests/baselines/reference/declarationEmitSymlinkPaths.js b/tests/baselines/reference/declarationEmitSymlinkPaths.js index 41f9c4b5830..c7c8ec1f5e6 100644 --- a/tests/baselines/reference/declarationEmitSymlinkPaths.js +++ b/tests/baselines/reference/declarationEmitSymlinkPaths.js @@ -42,8 +42,8 @@ exports.NotificationScenario = (0, index_1.test)(NotificationAPIUtils_1.getNotif //// [NotificationAPIUtils.d.ts] -export declare type NotificationRequest = {}; -export declare type NotificationResponse = {}; +export type NotificationRequest = {}; +export type NotificationResponse = {}; export declare function getNotification(): NotificationResponse; //// [NotificationStore.d.ts] export declare const NotificationScenario: () => import("../API/NotificationAPIUtils").NotificationResponse; diff --git a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters1.js b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters1.js index d3dfb39d48d..0c32429ded1 100644 --- a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters1.js +++ b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters1.js @@ -12,6 +12,6 @@ exports.y = y; //// [declarationEmitTypeAliasWithTypeParameters1.d.ts] -export declare type Bar = () => [X, Y]; -export declare type Foo = Bar; +export type Bar = () => [X, Y]; +export type Foo = Bar; export declare const y: (x: Foo) => number; diff --git a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters2.js b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters2.js index 750d2d68d06..14ab0d9dea6 100644 --- a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters2.js +++ b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters2.js @@ -13,7 +13,7 @@ exports.y = y; //// [declarationEmitTypeAliasWithTypeParameters2.d.ts] -export declare type Bar = () => [X, Y, Z]; -export declare type Baz = Bar; -export declare type Baa = Baz; +export type Bar = () => [X, Y, Z]; +export type Baz = Bar; +export type Baa = Baz; export declare const y: (x: Baa) => number; diff --git a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters3.js b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters3.js index 0cb7e23c4c5..b1e36b6b0a8 100644 --- a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters3.js +++ b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters3.js @@ -14,7 +14,7 @@ function bar() { //// [declarationEmitTypeAliasWithTypeParameters3.d.ts] -declare type Foo = { +type Foo = { foo(): Foo; }; declare function bar(): Foo; diff --git a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters4.js b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters4.js index 9d2422ea7e2..845c7ebc5fa 100644 --- a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters4.js +++ b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters4.js @@ -16,8 +16,8 @@ function foo() { //// [declarationEmitTypeAliasWithTypeParameters4.d.ts] -declare type Foo = { +type Foo = { foo(): Foo; }; -declare type SubFoo = Foo; +type SubFoo = Foo; declare function foo(): SubFoo; diff --git a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters5.js b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters5.js index 1b29acc164e..e1104d4c460 100644 --- a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters5.js +++ b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters5.js @@ -18,8 +18,8 @@ function foo() { //// [declarationEmitTypeAliasWithTypeParameters5.d.ts] -declare type Foo = { +type Foo = { foo(): Foo; }; -export declare type SubFoo = Foo; +export type SubFoo = Foo; export {}; diff --git a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters6.js b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters6.js index 53160a42d3e..539123c5a05 100644 --- a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters6.js +++ b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters6.js @@ -16,8 +16,8 @@ function foo() { //// [declarationEmitTypeAliasWithTypeParameters6.d.ts] -declare type Foo = { +type Foo = { foo(): Foo; }; -declare type SubFoo = Foo; +type SubFoo = Foo; declare function foo(): SubFoo; diff --git a/tests/baselines/reference/declarationEmitWithDefaultAsComputedName.js b/tests/baselines/reference/declarationEmitWithDefaultAsComputedName.js index b992e3d3fa8..705a55a4885 100644 --- a/tests/baselines/reference/declarationEmitWithDefaultAsComputedName.js +++ b/tests/baselines/reference/declarationEmitWithDefaultAsComputedName.js @@ -35,7 +35,7 @@ exports.obj = (_a = {}, //// [other.d.ts] -declare type Experiment = { +type Experiment = { name: Name; }; declare const _default: Experiment<"foo">; diff --git a/tests/baselines/reference/declarationEmitWithDefaultAsComputedName2.js b/tests/baselines/reference/declarationEmitWithDefaultAsComputedName2.js index afe89c50a48..e2f1d4c6135 100644 --- a/tests/baselines/reference/declarationEmitWithDefaultAsComputedName2.js +++ b/tests/baselines/reference/declarationEmitWithDefaultAsComputedName2.js @@ -35,7 +35,7 @@ exports.obj = (_a = {}, //// [other.d.ts] -declare type Experiment = { +type Experiment = { name: Name; }; declare const _default: Experiment<"foo">; diff --git a/tests/baselines/reference/declarationsForFileShadowingGlobalNoError.js b/tests/baselines/reference/declarationsForFileShadowingGlobalNoError.js index 71e15057754..740bbacdf14 100644 --- a/tests/baselines/reference/declarationsForFileShadowingGlobalNoError.js +++ b/tests/baselines/reference/declarationsForFileShadowingGlobalNoError.js @@ -55,12 +55,12 @@ exports.mixin = mixin; //// [dom.d.ts] -export declare type DOMNode = Node; +export type DOMNode = Node; //// [custom.d.ts] -export declare type Node = {}; +export type Node = {}; //// [index.d.ts] import { DOMNode } from './dom'; -declare type Constructor = new (...args: any[]) => any; +type Constructor = new (...args: any[]) => any; export declare const mixin: (Base: Constructor) => { new (...args: any[]): { [x: string]: any; diff --git a/tests/baselines/reference/declarationsForIndirectTypeAliasReference.js b/tests/baselines/reference/declarationsForIndirectTypeAliasReference.js index 3918bf6e32e..d73b45050ea 100644 --- a/tests/baselines/reference/declarationsForIndirectTypeAliasReference.js +++ b/tests/baselines/reference/declarationsForIndirectTypeAliasReference.js @@ -58,7 +58,7 @@ export { Hash, StringHash, StringHash2 }; interface Hash { [key: string]: T; } -declare type StringHash = Hash; +type StringHash = Hash; interface StringHash2 extends Hash { } //// [a.d.ts] diff --git a/tests/baselines/reference/declarationsWithRecursiveInternalTypesProduceUniqueTypeParams.js b/tests/baselines/reference/declarationsWithRecursiveInternalTypesProduceUniqueTypeParams.js index ddc78e9effe..fe06d05e0d7 100644 --- a/tests/baselines/reference/declarationsWithRecursiveInternalTypesProduceUniqueTypeParams.js +++ b/tests/baselines/reference/declarationsWithRecursiveInternalTypesProduceUniqueTypeParams.js @@ -92,8 +92,8 @@ void p3.result.three; //// [declarationsWithRecursiveInternalTypesProduceUniqueTypeParams.d.ts] -export declare type Key = keyof U; -export declare type Value, U> = U[K]; +export type Key = keyof U; +export type Value, U> = U[K]; export declare const updateIfChanged: (t: T) => ((key: K) => (>(key: K_1) => (>>(key: K_2) => (>>>(key: K_3) => (>>>>(key: K_4) => (>>>>>(key: K_5) => (>>>>>>(key: K_6) => (>>>>>>>(key: K_7) => (>>>>>>>>(key: K_8) => (>>>>>>>>>(key: K_9) => (>>>>>>>>>>(key: K_10) => any & { map: (updater: (u: Value>>>>>>>>>>) => Value>>>>>>>>>>) => T; set: (newU: Value>>>>>>>>>>) => T; diff --git a/tests/baselines/reference/decoratorOnClassMethod19(target=es2015).js b/tests/baselines/reference/decoratorOnClassMethod19(target=es2015).js new file mode 100644 index 00000000000..52b96fcbda1 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod19(target=es2015).js @@ -0,0 +1,67 @@ +//// [decoratorOnClassMethod19.ts] +// https://github.com/microsoft/TypeScript/issues/48515 +declare var decorator: any; + +class C1 { + #x + + @decorator((x: C1) => x.#x) + y() {} +} + +class C2 { + #x + + y(@decorator((x: C2) => x.#x) p) {} +} + + +//// [decoratorOnClassMethod19.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); +}; +var _C1_x, _C2_x; +class C1 { + constructor() { + _C1_x.set(this, void 0); + } + y() { } +} +_C1_x = new WeakMap(); +(() => { + __decorate([ + decorator((x) => __classPrivateFieldGet(x, _C1_x, "f")), + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", void 0) + ], C1.prototype, "y", null); +})(); +class C2 { + constructor() { + _C2_x.set(this, void 0); + } + y(p) { } +} +_C2_x = new WeakMap(); +(() => { + __decorate([ + __param(0, decorator((x) => __classPrivateFieldGet(x, _C2_x, "f"))), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", void 0) + ], C2.prototype, "y", null); +})(); diff --git a/tests/baselines/reference/decoratorOnClassMethod19(target=es2015).symbols b/tests/baselines/reference/decoratorOnClassMethod19(target=es2015).symbols new file mode 100644 index 00000000000..b254abacc73 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod19(target=es2015).symbols @@ -0,0 +1,38 @@ +=== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod19.ts === +// https://github.com/microsoft/TypeScript/issues/48515 +declare var decorator: any; +>decorator : Symbol(decorator, Decl(decoratorOnClassMethod19.ts, 1, 11)) + +class C1 { +>C1 : Symbol(C1, Decl(decoratorOnClassMethod19.ts, 1, 27)) + + #x +>#x : Symbol(C1.#x, Decl(decoratorOnClassMethod19.ts, 3, 10)) + + @decorator((x: C1) => x.#x) +>decorator : Symbol(decorator, Decl(decoratorOnClassMethod19.ts, 1, 11)) +>x : Symbol(x, Decl(decoratorOnClassMethod19.ts, 6, 16)) +>C1 : Symbol(C1, Decl(decoratorOnClassMethod19.ts, 1, 27)) +>x.#x : Symbol(C1.#x, Decl(decoratorOnClassMethod19.ts, 3, 10)) +>x : Symbol(x, Decl(decoratorOnClassMethod19.ts, 6, 16)) + + y() {} +>y : Symbol(C1.y, Decl(decoratorOnClassMethod19.ts, 4, 6)) +} + +class C2 { +>C2 : Symbol(C2, Decl(decoratorOnClassMethod19.ts, 8, 1)) + + #x +>#x : Symbol(C2.#x, Decl(decoratorOnClassMethod19.ts, 10, 10)) + + y(@decorator((x: C2) => x.#x) p) {} +>y : Symbol(C2.y, Decl(decoratorOnClassMethod19.ts, 11, 6)) +>decorator : Symbol(decorator, Decl(decoratorOnClassMethod19.ts, 1, 11)) +>x : Symbol(x, Decl(decoratorOnClassMethod19.ts, 13, 18)) +>C2 : Symbol(C2, Decl(decoratorOnClassMethod19.ts, 8, 1)) +>x.#x : Symbol(C2.#x, Decl(decoratorOnClassMethod19.ts, 10, 10)) +>x : Symbol(x, Decl(decoratorOnClassMethod19.ts, 13, 18)) +>p : Symbol(p, Decl(decoratorOnClassMethod19.ts, 13, 6)) +} + diff --git a/tests/baselines/reference/decoratorOnClassMethod19(target=es2015).types b/tests/baselines/reference/decoratorOnClassMethod19(target=es2015).types new file mode 100644 index 00000000000..9396896809a --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod19(target=es2015).types @@ -0,0 +1,40 @@ +=== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod19.ts === +// https://github.com/microsoft/TypeScript/issues/48515 +declare var decorator: any; +>decorator : any + +class C1 { +>C1 : C1 + + #x +>#x : any + + @decorator((x: C1) => x.#x) +>decorator((x: C1) => x.#x) : any +>decorator : any +>(x: C1) => x.#x : (x: C1) => any +>x : C1 +>x.#x : any +>x : C1 + + y() {} +>y : () => void +} + +class C2 { +>C2 : C2 + + #x +>#x : any + + y(@decorator((x: C2) => x.#x) p) {} +>y : (p: any) => void +>decorator((x: C2) => x.#x) : any +>decorator : any +>(x: C2) => x.#x : (x: C2) => any +>x : C2 +>x.#x : any +>x : C2 +>p : any +} + diff --git a/tests/baselines/reference/decoratorOnClassMethod19(target=es2022).js b/tests/baselines/reference/decoratorOnClassMethod19(target=es2022).js new file mode 100644 index 00000000000..f4d330003ad --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod19(target=es2022).js @@ -0,0 +1,55 @@ +//// [decoratorOnClassMethod19.ts] +// https://github.com/microsoft/TypeScript/issues/48515 +declare var decorator: any; + +class C1 { + #x + + @decorator((x: C1) => x.#x) + y() {} +} + +class C2 { + #x + + y(@decorator((x: C2) => x.#x) p) {} +} + + +//// [decoratorOnClassMethod19.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +class C1 { + #x; + y() { } + static { + __decorate([ + decorator((x) => x.#x), + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", void 0) + ], C1.prototype, "y", null); + } +} +class C2 { + #x; + y(p) { } + static { + __decorate([ + __param(0, decorator((x) => x.#x)), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", void 0) + ], C2.prototype, "y", null); + } +} diff --git a/tests/baselines/reference/decoratorOnClassMethod19(target=es2022).symbols b/tests/baselines/reference/decoratorOnClassMethod19(target=es2022).symbols new file mode 100644 index 00000000000..b254abacc73 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod19(target=es2022).symbols @@ -0,0 +1,38 @@ +=== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod19.ts === +// https://github.com/microsoft/TypeScript/issues/48515 +declare var decorator: any; +>decorator : Symbol(decorator, Decl(decoratorOnClassMethod19.ts, 1, 11)) + +class C1 { +>C1 : Symbol(C1, Decl(decoratorOnClassMethod19.ts, 1, 27)) + + #x +>#x : Symbol(C1.#x, Decl(decoratorOnClassMethod19.ts, 3, 10)) + + @decorator((x: C1) => x.#x) +>decorator : Symbol(decorator, Decl(decoratorOnClassMethod19.ts, 1, 11)) +>x : Symbol(x, Decl(decoratorOnClassMethod19.ts, 6, 16)) +>C1 : Symbol(C1, Decl(decoratorOnClassMethod19.ts, 1, 27)) +>x.#x : Symbol(C1.#x, Decl(decoratorOnClassMethod19.ts, 3, 10)) +>x : Symbol(x, Decl(decoratorOnClassMethod19.ts, 6, 16)) + + y() {} +>y : Symbol(C1.y, Decl(decoratorOnClassMethod19.ts, 4, 6)) +} + +class C2 { +>C2 : Symbol(C2, Decl(decoratorOnClassMethod19.ts, 8, 1)) + + #x +>#x : Symbol(C2.#x, Decl(decoratorOnClassMethod19.ts, 10, 10)) + + y(@decorator((x: C2) => x.#x) p) {} +>y : Symbol(C2.y, Decl(decoratorOnClassMethod19.ts, 11, 6)) +>decorator : Symbol(decorator, Decl(decoratorOnClassMethod19.ts, 1, 11)) +>x : Symbol(x, Decl(decoratorOnClassMethod19.ts, 13, 18)) +>C2 : Symbol(C2, Decl(decoratorOnClassMethod19.ts, 8, 1)) +>x.#x : Symbol(C2.#x, Decl(decoratorOnClassMethod19.ts, 10, 10)) +>x : Symbol(x, Decl(decoratorOnClassMethod19.ts, 13, 18)) +>p : Symbol(p, Decl(decoratorOnClassMethod19.ts, 13, 6)) +} + diff --git a/tests/baselines/reference/decoratorOnClassMethod19(target=es2022).types b/tests/baselines/reference/decoratorOnClassMethod19(target=es2022).types new file mode 100644 index 00000000000..9396896809a --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod19(target=es2022).types @@ -0,0 +1,40 @@ +=== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod19.ts === +// https://github.com/microsoft/TypeScript/issues/48515 +declare var decorator: any; +>decorator : any + +class C1 { +>C1 : C1 + + #x +>#x : any + + @decorator((x: C1) => x.#x) +>decorator((x: C1) => x.#x) : any +>decorator : any +>(x: C1) => x.#x : (x: C1) => any +>x : C1 +>x.#x : any +>x : C1 + + y() {} +>y : () => void +} + +class C2 { +>C2 : C2 + + #x +>#x : any + + y(@decorator((x: C2) => x.#x) p) {} +>y : (p: any) => void +>decorator((x: C2) => x.#x) : any +>decorator : any +>(x: C2) => x.#x : (x: C2) => any +>x : C2 +>x.#x : any +>x : C2 +>p : any +} + diff --git a/tests/baselines/reference/decoratorOnClassMethod19(target=esnext).js b/tests/baselines/reference/decoratorOnClassMethod19(target=esnext).js new file mode 100644 index 00000000000..f4d330003ad --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod19(target=esnext).js @@ -0,0 +1,55 @@ +//// [decoratorOnClassMethod19.ts] +// https://github.com/microsoft/TypeScript/issues/48515 +declare var decorator: any; + +class C1 { + #x + + @decorator((x: C1) => x.#x) + y() {} +} + +class C2 { + #x + + y(@decorator((x: C2) => x.#x) p) {} +} + + +//// [decoratorOnClassMethod19.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +class C1 { + #x; + y() { } + static { + __decorate([ + decorator((x) => x.#x), + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", void 0) + ], C1.prototype, "y", null); + } +} +class C2 { + #x; + y(p) { } + static { + __decorate([ + __param(0, decorator((x) => x.#x)), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", void 0) + ], C2.prototype, "y", null); + } +} diff --git a/tests/baselines/reference/decoratorOnClassMethod19(target=esnext).symbols b/tests/baselines/reference/decoratorOnClassMethod19(target=esnext).symbols new file mode 100644 index 00000000000..b254abacc73 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod19(target=esnext).symbols @@ -0,0 +1,38 @@ +=== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod19.ts === +// https://github.com/microsoft/TypeScript/issues/48515 +declare var decorator: any; +>decorator : Symbol(decorator, Decl(decoratorOnClassMethod19.ts, 1, 11)) + +class C1 { +>C1 : Symbol(C1, Decl(decoratorOnClassMethod19.ts, 1, 27)) + + #x +>#x : Symbol(C1.#x, Decl(decoratorOnClassMethod19.ts, 3, 10)) + + @decorator((x: C1) => x.#x) +>decorator : Symbol(decorator, Decl(decoratorOnClassMethod19.ts, 1, 11)) +>x : Symbol(x, Decl(decoratorOnClassMethod19.ts, 6, 16)) +>C1 : Symbol(C1, Decl(decoratorOnClassMethod19.ts, 1, 27)) +>x.#x : Symbol(C1.#x, Decl(decoratorOnClassMethod19.ts, 3, 10)) +>x : Symbol(x, Decl(decoratorOnClassMethod19.ts, 6, 16)) + + y() {} +>y : Symbol(C1.y, Decl(decoratorOnClassMethod19.ts, 4, 6)) +} + +class C2 { +>C2 : Symbol(C2, Decl(decoratorOnClassMethod19.ts, 8, 1)) + + #x +>#x : Symbol(C2.#x, Decl(decoratorOnClassMethod19.ts, 10, 10)) + + y(@decorator((x: C2) => x.#x) p) {} +>y : Symbol(C2.y, Decl(decoratorOnClassMethod19.ts, 11, 6)) +>decorator : Symbol(decorator, Decl(decoratorOnClassMethod19.ts, 1, 11)) +>x : Symbol(x, Decl(decoratorOnClassMethod19.ts, 13, 18)) +>C2 : Symbol(C2, Decl(decoratorOnClassMethod19.ts, 8, 1)) +>x.#x : Symbol(C2.#x, Decl(decoratorOnClassMethod19.ts, 10, 10)) +>x : Symbol(x, Decl(decoratorOnClassMethod19.ts, 13, 18)) +>p : Symbol(p, Decl(decoratorOnClassMethod19.ts, 13, 6)) +} + diff --git a/tests/baselines/reference/decoratorOnClassMethod19(target=esnext).types b/tests/baselines/reference/decoratorOnClassMethod19(target=esnext).types new file mode 100644 index 00000000000..9396896809a --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod19(target=esnext).types @@ -0,0 +1,40 @@ +=== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod19.ts === +// https://github.com/microsoft/TypeScript/issues/48515 +declare var decorator: any; +>decorator : any + +class C1 { +>C1 : C1 + + #x +>#x : any + + @decorator((x: C1) => x.#x) +>decorator((x: C1) => x.#x) : any +>decorator : any +>(x: C1) => x.#x : (x: C1) => any +>x : C1 +>x.#x : any +>x : C1 + + y() {} +>y : () => void +} + +class C2 { +>C2 : C2 + + #x +>#x : any + + y(@decorator((x: C2) => x.#x) p) {} +>y : (p: any) => void +>decorator((x: C2) => x.#x) : any +>decorator : any +>(x: C2) => x.#x : (x: C2) => any +>x : C2 +>x.#x : any +>x : C2 +>p : any +} + diff --git a/tests/baselines/reference/decoratorOnClassMethodParameter3.errors.txt b/tests/baselines/reference/decoratorOnClassMethodParameter3.errors.txt new file mode 100644 index 00000000000..fd0194a78b1 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethodParameter3.errors.txt @@ -0,0 +1,15 @@ +tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodParameter3.ts(5,23): error TS1308: 'await' expressions are only allowed within async functions and at the top levels of modules. + + +==== tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodParameter3.ts (1 errors) ==== + // https://github.com/microsoft/TypeScript/issues/48509 + declare function dec(a: any): any; + function fn(value: Promise): any { + class Class { + async method(@dec(await value) arg: number) {} + ~~~~~ +!!! error TS1308: 'await' expressions are only allowed within async functions and at the top levels of modules. + } + return Class + } + \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnClassMethodParameter3.js b/tests/baselines/reference/decoratorOnClassMethodParameter3.js new file mode 100644 index 00000000000..c7c1209af88 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethodParameter3.js @@ -0,0 +1,41 @@ +//// [decoratorOnClassMethodParameter3.ts] +// https://github.com/microsoft/TypeScript/issues/48509 +declare function dec(a: any): any; +function fn(value: Promise): any { + class Class { + async method(@dec(await value) arg: number) {} + } + return Class +} + + +//// [decoratorOnClassMethodParameter3.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +function fn(value) { + class Class { + method(arg) { + return __awaiter(this, void 0, void 0, function* () { }); + } + } + __decorate([ + __param(0, dec(yield value)) + ], Class.prototype, "method", null); + return Class; +} diff --git a/tests/baselines/reference/decoratorOnClassMethodParameter3.symbols b/tests/baselines/reference/decoratorOnClassMethodParameter3.symbols new file mode 100644 index 00000000000..628d4e67480 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethodParameter3.symbols @@ -0,0 +1,24 @@ +=== tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodParameter3.ts === +// https://github.com/microsoft/TypeScript/issues/48509 +declare function dec(a: any): any; +>dec : Symbol(dec, Decl(decoratorOnClassMethodParameter3.ts, 0, 0)) +>a : Symbol(a, Decl(decoratorOnClassMethodParameter3.ts, 1, 21)) + +function fn(value: Promise): any { +>fn : Symbol(fn, Decl(decoratorOnClassMethodParameter3.ts, 1, 34)) +>value : Symbol(value, Decl(decoratorOnClassMethodParameter3.ts, 2, 12)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + + class Class { +>Class : Symbol(Class, Decl(decoratorOnClassMethodParameter3.ts, 2, 42)) + + async method(@dec(await value) arg: number) {} +>method : Symbol(Class.method, Decl(decoratorOnClassMethodParameter3.ts, 3, 15)) +>dec : Symbol(dec, Decl(decoratorOnClassMethodParameter3.ts, 0, 0)) +>value : Symbol(value, Decl(decoratorOnClassMethodParameter3.ts, 2, 12)) +>arg : Symbol(arg, Decl(decoratorOnClassMethodParameter3.ts, 4, 17)) + } + return Class +>Class : Symbol(Class, Decl(decoratorOnClassMethodParameter3.ts, 2, 42)) +} + diff --git a/tests/baselines/reference/decoratorOnClassMethodParameter3.types b/tests/baselines/reference/decoratorOnClassMethodParameter3.types new file mode 100644 index 00000000000..21520b2097b --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethodParameter3.types @@ -0,0 +1,25 @@ +=== tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodParameter3.ts === +// https://github.com/microsoft/TypeScript/issues/48509 +declare function dec(a: any): any; +>dec : (a: any) => any +>a : any + +function fn(value: Promise): any { +>fn : (value: Promise) => any +>value : Promise + + class Class { +>Class : Class + + async method(@dec(await value) arg: number) {} +>method : (arg: number) => Promise +>dec(await value) : any +>dec : (a: any) => any +>await value : number +>value : Promise +>arg : number + } + return Class +>Class : typeof Class +} + diff --git a/tests/baselines/reference/deeplyNestedConditionalTypes.js b/tests/baselines/reference/deeplyNestedConditionalTypes.js index 20199c3a6b6..1ae2e646436 100644 --- a/tests/baselines/reference/deeplyNestedConditionalTypes.js +++ b/tests/baselines/reference/deeplyNestedConditionalTypes.js @@ -111,6 +111,6 @@ type T1 = Foo; //// [deeplyNestedConditionalTypes.d.ts] -declare type Foo = T extends 0 ? '0' : T extends 1 ? '1' : T extends 2 ? '2' : T extends 3 ? '3' : T extends 4 ? '4' : T extends 5 ? '5' : T extends 6 ? '6' : T extends 7 ? '7' : T extends 8 ? '8' : T extends 9 ? '9' : T extends 10 ? '10' : T extends 11 ? '11' : T extends 12 ? '12' : T extends 13 ? '13' : T extends 14 ? '14' : T extends 15 ? '15' : T extends 16 ? '16' : T extends 17 ? '17' : T extends 18 ? '18' : T extends 19 ? '19' : T extends 20 ? '20' : T extends 21 ? '21' : T extends 22 ? '22' : T extends 23 ? '23' : T extends 24 ? '24' : T extends 25 ? '25' : T extends 26 ? '26' : T extends 27 ? '27' : T extends 28 ? '28' : T extends 29 ? '29' : T extends 30 ? '30' : T extends 31 ? '31' : T extends 32 ? '32' : T extends 33 ? '33' : T extends 34 ? '34' : T extends 35 ? '35' : T extends 36 ? '36' : T extends 37 ? '37' : T extends 38 ? '38' : T extends 39 ? '39' : T extends 40 ? '40' : T extends 41 ? '41' : T extends 42 ? '42' : T extends 43 ? '43' : T extends 44 ? '44' : T extends 45 ? '45' : T extends 46 ? '46' : T extends 47 ? '47' : T extends 48 ? '48' : T extends 49 ? '49' : T extends 50 ? '50' : T extends 51 ? '51' : T extends 52 ? '52' : T extends 53 ? '53' : T extends 54 ? '54' : T extends 55 ? '55' : T extends 56 ? '56' : T extends 57 ? '57' : T extends 58 ? '58' : T extends 59 ? '59' : T extends 60 ? '60' : T extends 61 ? '61' : T extends 62 ? '62' : T extends 63 ? '63' : T extends 64 ? '64' : T extends 65 ? '65' : T extends 66 ? '66' : T extends 67 ? '67' : T extends 68 ? '68' : T extends 69 ? '69' : T extends 70 ? '70' : T extends 71 ? '71' : T extends 72 ? '72' : T extends 73 ? '73' : T extends 74 ? '74' : T extends 75 ? '75' : T extends 76 ? '76' : T extends 77 ? '77' : T extends 78 ? '78' : T extends 79 ? '79' : T extends 80 ? '80' : T extends 81 ? '81' : T extends 82 ? '82' : T extends 83 ? '83' : T extends 84 ? '84' : T extends 85 ? '85' : T extends 86 ? '86' : T extends 87 ? '87' : T extends 88 ? '88' : T extends 89 ? '89' : T extends 90 ? '90' : T extends 91 ? '91' : T extends 92 ? '92' : T extends 93 ? '93' : T extends 94 ? '94' : T extends 95 ? '95' : T extends 96 ? '96' : T extends 97 ? '97' : T extends 98 ? '98' : T extends 99 ? '99' : never; -declare type T0 = Foo<99>; -declare type T1 = Foo; +type Foo = T extends 0 ? '0' : T extends 1 ? '1' : T extends 2 ? '2' : T extends 3 ? '3' : T extends 4 ? '4' : T extends 5 ? '5' : T extends 6 ? '6' : T extends 7 ? '7' : T extends 8 ? '8' : T extends 9 ? '9' : T extends 10 ? '10' : T extends 11 ? '11' : T extends 12 ? '12' : T extends 13 ? '13' : T extends 14 ? '14' : T extends 15 ? '15' : T extends 16 ? '16' : T extends 17 ? '17' : T extends 18 ? '18' : T extends 19 ? '19' : T extends 20 ? '20' : T extends 21 ? '21' : T extends 22 ? '22' : T extends 23 ? '23' : T extends 24 ? '24' : T extends 25 ? '25' : T extends 26 ? '26' : T extends 27 ? '27' : T extends 28 ? '28' : T extends 29 ? '29' : T extends 30 ? '30' : T extends 31 ? '31' : T extends 32 ? '32' : T extends 33 ? '33' : T extends 34 ? '34' : T extends 35 ? '35' : T extends 36 ? '36' : T extends 37 ? '37' : T extends 38 ? '38' : T extends 39 ? '39' : T extends 40 ? '40' : T extends 41 ? '41' : T extends 42 ? '42' : T extends 43 ? '43' : T extends 44 ? '44' : T extends 45 ? '45' : T extends 46 ? '46' : T extends 47 ? '47' : T extends 48 ? '48' : T extends 49 ? '49' : T extends 50 ? '50' : T extends 51 ? '51' : T extends 52 ? '52' : T extends 53 ? '53' : T extends 54 ? '54' : T extends 55 ? '55' : T extends 56 ? '56' : T extends 57 ? '57' : T extends 58 ? '58' : T extends 59 ? '59' : T extends 60 ? '60' : T extends 61 ? '61' : T extends 62 ? '62' : T extends 63 ? '63' : T extends 64 ? '64' : T extends 65 ? '65' : T extends 66 ? '66' : T extends 67 ? '67' : T extends 68 ? '68' : T extends 69 ? '69' : T extends 70 ? '70' : T extends 71 ? '71' : T extends 72 ? '72' : T extends 73 ? '73' : T extends 74 ? '74' : T extends 75 ? '75' : T extends 76 ? '76' : T extends 77 ? '77' : T extends 78 ? '78' : T extends 79 ? '79' : T extends 80 ? '80' : T extends 81 ? '81' : T extends 82 ? '82' : T extends 83 ? '83' : T extends 84 ? '84' : T extends 85 ? '85' : T extends 86 ? '86' : T extends 87 ? '87' : T extends 88 ? '88' : T extends 89 ? '89' : T extends 90 ? '90' : T extends 91 ? '91' : T extends 92 ? '92' : T extends 93 ? '93' : T extends 94 ? '94' : T extends 95 ? '95' : T extends 96 ? '96' : T extends 97 ? '97' : T extends 98 ? '98' : T extends 99 ? '99' : never; +type T0 = Foo<99>; +type T1 = Foo; diff --git a/tests/baselines/reference/deeplyNestedConstraints.js b/tests/baselines/reference/deeplyNestedConstraints.js index 99fcbf4391c..8079e1cd488 100644 --- a/tests/baselines/reference/deeplyNestedConstraints.js +++ b/tests/baselines/reference/deeplyNestedConstraints.js @@ -26,8 +26,8 @@ var BufferPool = /** @class */ (function () { //// [deeplyNestedConstraints.d.ts] -declare type Enum = Record; -declare type TypeMap = { +type Enum = Record; +type TypeMap = { [key in E[keyof E]]: number | boolean | string | number[]; }; declare class BufferPool> { diff --git a/tests/baselines/reference/defaultParameterAddsUndefinedWithStrictNullChecks.js b/tests/baselines/reference/defaultParameterAddsUndefinedWithStrictNullChecks.js index 0477481c95c..6ca036ace79 100644 --- a/tests/baselines/reference/defaultParameterAddsUndefinedWithStrictNullChecks.js +++ b/tests/baselines/reference/defaultParameterAddsUndefinedWithStrictNullChecks.js @@ -124,7 +124,7 @@ declare function foo1(x: string | undefined, b: number): void; declare function foo2(x: string | undefined, b: number): void; declare function foo3(x: string | undefined, b: number): void; declare function foo4(x: string | undefined, b: number): void; -declare type OptionalNullableString = string | null | undefined; +type OptionalNullableString = string | null | undefined; declare function allowsNull(val?: OptionalNullableString): void; declare function removeUndefinedButNotFalse(x?: boolean): false | undefined; declare const cond: boolean; diff --git a/tests/baselines/reference/deferredLookupTypeResolution.js b/tests/baselines/reference/deferredLookupTypeResolution.js index 126f9d1345a..5baf26128b2 100644 --- a/tests/baselines/reference/deferredLookupTypeResolution.js +++ b/tests/baselines/reference/deferredLookupTypeResolution.js @@ -38,17 +38,17 @@ function f3(x) { //// [deferredLookupTypeResolution.d.ts] -declare type StringContains = ({ +type StringContains = ({ [K in S]: 'true'; } & { [key: string]: 'false'; })[L]; -declare type ObjectHasKey = StringContains, L>; -declare type First = ObjectHasKey; -declare type T1 = ObjectHasKey<{ +type ObjectHasKey = StringContains, L>; +type First = ObjectHasKey; +type T1 = ObjectHasKey<{ a: string; }, 'a'>; -declare type T2 = ObjectHasKey<{ +type T2 = ObjectHasKey<{ a: string; }, 'b'>; declare function f1(a: A, b: B): { diff --git a/tests/baselines/reference/deferredLookupTypeResolution2.js b/tests/baselines/reference/deferredLookupTypeResolution2.js index 3d40dcb4bbf..6702ef1d06b 100644 --- a/tests/baselines/reference/deferredLookupTypeResolution2.js +++ b/tests/baselines/reference/deferredLookupTypeResolution2.js @@ -28,28 +28,28 @@ type DeepOK = { true: 'true', otherwise: 'false' }[Juxtapose]; //// [deferredLookupTypeResolution2.d.ts] -declare type StringContains = ({ +type StringContains = ({ [K in S]: 'true'; } & { [key: string]: 'false'; })[L]; -declare type ObjectHasKey = StringContains, L>; -declare type A = ObjectHasKey; -declare type B = ObjectHasKey<[string, number], '1'>; -declare type C = ObjectHasKey<[string, number], '2'>; -declare type D = A<[string]>; -declare type E = { +type ObjectHasKey = StringContains, L>; +type A = ObjectHasKey; +type B = ObjectHasKey<[string, number], '1'>; +type C = ObjectHasKey<[string, number], '2'>; +type D = A<[string]>; +type E = { true: 'true'; }[ObjectHasKey]; -declare type Juxtapose = ({ +type Juxtapose = ({ true: 'otherwise'; } & { [k: string]: 'true'; })[ObjectHasKey]; -declare type DeepError = { +type DeepError = { true: 'true'; }[Juxtapose]; -declare type DeepOK = { +type DeepOK = { true: 'true'; otherwise: 'false'; }[Juxtapose]; diff --git a/tests/baselines/reference/dependentDestructuredVariables.errors.txt b/tests/baselines/reference/dependentDestructuredVariables.errors.txt index fbddf80744c..e3704b567ac 100644 --- a/tests/baselines/reference/dependentDestructuredVariables.errors.txt +++ b/tests/baselines/reference/dependentDestructuredVariables.errors.txt @@ -331,4 +331,47 @@ tests/cases/conformance/controlFlow/dependentDestructuredVariables.ts(314,5): er test8 = value1.test8, test9 = value1.test9 }) {} + + // Repro from #49772 + + function fa1(x: [true, number] | [false, string]) { + const [guard, value] = x; + if (guard) { + for (;;) { + value; // number + } + } + else { + while (!!true) { + value; // string + } + } + } + + function fa2(x: { guard: true, value: number } | { guard: false, value: string }) { + const { guard, value } = x; + if (guard) { + for (;;) { + value; // number + } + } + else { + while (!!true) { + value; // string + } + } + } + + const fa3: (...args: [true, number] | [false, string]) => void = (guard, value) => { + if (guard) { + for (;;) { + value; // number + } + } + else { + while (!!true) { + value; // string + } + } + } \ No newline at end of file diff --git a/tests/baselines/reference/dependentDestructuredVariables.js b/tests/baselines/reference/dependentDestructuredVariables.js index eab12767faf..dffb1c03d8d 100644 --- a/tests/baselines/reference/dependentDestructuredVariables.js +++ b/tests/baselines/reference/dependentDestructuredVariables.js @@ -323,6 +323,49 @@ function foo({ test8 = value1.test8, test9 = value1.test9 }) {} + +// Repro from #49772 + +function fa1(x: [true, number] | [false, string]) { + const [guard, value] = x; + if (guard) { + for (;;) { + value; // number + } + } + else { + while (!!true) { + value; // string + } + } +} + +function fa2(x: { guard: true, value: number } | { guard: false, value: string }) { + const { guard, value } = x; + if (guard) { + for (;;) { + value; // number + } + } + else { + while (!!true) { + value; // string + } + } +} + +const fa3: (...args: [true, number] | [false, string]) => void = (guard, value) => { + if (guard) { + for (;;) { + value; // number + } + } + else { + while (!!true) { + value; // string + } + } +} //// [dependentDestructuredVariables.js] @@ -567,10 +610,49 @@ const f60 = (kind, payload) => { }; // Repro from #48902 function foo({ value1, test1 = value1.test1, test2 = value1.test2, test3 = value1.test3, test4 = value1.test4, test5 = value1.test5, test6 = value1.test6, test7 = value1.test7, test8 = value1.test8, test9 = value1.test9 }) { } +// Repro from #49772 +function fa1(x) { + const [guard, value] = x; + if (guard) { + for (;;) { + value; // number + } + } + else { + while (!!true) { + value; // string + } + } +} +function fa2(x) { + const { guard, value } = x; + if (guard) { + for (;;) { + value; // number + } + } + else { + while (!!true) { + value; // string + } + } +} +const fa3 = (guard, value) => { + if (guard) { + for (;;) { + value; // number + } + } + else { + while (!!true) { + value; // string + } + } +}; //// [dependentDestructuredVariables.d.ts] -declare type Action = { +type Action = { kind: 'A'; payload: number; } | { @@ -580,7 +662,7 @@ declare type Action = { declare function f10({ kind, payload }: Action): void; declare function f11(action: Action): void; declare function f12({ kind, payload }: Action): void; -declare type Action2 = { +type Action2 = { kind: 'A'; payload: number | undefined; } | { @@ -591,7 +673,7 @@ declare function f20({ kind, payload }: Action2): void; declare function f21(action: Action2): void; declare function f22(action: Action2): void; declare function f23({ kind, payload }: Action2): void; -declare type Foo = { +type Foo = { kind: 'A'; isA: true; } | { @@ -602,7 +684,7 @@ declare type Foo = { isA: false; }; declare function f30({ kind, isA }: Foo): void; -declare type Args = ['A', number] | ['B', string]; +type Args = ['A', number] | ['B', string]; declare function f40(...[kind, data]: Args): void; interface A { variant: 'a'; @@ -612,11 +694,11 @@ interface B { variant: 'b'; value: Array; } -declare type AB = A | B; +type AB = A | B; declare function printValue(t: T): void; declare function printValueList(t: Array): void; declare function unrefined1(ab: AB): void; -declare type Action3 = { +type Action3 = { type: 'add'; payload: { toAdd: number; @@ -634,7 +716,7 @@ declare function f50(cb: (...args: Args) => void): void; declare const f51: (...args: ['A', number] | ['B', string]) => void; declare const f52: (...args: ['A', number] | ['B']) => void; declare function readFile(path: string, callback: (...args: [err: null, data: unknown[]] | [err: Error, data: undefined]) => void): void; -declare type ReducerArgs = ["add", { +type ReducerArgs = ["add", { a: number; b: number; }] | ["concat", { @@ -642,7 +724,7 @@ declare type ReducerArgs = ["add", { secondArr: any[]; }]; declare const reducer: (...args: ReducerArgs) => void; -declare type FooMethod = { +type FooMethod = { method(...args: [ type: "str", cb: (e: string) => void @@ -652,7 +734,7 @@ declare type FooMethod = { ]): void; }; declare let fooM: FooMethod; -declare type FooAsyncMethod = { +type FooAsyncMethod = { method(...args: [ type: "str", cb: (e: string) => void @@ -662,7 +744,7 @@ declare type FooAsyncMethod = { ]): Promise; }; declare let fooAsyncM: FooAsyncMethod; -declare type FooGenMethod = { +type FooGenMethod = { method(...args: [ type: "str", cb: (e: string) => void @@ -672,7 +754,7 @@ declare type FooGenMethod = { ]): Generator; }; declare let fooGenM: FooGenMethod; -declare type FooAsyncGenMethod = { +type FooAsyncGenMethod = { method(...args: [ type: "str", cb: (e: string) => void @@ -682,7 +764,7 @@ declare type FooAsyncGenMethod = { ]): AsyncGenerator; }; declare let fooAsyncGenM: FooAsyncGenMethod; -declare type Func = (...args: T) => void; +type Func = (...args: T) => void; declare const f60: Func; declare function foo({ value1, test1, test2, test3, test4, test5, test6, test7, test8, test9 }: { value1: any; @@ -696,3 +778,12 @@ declare function foo({ value1, test1, test2, test3, test4, test5, test6, test7, test8?: any; test9?: any; }): void; +declare function fa1(x: [true, number] | [false, string]): void; +declare function fa2(x: { + guard: true; + value: number; +} | { + guard: false; + value: string; +}): void; +declare const fa3: (...args: [true, number] | [false, string]) => void; diff --git a/tests/baselines/reference/dependentDestructuredVariables.symbols b/tests/baselines/reference/dependentDestructuredVariables.symbols index ccaaaa72fe9..6fed5c24708 100644 --- a/tests/baselines/reference/dependentDestructuredVariables.symbols +++ b/tests/baselines/reference/dependentDestructuredVariables.symbols @@ -830,3 +830,81 @@ function foo({ }) {} +// Repro from #49772 + +function fa1(x: [true, number] | [false, string]) { +>fa1 : Symbol(fa1, Decl(dependentDestructuredVariables.ts, 323, 5)) +>x : Symbol(x, Decl(dependentDestructuredVariables.ts, 327, 13)) + + const [guard, value] = x; +>guard : Symbol(guard, Decl(dependentDestructuredVariables.ts, 328, 11)) +>value : Symbol(value, Decl(dependentDestructuredVariables.ts, 328, 17)) +>x : Symbol(x, Decl(dependentDestructuredVariables.ts, 327, 13)) + + if (guard) { +>guard : Symbol(guard, Decl(dependentDestructuredVariables.ts, 328, 11)) + + for (;;) { + value; // number +>value : Symbol(value, Decl(dependentDestructuredVariables.ts, 328, 17)) + } + } + else { + while (!!true) { + value; // string +>value : Symbol(value, Decl(dependentDestructuredVariables.ts, 328, 17)) + } + } +} + +function fa2(x: { guard: true, value: number } | { guard: false, value: string }) { +>fa2 : Symbol(fa2, Decl(dependentDestructuredVariables.ts, 339, 1)) +>x : Symbol(x, Decl(dependentDestructuredVariables.ts, 341, 13)) +>guard : Symbol(guard, Decl(dependentDestructuredVariables.ts, 341, 17)) +>value : Symbol(value, Decl(dependentDestructuredVariables.ts, 341, 30)) +>guard : Symbol(guard, Decl(dependentDestructuredVariables.ts, 341, 50)) +>value : Symbol(value, Decl(dependentDestructuredVariables.ts, 341, 64)) + + const { guard, value } = x; +>guard : Symbol(guard, Decl(dependentDestructuredVariables.ts, 342, 11)) +>value : Symbol(value, Decl(dependentDestructuredVariables.ts, 342, 18)) +>x : Symbol(x, Decl(dependentDestructuredVariables.ts, 341, 13)) + + if (guard) { +>guard : Symbol(guard, Decl(dependentDestructuredVariables.ts, 342, 11)) + + for (;;) { + value; // number +>value : Symbol(value, Decl(dependentDestructuredVariables.ts, 342, 18)) + } + } + else { + while (!!true) { + value; // string +>value : Symbol(value, Decl(dependentDestructuredVariables.ts, 342, 18)) + } + } +} + +const fa3: (...args: [true, number] | [false, string]) => void = (guard, value) => { +>fa3 : Symbol(fa3, Decl(dependentDestructuredVariables.ts, 355, 5)) +>args : Symbol(args, Decl(dependentDestructuredVariables.ts, 355, 12)) +>guard : Symbol(guard, Decl(dependentDestructuredVariables.ts, 355, 66)) +>value : Symbol(value, Decl(dependentDestructuredVariables.ts, 355, 72)) + + if (guard) { +>guard : Symbol(guard, Decl(dependentDestructuredVariables.ts, 355, 66)) + + for (;;) { + value; // number +>value : Symbol(value, Decl(dependentDestructuredVariables.ts, 355, 72)) + } + } + else { + while (!!true) { + value; // string +>value : Symbol(value, Decl(dependentDestructuredVariables.ts, 355, 72)) + } + } +} + diff --git a/tests/baselines/reference/dependentDestructuredVariables.types b/tests/baselines/reference/dependentDestructuredVariables.types index f3f90242313..01de281b3d9 100644 --- a/tests/baselines/reference/dependentDestructuredVariables.types +++ b/tests/baselines/reference/dependentDestructuredVariables.types @@ -955,3 +955,100 @@ function foo({ }) {} +// Repro from #49772 + +function fa1(x: [true, number] | [false, string]) { +>fa1 : (x: [true, number] | [false, string]) => void +>x : [true, number] | [false, string] +>true : true +>false : false + + const [guard, value] = x; +>guard : boolean +>value : string | number +>x : [true, number] | [false, string] + + if (guard) { +>guard : boolean + + for (;;) { + value; // number +>value : number + } + } + else { + while (!!true) { +>!!true : true +>!true : false +>true : true + + value; // string +>value : string + } + } +} + +function fa2(x: { guard: true, value: number } | { guard: false, value: string }) { +>fa2 : (x: { guard: true; value: number;} | { guard: false; value: string;}) => void +>x : { guard: true; value: number; } | { guard: false; value: string; } +>guard : true +>true : true +>value : number +>guard : false +>false : false +>value : string + + const { guard, value } = x; +>guard : boolean +>value : string | number +>x : { guard: true; value: number; } | { guard: false; value: string; } + + if (guard) { +>guard : boolean + + for (;;) { + value; // number +>value : number + } + } + else { + while (!!true) { +>!!true : true +>!true : false +>true : true + + value; // string +>value : string + } + } +} + +const fa3: (...args: [true, number] | [false, string]) => void = (guard, value) => { +>fa3 : (...args: [true, number] | [false, string]) => void +>args : [true, number] | [false, string] +>true : true +>false : false +>(guard, value) => { if (guard) { for (;;) { value; // number } } else { while (!!true) { value; // string } }} : (guard: boolean, value: string | number) => void +>guard : boolean +>value : string | number + + if (guard) { +>guard : boolean + + for (;;) { + value; // number +>value : number + } + } + else { + while (!!true) { +>!!true : true +>!true : false +>true : true + + value; // string +>value : string + } + } +} + diff --git a/tests/baselines/reference/destructuringInFunctionType.js b/tests/baselines/reference/destructuringInFunctionType.js index 1a38ef067ac..e817bc16fd4 100644 --- a/tests/baselines/reference/destructuringInFunctionType.js +++ b/tests/baselines/reference/destructuringInFunctionType.js @@ -39,31 +39,31 @@ interface b { interface c { c: any; } -declare type T1 = ([a, b, c]); -declare type F1 = ([a, b, c]: [any, any, any]) => void; -declare type T2 = ({ +type T1 = ([a, b, c]); +type F1 = ([a, b, c]: [any, any, any]) => void; +type T2 = ({ a: any; }); -declare type F2 = ({ a }: { +type F2 = ({ a }: { a: any; }) => void; -declare type T3 = ([{ +type T3 = ([{ a: b; }, { b: a; }]); -declare type F3 = ([{ a }, { b }]: [{ +type F3 = ([{ a }, { b }]: [{ a: any; }, { b: any; }]) => void; -declare type T4 = ([{ +type T4 = ([{ a: [b, c]; }]); -declare type F4 = ([{ a: [b, c] }]: [{ +type F4 = ([{ a: [b, c] }]: [{ a: [any, any]; }]) => void; -declare type C1 = new ([{ a: [b, c] }]: [{ +type C1 = new ([{ a: [b, c] }]: [{ a: [any, any]; }]) => void; declare var v1: ([a, b, c]: [any, any, any]) => string; diff --git a/tests/baselines/reference/destructuringParameterDeclaration4.errors.txt b/tests/baselines/reference/destructuringParameterDeclaration4.errors.txt index f14e058fd36..bb7aff5eb0f 100644 --- a/tests/baselines/reference/destructuringParameterDeclaration4.errors.txt +++ b/tests/baselines/reference/destructuringParameterDeclaration4.errors.txt @@ -41,7 +41,7 @@ tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration4.ts( a1(...array2); // Error parameter type is (number|string)[] ~~~~~~ !!! error TS2552: Cannot find name 'array2'. Did you mean 'Array'? -!!! related TS2728 /.ts/lib.es5.d.ts:1482:13: 'Array' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1490:13: 'Array' is declared here. a5([1, 2, "string", false, true]); // Error, parameter type is [any, any, [[any]]] ~~~~~~~~ !!! error TS2322: Type 'string' is not assignable to type '[[any]]'. diff --git a/tests/baselines/reference/destructuringTuple.errors.txt b/tests/baselines/reference/destructuringTuple.errors.txt index b68681eca59..e8548783caf 100644 --- a/tests/baselines/reference/destructuringTuple.errors.txt +++ b/tests/baselines/reference/destructuringTuple.errors.txt @@ -33,8 +33,8 @@ tests/cases/compiler/destructuringTuple.ts(11,60): error TS2769: No overload mat !!! error TS2769: Overload 2 of 3, '(callbackfn: (previousValue: [], currentValue: number, currentIndex: number, array: number[]) => [], initialValue: []): []', gave the following error. !!! error TS2769: Type 'never[]' is not assignable to type '[]'. !!! error TS2769: Target allows only 0 element(s) but source may have more. -!!! related TS6502 /.ts/lib.es5.d.ts:1447:24: The expected type comes from the return type of this signature. -!!! related TS6502 /.ts/lib.es5.d.ts:1453:27: The expected type comes from the return type of this signature. +!!! related TS6502 /.ts/lib.es5.d.ts:1455:24: The expected type comes from the return type of this signature. +!!! related TS6502 /.ts/lib.es5.d.ts:1461:27: The expected type comes from the return type of this signature. ~~ !!! error TS2769: No overload matches this call. !!! error TS2769: Overload 1 of 2, '(...items: ConcatArray[]): never[]', gave the following error. diff --git a/tests/baselines/reference/discriminatedUnionJsxElement.js b/tests/baselines/reference/discriminatedUnionJsxElement.js index ca5b766aac9..6760f576c02 100644 --- a/tests/baselines/reference/discriminatedUnionJsxElement.js +++ b/tests/baselines/reference/discriminatedUnionJsxElement.js @@ -45,7 +45,7 @@ interface IData(data: IData): any; -declare type IListItemData = { +type IListItemData = { variant: ListItemVariant.Avatar; } | { variant: ListItemVariant.OneLine; diff --git a/tests/baselines/reference/duplicateNumericIndexers.errors.txt b/tests/baselines/reference/duplicateNumericIndexers.errors.txt index 727e05c2639..b149e6f586d 100644 --- a/tests/baselines/reference/duplicateNumericIndexers.errors.txt +++ b/tests/baselines/reference/duplicateNumericIndexers.errors.txt @@ -10,8 +10,8 @@ tests/cases/conformance/types/members/duplicateNumericIndexers.ts(24,5): error T tests/cases/conformance/types/members/duplicateNumericIndexers.ts(25,5): error TS2374: Duplicate index signature for type 'number'. tests/cases/conformance/types/members/duplicateNumericIndexers.ts(29,5): error TS2374: Duplicate index signature for type 'number'. tests/cases/conformance/types/members/duplicateNumericIndexers.ts(30,5): error TS2374: Duplicate index signature for type 'number'. -lib.es5.d.ts(523,5): error TS2374: Duplicate index signature for type 'number'. -lib.es5.d.ts(1468,5): error TS2374: Duplicate index signature for type 'number'. +lib.es5.d.ts(517,5): error TS2374: Duplicate index signature for type 'number'. +lib.es5.d.ts(1476,5): error TS2374: Duplicate index signature for type 'number'. ==== tests/cases/conformance/types/members/duplicateNumericIndexers.ts (12 errors) ==== diff --git a/tests/baselines/reference/dynamicNamesErrors.js b/tests/baselines/reference/dynamicNamesErrors.js index 967e32cbb0c..f9028da7496 100644 --- a/tests/baselines/reference/dynamicNamesErrors.js +++ b/tests/baselines/reference/dynamicNamesErrors.js @@ -109,7 +109,7 @@ export declare class ClassMemberVisibility { get [z](): number; set [w](value: number); } -export declare type ObjectTypeVisibility = { +export type ObjectTypeVisibility = { [x]: number; [y](): number; }; diff --git a/tests/baselines/reference/emitClassExpressionInDeclarationFile.js b/tests/baselines/reference/emitClassExpressionInDeclarationFile.js index 7b5cfe4d277..d8b23a58113 100644 --- a/tests/baselines/reference/emitClassExpressionInDeclarationFile.js +++ b/tests/baselines/reference/emitClassExpressionInDeclarationFile.js @@ -117,7 +117,7 @@ export declare class FooItem { foo(): void; name?: string; } -export declare type Constructor = new (...args: any[]) => T; +export type Constructor = new (...args: any[]) => T; export declare function WithTags>(Base: T): { new (...args: any[]): { tags(): void; diff --git a/tests/baselines/reference/errorCause(target=es2021).errors.txt b/tests/baselines/reference/errorCause(target=es2021).errors.txt index 74581b6c851..042eef3e068 100644 --- a/tests/baselines/reference/errorCause(target=es2021).errors.txt +++ b/tests/baselines/reference/errorCause(target=es2021).errors.txt @@ -1,24 +1,38 @@ -tests/cases/compiler/errorCause.ts(1,28): error TS2554: Expected 0-1 arguments, but got 2. -tests/cases/compiler/errorCause.ts(2,5): error TS2550: Property 'cause' does not exist on type 'Error'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2022' or later. -tests/cases/compiler/errorCause.ts(4,22): error TS2554: Expected 0-1 arguments, but got 2. -tests/cases/compiler/errorCause.ts(5,23): error TS2554: Expected 0-1 arguments, but got 2. -tests/cases/compiler/errorCause.ts(6,27): error TS2554: Expected 0-1 arguments, but got 2. -tests/cases/compiler/errorCause.ts(7,24): error TS2554: Expected 0-1 arguments, but got 2. +tests/cases/compiler/errorCause.ts(3,28): error TS2554: Expected 0-1 arguments, but got 2. +tests/cases/compiler/errorCause.ts(4,5): error TS2550: Property 'cause' does not exist on type 'Error'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2022' or later. +tests/cases/compiler/errorCause.ts(5,35): error TS2554: Expected 0-1 arguments, but got 2. +tests/cases/compiler/errorCause.ts(6,12): error TS2550: Property 'cause' does not exist on type 'Error'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2022' or later. tests/cases/compiler/errorCause.ts(8,22): error TS2554: Expected 0-1 arguments, but got 2. -tests/cases/compiler/errorCause.ts(9,21): error TS2554: Expected 0-1 arguments, but got 2. -tests/cases/compiler/errorCause.ts(10,31): error TS2554: Expected 1-2 arguments, but got 3. +tests/cases/compiler/errorCause.ts(9,22): error TS2554: Expected 0-1 arguments, but got 2. +tests/cases/compiler/errorCause.ts(10,23): error TS2554: Expected 0-1 arguments, but got 2. +tests/cases/compiler/errorCause.ts(11,27): error TS2554: Expected 0-1 arguments, but got 2. +tests/cases/compiler/errorCause.ts(12,24): error TS2554: Expected 0-1 arguments, but got 2. +tests/cases/compiler/errorCause.ts(13,22): error TS2554: Expected 0-1 arguments, but got 2. +tests/cases/compiler/errorCause.ts(14,21): error TS2554: Expected 0-1 arguments, but got 2. +tests/cases/compiler/errorCause.ts(15,31): error TS2554: Expected 1-2 arguments, but got 3. -==== tests/cases/compiler/errorCause.ts (9 errors) ==== +==== tests/cases/compiler/errorCause.ts (12 errors) ==== + declare const a: unknown; + let err = new Error("foo", { cause: new Error("bar") }); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS2554: Expected 0-1 arguments, but got 2. err.cause; ~~~~~ !!! error TS2550: Property 'cause' does not exist on type 'Error'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2022' or later. + let anotherErr = new Error("foo", { cause: a }); + ~~~~~~~~~~~~ +!!! error TS2554: Expected 0-1 arguments, but got 2. + anotherErr.cause; + ~~~~~ +!!! error TS2550: Property 'cause' does not exist on type 'Error'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2022' or later. new EvalError("foo", { cause: new Error("bar") }); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2554: Expected 0-1 arguments, but got 2. + new EvalError("foo", { cause: a }); + ~~~~~~~~~~~~ !!! error TS2554: Expected 0-1 arguments, but got 2. new RangeError("foo", { cause: new Error("bar") }); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/tests/baselines/reference/errorCause(target=es2021).js b/tests/baselines/reference/errorCause(target=es2021).js index 01a76c8c9b2..aab2d4ef016 100644 --- a/tests/baselines/reference/errorCause(target=es2021).js +++ b/tests/baselines/reference/errorCause(target=es2021).js @@ -1,8 +1,13 @@ //// [errorCause.ts] +declare const a: unknown; + let err = new Error("foo", { cause: new Error("bar") }); err.cause; +let anotherErr = new Error("foo", { cause: a }); +anotherErr.cause; new EvalError("foo", { cause: new Error("bar") }); +new EvalError("foo", { cause: a }); new RangeError("foo", { cause: new Error("bar") }); new ReferenceError("foo", { cause: new Error("bar") }); new SyntaxError("foo", { cause: new Error("bar") }); @@ -14,7 +19,10 @@ new AggregateError([], "foo", { cause: new Error("bar") }); //// [errorCause.js] let err = new Error("foo", { cause: new Error("bar") }); err.cause; +let anotherErr = new Error("foo", { cause: a }); +anotherErr.cause; new EvalError("foo", { cause: new Error("bar") }); +new EvalError("foo", { cause: a }); new RangeError("foo", { cause: new Error("bar") }); new ReferenceError("foo", { cause: new Error("bar") }); new SyntaxError("foo", { cause: new Error("bar") }); diff --git a/tests/baselines/reference/errorCause(target=es2021).symbols b/tests/baselines/reference/errorCause(target=es2021).symbols index a4b8896b27b..1dcabaea601 100644 --- a/tests/baselines/reference/errorCause(target=es2021).symbols +++ b/tests/baselines/reference/errorCause(target=es2021).symbols @@ -1,45 +1,62 @@ === tests/cases/compiler/errorCause.ts === +declare const a: unknown; +>a : Symbol(a, Decl(errorCause.ts, 0, 13)) + let err = new Error("foo", { cause: new Error("bar") }); ->err : Symbol(err, Decl(errorCause.ts, 0, 3)) +>err : Symbol(err, Decl(errorCause.ts, 2, 3)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->cause : Symbol(cause, Decl(errorCause.ts, 0, 28)) +>cause : Symbol(cause, Decl(errorCause.ts, 2, 28)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) err.cause; ->err : Symbol(err, Decl(errorCause.ts, 0, 3)) +>err : Symbol(err, Decl(errorCause.ts, 2, 3)) + +let anotherErr = new Error("foo", { cause: a }); +>anotherErr : Symbol(anotherErr, Decl(errorCause.ts, 4, 3)) +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>cause : Symbol(cause, Decl(errorCause.ts, 4, 35)) +>a : Symbol(a, Decl(errorCause.ts, 0, 13)) + +anotherErr.cause; +>anotherErr : Symbol(anotherErr, Decl(errorCause.ts, 4, 3)) new EvalError("foo", { cause: new Error("bar") }); >EvalError : Symbol(EvalError, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->cause : Symbol(cause, Decl(errorCause.ts, 3, 22)) +>cause : Symbol(cause, Decl(errorCause.ts, 7, 22)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +new EvalError("foo", { cause: a }); +>EvalError : Symbol(EvalError, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>cause : Symbol(cause, Decl(errorCause.ts, 8, 22)) +>a : Symbol(a, Decl(errorCause.ts, 0, 13)) + new RangeError("foo", { cause: new Error("bar") }); >RangeError : Symbol(RangeError, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->cause : Symbol(cause, Decl(errorCause.ts, 4, 23)) +>cause : Symbol(cause, Decl(errorCause.ts, 9, 23)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) new ReferenceError("foo", { cause: new Error("bar") }); >ReferenceError : Symbol(ReferenceError, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->cause : Symbol(cause, Decl(errorCause.ts, 5, 27)) +>cause : Symbol(cause, Decl(errorCause.ts, 10, 27)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) new SyntaxError("foo", { cause: new Error("bar") }); >SyntaxError : Symbol(SyntaxError, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->cause : Symbol(cause, Decl(errorCause.ts, 6, 24)) +>cause : Symbol(cause, Decl(errorCause.ts, 11, 24)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) new TypeError("foo", { cause: new Error("bar") }); >TypeError : Symbol(TypeError, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->cause : Symbol(cause, Decl(errorCause.ts, 7, 22)) +>cause : Symbol(cause, Decl(errorCause.ts, 12, 22)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) new URIError("foo", { cause: new Error("bar") }); >URIError : Symbol(URIError, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->cause : Symbol(cause, Decl(errorCause.ts, 8, 21)) +>cause : Symbol(cause, Decl(errorCause.ts, 13, 21)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) new AggregateError([], "foo", { cause: new Error("bar") }); >AggregateError : Symbol(AggregateError, Decl(lib.es2021.promise.d.ts, --, --), Decl(lib.es2021.promise.d.ts, --, --)) ->cause : Symbol(cause, Decl(errorCause.ts, 9, 31)) +>cause : Symbol(cause, Decl(errorCause.ts, 14, 31)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) diff --git a/tests/baselines/reference/errorCause(target=es2021).types b/tests/baselines/reference/errorCause(target=es2021).types index c79d2c3db10..42ba0b8d5be 100644 --- a/tests/baselines/reference/errorCause(target=es2021).types +++ b/tests/baselines/reference/errorCause(target=es2021).types @@ -1,4 +1,7 @@ === tests/cases/compiler/errorCause.ts === +declare const a: unknown; +>a : unknown + let err = new Error("foo", { cause: new Error("bar") }); >err : Error >new Error("foo", { cause: new Error("bar") }) : Error @@ -15,6 +18,20 @@ err.cause; >err : Error >cause : any +let anotherErr = new Error("foo", { cause: a }); +>anotherErr : Error +>new Error("foo", { cause: a }) : Error +>Error : ErrorConstructor +>"foo" : "foo" +>{ cause: a } : { cause: unknown; } +>cause : unknown +>a : unknown + +anotherErr.cause; +>anotherErr.cause : any +>anotherErr : Error +>cause : any + new EvalError("foo", { cause: new Error("bar") }); >new EvalError("foo", { cause: new Error("bar") }) : EvalError & Error >EvalError : EvalErrorConstructor @@ -25,6 +42,14 @@ new EvalError("foo", { cause: new Error("bar") }); >Error : ErrorConstructor >"bar" : "bar" +new EvalError("foo", { cause: a }); +>new EvalError("foo", { cause: a }) : EvalError & Error +>EvalError : EvalErrorConstructor +>"foo" : "foo" +>{ cause: a } : { cause: unknown; } +>cause : unknown +>a : unknown + new RangeError("foo", { cause: new Error("bar") }); >new RangeError("foo", { cause: new Error("bar") }) : RangeError & Error >RangeError : RangeErrorConstructor diff --git a/tests/baselines/reference/errorCause(target=es2022).js b/tests/baselines/reference/errorCause(target=es2022).js index 01a76c8c9b2..aab2d4ef016 100644 --- a/tests/baselines/reference/errorCause(target=es2022).js +++ b/tests/baselines/reference/errorCause(target=es2022).js @@ -1,8 +1,13 @@ //// [errorCause.ts] +declare const a: unknown; + let err = new Error("foo", { cause: new Error("bar") }); err.cause; +let anotherErr = new Error("foo", { cause: a }); +anotherErr.cause; new EvalError("foo", { cause: new Error("bar") }); +new EvalError("foo", { cause: a }); new RangeError("foo", { cause: new Error("bar") }); new ReferenceError("foo", { cause: new Error("bar") }); new SyntaxError("foo", { cause: new Error("bar") }); @@ -14,7 +19,10 @@ new AggregateError([], "foo", { cause: new Error("bar") }); //// [errorCause.js] let err = new Error("foo", { cause: new Error("bar") }); err.cause; +let anotherErr = new Error("foo", { cause: a }); +anotherErr.cause; new EvalError("foo", { cause: new Error("bar") }); +new EvalError("foo", { cause: a }); new RangeError("foo", { cause: new Error("bar") }); new ReferenceError("foo", { cause: new Error("bar") }); new SyntaxError("foo", { cause: new Error("bar") }); diff --git a/tests/baselines/reference/errorCause(target=es2022).symbols b/tests/baselines/reference/errorCause(target=es2022).symbols index 47dd07d408f..3c92573013f 100644 --- a/tests/baselines/reference/errorCause(target=es2022).symbols +++ b/tests/baselines/reference/errorCause(target=es2022).symbols @@ -1,47 +1,66 @@ === tests/cases/compiler/errorCause.ts === +declare const a: unknown; +>a : Symbol(a, Decl(errorCause.ts, 0, 13)) + let err = new Error("foo", { cause: new Error("bar") }); ->err : Symbol(err, Decl(errorCause.ts, 0, 3)) +>err : Symbol(err, Decl(errorCause.ts, 2, 3)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2022.error.d.ts, --, --)) ->cause : Symbol(cause, Decl(errorCause.ts, 0, 28)) +>cause : Symbol(cause, Decl(errorCause.ts, 2, 28)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2022.error.d.ts, --, --)) err.cause; >err.cause : Symbol(Error.cause, Decl(lib.es2022.error.d.ts, --, --)) ->err : Symbol(err, Decl(errorCause.ts, 0, 3)) +>err : Symbol(err, Decl(errorCause.ts, 2, 3)) +>cause : Symbol(Error.cause, Decl(lib.es2022.error.d.ts, --, --)) + +let anotherErr = new Error("foo", { cause: a }); +>anotherErr : Symbol(anotherErr, Decl(errorCause.ts, 4, 3)) +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2022.error.d.ts, --, --)) +>cause : Symbol(cause, Decl(errorCause.ts, 4, 35)) +>a : Symbol(a, Decl(errorCause.ts, 0, 13)) + +anotherErr.cause; +>anotherErr.cause : Symbol(Error.cause, Decl(lib.es2022.error.d.ts, --, --)) +>anotherErr : Symbol(anotherErr, Decl(errorCause.ts, 4, 3)) >cause : Symbol(Error.cause, Decl(lib.es2022.error.d.ts, --, --)) new EvalError("foo", { cause: new Error("bar") }); >EvalError : Symbol(EvalError, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->cause : Symbol(cause, Decl(errorCause.ts, 3, 22)) +>cause : Symbol(cause, Decl(errorCause.ts, 7, 22)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2022.error.d.ts, --, --)) +new EvalError("foo", { cause: a }); +>EvalError : Symbol(EvalError, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>cause : Symbol(cause, Decl(errorCause.ts, 8, 22)) +>a : Symbol(a, Decl(errorCause.ts, 0, 13)) + new RangeError("foo", { cause: new Error("bar") }); >RangeError : Symbol(RangeError, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->cause : Symbol(cause, Decl(errorCause.ts, 4, 23)) +>cause : Symbol(cause, Decl(errorCause.ts, 9, 23)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2022.error.d.ts, --, --)) new ReferenceError("foo", { cause: new Error("bar") }); >ReferenceError : Symbol(ReferenceError, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->cause : Symbol(cause, Decl(errorCause.ts, 5, 27)) +>cause : Symbol(cause, Decl(errorCause.ts, 10, 27)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2022.error.d.ts, --, --)) new SyntaxError("foo", { cause: new Error("bar") }); >SyntaxError : Symbol(SyntaxError, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->cause : Symbol(cause, Decl(errorCause.ts, 6, 24)) +>cause : Symbol(cause, Decl(errorCause.ts, 11, 24)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2022.error.d.ts, --, --)) new TypeError("foo", { cause: new Error("bar") }); >TypeError : Symbol(TypeError, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->cause : Symbol(cause, Decl(errorCause.ts, 7, 22)) +>cause : Symbol(cause, Decl(errorCause.ts, 12, 22)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2022.error.d.ts, --, --)) new URIError("foo", { cause: new Error("bar") }); >URIError : Symbol(URIError, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->cause : Symbol(cause, Decl(errorCause.ts, 8, 21)) +>cause : Symbol(cause, Decl(errorCause.ts, 13, 21)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2022.error.d.ts, --, --)) new AggregateError([], "foo", { cause: new Error("bar") }); >AggregateError : Symbol(AggregateError, Decl(lib.es2021.promise.d.ts, --, --), Decl(lib.es2021.promise.d.ts, --, --)) ->cause : Symbol(cause, Decl(errorCause.ts, 9, 31)) +>cause : Symbol(cause, Decl(errorCause.ts, 14, 31)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2022.error.d.ts, --, --)) diff --git a/tests/baselines/reference/errorCause(target=es2022).types b/tests/baselines/reference/errorCause(target=es2022).types index 44f753d6de4..a279c8253f6 100644 --- a/tests/baselines/reference/errorCause(target=es2022).types +++ b/tests/baselines/reference/errorCause(target=es2022).types @@ -1,4 +1,7 @@ === tests/cases/compiler/errorCause.ts === +declare const a: unknown; +>a : unknown + let err = new Error("foo", { cause: new Error("bar") }); >err : Error >new Error("foo", { cause: new Error("bar") }) : Error @@ -11,9 +14,23 @@ let err = new Error("foo", { cause: new Error("bar") }); >"bar" : "bar" err.cause; ->err.cause : Error +>err.cause : unknown >err : Error ->cause : Error +>cause : unknown + +let anotherErr = new Error("foo", { cause: a }); +>anotherErr : Error +>new Error("foo", { cause: a }) : Error +>Error : ErrorConstructor +>"foo" : "foo" +>{ cause: a } : { cause: unknown; } +>cause : unknown +>a : unknown + +anotherErr.cause; +>anotherErr.cause : unknown +>anotherErr : Error +>cause : unknown new EvalError("foo", { cause: new Error("bar") }); >new EvalError("foo", { cause: new Error("bar") }) : EvalError @@ -25,6 +42,14 @@ new EvalError("foo", { cause: new Error("bar") }); >Error : ErrorConstructor >"bar" : "bar" +new EvalError("foo", { cause: a }); +>new EvalError("foo", { cause: a }) : EvalError +>EvalError : EvalErrorConstructor +>"foo" : "foo" +>{ cause: a } : { cause: unknown; } +>cause : unknown +>a : unknown + new RangeError("foo", { cause: new Error("bar") }); >new RangeError("foo", { cause: new Error("bar") }) : RangeError >RangeError : RangeErrorConstructor diff --git a/tests/baselines/reference/errorCause(target=esnext).js b/tests/baselines/reference/errorCause(target=esnext).js index 01a76c8c9b2..aab2d4ef016 100644 --- a/tests/baselines/reference/errorCause(target=esnext).js +++ b/tests/baselines/reference/errorCause(target=esnext).js @@ -1,8 +1,13 @@ //// [errorCause.ts] +declare const a: unknown; + let err = new Error("foo", { cause: new Error("bar") }); err.cause; +let anotherErr = new Error("foo", { cause: a }); +anotherErr.cause; new EvalError("foo", { cause: new Error("bar") }); +new EvalError("foo", { cause: a }); new RangeError("foo", { cause: new Error("bar") }); new ReferenceError("foo", { cause: new Error("bar") }); new SyntaxError("foo", { cause: new Error("bar") }); @@ -14,7 +19,10 @@ new AggregateError([], "foo", { cause: new Error("bar") }); //// [errorCause.js] let err = new Error("foo", { cause: new Error("bar") }); err.cause; +let anotherErr = new Error("foo", { cause: a }); +anotherErr.cause; new EvalError("foo", { cause: new Error("bar") }); +new EvalError("foo", { cause: a }); new RangeError("foo", { cause: new Error("bar") }); new ReferenceError("foo", { cause: new Error("bar") }); new SyntaxError("foo", { cause: new Error("bar") }); diff --git a/tests/baselines/reference/errorCause(target=esnext).symbols b/tests/baselines/reference/errorCause(target=esnext).symbols index 47dd07d408f..3c92573013f 100644 --- a/tests/baselines/reference/errorCause(target=esnext).symbols +++ b/tests/baselines/reference/errorCause(target=esnext).symbols @@ -1,47 +1,66 @@ === tests/cases/compiler/errorCause.ts === +declare const a: unknown; +>a : Symbol(a, Decl(errorCause.ts, 0, 13)) + let err = new Error("foo", { cause: new Error("bar") }); ->err : Symbol(err, Decl(errorCause.ts, 0, 3)) +>err : Symbol(err, Decl(errorCause.ts, 2, 3)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2022.error.d.ts, --, --)) ->cause : Symbol(cause, Decl(errorCause.ts, 0, 28)) +>cause : Symbol(cause, Decl(errorCause.ts, 2, 28)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2022.error.d.ts, --, --)) err.cause; >err.cause : Symbol(Error.cause, Decl(lib.es2022.error.d.ts, --, --)) ->err : Symbol(err, Decl(errorCause.ts, 0, 3)) +>err : Symbol(err, Decl(errorCause.ts, 2, 3)) +>cause : Symbol(Error.cause, Decl(lib.es2022.error.d.ts, --, --)) + +let anotherErr = new Error("foo", { cause: a }); +>anotherErr : Symbol(anotherErr, Decl(errorCause.ts, 4, 3)) +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2022.error.d.ts, --, --)) +>cause : Symbol(cause, Decl(errorCause.ts, 4, 35)) +>a : Symbol(a, Decl(errorCause.ts, 0, 13)) + +anotherErr.cause; +>anotherErr.cause : Symbol(Error.cause, Decl(lib.es2022.error.d.ts, --, --)) +>anotherErr : Symbol(anotherErr, Decl(errorCause.ts, 4, 3)) >cause : Symbol(Error.cause, Decl(lib.es2022.error.d.ts, --, --)) new EvalError("foo", { cause: new Error("bar") }); >EvalError : Symbol(EvalError, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->cause : Symbol(cause, Decl(errorCause.ts, 3, 22)) +>cause : Symbol(cause, Decl(errorCause.ts, 7, 22)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2022.error.d.ts, --, --)) +new EvalError("foo", { cause: a }); +>EvalError : Symbol(EvalError, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>cause : Symbol(cause, Decl(errorCause.ts, 8, 22)) +>a : Symbol(a, Decl(errorCause.ts, 0, 13)) + new RangeError("foo", { cause: new Error("bar") }); >RangeError : Symbol(RangeError, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->cause : Symbol(cause, Decl(errorCause.ts, 4, 23)) +>cause : Symbol(cause, Decl(errorCause.ts, 9, 23)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2022.error.d.ts, --, --)) new ReferenceError("foo", { cause: new Error("bar") }); >ReferenceError : Symbol(ReferenceError, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->cause : Symbol(cause, Decl(errorCause.ts, 5, 27)) +>cause : Symbol(cause, Decl(errorCause.ts, 10, 27)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2022.error.d.ts, --, --)) new SyntaxError("foo", { cause: new Error("bar") }); >SyntaxError : Symbol(SyntaxError, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->cause : Symbol(cause, Decl(errorCause.ts, 6, 24)) +>cause : Symbol(cause, Decl(errorCause.ts, 11, 24)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2022.error.d.ts, --, --)) new TypeError("foo", { cause: new Error("bar") }); >TypeError : Symbol(TypeError, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->cause : Symbol(cause, Decl(errorCause.ts, 7, 22)) +>cause : Symbol(cause, Decl(errorCause.ts, 12, 22)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2022.error.d.ts, --, --)) new URIError("foo", { cause: new Error("bar") }); >URIError : Symbol(URIError, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->cause : Symbol(cause, Decl(errorCause.ts, 8, 21)) +>cause : Symbol(cause, Decl(errorCause.ts, 13, 21)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2022.error.d.ts, --, --)) new AggregateError([], "foo", { cause: new Error("bar") }); >AggregateError : Symbol(AggregateError, Decl(lib.es2021.promise.d.ts, --, --), Decl(lib.es2021.promise.d.ts, --, --)) ->cause : Symbol(cause, Decl(errorCause.ts, 9, 31)) +>cause : Symbol(cause, Decl(errorCause.ts, 14, 31)) >Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2022.error.d.ts, --, --)) diff --git a/tests/baselines/reference/errorCause(target=esnext).types b/tests/baselines/reference/errorCause(target=esnext).types index 44f753d6de4..a279c8253f6 100644 --- a/tests/baselines/reference/errorCause(target=esnext).types +++ b/tests/baselines/reference/errorCause(target=esnext).types @@ -1,4 +1,7 @@ === tests/cases/compiler/errorCause.ts === +declare const a: unknown; +>a : unknown + let err = new Error("foo", { cause: new Error("bar") }); >err : Error >new Error("foo", { cause: new Error("bar") }) : Error @@ -11,9 +14,23 @@ let err = new Error("foo", { cause: new Error("bar") }); >"bar" : "bar" err.cause; ->err.cause : Error +>err.cause : unknown >err : Error ->cause : Error +>cause : unknown + +let anotherErr = new Error("foo", { cause: a }); +>anotherErr : Error +>new Error("foo", { cause: a }) : Error +>Error : ErrorConstructor +>"foo" : "foo" +>{ cause: a } : { cause: unknown; } +>cause : unknown +>a : unknown + +anotherErr.cause; +>anotherErr.cause : unknown +>anotherErr : Error +>cause : unknown new EvalError("foo", { cause: new Error("bar") }); >new EvalError("foo", { cause: new Error("bar") }) : EvalError @@ -25,6 +42,14 @@ new EvalError("foo", { cause: new Error("bar") }); >Error : ErrorConstructor >"bar" : "bar" +new EvalError("foo", { cause: a }); +>new EvalError("foo", { cause: a }) : EvalError +>EvalError : EvalErrorConstructor +>"foo" : "foo" +>{ cause: a } : { cause: unknown; } +>cause : unknown +>a : unknown + new RangeError("foo", { cause: new Error("bar") }); >new RangeError("foo", { cause: new Error("bar") }) : RangeError >RangeError : RangeErrorConstructor diff --git a/tests/baselines/reference/es5-asyncFunctionLongObjectLiteral.symbols b/tests/baselines/reference/es5-asyncFunctionLongObjectLiteral.symbols index 3a1ba97483e..1d2e17fe410 100644 --- a/tests/baselines/reference/es5-asyncFunctionLongObjectLiteral.symbols +++ b/tests/baselines/reference/es5-asyncFunctionLongObjectLiteral.symbols @@ -7,33 +7,33 @@ const fooShort = async () => { return { a: await Promise.resolve(0), >a : Symbol(a, Decl(es5-asyncFunctionLongObjectLiteral.ts, 3, 12)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) b: await Promise.resolve(1), >b : Symbol(b, Decl(es5-asyncFunctionLongObjectLiteral.ts, 4, 36)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) c: await Promise.resolve(2), >c : Symbol(c, Decl(es5-asyncFunctionLongObjectLiteral.ts, 5, 36)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) d: await Promise.resolve(3), >d : Symbol(d, Decl(es5-asyncFunctionLongObjectLiteral.ts, 6, 36)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) e: await Promise.resolve(4), >e : Symbol(e, Decl(es5-asyncFunctionLongObjectLiteral.ts, 7, 36)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) }; } @@ -44,63 +44,63 @@ const fooLong = async () => { return { a: await Promise.resolve(0), >a : Symbol(a, Decl(es5-asyncFunctionLongObjectLiteral.ts, 13, 12)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) b: await Promise.resolve(1), >b : Symbol(b, Decl(es5-asyncFunctionLongObjectLiteral.ts, 14, 36)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) c: await Promise.resolve(2), >c : Symbol(c, Decl(es5-asyncFunctionLongObjectLiteral.ts, 15, 36)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) d: await Promise.resolve(3), >d : Symbol(d, Decl(es5-asyncFunctionLongObjectLiteral.ts, 16, 36)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) e: await Promise.resolve(4), >e : Symbol(e, Decl(es5-asyncFunctionLongObjectLiteral.ts, 17, 36)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) f: await Promise.resolve(5), >f : Symbol(f, Decl(es5-asyncFunctionLongObjectLiteral.ts, 18, 36)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) g: await Promise.resolve(6), >g : Symbol(g, Decl(es5-asyncFunctionLongObjectLiteral.ts, 19, 36)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) h: await Promise.resolve(7), >h : Symbol(h, Decl(es5-asyncFunctionLongObjectLiteral.ts, 20, 36)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) i: await Promise.resolve(8), >i : Symbol(i, Decl(es5-asyncFunctionLongObjectLiteral.ts, 21, 36)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) j: await Promise.resolve(9), >j : Symbol(j, Decl(es5-asyncFunctionLongObjectLiteral.ts, 22, 36)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) }; } diff --git a/tests/baselines/reference/es5-asyncFunctionLongObjectLiteral.types b/tests/baselines/reference/es5-asyncFunctionLongObjectLiteral.types index cd05ad7f3e9..734fe02ab59 100644 --- a/tests/baselines/reference/es5-asyncFunctionLongObjectLiteral.types +++ b/tests/baselines/reference/es5-asyncFunctionLongObjectLiteral.types @@ -12,45 +12,45 @@ const fooShort = async () => { >a : number >await Promise.resolve(0) : number >Promise.resolve(0) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >0 : 0 b: await Promise.resolve(1), >b : number >await Promise.resolve(1) : number >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 c: await Promise.resolve(2), >c : number >await Promise.resolve(2) : number >Promise.resolve(2) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >2 : 2 d: await Promise.resolve(3), >d : number >await Promise.resolve(3) : number >Promise.resolve(3) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >3 : 3 e: await Promise.resolve(4), >e : number >await Promise.resolve(4) : number >Promise.resolve(4) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >4 : 4 }; @@ -67,90 +67,90 @@ const fooLong = async () => { >a : number >await Promise.resolve(0) : number >Promise.resolve(0) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >0 : 0 b: await Promise.resolve(1), >b : number >await Promise.resolve(1) : number >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 c: await Promise.resolve(2), >c : number >await Promise.resolve(2) : number >Promise.resolve(2) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >2 : 2 d: await Promise.resolve(3), >d : number >await Promise.resolve(3) : number >Promise.resolve(3) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >3 : 3 e: await Promise.resolve(4), >e : number >await Promise.resolve(4) : number >Promise.resolve(4) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >4 : 4 f: await Promise.resolve(5), >f : number >await Promise.resolve(5) : number >Promise.resolve(5) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >5 : 5 g: await Promise.resolve(6), >g : number >await Promise.resolve(6) : number >Promise.resolve(6) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >6 : 6 h: await Promise.resolve(7), >h : number >await Promise.resolve(7) : number >Promise.resolve(7) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >7 : 7 i: await Promise.resolve(8), >i : number >await Promise.resolve(8) : number >Promise.resolve(8) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >8 : 8 j: await Promise.resolve(9), >j : number >await Promise.resolve(9) : number >Promise.resolve(9) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >9 : 9 }; diff --git a/tests/baselines/reference/es6ExportEqualsInterop.errors.txt b/tests/baselines/reference/es6ExportEqualsInterop.errors.txt index d7b992f2c16..b1e3ac15f6b 100644 --- a/tests/baselines/reference/es6ExportEqualsInterop.errors.txt +++ b/tests/baselines/reference/es6ExportEqualsInterop.errors.txt @@ -77,43 +77,43 @@ tests/cases/compiler/main.ts(106,15): error TS2498: Module '"class-module"' uses import x1 from "interface"; ~~ !!! error TS1259: Module '"interface"' can only be default-imported using the 'esModuleInterop' flag -!!! related TS2594 tests/cases/compiler/modules.d.ts:6:5: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. +!!! related TS2594 tests/cases/compiler/modules.d.ts:6:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. import x2 from "variable"; ~~ !!! error TS1259: Module '"variable"' can only be default-imported using the 'esModuleInterop' flag -!!! related TS2594 tests/cases/compiler/modules.d.ts:14:5: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. +!!! related TS2594 tests/cases/compiler/modules.d.ts:14:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. import x3 from "interface-variable"; ~~ !!! error TS1259: Module '"interface-variable"' can only be default-imported using the 'esModuleInterop' flag -!!! related TS2594 tests/cases/compiler/modules.d.ts:26:5: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. +!!! related TS2594 tests/cases/compiler/modules.d.ts:26:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. import x4 from "module"; ~~ !!! error TS1259: Module '"module"' can only be default-imported using the 'esModuleInterop' flag -!!! related TS2594 tests/cases/compiler/modules.d.ts:34:5: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. +!!! related TS2594 tests/cases/compiler/modules.d.ts:34:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. import x5 from "interface-module"; ~~ !!! error TS1259: Module '"interface-module"' can only be default-imported using the 'esModuleInterop' flag -!!! related TS2594 tests/cases/compiler/modules.d.ts:46:5: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. +!!! related TS2594 tests/cases/compiler/modules.d.ts:46:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. import x6 from "variable-module"; ~~ !!! error TS1259: Module '"variable-module"' can only be default-imported using the 'esModuleInterop' flag -!!! related TS2594 tests/cases/compiler/modules.d.ts:60:5: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. +!!! related TS2594 tests/cases/compiler/modules.d.ts:60:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. import x7 from "function"; ~~ !!! error TS1259: Module '"function"' can only be default-imported using the 'esModuleInterop' flag -!!! related TS2594 tests/cases/compiler/modules.d.ts:65:5: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. +!!! related TS2594 tests/cases/compiler/modules.d.ts:65:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. import x8 from "function-module"; ~~ !!! error TS1259: Module '"function-module"' can only be default-imported using the 'esModuleInterop' flag -!!! related TS2594 tests/cases/compiler/modules.d.ts:74:5: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. +!!! related TS2594 tests/cases/compiler/modules.d.ts:74:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. import x9 from "class"; ~~ !!! error TS1259: Module '"class"' can only be default-imported using the 'esModuleInterop' flag -!!! related TS2594 tests/cases/compiler/modules.d.ts:82:5: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. +!!! related TS2594 tests/cases/compiler/modules.d.ts:82:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. import x0 from "class-module"; ~~ !!! error TS1259: Module '"class-module"' can only be default-imported using the 'esModuleInterop' flag -!!! related TS2594 tests/cases/compiler/modules.d.ts:94:5: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. +!!! related TS2594 tests/cases/compiler/modules.d.ts:94:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. // namespace import import * as y1 from "interface"; diff --git a/tests/baselines/reference/es6ImportDefaultBindingInEs5.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingInEs5.errors.txt index 924792bf98a..3eb6dd0e8b6 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingInEs5.errors.txt +++ b/tests/baselines/reference/es6ImportDefaultBindingInEs5.errors.txt @@ -9,4 +9,4 @@ tests/cases/compiler/es6ImportDefaultBindingInEs5_1.ts(1,8): error TS1259: Modul import defaultBinding from "./es6ImportDefaultBindingInEs5_0"; ~~~~~~~~~~~~~~ !!! error TS1259: Module '"tests/cases/compiler/es6ImportDefaultBindingInEs5_0"' can only be default-imported using the 'esModuleInterop' flag -!!! related TS2594 tests/cases/compiler/es6ImportDefaultBindingInEs5_0.ts:2:1: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. \ No newline at end of file +!!! related TS2594 tests/cases/compiler/es6ImportDefaultBindingInEs5_0.ts:2:1: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportNamedImportWithTypesAndValues.js b/tests/baselines/reference/es6ImportNamedImportWithTypesAndValues.js index 940f7825cbc..cd5d55cbb86 100644 --- a/tests/baselines/reference/es6ImportNamedImportWithTypesAndValues.js +++ b/tests/baselines/reference/es6ImportNamedImportWithTypesAndValues.js @@ -60,5 +60,5 @@ export declare class C2 implements I2 { } //// [client.d.ts] import { C, I } from "./server"; -export declare type cValInterface = I; +export type cValInterface = I; export declare var cVal: C; diff --git a/tests/baselines/reference/es6MemberScoping.errors.txt b/tests/baselines/reference/es6MemberScoping.errors.txt index db5c5b3edf0..bece67c7b54 100644 --- a/tests/baselines/reference/es6MemberScoping.errors.txt +++ b/tests/baselines/reference/es6MemberScoping.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/es6MemberScoping.ts(7,21): error TS2304: Cannot find name 'store'. +tests/cases/compiler/es6MemberScoping.ts(7,21): error TS2301: Initializer of instance member variable '_store' cannot reference identifier 'store' declared in the constructor. ==== tests/cases/compiler/es6MemberScoping.ts (1 errors) ==== @@ -10,7 +10,7 @@ tests/cases/compiler/es6MemberScoping.ts(7,21): error TS2304: Cannot find name ' } public _store = store; // should be an error. ~~~~~ -!!! error TS2304: Cannot find name 'store'. +!!! error TS2301: Initializer of instance member variable '_store' cannot reference identifier 'store' declared in the constructor. } class Foo2 { diff --git a/tests/baselines/reference/evolvingArrayResolvedAssert.errors.txt b/tests/baselines/reference/evolvingArrayResolvedAssert.errors.txt new file mode 100644 index 00000000000..487ffa3a82a --- /dev/null +++ b/tests/baselines/reference/evolvingArrayResolvedAssert.errors.txt @@ -0,0 +1,18 @@ +tests/cases/compiler/evolvingArrayResolvedAssert.ts(1,5): error TS7034: Variable 'C' implicitly has type 'any[]' in some locations where its type cannot be determined. +tests/cases/compiler/evolvingArrayResolvedAssert.ts(2,15): error TS7005: Variable 'C' implicitly has an 'any[]' type. +tests/cases/compiler/evolvingArrayResolvedAssert.ts(3,9): error TS7005: Variable 'C' implicitly has an 'any[]' type. + + +==== tests/cases/compiler/evolvingArrayResolvedAssert.ts (3 errors) ==== + var C = []; + ~ +!!! error TS7034: Variable 'C' implicitly has type 'any[]' in some locations where its type cannot be determined. + for (var a in C) { + ~ +!!! error TS7005: Variable 'C' implicitly has an 'any[]' type. + if (C.hasOwnProperty(a)) { + ~ +!!! error TS7005: Variable 'C' implicitly has an 'any[]' type. + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/evolvingArrayResolvedAssert.js b/tests/baselines/reference/evolvingArrayResolvedAssert.js new file mode 100644 index 00000000000..4cae93bbb86 --- /dev/null +++ b/tests/baselines/reference/evolvingArrayResolvedAssert.js @@ -0,0 +1,15 @@ +//// [evolvingArrayResolvedAssert.ts] +var C = []; +for (var a in C) { + if (C.hasOwnProperty(a)) { + } +} + + +//// [evolvingArrayResolvedAssert.js] +"use strict"; +var C = []; +for (var a in C) { + if (C.hasOwnProperty(a)) { + } +} diff --git a/tests/baselines/reference/evolvingArrayResolvedAssert.symbols b/tests/baselines/reference/evolvingArrayResolvedAssert.symbols new file mode 100644 index 00000000000..8d52f9e5d02 --- /dev/null +++ b/tests/baselines/reference/evolvingArrayResolvedAssert.symbols @@ -0,0 +1,16 @@ +=== tests/cases/compiler/evolvingArrayResolvedAssert.ts === +var C = []; +>C : Symbol(C, Decl(evolvingArrayResolvedAssert.ts, 0, 3)) + +for (var a in C) { +>a : Symbol(a, Decl(evolvingArrayResolvedAssert.ts, 1, 8)) +>C : Symbol(C, Decl(evolvingArrayResolvedAssert.ts, 0, 3)) + + if (C.hasOwnProperty(a)) { +>C.hasOwnProperty : Symbol(Object.hasOwnProperty, Decl(lib.es5.d.ts, --, --)) +>C : Symbol(C, Decl(evolvingArrayResolvedAssert.ts, 0, 3)) +>hasOwnProperty : Symbol(Object.hasOwnProperty, Decl(lib.es5.d.ts, --, --)) +>a : Symbol(a, Decl(evolvingArrayResolvedAssert.ts, 1, 8)) + } +} + diff --git a/tests/baselines/reference/evolvingArrayResolvedAssert.types b/tests/baselines/reference/evolvingArrayResolvedAssert.types new file mode 100644 index 00000000000..b0524c275c1 --- /dev/null +++ b/tests/baselines/reference/evolvingArrayResolvedAssert.types @@ -0,0 +1,18 @@ +=== tests/cases/compiler/evolvingArrayResolvedAssert.ts === +var C = []; +>C : any[] +>[] : never[] + +for (var a in C) { +>a : string +>C : any[] + + if (C.hasOwnProperty(a)) { +>C.hasOwnProperty(a) : boolean +>C.hasOwnProperty : (v: PropertyKey) => boolean +>C : any[] +>hasOwnProperty : (v: PropertyKey) => boolean +>a : string + } +} + diff --git a/tests/baselines/reference/exhaustiveSwitchStatements1.js b/tests/baselines/reference/exhaustiveSwitchStatements1.js index 625265466a4..1879724650b 100644 --- a/tests/baselines/reference/exhaustiveSwitchStatements1.js +++ b/tests/baselines/reference/exhaustiveSwitchStatements1.js @@ -501,7 +501,7 @@ interface Triangle { kind: "triangle"; side: number; } -declare type Shape = Square | Rectangle | Circle | Triangle; +type Shape = Square | Rectangle | Circle | Triangle; declare function area(s: Shape): number; declare function areaWrapped(s: Shape): number; declare enum MyEnum { @@ -524,7 +524,7 @@ interface Circle2 { kind: "circle"; radius: number; } -declare type Shape2 = Square2 | Circle2; +type Shape2 = Square2 | Circle2; declare function withDefault(s1: Shape2, s2: Shape2): string; declare function withoutDefault(s1: Shape2, s2: Shape2): string; declare function test4(value: 1 | 2): string; @@ -537,13 +537,13 @@ declare const zoo: { } | undefined; declare function expression(): Animal; declare function foo(): void; -declare type O = { +type O = { a: number; b: number; }; -declare type K = keyof O | 'c'; +type K = keyof O | 'c'; declare function ff(o: O, k: K): number; -declare type A = { +type A = { kind: "abc"; } | { kind: "def"; diff --git a/tests/baselines/reference/exportAssignmentWithoutAllowSyntheticDefaultImportsError.errors.txt b/tests/baselines/reference/exportAssignmentWithoutAllowSyntheticDefaultImportsError.errors.txt index d59ec8b42c8..ba44def77ef 100644 --- a/tests/baselines/reference/exportAssignmentWithoutAllowSyntheticDefaultImportsError.errors.txt +++ b/tests/baselines/reference/exportAssignmentWithoutAllowSyntheticDefaultImportsError.errors.txt @@ -12,4 +12,4 @@ import bar from './bar'; ~~~ !!! error TS1259: Module '"/bar"' can only be default-imported using the 'allowSyntheticDefaultImports' flag -!!! related TS2594 /bar.ts:1:1: This module is declared with using 'export =', and can only be used with a default import when using the 'allowSyntheticDefaultImports' flag. \ No newline at end of file +!!! related TS2594 /bar.ts:1:1: This module is declared with 'export =', and can only be used with a default import when using the 'allowSyntheticDefaultImports' flag. \ No newline at end of file diff --git a/tests/baselines/reference/exportClassExtendingIntersection.js b/tests/baselines/reference/exportClassExtendingIntersection.js index 9327a315f3a..98eed6dcc5d 100644 --- a/tests/baselines/reference/exportClassExtendingIntersection.js +++ b/tests/baselines/reference/exportClassExtendingIntersection.js @@ -113,7 +113,7 @@ var AnotherMixedClass = (0, MixinClass_1.MyMixin)(FinalClass_1.MyExtendedClass); //// [BaseClass.d.ts] -export declare type Constructor = new (...args: any[]) => T; +export type Constructor = new (...args: any[]) => T; export declare class MyBaseClass { baseProperty: string; constructor(value: T); diff --git a/tests/baselines/reference/exportDefaultAsyncFunction2.symbols b/tests/baselines/reference/exportDefaultAsyncFunction2.symbols index 44ef20cd832..ac2034bcf53 100644 --- a/tests/baselines/reference/exportDefaultAsyncFunction2.symbols +++ b/tests/baselines/reference/exportDefaultAsyncFunction2.symbols @@ -16,9 +16,9 @@ import { async, await } from 'asyncawait'; export default async(() => await(Promise.resolve(1))); >async : Symbol(async, Decl(a.ts, 0, 8)) >await : Symbol(await, Decl(a.ts, 0, 15)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) === tests/cases/compiler/b.ts === export default async () => { return 0; }; diff --git a/tests/baselines/reference/exportDefaultAsyncFunction2.types b/tests/baselines/reference/exportDefaultAsyncFunction2.types index 4a3a20286db..a1daedde5cc 100644 --- a/tests/baselines/reference/exportDefaultAsyncFunction2.types +++ b/tests/baselines/reference/exportDefaultAsyncFunction2.types @@ -19,9 +19,9 @@ export default async(() => await(Promise.resolve(1))); >await(Promise.resolve(1)) : any >await : (...args: any[]) => any >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 === tests/cases/compiler/b.ts === diff --git a/tests/baselines/reference/externModule.errors.txt b/tests/baselines/reference/externModule.errors.txt index db7d505bba1..134443d52d2 100644 --- a/tests/baselines/reference/externModule.errors.txt +++ b/tests/baselines/reference/externModule.errors.txt @@ -66,20 +66,20 @@ tests/cases/compiler/externModule.ts(37,3): error TS2552: Cannot find name 'XDat var d=new XDate(); ~~~~~ !!! error TS2552: Cannot find name 'XDate'. Did you mean 'Date'? -!!! related TS2728 /.ts/lib.es5.d.ts:933:13: 'Date' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:937:13: 'Date' is declared here. d.getDay(); d=new XDate(1978,2); ~~~~~ !!! error TS2552: Cannot find name 'XDate'. Did you mean 'Date'? -!!! related TS2728 /.ts/lib.es5.d.ts:933:13: 'Date' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:937:13: 'Date' is declared here. d.getXDate(); var n=XDate.parse("3/2/2004"); ~~~~~ !!! error TS2552: Cannot find name 'XDate'. Did you mean 'Date'? -!!! related TS2728 /.ts/lib.es5.d.ts:933:13: 'Date' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:937:13: 'Date' is declared here. n=XDate.UTC(1964,2,1); ~~~~~ !!! error TS2552: Cannot find name 'XDate'. Did you mean 'Date'? -!!! related TS2728 /.ts/lib.es5.d.ts:933:13: 'Date' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:937:13: 'Date' is declared here. \ No newline at end of file diff --git a/tests/baselines/reference/findAllReferencesFromLinkTagReference1.baseline.jsonc b/tests/baselines/reference/findAllReferencesFromLinkTagReference1.baseline.jsonc new file mode 100644 index 00000000000..9fc705112fb --- /dev/null +++ b/tests/baselines/reference/findAllReferencesFromLinkTagReference1.baseline.jsonc @@ -0,0 +1,85 @@ +// === /tests/cases/fourslash/findAllReferencesFromLinkTagReference1.ts === +// enum E { +// /** {@link /*FIND ALL REFS*/[|A|]} */ +// [|A|] +// } + +[ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/tests/cases/fourslash/findAllReferencesFromLinkTagReference1.ts", + "kind": "enum member", + "name": "(enum member) E.A = 0", + "textSpan": { + "start": 34, + "length": 1 + }, + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "enum member", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "E", + "kind": "enumName" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "A", + "kind": "enumMemberName" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "=", + "kind": "operator" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "0", + "kind": "numericLiteral" + } + ] + }, + "references": [ + { + "textSpan": { + "start": 24, + "length": 1 + }, + "fileName": "/tests/cases/fourslash/findAllReferencesFromLinkTagReference1.ts", + "isWriteAccess": false + }, + { + "textSpan": { + "start": 34, + "length": 1 + }, + "fileName": "/tests/cases/fourslash/findAllReferencesFromLinkTagReference1.ts", + "isWriteAccess": true + } + ] + } +] \ No newline at end of file diff --git a/tests/baselines/reference/findAllReferencesFromLinkTagReference2.baseline.jsonc b/tests/baselines/reference/findAllReferencesFromLinkTagReference2.baseline.jsonc new file mode 100644 index 00000000000..f897a6e5d57 --- /dev/null +++ b/tests/baselines/reference/findAllReferencesFromLinkTagReference2.baseline.jsonc @@ -0,0 +1,64 @@ +// === /a.ts === +// enum E { +// /** {@link /*FIND ALL REFS*/[|Foo|]} */ +// Foo +// } +// interface [|Foo|] { +// foo: E.Foo; +// } + +[ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/a.ts", + "kind": "interface", + "name": "interface Foo", + "textSpan": { + "start": 52, + "length": 3 + }, + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Foo", + "kind": "interfaceName" + } + ], + "contextSpan": { + "start": 42, + "length": 33 + } + }, + "references": [ + { + "textSpan": { + "start": 24, + "length": 3 + }, + "fileName": "/a.ts", + "isWriteAccess": false + }, + { + "textSpan": { + "start": 52, + "length": 3 + }, + "fileName": "/a.ts", + "contextSpan": { + "start": 42, + "length": 33 + }, + "isWriteAccess": true + } + ] + } +] \ No newline at end of file diff --git a/tests/baselines/reference/findAllReferencesFromLinkTagReference3.baseline.jsonc b/tests/baselines/reference/findAllReferencesFromLinkTagReference3.baseline.jsonc new file mode 100644 index 00000000000..5c9eefb255d --- /dev/null +++ b/tests/baselines/reference/findAllReferencesFromLinkTagReference3.baseline.jsonc @@ -0,0 +1,66 @@ +// === /tests/cases/fourslash/a.ts === +// interface [|Foo|] { +// foo: E.Foo; +// } + +// === /tests/cases/fourslash/b.ts === +// enum E { +// /** {@link /*FIND ALL REFS*/[|Foo|]} */ +// Foo +// } + +[ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/tests/cases/fourslash/a.ts", + "kind": "interface", + "name": "interface Foo", + "textSpan": { + "start": 10, + "length": 3 + }, + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Foo", + "kind": "interfaceName" + } + ], + "contextSpan": { + "start": 0, + "length": 33 + } + }, + "references": [ + { + "textSpan": { + "start": 10, + "length": 3 + }, + "fileName": "/tests/cases/fourslash/a.ts", + "contextSpan": { + "start": 0, + "length": 33 + }, + "isWriteAccess": true + }, + { + "textSpan": { + "start": 24, + "length": 3 + }, + "fileName": "/tests/cases/fourslash/b.ts", + "isWriteAccess": false + } + ] + } +] \ No newline at end of file diff --git a/tests/baselines/reference/findAllReferencesFromLinkTagReference4.baseline.jsonc b/tests/baselines/reference/findAllReferencesFromLinkTagReference4.baseline.jsonc new file mode 100644 index 00000000000..b1dbc94dc76 --- /dev/null +++ b/tests/baselines/reference/findAllReferencesFromLinkTagReference4.baseline.jsonc @@ -0,0 +1,86 @@ +// === /tests/cases/fourslash/findAllReferencesFromLinkTagReference4.ts === +// enum E { +// /** {@link /*FIND ALL REFS*/[|B|]} */ +// A, +// [|B|] +// } + +[ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/tests/cases/fourslash/findAllReferencesFromLinkTagReference4.ts", + "kind": "enum member", + "name": "(enum member) E.B = 1", + "textSpan": { + "start": 41, + "length": 1 + }, + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "enum member", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "E", + "kind": "enumName" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "B", + "kind": "enumMemberName" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "=", + "kind": "operator" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "1", + "kind": "numericLiteral" + } + ] + }, + "references": [ + { + "textSpan": { + "start": 24, + "length": 1 + }, + "fileName": "/tests/cases/fourslash/findAllReferencesFromLinkTagReference4.ts", + "isWriteAccess": false + }, + { + "textSpan": { + "start": 41, + "length": 1 + }, + "fileName": "/tests/cases/fourslash/findAllReferencesFromLinkTagReference4.ts", + "isWriteAccess": true + } + ] + } +] \ No newline at end of file diff --git a/tests/baselines/reference/findAllReferencesFromLinkTagReference5.baseline.jsonc b/tests/baselines/reference/findAllReferencesFromLinkTagReference5.baseline.jsonc new file mode 100644 index 00000000000..c6f03b14a69 --- /dev/null +++ b/tests/baselines/reference/findAllReferencesFromLinkTagReference5.baseline.jsonc @@ -0,0 +1,85 @@ +// === /tests/cases/fourslash/findAllReferencesFromLinkTagReference5.ts === +// enum E { +// /** {@link E./*FIND ALL REFS*/[|A|]} */ +// [|A|] +// } + +[ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/tests/cases/fourslash/findAllReferencesFromLinkTagReference5.ts", + "kind": "enum member", + "name": "(enum member) E.A = 0", + "textSpan": { + "start": 36, + "length": 1 + }, + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "enum member", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "E", + "kind": "enumName" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "A", + "kind": "enumMemberName" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "=", + "kind": "operator" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "0", + "kind": "numericLiteral" + } + ] + }, + "references": [ + { + "textSpan": { + "start": 26, + "length": 1 + }, + "fileName": "/tests/cases/fourslash/findAllReferencesFromLinkTagReference5.ts", + "isWriteAccess": false + }, + { + "textSpan": { + "start": 36, + "length": 1 + }, + "fileName": "/tests/cases/fourslash/findAllReferencesFromLinkTagReference5.ts", + "isWriteAccess": true + } + ] + } +] \ No newline at end of file diff --git a/tests/baselines/reference/findAllRefsForDefaultExport09.baseline.jsonc b/tests/baselines/reference/findAllRefsForDefaultExport09.baseline.jsonc new file mode 100644 index 00000000000..325c57d3945 --- /dev/null +++ b/tests/baselines/reference/findAllRefsForDefaultExport09.baseline.jsonc @@ -0,0 +1,479 @@ +// === /foo.ts === +// import * as /*FIND ALL REFS*/[|a|] from "./a.js" +// import aDefault from "./a.js" +// import * as b from "./b.js" +// import bDefault from "./b.js" +// +// import * as c from "./c" +// import cDefault from "./c" +// import * as d from "./d" +// import dDefault from "./d" + +[ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/foo.ts", + "kind": "alias", + "name": "import a", + "textSpan": { + "start": 12, + "length": 1 + }, + "displayParts": [ + { + "text": "import", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "a", + "kind": "aliasName" + } + ], + "contextSpan": { + "start": 0, + "length": 27 + } + }, + "references": [ + { + "textSpan": { + "start": 12, + "length": 1 + }, + "fileName": "/foo.ts", + "contextSpan": { + "start": 0, + "length": 27 + }, + "isWriteAccess": true, + "isDefinition": true + } + ] + } +] + +// === /foo.ts === +// import * as a from "./a.js" +// import /*FIND ALL REFS*/[|aDefault|] from "./a.js" +// import * as b from "./b.js" +// import bDefault from "./b.js" +// +// import * as c from "./c" +// import cDefault from "./c" +// import * as d from "./d" +// import dDefault from "./d" + +[ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/foo.ts", + "kind": "alias", + "name": "import aDefault", + "textSpan": { + "start": 35, + "length": 8 + }, + "displayParts": [ + { + "text": "import", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "aDefault", + "kind": "aliasName" + } + ], + "contextSpan": { + "start": 28, + "length": 29 + } + }, + "references": [ + { + "textSpan": { + "start": 35, + "length": 8 + }, + "fileName": "/foo.ts", + "contextSpan": { + "start": 28, + "length": 29 + }, + "isWriteAccess": true, + "isDefinition": true + } + ] + } +] + +// === /foo.ts === +// import * as a from "./a.js" +// import aDefault from "./a.js" +// import * as /*FIND ALL REFS*/[|b|] from "./b.js" +// import bDefault from "./b.js" +// +// import * as c from "./c" +// import cDefault from "./c" +// import * as d from "./d" +// import dDefault from "./d" + +[ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/foo.ts", + "kind": "alias", + "name": "import b", + "textSpan": { + "start": 70, + "length": 1 + }, + "displayParts": [ + { + "text": "import", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "b", + "kind": "aliasName" + } + ], + "contextSpan": { + "start": 58, + "length": 27 + } + }, + "references": [ + { + "textSpan": { + "start": 70, + "length": 1 + }, + "fileName": "/foo.ts", + "contextSpan": { + "start": 58, + "length": 27 + }, + "isWriteAccess": true, + "isDefinition": true + } + ] + } +] + +// === /foo.ts === +// import * as a from "./a.js" +// import aDefault from "./a.js" +// import * as b from "./b.js" +// import /*FIND ALL REFS*/[|bDefault|] from "./b.js" +// +// import * as c from "./c" +// import cDefault from "./c" +// import * as d from "./d" +// import dDefault from "./d" + +[ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/foo.ts", + "kind": "alias", + "name": "import bDefault", + "textSpan": { + "start": 93, + "length": 8 + }, + "displayParts": [ + { + "text": "import", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "bDefault", + "kind": "aliasName" + } + ], + "contextSpan": { + "start": 86, + "length": 29 + } + }, + "references": [ + { + "textSpan": { + "start": 93, + "length": 8 + }, + "fileName": "/foo.ts", + "contextSpan": { + "start": 86, + "length": 29 + }, + "isWriteAccess": true, + "isDefinition": true + } + ] + } +] + +// === /foo.ts === +// import * as a from "./a.js" +// import aDefault from "./a.js" +// import * as b from "./b.js" +// import bDefault from "./b.js" +// +// import * as /*FIND ALL REFS*/[|c|] from "./c" +// import cDefault from "./c" +// import * as d from "./d" +// import dDefault from "./d" + +[ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/foo.ts", + "kind": "alias", + "name": "import c", + "textSpan": { + "start": 129, + "length": 1 + }, + "displayParts": [ + { + "text": "import", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "c", + "kind": "aliasName" + } + ], + "contextSpan": { + "start": 117, + "length": 24 + } + }, + "references": [ + { + "textSpan": { + "start": 129, + "length": 1 + }, + "fileName": "/foo.ts", + "contextSpan": { + "start": 117, + "length": 24 + }, + "isWriteAccess": true, + "isDefinition": true + } + ] + } +] + +// === /foo.ts === +// import * as a from "./a.js" +// import aDefault from "./a.js" +// import * as b from "./b.js" +// import bDefault from "./b.js" +// +// import * as c from "./c" +// import /*FIND ALL REFS*/[|cDefault|] from "./c" +// import * as d from "./d" +// import dDefault from "./d" + +[ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/foo.ts", + "kind": "alias", + "name": "import cDefault", + "textSpan": { + "start": 149, + "length": 8 + }, + "displayParts": [ + { + "text": "import", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "cDefault", + "kind": "aliasName" + } + ], + "contextSpan": { + "start": 142, + "length": 26 + } + }, + "references": [ + { + "textSpan": { + "start": 149, + "length": 8 + }, + "fileName": "/foo.ts", + "contextSpan": { + "start": 142, + "length": 26 + }, + "isWriteAccess": true, + "isDefinition": true + } + ] + } +] + +// === /foo.ts === +// import * as a from "./a.js" +// import aDefault from "./a.js" +// import * as b from "./b.js" +// import bDefault from "./b.js" +// +// import * as c from "./c" +// import cDefault from "./c" +// import * as /*FIND ALL REFS*/[|d|] from "./d" +// import dDefault from "./d" + +[ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/foo.ts", + "kind": "alias", + "name": "import d", + "textSpan": { + "start": 181, + "length": 1 + }, + "displayParts": [ + { + "text": "import", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "d", + "kind": "aliasName" + } + ], + "contextSpan": { + "start": 169, + "length": 24 + } + }, + "references": [ + { + "textSpan": { + "start": 181, + "length": 1 + }, + "fileName": "/foo.ts", + "contextSpan": { + "start": 169, + "length": 24 + }, + "isWriteAccess": true, + "isDefinition": true + } + ] + } +] + +// === /foo.ts === +// import * as a from "./a.js" +// import aDefault from "./a.js" +// import * as b from "./b.js" +// import bDefault from "./b.js" +// +// import * as c from "./c" +// import cDefault from "./c" +// import * as d from "./d" +// import /*FIND ALL REFS*/[|dDefault|] from "./d" + +[ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/foo.ts", + "kind": "alias", + "name": "import dDefault", + "textSpan": { + "start": 201, + "length": 8 + }, + "displayParts": [ + { + "text": "import", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "dDefault", + "kind": "aliasName" + } + ], + "contextSpan": { + "start": 194, + "length": 26 + } + }, + "references": [ + { + "textSpan": { + "start": 201, + "length": 8 + }, + "fileName": "/foo.ts", + "contextSpan": { + "start": 194, + "length": 26 + }, + "isWriteAccess": true, + "isDefinition": true + } + ] + } +] \ No newline at end of file diff --git a/tests/baselines/reference/firstMatchRegExpMatchArray.errors.txt b/tests/baselines/reference/firstMatchRegExpMatchArray.errors.txt new file mode 100644 index 00000000000..49c4177b2e2 --- /dev/null +++ b/tests/baselines/reference/firstMatchRegExpMatchArray.errors.txt @@ -0,0 +1,15 @@ +tests/cases/compiler/firstMatchRegExpMatchArray.ts(5,11): error TS2322: Type 'string | undefined' is not assignable to type 'string'. + Type 'undefined' is not assignable to type 'string'. + + +==== tests/cases/compiler/firstMatchRegExpMatchArray.ts (1 errors) ==== + const match = ''.match(/ /) + + if (match !== null) { + const foo: string = match[0] + const bar: string = match[1] + ~~~ +!!! error TS2322: Type 'string | undefined' is not assignable to type 'string'. +!!! error TS2322: Type 'undefined' is not assignable to type 'string'. + } + \ No newline at end of file diff --git a/tests/baselines/reference/firstMatchRegExpMatchArray.js b/tests/baselines/reference/firstMatchRegExpMatchArray.js new file mode 100644 index 00000000000..5c1a0ab8af0 --- /dev/null +++ b/tests/baselines/reference/firstMatchRegExpMatchArray.js @@ -0,0 +1,16 @@ +//// [firstMatchRegExpMatchArray.ts] +const match = ''.match(/ /) + +if (match !== null) { + const foo: string = match[0] + const bar: string = match[1] +} + + +//// [firstMatchRegExpMatchArray.js] +"use strict"; +var match = ''.match(/ /); +if (match !== null) { + var foo = match[0]; + var bar = match[1]; +} diff --git a/tests/baselines/reference/firstMatchRegExpMatchArray.symbols b/tests/baselines/reference/firstMatchRegExpMatchArray.symbols new file mode 100644 index 00000000000..39569bc41ac --- /dev/null +++ b/tests/baselines/reference/firstMatchRegExpMatchArray.symbols @@ -0,0 +1,19 @@ +=== tests/cases/compiler/firstMatchRegExpMatchArray.ts === +const match = ''.match(/ /) +>match : Symbol(match, Decl(firstMatchRegExpMatchArray.ts, 0, 5)) +>''.match : Symbol(String.match, Decl(lib.es5.d.ts, --, --)) +>match : Symbol(String.match, Decl(lib.es5.d.ts, --, --)) + +if (match !== null) { +>match : Symbol(match, Decl(firstMatchRegExpMatchArray.ts, 0, 5)) + + const foo: string = match[0] +>foo : Symbol(foo, Decl(firstMatchRegExpMatchArray.ts, 3, 9)) +>match : Symbol(match, Decl(firstMatchRegExpMatchArray.ts, 0, 5)) +>0 : Symbol(RegExpMatchArray[0], Decl(lib.es5.d.ts, --, --)) + + const bar: string = match[1] +>bar : Symbol(bar, Decl(firstMatchRegExpMatchArray.ts, 4, 9)) +>match : Symbol(match, Decl(firstMatchRegExpMatchArray.ts, 0, 5)) +} + diff --git a/tests/baselines/reference/firstMatchRegExpMatchArray.types b/tests/baselines/reference/firstMatchRegExpMatchArray.types new file mode 100644 index 00000000000..4a30374af15 --- /dev/null +++ b/tests/baselines/reference/firstMatchRegExpMatchArray.types @@ -0,0 +1,27 @@ +=== tests/cases/compiler/firstMatchRegExpMatchArray.ts === +const match = ''.match(/ /) +>match : RegExpMatchArray | null +>''.match(/ /) : RegExpMatchArray | null +>''.match : (regexp: string | RegExp) => RegExpMatchArray | null +>'' : "" +>match : (regexp: string | RegExp) => RegExpMatchArray | null +>/ / : RegExp + +if (match !== null) { +>match !== null : boolean +>match : RegExpMatchArray | null +>null : null + + const foo: string = match[0] +>foo : string +>match[0] : string +>match : RegExpMatchArray +>0 : 0 + + const bar: string = match[1] +>bar : string +>match[1] : string | undefined +>match : RegExpMatchArray +>1 : 1 +} + diff --git a/tests/baselines/reference/flatArrayNoExcessiveStackDepth.types b/tests/baselines/reference/flatArrayNoExcessiveStackDepth.types index 51bde63a33b..ddf44fe2ef3 100644 --- a/tests/baselines/reference/flatArrayNoExcessiveStackDepth.types +++ b/tests/baselines/reference/flatArrayNoExcessiveStackDepth.types @@ -36,19 +36,19 @@ const repro_43249 = (value: unknown) => { >"No" : "No" } const match = value.match(/anything/) || []; ->match : RegExpMatchArray ->value.match(/anything/) || [] : RegExpMatchArray +>match : [] | RegExpMatchArray +>value.match(/anything/) || [] : RegExpMatchArray | [] >value.match(/anything/) : RegExpMatchArray | null >value.match : { (regexp: string | RegExp): RegExpMatchArray | null; (matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null; } >value : string >match : { (regexp: string | RegExp): RegExpMatchArray | null; (matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null; } >/anything/ : RegExp ->[] : never[] +>[] : [] const [, extracted] = match; > : undefined >extracted : string ->match : RegExpMatchArray +>match : [] | RegExpMatchArray }; diff --git a/tests/baselines/reference/for-of16.errors.txt b/tests/baselines/reference/for-of16.errors.txt index 7574f98e3d8..2c53681eaaa 100644 --- a/tests/baselines/reference/for-of16.errors.txt +++ b/tests/baselines/reference/for-of16.errors.txt @@ -1,7 +1,8 @@ -tests/cases/conformance/es6/for-ofStatements/for-of16.ts(8,11): error TS2489: An iterator must have a 'next()' method. +tests/cases/conformance/es6/for-ofStatements/for-of16.ts(8,11): error TS2488: Type 'StringIterator' must have a '[Symbol.iterator]()' method that returns an iterator. +tests/cases/conformance/es6/for-ofStatements/for-of16.ts(10,11): error TS2488: Type 'StringIterator' must have a '[Symbol.iterator]()' method that returns an iterator. -==== tests/cases/conformance/es6/for-ofStatements/for-of16.ts (1 errors) ==== +==== tests/cases/conformance/es6/for-ofStatements/for-of16.ts (2 errors) ==== class StringIterator { [Symbol.iterator]() { return this; @@ -11,4 +12,10 @@ tests/cases/conformance/es6/for-ofStatements/for-of16.ts(8,11): error TS2489: An var v: string; for (v of new StringIterator) { } // Should fail ~~~~~~~~~~~~~~~~~~ -!!! error TS2489: An iterator must have a 'next()' method. \ No newline at end of file +!!! error TS2488: Type 'StringIterator' must have a '[Symbol.iterator]()' method that returns an iterator. +!!! related TS2489 tests/cases/conformance/es6/for-ofStatements/for-of16.ts:8:11: An iterator must have a 'next()' method. + + for (v of new StringIterator) { } // Should still fail (related errors should still be shown even though type is cached). + ~~~~~~~~~~~~~~~~~~ +!!! error TS2488: Type 'StringIterator' must have a '[Symbol.iterator]()' method that returns an iterator. +!!! related TS2489 tests/cases/conformance/es6/for-ofStatements/for-of16.ts:10:11: An iterator must have a 'next()' method. \ No newline at end of file diff --git a/tests/baselines/reference/for-of16.js b/tests/baselines/reference/for-of16.js index 2219e15a6f9..b0ccae1d413 100644 --- a/tests/baselines/reference/for-of16.js +++ b/tests/baselines/reference/for-of16.js @@ -6,7 +6,9 @@ class StringIterator { } var v: string; -for (v of new StringIterator) { } // Should fail +for (v of new StringIterator) { } // Should fail + +for (v of new StringIterator) { } // Should still fail (related errors should still be shown even though type is cached). //// [for-of16.js] class StringIterator { @@ -16,3 +18,4 @@ class StringIterator { } var v; for (v of new StringIterator) { } // Should fail +for (v of new StringIterator) { } // Should still fail (related errors should still be shown even though type is cached). diff --git a/tests/baselines/reference/for-of16.symbols b/tests/baselines/reference/for-of16.symbols index 1bd52fa5dc6..53b1f78ae01 100644 --- a/tests/baselines/reference/for-of16.symbols +++ b/tests/baselines/reference/for-of16.symbols @@ -20,3 +20,7 @@ for (v of new StringIterator) { } // Should fail >v : Symbol(v, Decl(for-of16.ts, 6, 3)) >StringIterator : Symbol(StringIterator, Decl(for-of16.ts, 0, 0)) +for (v of new StringIterator) { } // Should still fail (related errors should still be shown even though type is cached). +>v : Symbol(v, Decl(for-of16.ts, 6, 3)) +>StringIterator : Symbol(StringIterator, Decl(for-of16.ts, 0, 0)) + diff --git a/tests/baselines/reference/for-of16.types b/tests/baselines/reference/for-of16.types index 2fb955fec59..155db0d7419 100644 --- a/tests/baselines/reference/for-of16.types +++ b/tests/baselines/reference/for-of16.types @@ -21,3 +21,8 @@ for (v of new StringIterator) { } // Should fail >new StringIterator : StringIterator >StringIterator : typeof StringIterator +for (v of new StringIterator) { } // Should still fail (related errors should still be shown even though type is cached). +>v : string +>new StringIterator : StringIterator +>StringIterator : typeof StringIterator + diff --git a/tests/baselines/reference/freshLiteralInference.js b/tests/baselines/reference/freshLiteralInference.js new file mode 100644 index 00000000000..a360206baae --- /dev/null +++ b/tests/baselines/reference/freshLiteralInference.js @@ -0,0 +1,24 @@ +//// [freshLiteralInference.ts] +declare function f1(x: T): T; + +const value = f1("1"); // regular "1" +let x1 = value; // regular "1" + +declare function f2(x: { value: T }): { value: T }; + +const obj2 = f2({ value: "1" }); // { value: regular "1" } +let x2 = obj2.value; // regular "1" + +declare function f3(obj: T): T; + +const obj3 = f3({ value: "1" }); // before: { value: fresh "1" } +let x3 = obj3.value; // before: string, after: "1" + + +//// [freshLiteralInference.js] +var value = f1("1"); // regular "1" +var x1 = value; // regular "1" +var obj2 = f2({ value: "1" }); // { value: regular "1" } +var x2 = obj2.value; // regular "1" +var obj3 = f3({ value: "1" }); // before: { value: fresh "1" } +var x3 = obj3.value; // before: string, after: "1" diff --git a/tests/baselines/reference/freshLiteralInference.symbols b/tests/baselines/reference/freshLiteralInference.symbols new file mode 100644 index 00000000000..505be6936e6 --- /dev/null +++ b/tests/baselines/reference/freshLiteralInference.symbols @@ -0,0 +1,55 @@ +=== tests/cases/compiler/freshLiteralInference.ts === +declare function f1(x: T): T; +>f1 : Symbol(f1, Decl(freshLiteralInference.ts, 0, 0)) +>T : Symbol(T, Decl(freshLiteralInference.ts, 0, 20)) +>x : Symbol(x, Decl(freshLiteralInference.ts, 0, 47)) +>T : Symbol(T, Decl(freshLiteralInference.ts, 0, 20)) +>T : Symbol(T, Decl(freshLiteralInference.ts, 0, 20)) + +const value = f1("1"); // regular "1" +>value : Symbol(value, Decl(freshLiteralInference.ts, 2, 5)) +>f1 : Symbol(f1, Decl(freshLiteralInference.ts, 0, 0)) + +let x1 = value; // regular "1" +>x1 : Symbol(x1, Decl(freshLiteralInference.ts, 3, 3)) +>value : Symbol(value, Decl(freshLiteralInference.ts, 2, 5)) + +declare function f2(x: { value: T }): { value: T }; +>f2 : Symbol(f2, Decl(freshLiteralInference.ts, 3, 15)) +>T : Symbol(T, Decl(freshLiteralInference.ts, 5, 20)) +>x : Symbol(x, Decl(freshLiteralInference.ts, 5, 47)) +>value : Symbol(value, Decl(freshLiteralInference.ts, 5, 51)) +>T : Symbol(T, Decl(freshLiteralInference.ts, 5, 20)) +>value : Symbol(value, Decl(freshLiteralInference.ts, 5, 66)) +>T : Symbol(T, Decl(freshLiteralInference.ts, 5, 20)) + +const obj2 = f2({ value: "1" }); // { value: regular "1" } +>obj2 : Symbol(obj2, Decl(freshLiteralInference.ts, 7, 5)) +>f2 : Symbol(f2, Decl(freshLiteralInference.ts, 3, 15)) +>value : Symbol(value, Decl(freshLiteralInference.ts, 7, 17)) + +let x2 = obj2.value; // regular "1" +>x2 : Symbol(x2, Decl(freshLiteralInference.ts, 8, 3)) +>obj2.value : Symbol(value, Decl(freshLiteralInference.ts, 5, 66)) +>obj2 : Symbol(obj2, Decl(freshLiteralInference.ts, 7, 5)) +>value : Symbol(value, Decl(freshLiteralInference.ts, 5, 66)) + +declare function f3(obj: T): T; +>f3 : Symbol(f3, Decl(freshLiteralInference.ts, 8, 20)) +>T : Symbol(T, Decl(freshLiteralInference.ts, 10, 20)) +>value : Symbol(value, Decl(freshLiteralInference.ts, 10, 31)) +>obj : Symbol(obj, Decl(freshLiteralInference.ts, 10, 58)) +>T : Symbol(T, Decl(freshLiteralInference.ts, 10, 20)) +>T : Symbol(T, Decl(freshLiteralInference.ts, 10, 20)) + +const obj3 = f3({ value: "1" }); // before: { value: fresh "1" } +>obj3 : Symbol(obj3, Decl(freshLiteralInference.ts, 12, 5)) +>f3 : Symbol(f3, Decl(freshLiteralInference.ts, 8, 20)) +>value : Symbol(value, Decl(freshLiteralInference.ts, 12, 17)) + +let x3 = obj3.value; // before: string, after: "1" +>x3 : Symbol(x3, Decl(freshLiteralInference.ts, 13, 3)) +>obj3.value : Symbol(value, Decl(freshLiteralInference.ts, 12, 17)) +>obj3 : Symbol(obj3, Decl(freshLiteralInference.ts, 12, 5)) +>value : Symbol(value, Decl(freshLiteralInference.ts, 12, 17)) + diff --git a/tests/baselines/reference/freshLiteralInference.types b/tests/baselines/reference/freshLiteralInference.types new file mode 100644 index 00000000000..acf37c52643 --- /dev/null +++ b/tests/baselines/reference/freshLiteralInference.types @@ -0,0 +1,54 @@ +=== tests/cases/compiler/freshLiteralInference.ts === +declare function f1(x: T): T; +>f1 : (x: T) => T +>x : T + +const value = f1("1"); // regular "1" +>value : "1" +>f1("1") : "1" +>f1 : (x: T) => T +>"1" : "1" + +let x1 = value; // regular "1" +>x1 : "1" +>value : "1" + +declare function f2(x: { value: T }): { value: T }; +>f2 : (x: { value: T;}) => { value: T;} +>x : { value: T; } +>value : T +>value : T + +const obj2 = f2({ value: "1" }); // { value: regular "1" } +>obj2 : { value: "1"; } +>f2({ value: "1" }) : { value: "1"; } +>f2 : (x: { value: T; }) => { value: T; } +>{ value: "1" } : { value: "1"; } +>value : "1" +>"1" : "1" + +let x2 = obj2.value; // regular "1" +>x2 : "1" +>obj2.value : "1" +>obj2 : { value: "1"; } +>value : "1" + +declare function f3(obj: T): T; +>f3 : (obj: T) => T +>value : "1" | "2" | "3" +>obj : T + +const obj3 = f3({ value: "1" }); // before: { value: fresh "1" } +>obj3 : { value: "1"; } +>f3({ value: "1" }) : { value: "1"; } +>f3 : (obj: T) => T +>{ value: "1" } : { value: "1"; } +>value : "1" +>"1" : "1" + +let x3 = obj3.value; // before: string, after: "1" +>x3 : "1" +>obj3.value : "1" +>obj3 : { value: "1"; } +>value : "1" + diff --git a/tests/baselines/reference/functionExpressionNames.symbols b/tests/baselines/reference/functionExpressionNames.symbols index 1675f159134..ca1d8479ae5 100644 --- a/tests/baselines/reference/functionExpressionNames.symbols +++ b/tests/baselines/reference/functionExpressionNames.symbols @@ -22,8 +22,7 @@ var o = { >C : Symbol(C, Decl(b.js, 5, 9)) this.c = 'nested object' ->this.c : Symbol(C.c, Decl(b.js, 6, 20)) ->this : Symbol(C, Decl(b.js, 6, 6)) +>this : Symbol(o, Decl(b.js, 5, 7)) >c : Symbol(C.c, Decl(b.js, 6, 20)) } } diff --git a/tests/baselines/reference/functionExpressionNames.types b/tests/baselines/reference/functionExpressionNames.types index 50c45ed46d3..d803666bbb9 100644 --- a/tests/baselines/reference/functionExpressionNames.types +++ b/tests/baselines/reference/functionExpressionNames.types @@ -31,7 +31,7 @@ var o = { this.c = 'nested object' >this.c = 'nested object' : "nested object" >this.c : any ->this : this +>this : { C: typeof C; } >c : any >'nested object' : "nested object" } diff --git a/tests/baselines/reference/generatorReturnContextualType.errors.txt b/tests/baselines/reference/generatorReturnContextualType.errors.txt index 48724292ea9..c0554e592e8 100644 --- a/tests/baselines/reference/generatorReturnContextualType.errors.txt +++ b/tests/baselines/reference/generatorReturnContextualType.errors.txt @@ -1,29 +1,53 @@ -tests/cases/conformance/generators/generatorReturnContextualType.ts(17,3): error TS2322: Type '{ x: string; }' is not assignable to type '{ x: "x"; }'. +tests/cases/conformance/generators/generatorReturnContextualType.ts(29,3): error TS2322: Type '{ x: string; }' is not assignable to type '{ x: "x"; }'. + Types of property 'x' are incompatible. + Type 'string' is not assignable to type '"x"'. +tests/cases/conformance/generators/generatorReturnContextualType.ts(34,3): error TS2322: Type '{ x: string; }' is not assignable to type '{ x: "x"; }'. Types of property 'x' are incompatible. Type 'string' is not assignable to type '"x"'. -==== tests/cases/conformance/generators/generatorReturnContextualType.ts (1 errors) ==== +==== tests/cases/conformance/generators/generatorReturnContextualType.ts (2 errors) ==== // #35995 function* f1(): Generator { return { x: 'x' }; } + function* g1(): Iterator { + return { x: 'x' }; + } + async function* f2(): AsyncGenerator { return { x: 'x' }; } + async function* g2(): AsyncIterator { + return { x: 'x' }; + } + async function* f3(): AsyncGenerator { return Promise.resolve({ x: 'x' }); } + async function* g3(): AsyncIterator { + return Promise.resolve({ x: 'x' }); + } + async function* f4(): AsyncGenerator { const ret = { x: 'x' }; return Promise.resolve(ret); // Error ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS2322: Type '{ x: string; }' is not assignable to type '{ x: "x"; }'. !!! error TS2322: Types of property 'x' are incompatible. +!!! error TS2322: Type 'string' is not assignable to type '"x"'. + } + + async function* g4(): AsyncIterator { + const ret = { x: 'x' }; + return Promise.resolve(ret); // Error + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2322: Type '{ x: string; }' is not assignable to type '{ x: "x"; }'. +!!! error TS2322: Types of property 'x' are incompatible. !!! error TS2322: Type 'string' is not assignable to type '"x"'. } \ No newline at end of file diff --git a/tests/baselines/reference/generatorReturnContextualType.js b/tests/baselines/reference/generatorReturnContextualType.js index 5c613ee6f49..efbe7375ae2 100644 --- a/tests/baselines/reference/generatorReturnContextualType.js +++ b/tests/baselines/reference/generatorReturnContextualType.js @@ -5,18 +5,35 @@ function* f1(): Generator { return { x: 'x' }; } +function* g1(): Iterator { + return { x: 'x' }; +} + async function* f2(): AsyncGenerator { return { x: 'x' }; } +async function* g2(): AsyncIterator { + return { x: 'x' }; +} + async function* f3(): AsyncGenerator { return Promise.resolve({ x: 'x' }); } +async function* g3(): AsyncIterator { + return Promise.resolve({ x: 'x' }); +} + async function* f4(): AsyncGenerator { const ret = { x: 'x' }; return Promise.resolve(ret); // Error } + +async function* g4(): AsyncIterator { + const ret = { x: 'x' }; + return Promise.resolve(ret); // Error +} //// [generatorReturnContextualType.js] @@ -25,13 +42,26 @@ async function* f4(): AsyncGenerator { function* f1() { return { x: 'x' }; } +function* g1() { + return { x: 'x' }; +} async function* f2() { return { x: 'x' }; } +async function* g2() { + return { x: 'x' }; +} async function* f3() { return Promise.resolve({ x: 'x' }); } +async function* g3() { + return Promise.resolve({ x: 'x' }); +} async function* f4() { const ret = { x: 'x' }; return Promise.resolve(ret); // Error } +async function* g4() { + const ret = { x: 'x' }; + return Promise.resolve(ret); // Error +} diff --git a/tests/baselines/reference/generatorReturnContextualType.symbols b/tests/baselines/reference/generatorReturnContextualType.symbols index 15dce2efcd6..62ed72b5c0d 100644 --- a/tests/baselines/reference/generatorReturnContextualType.symbols +++ b/tests/baselines/reference/generatorReturnContextualType.symbols @@ -10,40 +10,86 @@ function* f1(): Generator { >x : Symbol(x, Decl(generatorReturnContextualType.ts, 3, 10)) } -async function* f2(): AsyncGenerator { ->f2 : Symbol(f2, Decl(generatorReturnContextualType.ts, 4, 1)) ->AsyncGenerator : Symbol(AsyncGenerator, Decl(lib.es2018.asyncgenerator.d.ts, --, --)) ->x : Symbol(x, Decl(generatorReturnContextualType.ts, 6, 43)) +function* g1(): Iterator { +>g1 : Symbol(g1, Decl(generatorReturnContextualType.ts, 4, 1)) +>Iterator : Symbol(Iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>x : Symbol(x, Decl(generatorReturnContextualType.ts, 6, 31)) return { x: 'x' }; >x : Symbol(x, Decl(generatorReturnContextualType.ts, 7, 10)) } -async function* f3(): AsyncGenerator { ->f3 : Symbol(f3, Decl(generatorReturnContextualType.ts, 8, 1)) +async function* f2(): AsyncGenerator { +>f2 : Symbol(f2, Decl(generatorReturnContextualType.ts, 8, 1)) >AsyncGenerator : Symbol(AsyncGenerator, Decl(lib.es2018.asyncgenerator.d.ts, --, --)) >x : Symbol(x, Decl(generatorReturnContextualType.ts, 10, 43)) + return { x: 'x' }; +>x : Symbol(x, Decl(generatorReturnContextualType.ts, 11, 10)) +} + +async function* g2(): AsyncIterator { +>g2 : Symbol(g2, Decl(generatorReturnContextualType.ts, 12, 1)) +>AsyncIterator : Symbol(AsyncIterator, Decl(lib.es2018.asynciterable.d.ts, --, --)) +>x : Symbol(x, Decl(generatorReturnContextualType.ts, 14, 42)) + + return { x: 'x' }; +>x : Symbol(x, Decl(generatorReturnContextualType.ts, 15, 10)) +} + +async function* f3(): AsyncGenerator { +>f3 : Symbol(f3, Decl(generatorReturnContextualType.ts, 16, 1)) +>AsyncGenerator : Symbol(AsyncGenerator, Decl(lib.es2018.asyncgenerator.d.ts, --, --)) +>x : Symbol(x, Decl(generatorReturnContextualType.ts, 18, 43)) + return Promise.resolve({ x: 'x' }); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) ->x : Symbol(x, Decl(generatorReturnContextualType.ts, 11, 26)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>x : Symbol(x, Decl(generatorReturnContextualType.ts, 19, 26)) +} + +async function* g3(): AsyncIterator { +>g3 : Symbol(g3, Decl(generatorReturnContextualType.ts, 20, 1)) +>AsyncIterator : Symbol(AsyncIterator, Decl(lib.es2018.asynciterable.d.ts, --, --)) +>x : Symbol(x, Decl(generatorReturnContextualType.ts, 22, 42)) + + return Promise.resolve({ x: 'x' }); +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>x : Symbol(x, Decl(generatorReturnContextualType.ts, 23, 26)) } async function* f4(): AsyncGenerator { ->f4 : Symbol(f4, Decl(generatorReturnContextualType.ts, 12, 1)) +>f4 : Symbol(f4, Decl(generatorReturnContextualType.ts, 24, 1)) >AsyncGenerator : Symbol(AsyncGenerator, Decl(lib.es2018.asyncgenerator.d.ts, --, --)) ->x : Symbol(x, Decl(generatorReturnContextualType.ts, 14, 43)) +>x : Symbol(x, Decl(generatorReturnContextualType.ts, 26, 43)) const ret = { x: 'x' }; ->ret : Symbol(ret, Decl(generatorReturnContextualType.ts, 15, 7)) ->x : Symbol(x, Decl(generatorReturnContextualType.ts, 15, 15)) +>ret : Symbol(ret, Decl(generatorReturnContextualType.ts, 27, 7)) +>x : Symbol(x, Decl(generatorReturnContextualType.ts, 27, 15)) return Promise.resolve(ret); // Error ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) ->ret : Symbol(ret, Decl(generatorReturnContextualType.ts, 15, 7)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>ret : Symbol(ret, Decl(generatorReturnContextualType.ts, 27, 7)) +} + +async function* g4(): AsyncIterator { +>g4 : Symbol(g4, Decl(generatorReturnContextualType.ts, 29, 1)) +>AsyncIterator : Symbol(AsyncIterator, Decl(lib.es2018.asynciterable.d.ts, --, --)) +>x : Symbol(x, Decl(generatorReturnContextualType.ts, 31, 42)) + + const ret = { x: 'x' }; +>ret : Symbol(ret, Decl(generatorReturnContextualType.ts, 32, 7)) +>x : Symbol(x, Decl(generatorReturnContextualType.ts, 32, 15)) + + return Promise.resolve(ret); // Error +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>ret : Symbol(ret, Decl(generatorReturnContextualType.ts, 32, 7)) } diff --git a/tests/baselines/reference/generatorReturnContextualType.types b/tests/baselines/reference/generatorReturnContextualType.types index 4731414abb8..e243cd26cc1 100644 --- a/tests/baselines/reference/generatorReturnContextualType.types +++ b/tests/baselines/reference/generatorReturnContextualType.types @@ -11,6 +11,16 @@ function* f1(): Generator { >'x' : "x" } +function* g1(): Iterator { +>g1 : () => Iterator +>x : "x" + + return { x: 'x' }; +>{ x: 'x' } : { x: "x"; } +>x : "x" +>'x' : "x" +} + async function* f2(): AsyncGenerator { >f2 : () => AsyncGenerator >x : "x" @@ -21,15 +31,39 @@ async function* f2(): AsyncGenerator { >'x' : "x" } +async function* g2(): AsyncIterator { +>g2 : () => AsyncIterator +>x : "x" + + return { x: 'x' }; +>{ x: 'x' } : { x: "x"; } +>x : "x" +>'x' : "x" +} + async function* f3(): AsyncGenerator { >f3 : () => AsyncGenerator >x : "x" return Promise.resolve({ x: 'x' }); >Promise.resolve({ x: 'x' }) : Promise<{ x: "x"; }> ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +>{ x: 'x' } : { x: "x"; } +>x : "x" +>'x' : "x" +} + +async function* g3(): AsyncIterator { +>g3 : () => AsyncIterator +>x : "x" + + return Promise.resolve({ x: 'x' }); +>Promise.resolve({ x: 'x' }) : Promise<{ x: "x"; }> +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +>Promise : PromiseConstructor +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >{ x: 'x' } : { x: "x"; } >x : "x" >'x' : "x" @@ -47,9 +81,27 @@ async function* f4(): AsyncGenerator { return Promise.resolve(ret); // Error >Promise.resolve(ret) : Promise<{ x: string; }> ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +>ret : { x: string; } +} + +async function* g4(): AsyncIterator { +>g4 : () => AsyncIterator +>x : "x" + + const ret = { x: 'x' }; +>ret : { x: string; } +>{ x: 'x' } : { x: string; } +>x : string +>'x' : "x" + + return Promise.resolve(ret); // Error +>Promise.resolve(ret) : Promise<{ x: string; }> +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +>Promise : PromiseConstructor +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >ret : { x: string; } } diff --git a/tests/baselines/reference/generatorTypeCheck31.errors.txt b/tests/baselines/reference/generatorTypeCheck31.errors.txt index 9aaf3b745ee..0ed5dcbe0e0 100644 --- a/tests/baselines/reference/generatorTypeCheck31.errors.txt +++ b/tests/baselines/reference/generatorTypeCheck31.errors.txt @@ -1,5 +1,5 @@ -tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck31.ts(2,11): error TS2322: Type 'Generator<(x: any) => any, void, any>' is not assignable to type '() => Iterable<(x: string) => number>'. - Type 'Generator<(x: any) => any, void, any>' provides no match for the signature '(): Iterable<(x: string) => number>'. +tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck31.ts(2,11): error TS2322: Type 'Generator<(x: any) => any, void, unknown>' is not assignable to type '() => Iterable<(x: string) => number>'. + Type 'Generator<(x: any) => any, void, unknown>' provides no match for the signature '(): Iterable<(x: string) => number>'. ==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck31.ts (1 errors) ==== @@ -10,6 +10,6 @@ tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck31.ts(2,11): erro ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ } () ~~~~~~~~ -!!! error TS2322: Type 'Generator<(x: any) => any, void, any>' is not assignable to type '() => Iterable<(x: string) => number>'. -!!! error TS2322: Type 'Generator<(x: any) => any, void, any>' provides no match for the signature '(): Iterable<(x: string) => number>'. +!!! error TS2322: Type 'Generator<(x: any) => any, void, unknown>' is not assignable to type '() => Iterable<(x: string) => number>'. +!!! error TS2322: Type 'Generator<(x: any) => any, void, unknown>' provides no match for the signature '(): Iterable<(x: string) => number>'. } \ No newline at end of file diff --git a/tests/baselines/reference/generatorTypeCheck31.types b/tests/baselines/reference/generatorTypeCheck31.types index 2a3828322ff..c15eab96fe9 100644 --- a/tests/baselines/reference/generatorTypeCheck31.types +++ b/tests/baselines/reference/generatorTypeCheck31.types @@ -5,8 +5,8 @@ function* g2(): Iterator<() => Iterable<(x: string) => number>> { yield function* () { >yield function* () { yield x => x.length; } () : undefined ->function* () { yield x => x.length; } () : Generator<(x: any) => any, void, any> ->function* () { yield x => x.length; } : () => Generator<(x: any) => any, void, any> +>function* () { yield x => x.length; } () : Generator<(x: any) => any, void, unknown> +>function* () { yield x => x.length; } : () => Generator<(x: any) => any, void, unknown> yield x => x.length; >yield x => x.length : any diff --git a/tests/baselines/reference/generatorTypeCheck6.errors.txt b/tests/baselines/reference/generatorTypeCheck6.errors.txt index a9eca26ca4f..7084844c48f 100644 --- a/tests/baselines/reference/generatorTypeCheck6.errors.txt +++ b/tests/baselines/reference/generatorTypeCheck6.errors.txt @@ -1,7 +1,7 @@ -tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck6.ts(1,17): error TS2322: Type 'Generator' is not assignable to type 'number'. +tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck6.ts(1,17): error TS2322: Type 'Generator' is not assignable to type 'number'. ==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck6.ts (1 errors) ==== function* g1(): number { } ~~~~~~ -!!! error TS2322: Type 'Generator' is not assignable to type 'number'. \ No newline at end of file +!!! error TS2322: Type 'Generator' is not assignable to type 'number'. \ No newline at end of file diff --git a/tests/baselines/reference/genericContextualTypes1.js b/tests/baselines/reference/genericContextualTypes1.js index 94724123330..25e299cff17 100644 --- a/tests/baselines/reference/genericContextualTypes1.js +++ b/tests/baselines/reference/genericContextualTypes1.js @@ -73,7 +73,7 @@ var fn = function (a) { return a; }; //// [genericContextualTypes1.d.ts] -declare type Box = { +type Box = { value: T; }; declare function wrap(f: (a: A) => B): (a: A) => B; @@ -103,5 +103,5 @@ declare const f23: (a: A[]) => Box[]; declare const f30: (a: string[]) => string[]; declare const f31: >(a: T[]) => T[]; declare const f40: (b: B, a: A) => [A, B]; -declare type fn = (a: A) => A; +type fn = (a: A) => A; declare const fn: fn; diff --git a/tests/baselines/reference/genericDefaults.js b/tests/baselines/reference/genericDefaults.js index 842abbde52f..8a9afe2a372 100644 --- a/tests/baselines/reference/genericDefaults.js +++ b/tests/baselines/reference/genericDefaults.js @@ -1000,18 +1000,18 @@ declare class Derived03 extends Base02 { } declare const Derived03c00: Derived03; declare const Derived03c01: number; -declare type DerivedProps = keyof Derived03; -declare type t00 = { +type DerivedProps = keyof Derived03; +type t00 = { a: T; }; declare const t00c00: number; declare const t00c01: number; -declare type t01 = { +type t01 = { a: [T, U]; }; declare const t01c00: [number, number]; declare const t01c01: [number, string]; -declare type t02 = { +type t02 = { a: [T, U]; }; declare const t02c00: [number, number]; @@ -1019,7 +1019,7 @@ declare const t02c01: [1, 1]; declare const t02c02: [number, number]; declare const t02c03: [1, number]; declare const t02c04: [number, 1]; -declare type t03 = { +type t03 = { a: [T, U]; }; declare const t03c00: [number, number]; diff --git a/tests/baselines/reference/genericFunctionInference1.symbols b/tests/baselines/reference/genericFunctionInference1.symbols index 0c2881bb1ce..b192a4a36a8 100644 --- a/tests/baselines/reference/genericFunctionInference1.symbols +++ b/tests/baselines/reference/genericFunctionInference1.symbols @@ -921,9 +921,9 @@ const fn30: Fn = pipe( const promise = Promise.resolve(1); >promise : Symbol(promise, Decl(genericFunctionInference1.ts, 194, 5)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) promise.then( >promise.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) diff --git a/tests/baselines/reference/genericFunctionInference1.types b/tests/baselines/reference/genericFunctionInference1.types index 9dd28cea1a7..f8d69713042 100644 --- a/tests/baselines/reference/genericFunctionInference1.types +++ b/tests/baselines/reference/genericFunctionInference1.types @@ -835,9 +835,9 @@ const fn30: Fn = pipe( const promise = Promise.resolve(1); >promise : Promise >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 promise.then( diff --git a/tests/baselines/reference/genericRestParameters1.js b/tests/baselines/reference/genericRestParameters1.js index e753c526e5a..00ffe4a66d9 100644 --- a/tests/baselines/reference/genericRestParameters1.js +++ b/tests/baselines/reference/genericRestParameters1.js @@ -334,22 +334,22 @@ declare const g22: (z?: boolean | undefined) => string[]; declare const g23: () => string[]; declare function f30 any)[]>(x: T, ...args: U): U; declare const c30: [(x: number) => string, (x: number) => number]; -declare type T01 = Parameters<(x: number, y: string, z: boolean) => void>; -declare type T02 = Parameters<(...args: [number, string, boolean]) => void>; -declare type T03 = ConstructorParameters void>; -declare type T04 = ConstructorParameters void>; -declare type T05 = Parameters<(...args: T[]) => void>; -declare type T06 = ConstructorParameters void>; -declare type T07 = Parameters<(...args: T) => void>; -declare type T08 = ConstructorParameters void>; -declare type T09 = Parameters; -declare type Record1 = { +type T01 = Parameters<(x: number, y: string, z: boolean) => void>; +type T02 = Parameters<(...args: [number, string, boolean]) => void>; +type T03 = ConstructorParameters void>; +type T04 = ConstructorParameters void>; +type T05 = Parameters<(...args: T[]) => void>; +type T06 = ConstructorParameters void>; +type T07 = Parameters<(...args: T) => void>; +type T08 = ConstructorParameters void>; +type T09 = Parameters; +type Record1 = { move: [number, 'left' | 'right']; jump: [number, 'up' | 'down']; stop: string; done: []; }; -declare type EventType = { +type EventType = { emit(e: K, ...payload: T[K] extends any[] ? T[K] : [T[K]]): void; }; declare var events: EventType; diff --git a/tests/baselines/reference/genericRestParameters2.js b/tests/baselines/reference/genericRestParameters2.js index dab676e330a..47219f7ba0a 100644 --- a/tests/baselines/reference/genericRestParameters2.js +++ b/tests/baselines/reference/genericRestParameters2.js @@ -149,16 +149,16 @@ declare let f13: (a: number, b: string, ...c: boolean[]) => void; declare const ns: [number, string]; declare const sn: [string, number]; declare const f20: (...args: T) => T; -declare type T01 = Parameters<(x: number, y: string, ...z: boolean[]) => void>; -declare type T02 = Parameters<(...args: [number, string, ...boolean[]]) => void>; -declare type T03 = ConstructorParameters void>; -declare type T04 = ConstructorParameters void>; -declare type T05 = Parameters<(x: string, ...args: T) => void>; -declare type T06 = T05<[number, ...boolean[]]>; -declare type P1 = T extends (head: infer A, ...tail: infer B) => any ? { +type T01 = Parameters<(x: number, y: string, ...z: boolean[]) => void>; +type T02 = Parameters<(...args: [number, string, ...boolean[]]) => void>; +type T03 = ConstructorParameters void>; +type T04 = ConstructorParameters void>; +type T05 = Parameters<(x: string, ...args: T) => void>; +type T06 = T05<[number, ...boolean[]]>; +type P1 = T extends (head: infer A, ...tail: infer B) => any ? { head: A; tail: B; } : any[]; -declare type T10 = P1<(x: number, y: string, ...z: boolean[]) => void>; -declare type T11 = P1<(...z: number[]) => void>; -declare type T12 = P1<(x: number, y: number) => void>; +type T10 = P1<(x: number, y: string, ...z: boolean[]) => void>; +type T11 = P1<(...z: number[]) => void>; +type T12 = P1<(x: number, y: number) => void>; diff --git a/tests/baselines/reference/genericRestParameters3.js b/tests/baselines/reference/genericRestParameters3.js index 880ebf286a5..c446c6f7225 100644 --- a/tests/baselines/reference/genericRestParameters3.js +++ b/tests/baselines/reference/genericRestParameters3.js @@ -160,9 +160,9 @@ declare const ca: CoolArray; declare function hmm(...args: A): void; declare function foo2(...args: string[] | number[]): void; declare let x2: ReadonlyArray; -declare type RestParams = [y: string] | [y: number]; -declare type Signature = (x: string, ...rest: RestParams) => void; -declare type MergedParams = Parameters; +type RestParams = [y: string] | [y: number]; +type Signature = (x: string, ...rest: RestParams) => void; +type MergedParams = Parameters; declare let ff1: (...rest: [string, string] | [string, number]) => void; declare let ff2: (x: string, ...rest: [string] | [number]) => void; declare function ff3(s1: (...args: [x: string, ...rest: A | [number]]) => void, s2: (x: string, ...rest: A | [number]) => void): void; diff --git a/tests/baselines/reference/identityRelationNeverTypes.js b/tests/baselines/reference/identityRelationNeverTypes.js index efe85defc1b..06e59d6f570 100644 --- a/tests/baselines/reference/identityRelationNeverTypes.js +++ b/tests/baselines/reference/identityRelationNeverTypes.js @@ -29,7 +29,7 @@ function f1(state) { //// [identityRelationNeverTypes.d.ts] -declare type Equals = (() => T extends B ? 1 : 0) extends (() => T extends A ? 1 : 0) ? true : false; +type Equals = (() => T extends B ? 1 : 0) extends (() => T extends A ? 1 : 0) ? true : false; declare class State { _context: TContext; _value: string; diff --git a/tests/baselines/reference/importTypeGenericArrowTypeParenthesized.js b/tests/baselines/reference/importTypeGenericArrowTypeParenthesized.js index 2de796f19ba..85b2b7945b5 100644 --- a/tests/baselines/reference/importTypeGenericArrowTypeParenthesized.js +++ b/tests/baselines/reference/importTypeGenericArrowTypeParenthesized.js @@ -37,6 +37,6 @@ exports.works2 = (0, module_1.fn)(function (x) { return x; }); export declare const fail1: import("module").Modifier<((x: T) => T)>; export declare const fail2: import("module").Modifier<((x: T) => T)>; export declare const works1: import("module").Modifier<(x: number) => number>; -declare type MakeItWork = (x: T) => T; +type MakeItWork = (x: T) => T; export declare const works2: import("module").Modifier; export {}; diff --git a/tests/baselines/reference/indexSignatureAndMappedType.js b/tests/baselines/reference/indexSignatureAndMappedType.js index be58286fb46..ae8ea8edfb9 100644 --- a/tests/baselines/reference/indexSignatureAndMappedType.js +++ b/tests/baselines/reference/indexSignatureAndMappedType.js @@ -61,7 +61,7 @@ declare function f2(x: { declare function f3(x: { [key: string]: T; }, y: Record): void; -declare type Dictionary = { +type Dictionary = { [key: string]: string; }; interface IBaseEntity { diff --git a/tests/baselines/reference/indexSignatureInOtherFile.errors.txt b/tests/baselines/reference/indexSignatureInOtherFile.errors.txt new file mode 100644 index 00000000000..d6c04031680 --- /dev/null +++ b/tests/baselines/reference/indexSignatureInOtherFile.errors.txt @@ -0,0 +1,49 @@ +tests/cases/compiler/index.ts(2,3): error TS2411: Property '[Symbol.iterator]' of type '() => IterableIterator' is not assignable to 'symbol' index type 'string'. +tests/cases/compiler/index.ts(2,3): error TS2411: Property '[Symbol.unscopables]' of type '() => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; }' is not assignable to 'symbol' index type 'string'. + + +==== tests/cases/compiler/index.ts (2 errors) ==== + class Test extends Array1 { + [key: symbol]: string + ~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2411: Property '[Symbol.iterator]' of type '() => IterableIterator' is not assignable to 'symbol' index type 'string'. +!!! related TS2728 tests/cases/compiler/other.ts:14:3: '[Symbol.iterator]' is declared here. + ~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2411: Property '[Symbol.unscopables]' of type '() => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; }' is not assignable to 'symbol' index type 'string'. +!!! related TS2728 tests/cases/compiler/other.ts:23:3: '[Symbol.unscopables]' is declared here. + } + +==== tests/cases/compiler/other.ts (0 errors) ==== + interface Array1 { + length: number; + [n: number]: T; + } + + interface ArrayConstructor1 { + new(arrayLength?: number): Array1; + } + + declare var Array1: ArrayConstructor1; + + // iterable.d.ts + interface Array1 { + [Symbol.iterator](): IterableIterator; + } + + // symbol.wellknown.d.ts + interface Array1 { + /** + * Returns an object whose properties have the value 'true' + * when they will be absent when used in a 'with' statement. + */ + [Symbol.unscopables](): { + copyWithin: boolean; + entries: boolean; + fill: boolean; + find: boolean; + findIndex: boolean; + keys: boolean; + values: boolean; + }; + } + \ No newline at end of file diff --git a/tests/baselines/reference/indexSignatureInOtherFile.js b/tests/baselines/reference/indexSignatureInOtherFile.js new file mode 100644 index 00000000000..68c14ca853e --- /dev/null +++ b/tests/baselines/reference/indexSignatureInOtherFile.js @@ -0,0 +1,46 @@ +//// [tests/cases/compiler/indexSignatureInOtherFile.ts] //// + +//// [index.ts] +class Test extends Array1 { + [key: symbol]: string +} + +//// [other.ts] +interface Array1 { + length: number; + [n: number]: T; +} + +interface ArrayConstructor1 { + new(arrayLength?: number): Array1; +} + +declare var Array1: ArrayConstructor1; + +// iterable.d.ts +interface Array1 { + [Symbol.iterator](): IterableIterator; +} + +// symbol.wellknown.d.ts +interface Array1 { + /** + * Returns an object whose properties have the value 'true' + * when they will be absent when used in a 'with' statement. + */ + [Symbol.unscopables](): { + copyWithin: boolean; + entries: boolean; + fill: boolean; + find: boolean; + findIndex: boolean; + keys: boolean; + values: boolean; + }; +} + + +//// [index.js] +class Test extends Array1 { +} +//// [other.js] diff --git a/tests/baselines/reference/indexSignatureInOtherFile.symbols b/tests/baselines/reference/indexSignatureInOtherFile.symbols new file mode 100644 index 00000000000..fdac2f2d68c --- /dev/null +++ b/tests/baselines/reference/indexSignatureInOtherFile.symbols @@ -0,0 +1,87 @@ +=== tests/cases/compiler/index.ts === +class Test extends Array1 { +>Test : Symbol(Test, Decl(index.ts, 0, 0)) +>Array1 : Symbol(Array1, Decl(other.ts, 0, 0), Decl(other.ts, 9, 11), Decl(other.ts, 9, 38), Decl(other.ts, 14, 1)) + + [key: symbol]: string +>key : Symbol(key, Decl(index.ts, 1, 3)) +} + +=== tests/cases/compiler/other.ts === +interface Array1 { +>Array1 : Symbol(Array1, Decl(other.ts, 0, 0), Decl(other.ts, 9, 11), Decl(other.ts, 9, 38), Decl(other.ts, 14, 1)) +>T : Symbol(T, Decl(other.ts, 0, 17), Decl(other.ts, 12, 17), Decl(other.ts, 17, 17)) + + length: number; +>length : Symbol(Array1.length, Decl(other.ts, 0, 21)) + + [n: number]: T; +>n : Symbol(n, Decl(other.ts, 2, 3)) +>T : Symbol(T, Decl(other.ts, 0, 17), Decl(other.ts, 12, 17), Decl(other.ts, 17, 17)) +} + +interface ArrayConstructor1 { +>ArrayConstructor1 : Symbol(ArrayConstructor1, Decl(other.ts, 3, 1)) + + new(arrayLength?: number): Array1; +>arrayLength : Symbol(arrayLength, Decl(other.ts, 6, 6)) +>Array1 : Symbol(Array1, Decl(other.ts, 0, 0), Decl(other.ts, 9, 11), Decl(other.ts, 9, 38), Decl(other.ts, 14, 1)) +} + +declare var Array1: ArrayConstructor1; +>Array1 : Symbol(Array1, Decl(other.ts, 0, 0), Decl(other.ts, 9, 11), Decl(other.ts, 9, 38), Decl(other.ts, 14, 1)) +>ArrayConstructor1 : Symbol(ArrayConstructor1, Decl(other.ts, 3, 1)) + +// iterable.d.ts +interface Array1 { +>Array1 : Symbol(Array1, Decl(other.ts, 0, 0), Decl(other.ts, 9, 11), Decl(other.ts, 9, 38), Decl(other.ts, 14, 1)) +>T : Symbol(T, Decl(other.ts, 0, 17), Decl(other.ts, 12, 17), Decl(other.ts, 17, 17)) + + [Symbol.iterator](): IterableIterator; +>[Symbol.iterator] : Symbol(Array1[Symbol.iterator], Decl(other.ts, 12, 21)) +>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>IterableIterator : Symbol(IterableIterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>T : Symbol(T, Decl(other.ts, 0, 17), Decl(other.ts, 12, 17), Decl(other.ts, 17, 17)) +} + +// symbol.wellknown.d.ts +interface Array1 { +>Array1 : Symbol(Array1, Decl(other.ts, 0, 0), Decl(other.ts, 9, 11), Decl(other.ts, 9, 38), Decl(other.ts, 14, 1)) +>T : Symbol(T, Decl(other.ts, 0, 17), Decl(other.ts, 12, 17), Decl(other.ts, 17, 17)) + + /** + * Returns an object whose properties have the value 'true' + * when they will be absent when used in a 'with' statement. + */ + [Symbol.unscopables](): { +>[Symbol.unscopables] : Symbol(Array1[Symbol.unscopables], Decl(other.ts, 17, 21)) +>Symbol.unscopables : Symbol(SymbolConstructor.unscopables, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>unscopables : Symbol(SymbolConstructor.unscopables, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + + copyWithin: boolean; +>copyWithin : Symbol(copyWithin, Decl(other.ts, 22, 27)) + + entries: boolean; +>entries : Symbol(entries, Decl(other.ts, 23, 26)) + + fill: boolean; +>fill : Symbol(fill, Decl(other.ts, 24, 23)) + + find: boolean; +>find : Symbol(find, Decl(other.ts, 25, 20)) + + findIndex: boolean; +>findIndex : Symbol(findIndex, Decl(other.ts, 26, 20)) + + keys: boolean; +>keys : Symbol(keys, Decl(other.ts, 27, 25)) + + values: boolean; +>values : Symbol(values, Decl(other.ts, 28, 20)) + + }; +} + diff --git a/tests/baselines/reference/indexSignatureInOtherFile.types b/tests/baselines/reference/indexSignatureInOtherFile.types new file mode 100644 index 00000000000..0492daf3d80 --- /dev/null +++ b/tests/baselines/reference/indexSignatureInOtherFile.types @@ -0,0 +1,71 @@ +=== tests/cases/compiler/index.ts === +class Test extends Array1 { +>Test : Test +>Array1 : Array1 + + [key: symbol]: string +>key : symbol +} + +=== tests/cases/compiler/other.ts === +interface Array1 { + length: number; +>length : number + + [n: number]: T; +>n : number +} + +interface ArrayConstructor1 { + new(arrayLength?: number): Array1; +>arrayLength : number +} + +declare var Array1: ArrayConstructor1; +>Array1 : ArrayConstructor1 + +// iterable.d.ts +interface Array1 { + [Symbol.iterator](): IterableIterator; +>[Symbol.iterator] : () => IterableIterator +>Symbol.iterator : unique symbol +>Symbol : SymbolConstructor +>iterator : unique symbol +} + +// symbol.wellknown.d.ts +interface Array1 { + /** + * Returns an object whose properties have the value 'true' + * when they will be absent when used in a 'with' statement. + */ + [Symbol.unscopables](): { +>[Symbol.unscopables] : () => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean;} +>Symbol.unscopables : unique symbol +>Symbol : SymbolConstructor +>unscopables : unique symbol + + copyWithin: boolean; +>copyWithin : boolean + + entries: boolean; +>entries : boolean + + fill: boolean; +>fill : boolean + + find: boolean; +>find : boolean + + findIndex: boolean; +>findIndex : boolean + + keys: boolean; +>keys : boolean + + values: boolean; +>values : boolean + + }; +} + diff --git a/tests/baselines/reference/indexSignatureInOtherFile1.errors.txt b/tests/baselines/reference/indexSignatureInOtherFile1.errors.txt new file mode 100644 index 00000000000..10bf2418bdd --- /dev/null +++ b/tests/baselines/reference/indexSignatureInOtherFile1.errors.txt @@ -0,0 +1,48 @@ +tests/cases/compiler/index.ts(2,3): error TS2411: Property '[Symbol.iterator]' of type '() => IterableIterator' is not assignable to 'symbol' index type 'string'. +tests/cases/compiler/index.ts(2,3): error TS2411: Property '[Symbol.unscopables]' of type '() => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; }' is not assignable to 'symbol' index type 'string'. + + +==== tests/cases/compiler/other.ts (0 errors) ==== + interface Array1 { + length: number; + [n: number]: T; + } + + interface ArrayConstructor1 { + new(arrayLength?: number): Array1; + } + + declare var Array1: ArrayConstructor1; + + // iterable.d.ts + interface Array1 { + [Symbol.iterator](): IterableIterator; + } + + // symbol.wellknown.d.ts + interface Array1 { + /** + * Returns an object whose properties have the value 'true' + * when they will be absent when used in a 'with' statement. + */ + [Symbol.unscopables](): { + copyWithin: boolean; + entries: boolean; + fill: boolean; + find: boolean; + findIndex: boolean; + keys: boolean; + values: boolean; + }; + } + +==== tests/cases/compiler/index.ts (2 errors) ==== + class Test extends Array1 { + [key: symbol]: string + ~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2411: Property '[Symbol.iterator]' of type '() => IterableIterator' is not assignable to 'symbol' index type 'string'. +!!! related TS2728 tests/cases/compiler/other.ts:14:3: '[Symbol.iterator]' is declared here. + ~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2411: Property '[Symbol.unscopables]' of type '() => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; }' is not assignable to 'symbol' index type 'string'. +!!! related TS2728 tests/cases/compiler/other.ts:23:3: '[Symbol.unscopables]' is declared here. + } \ No newline at end of file diff --git a/tests/baselines/reference/indexSignatureInOtherFile1.js b/tests/baselines/reference/indexSignatureInOtherFile1.js new file mode 100644 index 00000000000..e756f9fd8e0 --- /dev/null +++ b/tests/baselines/reference/indexSignatureInOtherFile1.js @@ -0,0 +1,45 @@ +//// [tests/cases/compiler/indexSignatureInOtherFile1.ts] //// + +//// [other.ts] +interface Array1 { + length: number; + [n: number]: T; +} + +interface ArrayConstructor1 { + new(arrayLength?: number): Array1; +} + +declare var Array1: ArrayConstructor1; + +// iterable.d.ts +interface Array1 { + [Symbol.iterator](): IterableIterator; +} + +// symbol.wellknown.d.ts +interface Array1 { + /** + * Returns an object whose properties have the value 'true' + * when they will be absent when used in a 'with' statement. + */ + [Symbol.unscopables](): { + copyWithin: boolean; + entries: boolean; + fill: boolean; + find: boolean; + findIndex: boolean; + keys: boolean; + values: boolean; + }; +} + +//// [index.ts] +class Test extends Array1 { + [key: symbol]: string +} + +//// [other.js] +//// [index.js] +class Test extends Array1 { +} diff --git a/tests/baselines/reference/indexSignatureInOtherFile1.symbols b/tests/baselines/reference/indexSignatureInOtherFile1.symbols new file mode 100644 index 00000000000..5eb78c14226 --- /dev/null +++ b/tests/baselines/reference/indexSignatureInOtherFile1.symbols @@ -0,0 +1,86 @@ +=== tests/cases/compiler/other.ts === +interface Array1 { +>Array1 : Symbol(Array1, Decl(other.ts, 0, 0), Decl(other.ts, 9, 11), Decl(other.ts, 9, 38), Decl(other.ts, 14, 1)) +>T : Symbol(T, Decl(other.ts, 0, 17), Decl(other.ts, 12, 17), Decl(other.ts, 17, 17)) + + length: number; +>length : Symbol(Array1.length, Decl(other.ts, 0, 21)) + + [n: number]: T; +>n : Symbol(n, Decl(other.ts, 2, 3)) +>T : Symbol(T, Decl(other.ts, 0, 17), Decl(other.ts, 12, 17), Decl(other.ts, 17, 17)) +} + +interface ArrayConstructor1 { +>ArrayConstructor1 : Symbol(ArrayConstructor1, Decl(other.ts, 3, 1)) + + new(arrayLength?: number): Array1; +>arrayLength : Symbol(arrayLength, Decl(other.ts, 6, 6)) +>Array1 : Symbol(Array1, Decl(other.ts, 0, 0), Decl(other.ts, 9, 11), Decl(other.ts, 9, 38), Decl(other.ts, 14, 1)) +} + +declare var Array1: ArrayConstructor1; +>Array1 : Symbol(Array1, Decl(other.ts, 0, 0), Decl(other.ts, 9, 11), Decl(other.ts, 9, 38), Decl(other.ts, 14, 1)) +>ArrayConstructor1 : Symbol(ArrayConstructor1, Decl(other.ts, 3, 1)) + +// iterable.d.ts +interface Array1 { +>Array1 : Symbol(Array1, Decl(other.ts, 0, 0), Decl(other.ts, 9, 11), Decl(other.ts, 9, 38), Decl(other.ts, 14, 1)) +>T : Symbol(T, Decl(other.ts, 0, 17), Decl(other.ts, 12, 17), Decl(other.ts, 17, 17)) + + [Symbol.iterator](): IterableIterator; +>[Symbol.iterator] : Symbol(Array1[Symbol.iterator], Decl(other.ts, 12, 21)) +>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>IterableIterator : Symbol(IterableIterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>T : Symbol(T, Decl(other.ts, 0, 17), Decl(other.ts, 12, 17), Decl(other.ts, 17, 17)) +} + +// symbol.wellknown.d.ts +interface Array1 { +>Array1 : Symbol(Array1, Decl(other.ts, 0, 0), Decl(other.ts, 9, 11), Decl(other.ts, 9, 38), Decl(other.ts, 14, 1)) +>T : Symbol(T, Decl(other.ts, 0, 17), Decl(other.ts, 12, 17), Decl(other.ts, 17, 17)) + + /** + * Returns an object whose properties have the value 'true' + * when they will be absent when used in a 'with' statement. + */ + [Symbol.unscopables](): { +>[Symbol.unscopables] : Symbol(Array1[Symbol.unscopables], Decl(other.ts, 17, 21)) +>Symbol.unscopables : Symbol(SymbolConstructor.unscopables, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>unscopables : Symbol(SymbolConstructor.unscopables, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + + copyWithin: boolean; +>copyWithin : Symbol(copyWithin, Decl(other.ts, 22, 27)) + + entries: boolean; +>entries : Symbol(entries, Decl(other.ts, 23, 26)) + + fill: boolean; +>fill : Symbol(fill, Decl(other.ts, 24, 23)) + + find: boolean; +>find : Symbol(find, Decl(other.ts, 25, 20)) + + findIndex: boolean; +>findIndex : Symbol(findIndex, Decl(other.ts, 26, 20)) + + keys: boolean; +>keys : Symbol(keys, Decl(other.ts, 27, 25)) + + values: boolean; +>values : Symbol(values, Decl(other.ts, 28, 20)) + + }; +} + +=== tests/cases/compiler/index.ts === +class Test extends Array1 { +>Test : Symbol(Test, Decl(index.ts, 0, 0)) +>Array1 : Symbol(Array1, Decl(other.ts, 0, 0), Decl(other.ts, 9, 11), Decl(other.ts, 9, 38), Decl(other.ts, 14, 1)) + + [key: symbol]: string +>key : Symbol(key, Decl(index.ts, 1, 3)) +} diff --git a/tests/baselines/reference/indexSignatureInOtherFile1.types b/tests/baselines/reference/indexSignatureInOtherFile1.types new file mode 100644 index 00000000000..07eac7a919c --- /dev/null +++ b/tests/baselines/reference/indexSignatureInOtherFile1.types @@ -0,0 +1,70 @@ +=== tests/cases/compiler/other.ts === +interface Array1 { + length: number; +>length : number + + [n: number]: T; +>n : number +} + +interface ArrayConstructor1 { + new(arrayLength?: number): Array1; +>arrayLength : number +} + +declare var Array1: ArrayConstructor1; +>Array1 : ArrayConstructor1 + +// iterable.d.ts +interface Array1 { + [Symbol.iterator](): IterableIterator; +>[Symbol.iterator] : () => IterableIterator +>Symbol.iterator : unique symbol +>Symbol : SymbolConstructor +>iterator : unique symbol +} + +// symbol.wellknown.d.ts +interface Array1 { + /** + * Returns an object whose properties have the value 'true' + * when they will be absent when used in a 'with' statement. + */ + [Symbol.unscopables](): { +>[Symbol.unscopables] : () => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean;} +>Symbol.unscopables : unique symbol +>Symbol : SymbolConstructor +>unscopables : unique symbol + + copyWithin: boolean; +>copyWithin : boolean + + entries: boolean; +>entries : boolean + + fill: boolean; +>fill : boolean + + find: boolean; +>find : boolean + + findIndex: boolean; +>findIndex : boolean + + keys: boolean; +>keys : boolean + + values: boolean; +>values : boolean + + }; +} + +=== tests/cases/compiler/index.ts === +class Test extends Array1 { +>Test : Test +>Array1 : Array1 + + [key: symbol]: string +>key : symbol +} diff --git a/tests/baselines/reference/indexSignatures1.js b/tests/baselines/reference/indexSignatures1.js index b50705230a2..c2bc8e9d710 100644 --- a/tests/baselines/reference/indexSignatures1.js +++ b/tests/baselines/reference/indexSignatures1.js @@ -532,36 +532,36 @@ declare let dom: { }; declare const y1: string; declare const y2: string; -declare type Funcs = { +type Funcs = { [key: `s${string}`]: (x: string) => void; [key: `n${string}`]: (x: number) => void; }; declare const funcs: Funcs; -declare type Duplicates = { +type Duplicates = { [key: string | number]: any; [key: number | symbol]: any; [key: symbol | `foo${string}`]: any; [key: `foo${string}`]: any; }; -declare type Conflicting = { +type Conflicting = { [key: `a${string}`]: 'a'; [key: `${string}a`]: 'b'; [key: `a${string}a`]: 'c'; }; -declare type Invalid = { +type Invalid = { [key: 'a' | 'b' | 'c']: string; [key: T | number]: string; [key: Error]: string; [key: T & string]: string; }; -declare type Tag1 = { +type Tag1 = { __tag1__: void; }; -declare type Tag2 = { +type Tag2 = { __tag2__: void; }; -declare type TaggedString1 = string & Tag1; -declare type TaggedString2 = string & Tag2; +type TaggedString1 = string & Tag1; +type TaggedString2 = string & Tag2; declare let s0: string; declare let s1: TaggedString1; declare let s2: TaggedString2; @@ -635,23 +635,23 @@ declare function foo(options: { declare let case1: void; declare let case2: void; declare let case3: void; -declare type Pseudo = `&:${string}`; +type Pseudo = `&:${string}`; declare const AmIPseudo1: Pseudo; declare const AmIPseudo: Pseudo; -declare type PseudoDeclaration = { +type PseudoDeclaration = { [key in Pseudo]: string; }; declare const test: PseudoDeclaration; -declare type FieldPattern = `/${string}`; +type FieldPattern = `/${string}`; declare const path1: FieldPattern; declare const path2: FieldPattern; -declare type PathsObject = { +type PathsObject = { [P in FieldPattern]: object; }; declare const pathObject: PathsObject; -declare type IdType = `${number}-${number}-${number}-${number}`; +type IdType = `${number}-${number}-${number}-${number}`; declare const id: IdType; -declare type A = Record; +type A = Record; declare const a: A; declare let aid: string; interface AA { @@ -669,12 +669,12 @@ declare const obj2: { declare const obj3: { [key: number]: string; }; -declare type Id = string & { +type Id = string & { __tag: 'id '; }; -declare type Rec1 = { +type Rec1 = { [key: Id]: number; }; -declare type Rec2 = Record; -declare type K1 = keyof Rec1; -declare type K2 = keyof Rec2; +type Rec2 = Record; +type K1 = keyof Rec1; +type K2 = keyof Rec2; diff --git a/tests/baselines/reference/indexerWithTuple.errors.txt b/tests/baselines/reference/indexerWithTuple.errors.txt index b5b09be4c49..ca9033b4477 100644 --- a/tests/baselines/reference/indexerWithTuple.errors.txt +++ b/tests/baselines/reference/indexerWithTuple.errors.txt @@ -1,14 +1,16 @@ tests/cases/conformance/types/tuple/indexerWithTuple.ts(11,25): error TS2493: Tuple type '[string, number]' of length '2' has no element at index '2'. tests/cases/conformance/types/tuple/indexerWithTuple.ts(17,27): error TS2493: Tuple type '[number, [string, number]]' of length '2' has no element at index '2'. -tests/cases/conformance/types/tuple/indexerWithTuple.ts(20,30): error TS2493: Tuple type '[number, string | number]' of length '2' has no element at index '2'. -tests/cases/conformance/types/tuple/indexerWithTuple.ts(28,30): error TS2493: Tuple type '[boolean, string | number]' of length '2' has no element at index '2'. +tests/cases/conformance/types/tuple/indexerWithTuple.ts(18,25): error TS2514: A tuple type cannot be indexed with a negative value. +tests/cases/conformance/types/tuple/indexerWithTuple.ts(22,30): error TS2493: Tuple type '[number, string | number]' of length '2' has no element at index '2'. +tests/cases/conformance/types/tuple/indexerWithTuple.ts(30,30): error TS2493: Tuple type '[boolean, string | number]' of length '2' has no element at index '2'. +tests/cases/conformance/types/tuple/indexerWithTuple.ts(38,28): error TS2514: A tuple type cannot be indexed with a negative value. -==== tests/cases/conformance/types/tuple/indexerWithTuple.ts (4 errors) ==== - var strNumTuple: [string, number] = ["foo", 10]; +==== tests/cases/conformance/types/tuple/indexerWithTuple.ts (6 errors) ==== + var strNumTuple: [string, number] = ["foo", 10]; var numTupleTuple: [number, [string, number]] = [10, ["bar", 20]]; - var unionTuple1: [number, string| number] = [10, "foo"]; - var unionTuple2: [boolean, string| number] = [true, "foo"]; + var unionTuple1: [number, string| number] = [10, "foo"]; + var unionTuple2: [boolean, string| number] = [true, "foo"]; // no error var idx0 = 0; @@ -26,6 +28,10 @@ tests/cases/conformance/types/tuple/indexerWithTuple.ts(28,30): error TS2493: Tu var ele17 = numTupleTuple[2]; // number | [string, number] ~ !!! error TS2493: Tuple type '[number, [string, number]]' of length '2' has no element at index '2'. + var ele19 = strNumTuple[-1] // undefined + ~~ +!!! error TS2514: A tuple type cannot be indexed with a negative value. + var eleUnion10 = unionTuple1[0]; // number var eleUnion11 = unionTuple1[1]; // string | number var eleUnion12 = unionTuple1[2]; // string | number @@ -44,4 +50,11 @@ tests/cases/conformance/types/tuple/indexerWithTuple.ts(28,30): error TS2493: Tu var eleUnion23 = unionTuple2[idx0]; // string | number | boolean var eleUnion24 = unionTuple2[idx1]; // string | number | boolean var eleUnion25 = unionTuple2["0"]; // boolean - var eleUnion26 = unionTuple2["1"]; // string | number \ No newline at end of file + var eleUnion26 = unionTuple2["1"]; // string | number + + type t1 = [string, number][0]; // string + type t2 = [string, number][1]; // number + type t3 = [string, number][-1]; // undefined + ~~ +!!! error TS2514: A tuple type cannot be indexed with a negative value. + \ No newline at end of file diff --git a/tests/baselines/reference/indexerWithTuple.js b/tests/baselines/reference/indexerWithTuple.js index 91d90792e6d..06ae40e6f51 100644 --- a/tests/baselines/reference/indexerWithTuple.js +++ b/tests/baselines/reference/indexerWithTuple.js @@ -1,8 +1,8 @@ //// [indexerWithTuple.ts] -var strNumTuple: [string, number] = ["foo", 10]; +var strNumTuple: [string, number] = ["foo", 10]; var numTupleTuple: [number, [string, number]] = [10, ["bar", 20]]; -var unionTuple1: [number, string| number] = [10, "foo"]; -var unionTuple2: [boolean, string| number] = [true, "foo"]; +var unionTuple1: [number, string| number] = [10, "foo"]; +var unionTuple2: [boolean, string| number] = [true, "foo"]; // no error var idx0 = 0; @@ -16,6 +16,8 @@ var ele15 = strNumTuple["0"]; // string var ele16 = strNumTuple["1"]; // number var strNumTuple1 = numTupleTuple[1]; //[string, number]; var ele17 = numTupleTuple[2]; // number | [string, number] +var ele19 = strNumTuple[-1] // undefined + var eleUnion10 = unionTuple1[0]; // number var eleUnion11 = unionTuple1[1]; // string | number var eleUnion12 = unionTuple1[2]; // string | number @@ -30,7 +32,12 @@ var eleUnion22 = unionTuple2[2]; // string | number | boolean var eleUnion23 = unionTuple2[idx0]; // string | number | boolean var eleUnion24 = unionTuple2[idx1]; // string | number | boolean var eleUnion25 = unionTuple2["0"]; // boolean -var eleUnion26 = unionTuple2["1"]; // string | number +var eleUnion26 = unionTuple2["1"]; // string | number + +type t1 = [string, number][0]; // string +type t2 = [string, number][1]; // number +type t3 = [string, number][-1]; // undefined + //// [indexerWithTuple.js] var strNumTuple = ["foo", 10]; @@ -49,6 +56,7 @@ var ele15 = strNumTuple["0"]; // string var ele16 = strNumTuple["1"]; // number var strNumTuple1 = numTupleTuple[1]; //[string, number]; var ele17 = numTupleTuple[2]; // number | [string, number] +var ele19 = strNumTuple[-1]; // undefined var eleUnion10 = unionTuple1[0]; // number var eleUnion11 = unionTuple1[1]; // string | number var eleUnion12 = unionTuple1[2]; // string | number diff --git a/tests/baselines/reference/indexerWithTuple.symbols b/tests/baselines/reference/indexerWithTuple.symbols index 1ce5afbefac..8a4c393a0a1 100644 --- a/tests/baselines/reference/indexerWithTuple.symbols +++ b/tests/baselines/reference/indexerWithTuple.symbols @@ -1,14 +1,14 @@ === tests/cases/conformance/types/tuple/indexerWithTuple.ts === -var strNumTuple: [string, number] = ["foo", 10]; +var strNumTuple: [string, number] = ["foo", 10]; >strNumTuple : Symbol(strNumTuple, Decl(indexerWithTuple.ts, 0, 3)) var numTupleTuple: [number, [string, number]] = [10, ["bar", 20]]; >numTupleTuple : Symbol(numTupleTuple, Decl(indexerWithTuple.ts, 1, 3)) -var unionTuple1: [number, string| number] = [10, "foo"]; +var unionTuple1: [number, string| number] = [10, "foo"]; >unionTuple1 : Symbol(unionTuple1, Decl(indexerWithTuple.ts, 2, 3)) -var unionTuple2: [boolean, string| number] = [true, "foo"]; +var unionTuple2: [boolean, string| number] = [true, "foo"]; >unionTuple2 : Symbol(unionTuple2, Decl(indexerWithTuple.ts, 3, 3)) // no error @@ -61,71 +61,84 @@ var ele17 = numTupleTuple[2]; // number | [string, number] >ele17 : Symbol(ele17, Decl(indexerWithTuple.ts, 16, 3)) >numTupleTuple : Symbol(numTupleTuple, Decl(indexerWithTuple.ts, 1, 3)) +var ele19 = strNumTuple[-1] // undefined +>ele19 : Symbol(ele19, Decl(indexerWithTuple.ts, 17, 3)) +>strNumTuple : Symbol(strNumTuple, Decl(indexerWithTuple.ts, 0, 3)) + var eleUnion10 = unionTuple1[0]; // number ->eleUnion10 : Symbol(eleUnion10, Decl(indexerWithTuple.ts, 17, 3)) +>eleUnion10 : Symbol(eleUnion10, Decl(indexerWithTuple.ts, 19, 3)) >unionTuple1 : Symbol(unionTuple1, Decl(indexerWithTuple.ts, 2, 3)) >0 : Symbol(0) var eleUnion11 = unionTuple1[1]; // string | number ->eleUnion11 : Symbol(eleUnion11, Decl(indexerWithTuple.ts, 18, 3)) +>eleUnion11 : Symbol(eleUnion11, Decl(indexerWithTuple.ts, 20, 3)) >unionTuple1 : Symbol(unionTuple1, Decl(indexerWithTuple.ts, 2, 3)) >1 : Symbol(1) var eleUnion12 = unionTuple1[2]; // string | number ->eleUnion12 : Symbol(eleUnion12, Decl(indexerWithTuple.ts, 19, 3)) +>eleUnion12 : Symbol(eleUnion12, Decl(indexerWithTuple.ts, 21, 3)) >unionTuple1 : Symbol(unionTuple1, Decl(indexerWithTuple.ts, 2, 3)) var eleUnion13 = unionTuple1[idx0]; // string | number ->eleUnion13 : Symbol(eleUnion13, Decl(indexerWithTuple.ts, 20, 3)) +>eleUnion13 : Symbol(eleUnion13, Decl(indexerWithTuple.ts, 22, 3)) >unionTuple1 : Symbol(unionTuple1, Decl(indexerWithTuple.ts, 2, 3)) >idx0 : Symbol(idx0, Decl(indexerWithTuple.ts, 6, 3)) var eleUnion14 = unionTuple1[idx1]; // string | number ->eleUnion14 : Symbol(eleUnion14, Decl(indexerWithTuple.ts, 21, 3)) +>eleUnion14 : Symbol(eleUnion14, Decl(indexerWithTuple.ts, 23, 3)) >unionTuple1 : Symbol(unionTuple1, Decl(indexerWithTuple.ts, 2, 3)) >idx1 : Symbol(idx1, Decl(indexerWithTuple.ts, 7, 3)) var eleUnion15 = unionTuple1["0"]; // number ->eleUnion15 : Symbol(eleUnion15, Decl(indexerWithTuple.ts, 22, 3)) +>eleUnion15 : Symbol(eleUnion15, Decl(indexerWithTuple.ts, 24, 3)) >unionTuple1 : Symbol(unionTuple1, Decl(indexerWithTuple.ts, 2, 3)) >"0" : Symbol(0) var eleUnion16 = unionTuple1["1"]; // string | number ->eleUnion16 : Symbol(eleUnion16, Decl(indexerWithTuple.ts, 23, 3)) +>eleUnion16 : Symbol(eleUnion16, Decl(indexerWithTuple.ts, 25, 3)) >unionTuple1 : Symbol(unionTuple1, Decl(indexerWithTuple.ts, 2, 3)) >"1" : Symbol(1) var eleUnion20 = unionTuple2[0]; // boolean ->eleUnion20 : Symbol(eleUnion20, Decl(indexerWithTuple.ts, 25, 3)) +>eleUnion20 : Symbol(eleUnion20, Decl(indexerWithTuple.ts, 27, 3)) >unionTuple2 : Symbol(unionTuple2, Decl(indexerWithTuple.ts, 3, 3)) >0 : Symbol(0) var eleUnion21 = unionTuple2[1]; // string | number ->eleUnion21 : Symbol(eleUnion21, Decl(indexerWithTuple.ts, 26, 3)) +>eleUnion21 : Symbol(eleUnion21, Decl(indexerWithTuple.ts, 28, 3)) >unionTuple2 : Symbol(unionTuple2, Decl(indexerWithTuple.ts, 3, 3)) >1 : Symbol(1) var eleUnion22 = unionTuple2[2]; // string | number | boolean ->eleUnion22 : Symbol(eleUnion22, Decl(indexerWithTuple.ts, 27, 3)) +>eleUnion22 : Symbol(eleUnion22, Decl(indexerWithTuple.ts, 29, 3)) >unionTuple2 : Symbol(unionTuple2, Decl(indexerWithTuple.ts, 3, 3)) var eleUnion23 = unionTuple2[idx0]; // string | number | boolean ->eleUnion23 : Symbol(eleUnion23, Decl(indexerWithTuple.ts, 28, 3)) +>eleUnion23 : Symbol(eleUnion23, Decl(indexerWithTuple.ts, 30, 3)) >unionTuple2 : Symbol(unionTuple2, Decl(indexerWithTuple.ts, 3, 3)) >idx0 : Symbol(idx0, Decl(indexerWithTuple.ts, 6, 3)) var eleUnion24 = unionTuple2[idx1]; // string | number | boolean ->eleUnion24 : Symbol(eleUnion24, Decl(indexerWithTuple.ts, 29, 3)) +>eleUnion24 : Symbol(eleUnion24, Decl(indexerWithTuple.ts, 31, 3)) >unionTuple2 : Symbol(unionTuple2, Decl(indexerWithTuple.ts, 3, 3)) >idx1 : Symbol(idx1, Decl(indexerWithTuple.ts, 7, 3)) var eleUnion25 = unionTuple2["0"]; // boolean ->eleUnion25 : Symbol(eleUnion25, Decl(indexerWithTuple.ts, 30, 3)) +>eleUnion25 : Symbol(eleUnion25, Decl(indexerWithTuple.ts, 32, 3)) >unionTuple2 : Symbol(unionTuple2, Decl(indexerWithTuple.ts, 3, 3)) >"0" : Symbol(0) var eleUnion26 = unionTuple2["1"]; // string | number ->eleUnion26 : Symbol(eleUnion26, Decl(indexerWithTuple.ts, 31, 3)) +>eleUnion26 : Symbol(eleUnion26, Decl(indexerWithTuple.ts, 33, 3)) >unionTuple2 : Symbol(unionTuple2, Decl(indexerWithTuple.ts, 3, 3)) >"1" : Symbol(1) +type t1 = [string, number][0]; // string +>t1 : Symbol(t1, Decl(indexerWithTuple.ts, 33, 34)) + +type t2 = [string, number][1]; // number +>t2 : Symbol(t2, Decl(indexerWithTuple.ts, 35, 30)) + +type t3 = [string, number][-1]; // undefined +>t3 : Symbol(t3, Decl(indexerWithTuple.ts, 36, 30)) + diff --git a/tests/baselines/reference/indexerWithTuple.types b/tests/baselines/reference/indexerWithTuple.types index 01ede87ca9f..4192cde3171 100644 --- a/tests/baselines/reference/indexerWithTuple.types +++ b/tests/baselines/reference/indexerWithTuple.types @@ -1,5 +1,5 @@ === tests/cases/conformance/types/tuple/indexerWithTuple.ts === -var strNumTuple: [string, number] = ["foo", 10]; +var strNumTuple: [string, number] = ["foo", 10]; >strNumTuple : [string, number] >["foo", 10] : [string, number] >"foo" : "foo" @@ -13,13 +13,13 @@ var numTupleTuple: [number, [string, number]] = [10, ["bar", 20]]; >"bar" : "bar" >20 : 20 -var unionTuple1: [number, string| number] = [10, "foo"]; +var unionTuple1: [number, string| number] = [10, "foo"]; >unionTuple1 : [number, string | number] >[10, "foo"] : [number, string] >10 : 10 >"foo" : "foo" -var unionTuple2: [boolean, string| number] = [true, "foo"]; +var unionTuple2: [boolean, string| number] = [true, "foo"]; >unionTuple2 : [boolean, string | number] >[true, "foo"] : [true, string] >true : true @@ -88,6 +88,13 @@ var ele17 = numTupleTuple[2]; // number | [string, number] >numTupleTuple : [number, [string, number]] >2 : 2 +var ele19 = strNumTuple[-1] // undefined +>ele19 : undefined +>strNumTuple[-1] : undefined +>strNumTuple : [string, number] +>-1 : -1 +>1 : 1 + var eleUnion10 = unionTuple1[0]; // number >eleUnion10 : number >unionTuple1[0] : number @@ -172,3 +179,14 @@ var eleUnion26 = unionTuple2["1"]; // string | number >unionTuple2 : [boolean, string | number] >"1" : "1" +type t1 = [string, number][0]; // string +>t1 : string + +type t2 = [string, number][1]; // number +>t2 : number + +type t3 = [string, number][-1]; // undefined +>t3 : undefined +>-1 : -1 +>1 : 1 + diff --git a/tests/baselines/reference/inferFromGenericFunctionReturnTypes3.js b/tests/baselines/reference/inferFromGenericFunctionReturnTypes3.js index b6a2e890b11..1b7bfa610aa 100644 --- a/tests/baselines/reference/inferFromGenericFunctionReturnTypes3.js +++ b/tests/baselines/reference/inferFromGenericFunctionReturnTypes3.js @@ -319,7 +319,7 @@ export declare namespace DiagnosticSeverity { const Information = 3; const Hint = 4; } -export declare type DiagnosticSeverity = 1 | 2 | 3 | 4; +export type DiagnosticSeverity = 1 | 2 | 3 | 4; export interface Diagnostic { severity?: DiagnosticSeverity; code?: number | string; diff --git a/tests/baselines/reference/inferFromGenericFunctionReturnTypes3.symbols b/tests/baselines/reference/inferFromGenericFunctionReturnTypes3.symbols index 099c5761978..b48d3cf8a1e 100644 --- a/tests/baselines/reference/inferFromGenericFunctionReturnTypes3.symbols +++ b/tests/baselines/reference/inferFromGenericFunctionReturnTypes3.symbols @@ -6,9 +6,9 @@ function truePromise(): Promise { >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) return Promise.resolve(true); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) } interface Wrap { diff --git a/tests/baselines/reference/inferFromGenericFunctionReturnTypes3.types b/tests/baselines/reference/inferFromGenericFunctionReturnTypes3.types index dc1d4b32e9b..b7406b782ec 100644 --- a/tests/baselines/reference/inferFromGenericFunctionReturnTypes3.types +++ b/tests/baselines/reference/inferFromGenericFunctionReturnTypes3.types @@ -7,9 +7,9 @@ function truePromise(): Promise { return Promise.resolve(true); >Promise.resolve(true) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >true : true } diff --git a/tests/baselines/reference/inferTypeConstraintInstantiationCircularity.js b/tests/baselines/reference/inferTypeConstraintInstantiationCircularity.js new file mode 100644 index 00000000000..ca1488ed986 --- /dev/null +++ b/tests/baselines/reference/inferTypeConstraintInstantiationCircularity.js @@ -0,0 +1,77 @@ +//// [inferTypeConstraintInstantiationCircularity.ts] +type AMappedType = { [KeyType in keyof T]: number }; + +type HasM = { + m: number; +}; + +// Simplified repro from #48059 + +interface X1< + T extends HasM, + Output = AMappedType<{ s: number; } & { [k in keyof T]: number; }> +> { + tee: T; + output: Output; +} + +type F1 = T extends X1 ? U : never; + +// With default inlined + +interface X2< + T extends HasM, + Output +> { + tee: T; + output: Output; +} + +type F2 = T extends X2> ? U : never; + +// Original repro + +type Simplify = {[KeyType in keyof T]: T[KeyType]}; + +type optionalKeys = { + [k in keyof T]: undefined extends T[k] ? k : never; +}[keyof T]; + +type requiredKeys = Exclude>; + +export type addQuestionMarks = { + [k in optionalKeys]?: T[k]; +} & { + [k in requiredKeys]: T[k]; +}; + +type ZodRawShape = { + [k: string]: ZodType; +}; + +interface ZodType { + _type: Output; +} + +interface ZodObject< + T extends ZodRawShape, + Output = Simplify< + { + [k in optionalKeys]?: T[k]; + } & { + [k in requiredKeys]: T[k]; + } + > +> extends ZodType { + readonly _shape: T; +} + +type MyObject = T extends ZodObject + ? U extends ZodRawShape + ? U + : never + : never; + +//// [inferTypeConstraintInstantiationCircularity.js] +"use strict"; +exports.__esModule = true; diff --git a/tests/baselines/reference/inferTypeConstraintInstantiationCircularity.symbols b/tests/baselines/reference/inferTypeConstraintInstantiationCircularity.symbols new file mode 100644 index 00000000000..4feca7bdc5e --- /dev/null +++ b/tests/baselines/reference/inferTypeConstraintInstantiationCircularity.symbols @@ -0,0 +1,206 @@ +=== tests/cases/compiler/inferTypeConstraintInstantiationCircularity.ts === +type AMappedType = { [KeyType in keyof T]: number }; +>AMappedType : Symbol(AMappedType, Decl(inferTypeConstraintInstantiationCircularity.ts, 0, 0)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 0, 17)) +>KeyType : Symbol(KeyType, Decl(inferTypeConstraintInstantiationCircularity.ts, 0, 25)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 0, 17)) + +type HasM = { +>HasM : Symbol(HasM, Decl(inferTypeConstraintInstantiationCircularity.ts, 0, 55)) + + m: number; +>m : Symbol(m, Decl(inferTypeConstraintInstantiationCircularity.ts, 2, 13)) + +}; + +// Simplified repro from #48059 + +interface X1< +>X1 : Symbol(X1, Decl(inferTypeConstraintInstantiationCircularity.ts, 4, 2)) + + T extends HasM, +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 8, 13)) +>HasM : Symbol(HasM, Decl(inferTypeConstraintInstantiationCircularity.ts, 0, 55)) + + Output = AMappedType<{ s: number; } & { [k in keyof T]: number; }> +>Output : Symbol(Output, Decl(inferTypeConstraintInstantiationCircularity.ts, 9, 17)) +>AMappedType : Symbol(AMappedType, Decl(inferTypeConstraintInstantiationCircularity.ts, 0, 0)) +>s : Symbol(s, Decl(inferTypeConstraintInstantiationCircularity.ts, 10, 24)) +>k : Symbol(k, Decl(inferTypeConstraintInstantiationCircularity.ts, 10, 43)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 8, 13)) + +> { + tee: T; +>tee : Symbol(X1.tee, Decl(inferTypeConstraintInstantiationCircularity.ts, 11, 3)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 8, 13)) + + output: Output; +>output : Symbol(X1.output, Decl(inferTypeConstraintInstantiationCircularity.ts, 12, 9)) +>Output : Symbol(Output, Decl(inferTypeConstraintInstantiationCircularity.ts, 9, 17)) +} + +type F1 = T extends X1 ? U : never; +>F1 : Symbol(F1, Decl(inferTypeConstraintInstantiationCircularity.ts, 14, 1)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 16, 8)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 16, 8)) +>X1 : Symbol(X1, Decl(inferTypeConstraintInstantiationCircularity.ts, 4, 2)) +>U : Symbol(U, Decl(inferTypeConstraintInstantiationCircularity.ts, 16, 31)) +>U : Symbol(U, Decl(inferTypeConstraintInstantiationCircularity.ts, 16, 31)) + +// With default inlined + +interface X2< +>X2 : Symbol(X2, Decl(inferTypeConstraintInstantiationCircularity.ts, 16, 47)) + + T extends HasM, +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 20, 13)) +>HasM : Symbol(HasM, Decl(inferTypeConstraintInstantiationCircularity.ts, 0, 55)) + + Output +>Output : Symbol(Output, Decl(inferTypeConstraintInstantiationCircularity.ts, 21, 17)) + +> { + tee: T; +>tee : Symbol(X2.tee, Decl(inferTypeConstraintInstantiationCircularity.ts, 23, 3)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 20, 13)) + + output: Output; +>output : Symbol(X2.output, Decl(inferTypeConstraintInstantiationCircularity.ts, 24, 9)) +>Output : Symbol(Output, Decl(inferTypeConstraintInstantiationCircularity.ts, 21, 17)) +} + +type F2 = T extends X2> ? U : never; +>F2 : Symbol(F2, Decl(inferTypeConstraintInstantiationCircularity.ts, 26, 1)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 28, 8)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 28, 8)) +>X2 : Symbol(X2, Decl(inferTypeConstraintInstantiationCircularity.ts, 16, 47)) +>U : Symbol(U, Decl(inferTypeConstraintInstantiationCircularity.ts, 28, 31), Decl(inferTypeConstraintInstantiationCircularity.ts, 28, 84)) +>AMappedType : Symbol(AMappedType, Decl(inferTypeConstraintInstantiationCircularity.ts, 0, 0)) +>s : Symbol(s, Decl(inferTypeConstraintInstantiationCircularity.ts, 28, 48)) +>k : Symbol(k, Decl(inferTypeConstraintInstantiationCircularity.ts, 28, 67)) +>U : Symbol(U, Decl(inferTypeConstraintInstantiationCircularity.ts, 28, 31), Decl(inferTypeConstraintInstantiationCircularity.ts, 28, 84)) +>U : Symbol(U, Decl(inferTypeConstraintInstantiationCircularity.ts, 28, 31), Decl(inferTypeConstraintInstantiationCircularity.ts, 28, 84)) + +// Original repro + +type Simplify = {[KeyType in keyof T]: T[KeyType]}; +>Simplify : Symbol(Simplify, Decl(inferTypeConstraintInstantiationCircularity.ts, 28, 114)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 32, 14)) +>KeyType : Symbol(KeyType, Decl(inferTypeConstraintInstantiationCircularity.ts, 32, 21)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 32, 14)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 32, 14)) +>KeyType : Symbol(KeyType, Decl(inferTypeConstraintInstantiationCircularity.ts, 32, 21)) + +type optionalKeys = { +>optionalKeys : Symbol(optionalKeys, Decl(inferTypeConstraintInstantiationCircularity.ts, 32, 54)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 34, 18)) + + [k in keyof T]: undefined extends T[k] ? k : never; +>k : Symbol(k, Decl(inferTypeConstraintInstantiationCircularity.ts, 35, 5)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 34, 18)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 34, 18)) +>k : Symbol(k, Decl(inferTypeConstraintInstantiationCircularity.ts, 35, 5)) +>k : Symbol(k, Decl(inferTypeConstraintInstantiationCircularity.ts, 35, 5)) + +}[keyof T]; +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 34, 18)) + +type requiredKeys = Exclude>; +>requiredKeys : Symbol(requiredKeys, Decl(inferTypeConstraintInstantiationCircularity.ts, 36, 11)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 38, 18)) +>Exclude : Symbol(Exclude, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 38, 18)) +>optionalKeys : Symbol(optionalKeys, Decl(inferTypeConstraintInstantiationCircularity.ts, 32, 54)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 38, 18)) + +export type addQuestionMarks = { +>addQuestionMarks : Symbol(addQuestionMarks, Decl(inferTypeConstraintInstantiationCircularity.ts, 38, 72)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 40, 29)) + + [k in optionalKeys]?: T[k]; +>k : Symbol(k, Decl(inferTypeConstraintInstantiationCircularity.ts, 41, 5)) +>optionalKeys : Symbol(optionalKeys, Decl(inferTypeConstraintInstantiationCircularity.ts, 32, 54)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 40, 29)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 40, 29)) +>k : Symbol(k, Decl(inferTypeConstraintInstantiationCircularity.ts, 41, 5)) + +} & { + [k in requiredKeys]: T[k]; +>k : Symbol(k, Decl(inferTypeConstraintInstantiationCircularity.ts, 43, 5)) +>requiredKeys : Symbol(requiredKeys, Decl(inferTypeConstraintInstantiationCircularity.ts, 36, 11)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 40, 29)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 40, 29)) +>k : Symbol(k, Decl(inferTypeConstraintInstantiationCircularity.ts, 43, 5)) + +}; + +type ZodRawShape = { +>ZodRawShape : Symbol(ZodRawShape, Decl(inferTypeConstraintInstantiationCircularity.ts, 44, 2)) + + [k: string]: ZodType; +>k : Symbol(k, Decl(inferTypeConstraintInstantiationCircularity.ts, 47, 5)) +>ZodType : Symbol(ZodType, Decl(inferTypeConstraintInstantiationCircularity.ts, 48, 2)) + +}; + +interface ZodType { +>ZodType : Symbol(ZodType, Decl(inferTypeConstraintInstantiationCircularity.ts, 48, 2)) +>Output : Symbol(Output, Decl(inferTypeConstraintInstantiationCircularity.ts, 50, 18)) + + _type: Output; +>_type : Symbol(ZodType._type, Decl(inferTypeConstraintInstantiationCircularity.ts, 50, 27)) +>Output : Symbol(Output, Decl(inferTypeConstraintInstantiationCircularity.ts, 50, 18)) +} + +interface ZodObject< +>ZodObject : Symbol(ZodObject, Decl(inferTypeConstraintInstantiationCircularity.ts, 52, 1)) + + T extends ZodRawShape, +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 54, 20)) +>ZodRawShape : Symbol(ZodRawShape, Decl(inferTypeConstraintInstantiationCircularity.ts, 44, 2)) + + Output = Simplify< +>Output : Symbol(Output, Decl(inferTypeConstraintInstantiationCircularity.ts, 55, 24)) +>Simplify : Symbol(Simplify, Decl(inferTypeConstraintInstantiationCircularity.ts, 28, 114)) + { + [k in optionalKeys]?: T[k]; +>k : Symbol(k, Decl(inferTypeConstraintInstantiationCircularity.ts, 58, 7)) +>optionalKeys : Symbol(optionalKeys, Decl(inferTypeConstraintInstantiationCircularity.ts, 32, 54)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 54, 20)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 54, 20)) +>k : Symbol(k, Decl(inferTypeConstraintInstantiationCircularity.ts, 58, 7)) + + } & { + [k in requiredKeys]: T[k]; +>k : Symbol(k, Decl(inferTypeConstraintInstantiationCircularity.ts, 60, 7)) +>requiredKeys : Symbol(requiredKeys, Decl(inferTypeConstraintInstantiationCircularity.ts, 36, 11)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 54, 20)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 54, 20)) +>k : Symbol(k, Decl(inferTypeConstraintInstantiationCircularity.ts, 60, 7)) + } + > +> extends ZodType { +>ZodType : Symbol(ZodType, Decl(inferTypeConstraintInstantiationCircularity.ts, 48, 2)) +>Output : Symbol(Output, Decl(inferTypeConstraintInstantiationCircularity.ts, 55, 24)) + + readonly _shape: T; +>_shape : Symbol(ZodObject._shape, Decl(inferTypeConstraintInstantiationCircularity.ts, 63, 27)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 54, 20)) +} + +type MyObject = T extends ZodObject +>MyObject : Symbol(MyObject, Decl(inferTypeConstraintInstantiationCircularity.ts, 65, 1)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 67, 14)) +>T : Symbol(T, Decl(inferTypeConstraintInstantiationCircularity.ts, 67, 14)) +>ZodObject : Symbol(ZodObject, Decl(inferTypeConstraintInstantiationCircularity.ts, 52, 1)) +>U : Symbol(U, Decl(inferTypeConstraintInstantiationCircularity.ts, 67, 44)) + + ? U extends ZodRawShape +>U : Symbol(U, Decl(inferTypeConstraintInstantiationCircularity.ts, 67, 44)) +>ZodRawShape : Symbol(ZodRawShape, Decl(inferTypeConstraintInstantiationCircularity.ts, 44, 2)) + + ? U +>U : Symbol(U, Decl(inferTypeConstraintInstantiationCircularity.ts, 67, 44)) + + : never + : never; diff --git a/tests/baselines/reference/inferTypeConstraintInstantiationCircularity.types b/tests/baselines/reference/inferTypeConstraintInstantiationCircularity.types new file mode 100644 index 00000000000..4571ec23357 --- /dev/null +++ b/tests/baselines/reference/inferTypeConstraintInstantiationCircularity.types @@ -0,0 +1,103 @@ +=== tests/cases/compiler/inferTypeConstraintInstantiationCircularity.ts === +type AMappedType = { [KeyType in keyof T]: number }; +>AMappedType : AMappedType + +type HasM = { +>HasM : { m: number; } + + m: number; +>m : number + +}; + +// Simplified repro from #48059 + +interface X1< + T extends HasM, + Output = AMappedType<{ s: number; } & { [k in keyof T]: number; }> +>s : number + +> { + tee: T; +>tee : T + + output: Output; +>output : Output +} + +type F1 = T extends X1 ? U : never; +>F1 : F1 + +// With default inlined + +interface X2< + T extends HasM, + Output +> { + tee: T; +>tee : T + + output: Output; +>output : Output +} + +type F2 = T extends X2> ? U : never; +>F2 : F2 +>s : number + +// Original repro + +type Simplify = {[KeyType in keyof T]: T[KeyType]}; +>Simplify : Simplify + +type optionalKeys = { +>optionalKeys : optionalKeys + + [k in keyof T]: undefined extends T[k] ? k : never; +}[keyof T]; + +type requiredKeys = Exclude>; +>requiredKeys : requiredKeys + +export type addQuestionMarks = { +>addQuestionMarks : addQuestionMarks + + [k in optionalKeys]?: T[k]; +} & { + [k in requiredKeys]: T[k]; +}; + +type ZodRawShape = { +>ZodRawShape : { [k: string]: ZodType; } + + [k: string]: ZodType; +>k : string + +}; + +interface ZodType { + _type: Output; +>_type : Output +} + +interface ZodObject< + T extends ZodRawShape, + Output = Simplify< + { + [k in optionalKeys]?: T[k]; + } & { + [k in requiredKeys]: T[k]; + } + > +> extends ZodType { + readonly _shape: T; +>_shape : T +} + +type MyObject = T extends ZodObject +>MyObject : MyObject + + ? U extends ZodRawShape + ? U + : never + : never; diff --git a/tests/baselines/reference/inferTypes2.js b/tests/baselines/reference/inferTypes2.js index dbfa84964df..047526b4382 100644 --- a/tests/baselines/reference/inferTypes2.js +++ b/tests/baselines/reference/inferTypes2.js @@ -42,7 +42,7 @@ var b = a; //// [inferTypes2.d.ts] export declare function foo(obj: T): T extends () => infer P ? P : never; export declare function bar(obj: T): T extends () => infer P ? P : never; -export declare type BadNested = { +export type BadNested = { x: T extends number ? T : string; }; export declare function foo2(obj: T): T extends { diff --git a/tests/baselines/reference/inferTypesWithExtends1.js b/tests/baselines/reference/inferTypesWithExtends1.js index 6ce07398723..001229427ea 100644 --- a/tests/baselines/reference/inferTypesWithExtends1.js +++ b/tests/baselines/reference/inferTypesWithExtends1.js @@ -146,153 +146,153 @@ function f2() { //// [inferTypesWithExtends1.d.ts] -declare type X1 = T extends [infer U extends string] ? ["string", U] : T extends [infer U extends number] ? ["number", U] : never; -declare type X1_T1 = X1<["a"]>; -declare type X1_T2 = X1<[1]>; -declare type X1_T3 = X1<[object]>; -declare type X2 void> = T extends (a: infer U extends string) => void ? ["string", U] : T extends (a: infer U extends number) => void ? ["number", U] : never; -declare type X2_T1 = X2<(a: "a") => void>; -declare type X2_T2 = X2<(a: 1) => void>; -declare type X2_T3 = X2<(a: object) => void>; -declare type X3 any> = T extends (...args: any[]) => (infer U extends string) ? ["string", U] : T extends (...args: any[]) => (infer U extends number) ? ["number", U] : never; -declare type X3_T1 = X3<() => "a">; -declare type X3_T2 = X3<() => 1>; -declare type X3_T3 = X3<() => object>; -declare type X4 any> = T extends new (...args: any[]) => (infer U extends { +type X1 = T extends [infer U extends string] ? ["string", U] : T extends [infer U extends number] ? ["number", U] : never; +type X1_T1 = X1<["a"]>; +type X1_T2 = X1<[1]>; +type X1_T3 = X1<[object]>; +type X2 void> = T extends (a: infer U extends string) => void ? ["string", U] : T extends (a: infer U extends number) => void ? ["number", U] : never; +type X2_T1 = X2<(a: "a") => void>; +type X2_T2 = X2<(a: 1) => void>; +type X2_T3 = X2<(a: object) => void>; +type X3 any> = T extends (...args: any[]) => (infer U extends string) ? ["string", U] : T extends (...args: any[]) => (infer U extends number) ? ["number", U] : never; +type X3_T1 = X3<() => "a">; +type X3_T2 = X3<() => 1>; +type X3_T3 = X3<() => object>; +type X4 any> = T extends new (...args: any[]) => (infer U extends { a: string; }) ? ["string", U] : T extends new (...args: any[]) => (infer U extends { a: number; }) ? ["number", U] : never; -declare type X4_T1 = X4 { +type X4_T1 = X4 { a: "a"; }>; -declare type X4_T2 = X4 { +type X4_T2 = X4 { a: 1; }>; -declare type X4_T3 = X4 { +type X4_T3 = X4 { a: object; }>; -declare type X5 = T extends Promise ? ["string", U] : T extends Promise ? ["number", U] : never; -declare type X5_T1 = X5>; -declare type X5_T2 = X5>; -declare type X5_T3 = X5>; -declare type X6 = T extends { +type X5 = T extends Promise ? ["string", U] : T extends Promise ? ["number", U] : never; +type X5_T1 = X5>; +type X5_T2 = X5>; +type X5_T3 = X5>; +type X6 = T extends { a: infer U extends string; } ? ["string", U] : T extends { a: infer U extends number; } ? ["number", U] : never; -declare type X6_T1 = X6<{ +type X6_T1 = X6<{ a: "a"; }>; -declare type X6_T2 = X6<{ +type X6_T2 = X6<{ a: 1; }>; -declare type X6_T3 = X6<{ +type X6_T3 = X6<{ a: object; }>; -declare type X7 = T extends { +type X7 = T extends { a: infer U extends string; b: infer U extends string; } ? ["string", U] : T extends { a: infer U extends number; b: infer U extends number; } ? ["number", U] : never; -declare type X7_T1 = X7<{ +type X7_T1 = X7<{ a: "a"; b: "b"; }>; -declare type X7_T2 = X7<{ +type X7_T2 = X7<{ a: 1; b: 2; }>; -declare type X7_T3 = X7<{ +type X7_T3 = X7<{ a: object; b: object; }>; -declare type X7_T4 = X7<{ +type X7_T4 = X7<{ a: "a"; b: 1; }>; -declare type X8 = T extends { +type X8 = T extends { a: infer U extends string; b: infer U; } ? ["string", U] : T extends { a: infer U extends number; b: infer U; } ? ["number", U] : never; -declare type X8_T1 = X8<{ +type X8_T1 = X8<{ a: "a"; b: "b"; }>; -declare type X8_T2 = X8<{ +type X8_T2 = X8<{ a: 1; b: 2; }>; -declare type X8_T3 = X8<{ +type X8_T3 = X8<{ a: object; b: object; }>; -declare type X8_T4 = X8<{ +type X8_T4 = X8<{ a: "a"; b: 1; }>; -declare type X9 = T extends { +type X9 = T extends { a: infer U; b: infer U extends string; } ? ["string", U] : T extends { a: infer U; b: infer U extends number; } ? ["number", U] : never; -declare type X9_T1 = X9<{ +type X9_T1 = X9<{ a: "a"; b: "b"; }>; -declare type X9_T2 = X9<{ +type X9_T2 = X9<{ a: 1; b: 2; }>; -declare type X9_T3 = X9<{ +type X9_T3 = X9<{ a: object; b: object; }>; -declare type X9_T4 = X9<{ +type X9_T4 = X9<{ a: "a"; b: 1; }>; -declare type X10 = T extends (infer U extends number ? 1 : 0) ? 1 : 0; -declare type X10_Y1 = X10; -declare type X10_T1_T1 = X10_Y1; -declare type X11 = T extends ((infer U) extends number ? 1 : 0) ? 1 : 0; -declare type X12 = T extends (infer U extends number) ? 1 : 0; -declare type X13 = T extends infer U extends number ? 1 : 0; -declare type X14 = T extends keyof infer U extends number ? 1 : 0; -declare type X15 = T extends { +type X10 = T extends (infer U extends number ? 1 : 0) ? 1 : 0; +type X10_Y1 = X10; +type X10_T1_T1 = X10_Y1; +type X11 = T extends ((infer U) extends number ? 1 : 0) ? 1 : 0; +type X12 = T extends (infer U extends number) ? 1 : 0; +type X13 = T extends infer U extends number ? 1 : 0; +type X14 = T extends keyof infer U extends number ? 1 : 0; +type X15 = T extends { [P in infer U extends keyof T ? 1 : 0]: 1; } ? 1 : 0; -declare type X16 = T extends { +type X16 = T extends { [P in infer U extends keyof T]: 1; } ? 1 : 0; -declare type X17 = T extends { +type X17 = T extends { [P in keyof T as infer U extends P ? 1 : 0]: 1; } ? 1 : 0; -declare type X18 = T extends { +type X18 = T extends { [P in keyof T as infer U extends P]: 1; } ? 1 : 0; -declare type X19 = T extends (infer U extends number) ? [T, U] : never; -declare type X19_T1 = X19<"a">; -declare type X19_T2 = X19<1>; -declare type X19_T3 = X19<1 | "a">; -declare type X20 = T extends (infer U extends number) ? T extends (infer V extends U) ? [T, U, V] : never : never; -declare type X20_T1 = X20<1 | "a">; -declare type X21 = T extends (infer U extends N) ? [T, U] : never; -declare type X21_T1 = X21<1, 1>; -declare type X21_T2 = X21<1 | "a", 1>; -declare type X21_T3 = X21<1 | 2, 1>; -declare type X21_T4 = X21<1 | 2, 2 | 3>; -declare type X21_T5 = X21<1 | 2, 3>; -declare type IfEquals = (() => T extends X ? 1 : 2) extends () => T extends Y ? 1 : 2 ? A : B; +type X19 = T extends (infer U extends number) ? [T, U] : never; +type X19_T1 = X19<"a">; +type X19_T2 = X19<1>; +type X19_T3 = X19<1 | "a">; +type X20 = T extends (infer U extends number) ? T extends (infer V extends U) ? [T, U, V] : never : never; +type X20_T1 = X20<1 | "a">; +type X21 = T extends (infer U extends N) ? [T, U] : never; +type X21_T1 = X21<1, 1>; +type X21_T2 = X21<1 | "a", 1>; +type X21_T3 = X21<1 | 2, 1>; +type X21_T4 = X21<1 | 2, 2 | 3>; +type X21_T5 = X21<1 | 2, 3>; +type IfEquals = (() => T extends X ? 1 : 2) extends () => T extends Y ? 1 : 2 ? A : B; declare const x1: () => (T extends infer U extends number ? 1 : 0); declare function f1(): () => T extends infer U extends number ? 1 : 0; -declare type ExpectNumber = T; +type ExpectNumber = T; declare const x2: () => (T extends ExpectNumber ? 1 : 0); declare function f2(): () => T extends infer U extends number ? 1 : 0; diff --git a/tests/baselines/reference/inferenceDoesNotAddUndefinedOrNull.js b/tests/baselines/reference/inferenceDoesNotAddUndefinedOrNull.js new file mode 100644 index 00000000000..5323e2dfe55 --- /dev/null +++ b/tests/baselines/reference/inferenceDoesNotAddUndefinedOrNull.js @@ -0,0 +1,55 @@ +//// [inferenceDoesNotAddUndefinedOrNull.ts] +interface NodeArray extends ReadonlyArray {} + +interface Node { + forEachChild(cbNode: (node: Node) => T | undefined, cbNodeArray?: (nodes: NodeArray) => T | undefined): T | undefined; +} + +declare function toArray(value: T | T[]): T[]; +declare function toArray(value: T | readonly T[]): readonly T[]; + +function flatMapChildren(node: Node, cb: (child: Node) => readonly T[] | T | undefined): readonly T[] { + const result: T[] = []; + node.forEachChild(child => { + const value = cb(child); + if (value !== undefined) { + result.push(...toArray(value)); + } + }); + return result; +} + +function flatMapChildren2(node: Node, cb: (child: Node) => readonly T[] | T | null): readonly T[] { + const result: T[] = []; + node.forEachChild(child => { + const value = cb(child); + if (value !== null) { + result.push(...toArray(value)); + } + }); + return result; +} + + +//// [inferenceDoesNotAddUndefinedOrNull.js] +"use strict"; +function flatMapChildren(node, cb) { + var result = []; + node.forEachChild(function (child) { + var value = cb(child); + if (value !== undefined) { + result.push.apply(result, toArray(value)); + } + }); + return result; +} +function flatMapChildren2(node, cb) { + var result = []; + node.forEachChild(function (child) { + var value = cb(child); + if (value !== null) { + result.push.apply(result, toArray(value)); + } + }); + return result; +} diff --git a/tests/baselines/reference/inferenceDoesNotAddUndefinedOrNull.symbols b/tests/baselines/reference/inferenceDoesNotAddUndefinedOrNull.symbols new file mode 100644 index 00000000000..96d07b95cc0 --- /dev/null +++ b/tests/baselines/reference/inferenceDoesNotAddUndefinedOrNull.symbols @@ -0,0 +1,127 @@ +=== tests/cases/compiler/inferenceDoesNotAddUndefinedOrNull.ts === +interface NodeArray extends ReadonlyArray {} +>NodeArray : Symbol(NodeArray, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 0, 0)) +>T : Symbol(T, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 0, 20)) +>Node : Symbol(Node, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(inferenceDoesNotAddUndefinedOrNull.ts, 0, 63)) +>ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 0, 20)) + +interface Node { +>Node : Symbol(Node, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(inferenceDoesNotAddUndefinedOrNull.ts, 0, 63)) + + forEachChild(cbNode: (node: Node) => T | undefined, cbNodeArray?: (nodes: NodeArray) => T | undefined): T | undefined; +>forEachChild : Symbol(Node.forEachChild, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 2, 16)) +>T : Symbol(T, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 3, 17)) +>cbNode : Symbol(cbNode, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 3, 20)) +>node : Symbol(node, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 3, 29)) +>Node : Symbol(Node, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(inferenceDoesNotAddUndefinedOrNull.ts, 0, 63)) +>T : Symbol(T, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 3, 17)) +>cbNodeArray : Symbol(cbNodeArray, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 3, 58)) +>nodes : Symbol(nodes, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 3, 74)) +>NodeArray : Symbol(NodeArray, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 0, 0)) +>Node : Symbol(Node, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(inferenceDoesNotAddUndefinedOrNull.ts, 0, 63)) +>T : Symbol(T, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 3, 17)) +>T : Symbol(T, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 3, 17)) +} + +declare function toArray(value: T | T[]): T[]; +>toArray : Symbol(toArray, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 4, 1), Decl(inferenceDoesNotAddUndefinedOrNull.ts, 6, 49)) +>T : Symbol(T, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 6, 25)) +>value : Symbol(value, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 6, 28)) +>T : Symbol(T, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 6, 25)) +>T : Symbol(T, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 6, 25)) +>T : Symbol(T, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 6, 25)) + +declare function toArray(value: T | readonly T[]): readonly T[]; +>toArray : Symbol(toArray, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 4, 1), Decl(inferenceDoesNotAddUndefinedOrNull.ts, 6, 49)) +>T : Symbol(T, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 7, 25)) +>value : Symbol(value, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 7, 28)) +>T : Symbol(T, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 7, 25)) +>T : Symbol(T, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 7, 25)) +>T : Symbol(T, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 7, 25)) + +function flatMapChildren(node: Node, cb: (child: Node) => readonly T[] | T | undefined): readonly T[] { +>flatMapChildren : Symbol(flatMapChildren, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 7, 67)) +>T : Symbol(T, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 9, 25)) +>node : Symbol(node, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 9, 28)) +>Node : Symbol(Node, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(inferenceDoesNotAddUndefinedOrNull.ts, 0, 63)) +>cb : Symbol(cb, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 9, 39)) +>child : Symbol(child, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 9, 45)) +>Node : Symbol(Node, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(inferenceDoesNotAddUndefinedOrNull.ts, 0, 63)) +>T : Symbol(T, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 9, 25)) +>T : Symbol(T, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 9, 25)) +>T : Symbol(T, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 9, 25)) + + const result: T[] = []; +>result : Symbol(result, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 10, 9)) +>T : Symbol(T, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 9, 25)) + + node.forEachChild(child => { +>node.forEachChild : Symbol(Node.forEachChild, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 2, 16)) +>node : Symbol(node, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 9, 28)) +>forEachChild : Symbol(Node.forEachChild, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 2, 16)) +>child : Symbol(child, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 11, 22)) + + const value = cb(child); +>value : Symbol(value, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 12, 13)) +>cb : Symbol(cb, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 9, 39)) +>child : Symbol(child, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 11, 22)) + + if (value !== undefined) { +>value : Symbol(value, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 12, 13)) +>undefined : Symbol(undefined) + + result.push(...toArray(value)); +>result.push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>result : Symbol(result, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 10, 9)) +>push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>toArray : Symbol(toArray, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 4, 1), Decl(inferenceDoesNotAddUndefinedOrNull.ts, 6, 49)) +>value : Symbol(value, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 12, 13)) + } + }); + return result; +>result : Symbol(result, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 10, 9)) +} + +function flatMapChildren2(node: Node, cb: (child: Node) => readonly T[] | T | null): readonly T[] { +>flatMapChildren2 : Symbol(flatMapChildren2, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 18, 1)) +>T : Symbol(T, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 20, 26)) +>node : Symbol(node, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 20, 29)) +>Node : Symbol(Node, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(inferenceDoesNotAddUndefinedOrNull.ts, 0, 63)) +>cb : Symbol(cb, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 20, 40)) +>child : Symbol(child, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 20, 46)) +>Node : Symbol(Node, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(inferenceDoesNotAddUndefinedOrNull.ts, 0, 63)) +>T : Symbol(T, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 20, 26)) +>T : Symbol(T, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 20, 26)) +>T : Symbol(T, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 20, 26)) + + const result: T[] = []; +>result : Symbol(result, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 21, 9)) +>T : Symbol(T, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 20, 26)) + + node.forEachChild(child => { +>node.forEachChild : Symbol(Node.forEachChild, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 2, 16)) +>node : Symbol(node, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 20, 29)) +>forEachChild : Symbol(Node.forEachChild, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 2, 16)) +>child : Symbol(child, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 22, 22)) + + const value = cb(child); +>value : Symbol(value, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 23, 13)) +>cb : Symbol(cb, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 20, 40)) +>child : Symbol(child, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 22, 22)) + + if (value !== null) { +>value : Symbol(value, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 23, 13)) + + result.push(...toArray(value)); +>result.push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>result : Symbol(result, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 21, 9)) +>push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>toArray : Symbol(toArray, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 4, 1), Decl(inferenceDoesNotAddUndefinedOrNull.ts, 6, 49)) +>value : Symbol(value, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 23, 13)) + } + }); + return result; +>result : Symbol(result, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 21, 9)) +} + diff --git a/tests/baselines/reference/inferenceDoesNotAddUndefinedOrNull.types b/tests/baselines/reference/inferenceDoesNotAddUndefinedOrNull.types new file mode 100644 index 00000000000..a36bafa23e7 --- /dev/null +++ b/tests/baselines/reference/inferenceDoesNotAddUndefinedOrNull.types @@ -0,0 +1,109 @@ +=== tests/cases/compiler/inferenceDoesNotAddUndefinedOrNull.ts === +interface NodeArray extends ReadonlyArray {} + +interface Node { + forEachChild(cbNode: (node: Node) => T | undefined, cbNodeArray?: (nodes: NodeArray) => T | undefined): T | undefined; +>forEachChild : (cbNode: (node: Node) => T | undefined, cbNodeArray?: ((nodes: NodeArray) => T | undefined) | undefined) => T | undefined +>cbNode : (node: Node) => T | undefined +>node : Node +>cbNodeArray : ((nodes: NodeArray) => T | undefined) | undefined +>nodes : NodeArray +} + +declare function toArray(value: T | T[]): T[]; +>toArray : { (value: T | T[]): T[]; (value: T | readonly T[]): readonly T[]; } +>value : T | T[] + +declare function toArray(value: T | readonly T[]): readonly T[]; +>toArray : { (value: T | T[]): T[]; (value: T | readonly T[]): readonly T[]; } +>value : T | readonly T[] + +function flatMapChildren(node: Node, cb: (child: Node) => readonly T[] | T | undefined): readonly T[] { +>flatMapChildren : (node: Node, cb: (child: Node) => readonly T[] | T | undefined) => readonly T[] +>node : Node +>cb : (child: Node) => readonly T[] | T | undefined +>child : Node + + const result: T[] = []; +>result : T[] +>[] : never[] + + node.forEachChild(child => { +>node.forEachChild(child => { const value = cb(child); if (value !== undefined) { result.push(...toArray(value)); } }) : void | undefined +>node.forEachChild : (cbNode: (node: Node) => T | undefined, cbNodeArray?: ((nodes: NodeArray) => T | undefined) | undefined) => T | undefined +>node : Node +>forEachChild : (cbNode: (node: Node) => T | undefined, cbNodeArray?: ((nodes: NodeArray) => T | undefined) | undefined) => T | undefined +>child => { const value = cb(child); if (value !== undefined) { result.push(...toArray(value)); } } : (child: Node) => void +>child : Node + + const value = cb(child); +>value : T | readonly T[] | undefined +>cb(child) : T | readonly T[] | undefined +>cb : (child: Node) => T | readonly T[] | undefined +>child : Node + + if (value !== undefined) { +>value !== undefined : boolean +>value : T | readonly T[] | undefined +>undefined : undefined + + result.push(...toArray(value)); +>result.push(...toArray(value)) : number +>result.push : (...items: T[]) => number +>result : T[] +>push : (...items: T[]) => number +>...toArray(value) : T +>toArray(value) : readonly T[] +>toArray : { (value: T | T[]): T[]; (value: T | readonly T[]): readonly T[]; } +>value : readonly T[] | (T & ({} | null)) + } + }); + return result; +>result : T[] +} + +function flatMapChildren2(node: Node, cb: (child: Node) => readonly T[] | T | null): readonly T[] { +>flatMapChildren2 : (node: Node, cb: (child: Node) => readonly T[] | T | null) => readonly T[] +>node : Node +>cb : (child: Node) => readonly T[] | T | null +>child : Node +>null : null + + const result: T[] = []; +>result : T[] +>[] : never[] + + node.forEachChild(child => { +>node.forEachChild(child => { const value = cb(child); if (value !== null) { result.push(...toArray(value)); } }) : void | undefined +>node.forEachChild : (cbNode: (node: Node) => T | undefined, cbNodeArray?: ((nodes: NodeArray) => T | undefined) | undefined) => T | undefined +>node : Node +>forEachChild : (cbNode: (node: Node) => T | undefined, cbNodeArray?: ((nodes: NodeArray) => T | undefined) | undefined) => T | undefined +>child => { const value = cb(child); if (value !== null) { result.push(...toArray(value)); } } : (child: Node) => void +>child : Node + + const value = cb(child); +>value : T | readonly T[] | null +>cb(child) : T | readonly T[] | null +>cb : (child: Node) => T | readonly T[] | null +>child : Node + + if (value !== null) { +>value !== null : boolean +>value : T | readonly T[] | null +>null : null + + result.push(...toArray(value)); +>result.push(...toArray(value)) : number +>result.push : (...items: T[]) => number +>result : T[] +>push : (...items: T[]) => number +>...toArray(value) : T +>toArray(value) : readonly T[] +>toArray : { (value: T | T[]): T[]; (value: T | readonly T[]): readonly T[]; } +>value : readonly T[] | (T & ({} | undefined)) + } + }); + return result; +>result : T[] +} + diff --git a/tests/baselines/reference/inferenceOfNullableObjectTypesWithCommonBase.js b/tests/baselines/reference/inferenceOfNullableObjectTypesWithCommonBase.js new file mode 100644 index 00000000000..3d5349234b0 --- /dev/null +++ b/tests/baselines/reference/inferenceOfNullableObjectTypesWithCommonBase.js @@ -0,0 +1,55 @@ +//// [inferenceOfNullableObjectTypesWithCommonBase.ts] +function equal(a: T, b: T) { } + +let v = null!; + +// Object types with common base types + +type B = { foo: string } +type D = { foo: string; bar: number } + +equal(v as B, v as undefined | D) +equal(v as undefined | D, v as B) + +equal(v as B, v as undefined | D) +equal(v as undefined | D, v as B) + +equal(v as B, v as undefined) +equal(v as undefined, v as B) + +equal(v as B, v as D) +equal(v as D, v as B) + +equal(v as B, v as B | undefined) +equal(v as B | undefined, v as B) + +equal(v as 'a' | undefined, v as 'b'); +equal(v as 'a', v as 'b' | undefined); + +equal(v as 'a' | undefined, v as 'b' | null); +equal(v as 'a' | null, v as 'b' | undefined); + +equal(v as string, v as string & { tag: 'foo' } | undefined); +equal(v as string & { tag: 'foo' } | undefined, v as string); + + +//// [inferenceOfNullableObjectTypesWithCommonBase.js] +"use strict"; +function equal(a, b) { } +var v = null; +equal(v, v); +equal(v, v); +equal(v, v); +equal(v, v); +equal(v, v); +equal(v, v); +equal(v, v); +equal(v, v); +equal(v, v); +equal(v, v); +equal(v, v); +equal(v, v); +equal(v, v); +equal(v, v); +equal(v, v); +equal(v, v); diff --git a/tests/baselines/reference/inferenceOfNullableObjectTypesWithCommonBase.symbols b/tests/baselines/reference/inferenceOfNullableObjectTypesWithCommonBase.symbols new file mode 100644 index 00000000000..e3385e4e12a --- /dev/null +++ b/tests/baselines/reference/inferenceOfNullableObjectTypesWithCommonBase.symbols @@ -0,0 +1,125 @@ +=== tests/cases/compiler/inferenceOfNullableObjectTypesWithCommonBase.ts === +function equal(a: T, b: T) { } +>equal : Symbol(equal, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 0, 0)) +>T : Symbol(T, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 0, 15)) +>a : Symbol(a, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 0, 18)) +>T : Symbol(T, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 0, 15)) +>b : Symbol(b, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 0, 23)) +>T : Symbol(T, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 0, 15)) + +let v = null!; +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) + +// Object types with common base types + +type B = { foo: string } +>B : Symbol(B, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 14)) +>foo : Symbol(foo, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 6, 10)) + +type D = { foo: string; bar: number } +>D : Symbol(D, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 6, 24)) +>foo : Symbol(foo, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 7, 10)) +>bar : Symbol(bar, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 7, 23)) + +equal(v as B, v as undefined | D) +>equal : Symbol(equal, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 0, 0)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>B : Symbol(B, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 14)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>D : Symbol(D, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 6, 24)) + +equal(v as undefined | D, v as B) +>equal : Symbol(equal, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 0, 0)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>D : Symbol(D, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 6, 24)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>B : Symbol(B, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 14)) + +equal(v as B, v as undefined | D) +>equal : Symbol(equal, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 0, 0)) +>B : Symbol(B, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 14)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>B : Symbol(B, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 14)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>D : Symbol(D, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 6, 24)) + +equal(v as undefined | D, v as B) +>equal : Symbol(equal, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 0, 0)) +>B : Symbol(B, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 14)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>D : Symbol(D, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 6, 24)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>B : Symbol(B, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 14)) + +equal(v as B, v as undefined) +>equal : Symbol(equal, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 0, 0)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>B : Symbol(B, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 14)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) + +equal(v as undefined, v as B) +>equal : Symbol(equal, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 0, 0)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>B : Symbol(B, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 14)) + +equal(v as B, v as D) +>equal : Symbol(equal, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 0, 0)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>B : Symbol(B, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 14)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>D : Symbol(D, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 6, 24)) + +equal(v as D, v as B) +>equal : Symbol(equal, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 0, 0)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>D : Symbol(D, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 6, 24)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>B : Symbol(B, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 14)) + +equal(v as B, v as B | undefined) +>equal : Symbol(equal, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 0, 0)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>B : Symbol(B, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 14)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>B : Symbol(B, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 14)) + +equal(v as B | undefined, v as B) +>equal : Symbol(equal, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 0, 0)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>B : Symbol(B, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 14)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>B : Symbol(B, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 14)) + +equal(v as 'a' | undefined, v as 'b'); +>equal : Symbol(equal, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 0, 0)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) + +equal(v as 'a', v as 'b' | undefined); +>equal : Symbol(equal, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 0, 0)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) + +equal(v as 'a' | undefined, v as 'b' | null); +>equal : Symbol(equal, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 0, 0)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) + +equal(v as 'a' | null, v as 'b' | undefined); +>equal : Symbol(equal, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 0, 0)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) + +equal(v as string, v as string & { tag: 'foo' } | undefined); +>equal : Symbol(equal, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 0, 0)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>tag : Symbol(tag, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 30, 34)) + +equal(v as string & { tag: 'foo' } | undefined, v as string); +>equal : Symbol(equal, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 0, 0)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) +>tag : Symbol(tag, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 31, 21)) +>v : Symbol(v, Decl(inferenceOfNullableObjectTypesWithCommonBase.ts, 2, 3)) + diff --git a/tests/baselines/reference/inferenceOfNullableObjectTypesWithCommonBase.types b/tests/baselines/reference/inferenceOfNullableObjectTypesWithCommonBase.types new file mode 100644 index 00000000000..82abf80a2bb --- /dev/null +++ b/tests/baselines/reference/inferenceOfNullableObjectTypesWithCommonBase.types @@ -0,0 +1,154 @@ +=== tests/cases/compiler/inferenceOfNullableObjectTypesWithCommonBase.ts === +function equal(a: T, b: T) { } +>equal : (a: T, b: T) => void +>a : T +>b : T + +let v = null!; +>v : never +>null! : never +>null : null + +// Object types with common base types + +type B = { foo: string } +>B : { foo: string; } +>foo : string + +type D = { foo: string; bar: number } +>D : { foo: string; bar: number; } +>foo : string +>bar : number + +equal(v as B, v as undefined | D) +>equal(v as B, v as undefined | D) : void +>equal : (a: T, b: T) => void +>v as B : B +>v : never +>v as undefined | D : D | undefined +>v : never + +equal(v as undefined | D, v as B) +>equal(v as undefined | D, v as B) : void +>equal : (a: T, b: T) => void +>v as undefined | D : D | undefined +>v : never +>v as B : B +>v : never + +equal(v as B, v as undefined | D) +>equal(v as B, v as undefined | D) : void +>equal : (a: T, b: T) => void +>v as B : B +>v : never +>v as undefined | D : D | undefined +>v : never + +equal(v as undefined | D, v as B) +>equal(v as undefined | D, v as B) : void +>equal : (a: T, b: T) => void +>v as undefined | D : D | undefined +>v : never +>v as B : B +>v : never + +equal(v as B, v as undefined) +>equal(v as B, v as undefined) : void +>equal : (a: T, b: T) => void +>v as B : B +>v : never +>v as undefined : undefined +>v : never + +equal(v as undefined, v as B) +>equal(v as undefined, v as B) : void +>equal : (a: T, b: T) => void +>v as undefined : undefined +>v : never +>v as B : B +>v : never + +equal(v as B, v as D) +>equal(v as B, v as D) : void +>equal : (a: T, b: T) => void +>v as B : B +>v : never +>v as D : D +>v : never + +equal(v as D, v as B) +>equal(v as D, v as B) : void +>equal : (a: T, b: T) => void +>v as D : D +>v : never +>v as B : B +>v : never + +equal(v as B, v as B | undefined) +>equal(v as B, v as B | undefined) : void +>equal : (a: T, b: T) => void +>v as B : B +>v : never +>v as B | undefined : B | undefined +>v : never + +equal(v as B | undefined, v as B) +>equal(v as B | undefined, v as B) : void +>equal : (a: T, b: T) => void +>v as B | undefined : B | undefined +>v : never +>v as B : B +>v : never + +equal(v as 'a' | undefined, v as 'b'); +>equal(v as 'a' | undefined, v as 'b') : void +>equal : (a: T, b: T) => void +>v as 'a' | undefined : "a" | undefined +>v : never +>v as 'b' : "b" +>v : never + +equal(v as 'a', v as 'b' | undefined); +>equal(v as 'a', v as 'b' | undefined) : void +>equal : (a: T, b: T) => void +>v as 'a' : "a" +>v : never +>v as 'b' | undefined : "b" | undefined +>v : never + +equal(v as 'a' | undefined, v as 'b' | null); +>equal(v as 'a' | undefined, v as 'b' | null) : void +>equal : (a: T, b: T) => void +>v as 'a' | undefined : "a" | undefined +>v : never +>v as 'b' | null : "b" | null +>v : never +>null : null + +equal(v as 'a' | null, v as 'b' | undefined); +>equal(v as 'a' | null, v as 'b' | undefined) : void +>equal : (a: T, b: T) => void +>v as 'a' | null : "a" | null +>v : never +>null : null +>v as 'b' | undefined : "b" | undefined +>v : never + +equal(v as string, v as string & { tag: 'foo' } | undefined); +>equal(v as string, v as string & { tag: 'foo' } | undefined) : void +>equal : (a: T, b: T) => void +>v as string : string +>v : never +>v as string & { tag: 'foo' } | undefined : (string & { tag: 'foo'; }) | undefined +>v : never +>tag : "foo" + +equal(v as string & { tag: 'foo' } | undefined, v as string); +>equal(v as string & { tag: 'foo' } | undefined, v as string) : void +>equal : (a: T, b: T) => void +>v as string & { tag: 'foo' } | undefined : (string & { tag: 'foo'; }) | undefined +>v : never +>tag : "foo" +>v as string : string +>v : never + diff --git a/tests/baselines/reference/inferredRestTypeFixedOnce.js b/tests/baselines/reference/inferredRestTypeFixedOnce.js new file mode 100644 index 00000000000..0142365cc0c --- /dev/null +++ b/tests/baselines/reference/inferredRestTypeFixedOnce.js @@ -0,0 +1,10 @@ +//// [inferredRestTypeFixedOnce.ts] +function wrap(_: (...args: Args) => void) {} +wrap(({ cancelable } = {}) => {}); + + +//// [inferredRestTypeFixedOnce.js] +function wrap(_) { } +wrap(function (_a) { + var _b = _a === void 0 ? {} : _a, cancelable = _b.cancelable; +}); diff --git a/tests/baselines/reference/inferredRestTypeFixedOnce.symbols b/tests/baselines/reference/inferredRestTypeFixedOnce.symbols new file mode 100644 index 00000000000..56bc1ab941c --- /dev/null +++ b/tests/baselines/reference/inferredRestTypeFixedOnce.symbols @@ -0,0 +1,12 @@ +=== tests/cases/compiler/inferredRestTypeFixedOnce.ts === +function wrap(_: (...args: Args) => void) {} +>wrap : Symbol(wrap, Decl(inferredRestTypeFixedOnce.ts, 0, 0)) +>Args : Symbol(Args, Decl(inferredRestTypeFixedOnce.ts, 0, 14)) +>_ : Symbol(_, Decl(inferredRestTypeFixedOnce.ts, 0, 38)) +>args : Symbol(args, Decl(inferredRestTypeFixedOnce.ts, 0, 42)) +>Args : Symbol(Args, Decl(inferredRestTypeFixedOnce.ts, 0, 14)) + +wrap(({ cancelable } = {}) => {}); +>wrap : Symbol(wrap, Decl(inferredRestTypeFixedOnce.ts, 0, 0)) +>cancelable : Symbol(cancelable, Decl(inferredRestTypeFixedOnce.ts, 1, 7)) + diff --git a/tests/baselines/reference/inferredRestTypeFixedOnce.types b/tests/baselines/reference/inferredRestTypeFixedOnce.types new file mode 100644 index 00000000000..718c82d9191 --- /dev/null +++ b/tests/baselines/reference/inferredRestTypeFixedOnce.types @@ -0,0 +1,13 @@ +=== tests/cases/compiler/inferredRestTypeFixedOnce.ts === +function wrap(_: (...args: Args) => void) {} +>wrap : (_: (...args: Args) => void) => void +>_ : (...args: Args) => void +>args : Args + +wrap(({ cancelable } = {}) => {}); +>wrap(({ cancelable } = {}) => {}) : void +>wrap : (_: (...args: Args) => void) => void +>({ cancelable } = {}) => {} : ({ cancelable }?: { cancelable: any; }) => void +>cancelable : any +>{} : {} + diff --git a/tests/baselines/reference/initializedDestructuringAssignmentTypes.types b/tests/baselines/reference/initializedDestructuringAssignmentTypes.types index 333fc5d92cc..dae67ba9074 100644 --- a/tests/baselines/reference/initializedDestructuringAssignmentTypes.types +++ b/tests/baselines/reference/initializedDestructuringAssignmentTypes.types @@ -3,13 +3,13 @@ const [, a = ''] = ''.match('') || []; > : undefined >a : string >'' : "" ->''.match('') || [] : RegExpMatchArray +>''.match('') || [] : RegExpMatchArray | [] >''.match('') : RegExpMatchArray >''.match : (regexp: string | RegExp) => RegExpMatchArray >'' : "" >match : (regexp: string | RegExp) => RegExpMatchArray >'' : "" ->[] : undefined[] +>[] : [] a.toFixed() >a.toFixed() : any diff --git a/tests/baselines/reference/initializerReferencingConstructorParameters.errors.txt b/tests/baselines/reference/initializerReferencingConstructorParameters.errors.txt index fec17b9115c..b28f52a412e 100644 --- a/tests/baselines/reference/initializerReferencingConstructorParameters.errors.txt +++ b/tests/baselines/reference/initializerReferencingConstructorParameters.errors.txt @@ -1,7 +1,7 @@ -tests/cases/conformance/classes/propertyMemberDeclarations/initializerReferencingConstructorParameters.ts(4,9): error TS2304: Cannot find name 'x'. -tests/cases/conformance/classes/propertyMemberDeclarations/initializerReferencingConstructorParameters.ts(5,15): error TS2304: Cannot find name 'x'. +tests/cases/conformance/classes/propertyMemberDeclarations/initializerReferencingConstructorParameters.ts(4,9): error TS2301: Initializer of instance member variable 'a' cannot reference identifier 'x' declared in the constructor. +tests/cases/conformance/classes/propertyMemberDeclarations/initializerReferencingConstructorParameters.ts(5,15): error TS2844: Type of instance member variable 'b' cannot reference identifier 'x' declared in the constructor. tests/cases/conformance/classes/propertyMemberDeclarations/initializerReferencingConstructorParameters.ts(10,9): error TS2663: Cannot find name 'x'. Did you mean the instance member 'this.x'? -tests/cases/conformance/classes/propertyMemberDeclarations/initializerReferencingConstructorParameters.ts(11,15): error TS2304: Cannot find name 'x'. +tests/cases/conformance/classes/propertyMemberDeclarations/initializerReferencingConstructorParameters.ts(11,15): error TS2844: Type of instance member variable 'b' cannot reference identifier 'x' declared in the constructor. tests/cases/conformance/classes/propertyMemberDeclarations/initializerReferencingConstructorParameters.ts(23,9): error TS2663: Cannot find name 'x'. Did you mean the instance member 'this.x'? @@ -11,10 +11,10 @@ tests/cases/conformance/classes/propertyMemberDeclarations/initializerReferencin class C { a = x; // error ~ -!!! error TS2304: Cannot find name 'x'. +!!! error TS2301: Initializer of instance member variable 'a' cannot reference identifier 'x' declared in the constructor. b: typeof x; // error ~ -!!! error TS2304: Cannot find name 'x'. +!!! error TS2844: Type of instance member variable 'b' cannot reference identifier 'x' declared in the constructor. constructor(x) { } } @@ -24,7 +24,7 @@ tests/cases/conformance/classes/propertyMemberDeclarations/initializerReferencin !!! error TS2663: Cannot find name 'x'. Did you mean the instance member 'this.x'? b: typeof x; // error ~ -!!! error TS2304: Cannot find name 'x'. +!!! error TS2844: Type of instance member variable 'b' cannot reference identifier 'x' declared in the constructor. constructor(public x) { } } diff --git a/tests/baselines/reference/innerModExport2.errors.txt b/tests/baselines/reference/innerModExport2.errors.txt index 7057b7e6d7a..0c3d95677fb 100644 --- a/tests/baselines/reference/innerModExport2.errors.txt +++ b/tests/baselines/reference/innerModExport2.errors.txt @@ -2,7 +2,7 @@ tests/cases/compiler/innerModExport2.ts(5,5): error TS2580: Cannot find name 'mo tests/cases/compiler/innerModExport2.ts(5,12): error TS1437: Namespace must be given a name. tests/cases/compiler/innerModExport2.ts(7,20): error TS2395: Individual declarations in merged declaration 'export_var' must be all exported or all local. tests/cases/compiler/innerModExport2.ts(13,9): error TS2395: Individual declarations in merged declaration 'export_var' must be all exported or all local. -tests/cases/compiler/innerModExport2.ts(20,7): error TS2339: Property 'NonExportFunc' does not exist on type 'typeof Outer'. +tests/cases/compiler/innerModExport2.ts(20,7): error TS2551: Property 'NonExportFunc' does not exist on type 'typeof Outer'. Did you mean 'ExportFunc'? ==== tests/cases/compiler/innerModExport2.ts (5 errors) ==== @@ -35,4 +35,5 @@ tests/cases/compiler/innerModExport2.ts(20,7): error TS2339: Property 'NonExport Outer.NonExportFunc(); ~~~~~~~~~~~~~ -!!! error TS2339: Property 'NonExportFunc' does not exist on type 'typeof Outer'. \ No newline at end of file +!!! error TS2551: Property 'NonExportFunc' does not exist on type 'typeof Outer'. Did you mean 'ExportFunc'? +!!! related TS2728 tests/cases/compiler/innerModExport2.ts:11:25: 'ExportFunc' is declared here. \ No newline at end of file diff --git a/tests/baselines/reference/instanceofTypeAliasToGenericClass.js b/tests/baselines/reference/instanceofTypeAliasToGenericClass.js new file mode 100644 index 00000000000..4a8257f781c --- /dev/null +++ b/tests/baselines/reference/instanceofTypeAliasToGenericClass.js @@ -0,0 +1,29 @@ +//// [instanceofTypeAliasToGenericClass.ts] +declare class TableClass { + _field: S; +} + +export type Table = TableClass; + +function fn(o: T) { + return o instanceof TableClass; +} + +function fn2(o: T) { + return o instanceof TableClass; +} + +declare const o: Table; +o instanceof TableClass; + + +//// [instanceofTypeAliasToGenericClass.js] +"use strict"; +exports.__esModule = true; +function fn(o) { + return o instanceof TableClass; +} +function fn2(o) { + return o instanceof TableClass; +} +o instanceof TableClass; diff --git a/tests/baselines/reference/instanceofTypeAliasToGenericClass.symbols b/tests/baselines/reference/instanceofTypeAliasToGenericClass.symbols new file mode 100644 index 00000000000..2c834f99ffa --- /dev/null +++ b/tests/baselines/reference/instanceofTypeAliasToGenericClass.symbols @@ -0,0 +1,46 @@ +=== tests/cases/compiler/instanceofTypeAliasToGenericClass.ts === +declare class TableClass { +>TableClass : Symbol(TableClass, Decl(instanceofTypeAliasToGenericClass.ts, 0, 0)) +>S : Symbol(S, Decl(instanceofTypeAliasToGenericClass.ts, 0, 25)) + + _field: S; +>_field : Symbol(TableClass._field, Decl(instanceofTypeAliasToGenericClass.ts, 0, 35)) +>S : Symbol(S, Decl(instanceofTypeAliasToGenericClass.ts, 0, 25)) +} + +export type Table = TableClass; +>Table : Symbol(Table, Decl(instanceofTypeAliasToGenericClass.ts, 2, 1)) +>TableClass : Symbol(TableClass, Decl(instanceofTypeAliasToGenericClass.ts, 0, 0)) + +function fn(o: T) { +>fn : Symbol(fn, Decl(instanceofTypeAliasToGenericClass.ts, 4, 31)) +>T : Symbol(T, Decl(instanceofTypeAliasToGenericClass.ts, 6, 12)) +>Table : Symbol(Table, Decl(instanceofTypeAliasToGenericClass.ts, 2, 1)) +>o : Symbol(o, Decl(instanceofTypeAliasToGenericClass.ts, 6, 29)) +>T : Symbol(T, Decl(instanceofTypeAliasToGenericClass.ts, 6, 12)) + + return o instanceof TableClass; +>o : Symbol(o, Decl(instanceofTypeAliasToGenericClass.ts, 6, 29)) +>TableClass : Symbol(TableClass, Decl(instanceofTypeAliasToGenericClass.ts, 0, 0)) +} + +function fn2(o: T) { +>fn2 : Symbol(fn2, Decl(instanceofTypeAliasToGenericClass.ts, 8, 1)) +>T : Symbol(T, Decl(instanceofTypeAliasToGenericClass.ts, 10, 13)) +>TableClass : Symbol(TableClass, Decl(instanceofTypeAliasToGenericClass.ts, 0, 0)) +>o : Symbol(o, Decl(instanceofTypeAliasToGenericClass.ts, 10, 35)) +>T : Symbol(T, Decl(instanceofTypeAliasToGenericClass.ts, 10, 13)) + + return o instanceof TableClass; +>o : Symbol(o, Decl(instanceofTypeAliasToGenericClass.ts, 10, 35)) +>TableClass : Symbol(TableClass, Decl(instanceofTypeAliasToGenericClass.ts, 0, 0)) +} + +declare const o: Table; +>o : Symbol(o, Decl(instanceofTypeAliasToGenericClass.ts, 14, 13)) +>Table : Symbol(Table, Decl(instanceofTypeAliasToGenericClass.ts, 2, 1)) + +o instanceof TableClass; +>o : Symbol(o, Decl(instanceofTypeAliasToGenericClass.ts, 14, 13)) +>TableClass : Symbol(TableClass, Decl(instanceofTypeAliasToGenericClass.ts, 0, 0)) + diff --git a/tests/baselines/reference/instanceofTypeAliasToGenericClass.types b/tests/baselines/reference/instanceofTypeAliasToGenericClass.types new file mode 100644 index 00000000000..8a487e386b0 --- /dev/null +++ b/tests/baselines/reference/instanceofTypeAliasToGenericClass.types @@ -0,0 +1,39 @@ +=== tests/cases/compiler/instanceofTypeAliasToGenericClass.ts === +declare class TableClass { +>TableClass : TableClass + + _field: S; +>_field : S +} + +export type Table = TableClass; +>Table : TableClass + +function fn(o: T) { +>fn : (o: T) => boolean +>o : T + + return o instanceof TableClass; +>o instanceof TableClass : boolean +>o : T +>TableClass : typeof TableClass +} + +function fn2(o: T) { +>fn2 : >(o: T) => boolean +>o : T + + return o instanceof TableClass; +>o instanceof TableClass : boolean +>o : T +>TableClass : typeof TableClass +} + +declare const o: Table; +>o : Table + +o instanceof TableClass; +>o instanceof TableClass : boolean +>o : Table +>TableClass : typeof TableClass + diff --git a/tests/baselines/reference/instanceofWithStructurallyIdenticalTypes.symbols b/tests/baselines/reference/instanceofWithStructurallyIdenticalTypes.symbols index 601699b93f7..868d1c1fd78 100644 --- a/tests/baselines/reference/instanceofWithStructurallyIdenticalTypes.symbols +++ b/tests/baselines/reference/instanceofWithStructurallyIdenticalTypes.symbols @@ -95,9 +95,9 @@ function foo2(x: C1 | C2 | C3): string { >x : Symbol(x, Decl(instanceofWithStructurallyIdenticalTypes.ts, 23, 14)) return x.item; ->x.item : Symbol(item, Decl(instanceofWithStructurallyIdenticalTypes.ts, 2, 10), Decl(instanceofWithStructurallyIdenticalTypes.ts, 4, 10)) +>x.item : Symbol(C1.item, Decl(instanceofWithStructurallyIdenticalTypes.ts, 2, 10)) >x : Symbol(x, Decl(instanceofWithStructurallyIdenticalTypes.ts, 23, 14)) ->item : Symbol(item, Decl(instanceofWithStructurallyIdenticalTypes.ts, 2, 10), Decl(instanceofWithStructurallyIdenticalTypes.ts, 4, 10)) +>item : Symbol(C1.item, Decl(instanceofWithStructurallyIdenticalTypes.ts, 2, 10)) } else if (isC2(x)) { >isC2 : Symbol(isC2, Decl(instanceofWithStructurallyIdenticalTypes.ts, 19, 66)) diff --git a/tests/baselines/reference/instanceofWithStructurallyIdenticalTypes.types b/tests/baselines/reference/instanceofWithStructurallyIdenticalTypes.types index 113c994c6e6..6aeba6f1b73 100644 --- a/tests/baselines/reference/instanceofWithStructurallyIdenticalTypes.types +++ b/tests/baselines/reference/instanceofWithStructurallyIdenticalTypes.types @@ -85,7 +85,7 @@ function foo2(x: C1 | C2 | C3): string { return x.item; >x.item : string ->x : C1 | C3 +>x : C1 >item : string } else if (isC2(x)) { diff --git a/tests/baselines/reference/instantiateContextualTypes.symbols b/tests/baselines/reference/instantiateContextualTypes.symbols index d3e8a7a317c..2952526b0f8 100644 --- a/tests/baselines/reference/instantiateContextualTypes.symbols +++ b/tests/baselines/reference/instantiateContextualTypes.symbols @@ -422,9 +422,9 @@ class Interesting { return Promise.resolve().then(() => { >Promise.resolve().then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) if (1 < 2) { @@ -440,9 +440,9 @@ class Interesting { return Promise.resolve().then(() => { >Promise.resolve().then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) return 'ELSE'; @@ -455,9 +455,9 @@ class Interesting { return Promise.resolve().then(() => { >Promise.resolve().then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) if (1 < 2) { diff --git a/tests/baselines/reference/instantiateContextualTypes.types b/tests/baselines/reference/instantiateContextualTypes.types index 72ea90d5953..18a4a81875f 100644 --- a/tests/baselines/reference/instantiateContextualTypes.types +++ b/tests/baselines/reference/instantiateContextualTypes.types @@ -342,9 +342,9 @@ class Interesting { >Promise.resolve().then(() => { if (1 < 2) { return 'SOMETHING'; } return 'ELSE'; }) : Promise<"SOMETHING" | "ELSE"> >Promise.resolve().then : (onfulfilled?: ((value: void) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise >Promise.resolve() : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >then : (onfulfilled?: ((value: void) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise >() => { if (1 < 2) { return 'SOMETHING'; } return 'ELSE'; } : () => "SOMETHING" | "ELSE" @@ -369,9 +369,9 @@ class Interesting { >Promise.resolve().then(() => { return 'ELSE'; }) : Promise<"SOMETHING" | "ELSE"> >Promise.resolve().then : (onfulfilled?: ((value: void) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise >Promise.resolve() : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >then : (onfulfilled?: ((value: void) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise >() => { return 'ELSE'; } : () => "ELSE" @@ -388,9 +388,9 @@ class Interesting { >Promise.resolve().then(() => { if (1 < 2) { return 'SOMETHING'; } return 'SOMETHING'; }) : Promise<"SOMETHING" | "ELSE"> >Promise.resolve().then : (onfulfilled?: ((value: void) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise >Promise.resolve() : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >then : (onfulfilled?: ((value: void) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise >() => { if (1 < 2) { return 'SOMETHING'; } return 'SOMETHING'; } : () => "SOMETHING" diff --git a/tests/baselines/reference/instantiatedTypeAliasDisplay.js b/tests/baselines/reference/instantiatedTypeAliasDisplay.js index 272266e0bea..376f2aeac95 100644 --- a/tests/baselines/reference/instantiatedTypeAliasDisplay.js +++ b/tests/baselines/reference/instantiatedTypeAliasDisplay.js @@ -28,7 +28,7 @@ interface X { interface Y { b: B; } -declare type Z = X | Y; +type Z = X | Y; declare function f1(): Z; declare function f2(a: A, b: B, c: C, d: D): Z; declare const x1: Z; diff --git a/tests/baselines/reference/instantiationExpressions.js b/tests/baselines/reference/instantiationExpressions.js index 4d1ec7817d8..d10ef4b73f3 100644 --- a/tests/baselines/reference/instantiationExpressions.js +++ b/tests/baselines/reference/instantiationExpressions.js @@ -275,14 +275,14 @@ declare function fx(x: T): T; declare function fx(x: T, n: number): T; declare function fx(t: [T, U]): [T, U]; declare function f1(): void; -declare type T10 = typeof fx; -declare type T11 = typeof fx; -declare type T12 = typeof fx; -declare type T13 = typeof fx; +type T10 = typeof fx; +type T11 = typeof fx; +type T12 = typeof fx; +type T13 = typeof fx; declare function f2(): void; -declare type T20 = typeof Array; -declare type T21 = typeof Array; -declare type T22 = typeof Array; +type T20 = typeof Array; +type T21 = typeof Array; +type T22 = typeof Array; declare class C { constructor(x: T); static f(x: U): U[]; @@ -352,11 +352,11 @@ declare function f38(x: A) => A) | ((x: B) => B[]), U>(f: T | declare function makeBox(value: T): { value: T; }; -declare type BoxFunc = typeof makeBox; -declare type StringBoxFunc = BoxFunc; -declare type Box = ReturnType>; -declare type StringBox = Box; -declare type A = InstanceType>; +type BoxFunc = typeof makeBox; +type StringBoxFunc = BoxFunc; +type Box = ReturnType>; +type StringBox = Box; +type A = InstanceType>; declare const g1: { (a: T): { a: T; @@ -365,18 +365,18 @@ declare const g1: { b: U; }; }; -declare type T30 = typeof g1; -declare type T31 = ReturnType>; -declare type T32 = InstanceType>; +type T30 = typeof g1; +type T31 = ReturnType>; +type T32 = InstanceType>; declare const g2: { (a: T): T; new (b: T): T; }; -declare type T40 = typeof g2; -declare type T41 = typeof g2; +type T40 = typeof g2; +type T41 = typeof g2; declare const g3: { (a: T): T; new (b: T): T; }; -declare type T50 = typeof g3; -declare type T51 = typeof g3; +type T50 = typeof g3; +type T51 = typeof g3; diff --git a/tests/baselines/reference/interfaceWithPropertyOfEveryType.types b/tests/baselines/reference/interfaceWithPropertyOfEveryType.types index 28fddbce52a..56873e85490 100644 --- a/tests/baselines/reference/interfaceWithPropertyOfEveryType.types +++ b/tests/baselines/reference/interfaceWithPropertyOfEveryType.types @@ -70,7 +70,7 @@ interface Foo { var a: Foo = { >a : Foo ->{ a: 1, b: '', c: true, d: {}, e: null , f: [1], g: {}, h: (x: number) => 1, i: (x: T) => x, j: null, k: new C(), l: f1, m: M, n: {}, o: E.A} : { a: number; b: string; c: true; d: {}; e: null; f: number[]; g: {}; h: (x: number) => number; i: (x: T) => T; j: Foo; k: C; l: () => void; m: typeof M; n: {}; o: E.A; } +>{ a: 1, b: '', c: true, d: {}, e: null , f: [1], g: {}, h: (x: number) => 1, i: (x: T) => x, j: null, k: new C(), l: f1, m: M, n: {}, o: E.A} : { a: number; b: string; c: true; d: {}; e: null; f: number[]; g: {}; h: (x: number) => number; i: (x: T) => T; j: Foo; k: C; l: () => void; m: typeof M; n: {}; o: E; } a: 1, >a : number @@ -136,7 +136,7 @@ var a: Foo = { >{} : {} o: E.A ->o : E.A +>o : E >E.A : E >E : typeof E >A : E diff --git a/tests/baselines/reference/intersectionWithConflictingPrivates.symbols b/tests/baselines/reference/intersectionWithConflictingPrivates.symbols index a59fe008c24..45823fe2ba0 100644 --- a/tests/baselines/reference/intersectionWithConflictingPrivates.symbols +++ b/tests/baselines/reference/intersectionWithConflictingPrivates.symbols @@ -132,9 +132,9 @@ class Foo { >options : Symbol(options, Decl(intersectionWithConflictingPrivates.ts, 52, 92)) return Promise.resolve(undefined); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >undefined : Symbol(undefined) } } diff --git a/tests/baselines/reference/intersectionWithConflictingPrivates.types b/tests/baselines/reference/intersectionWithConflictingPrivates.types index d7f8e4a9ded..88b5d864fd1 100644 --- a/tests/baselines/reference/intersectionWithConflictingPrivates.types +++ b/tests/baselines/reference/intersectionWithConflictingPrivates.types @@ -144,9 +144,9 @@ class Foo { return Promise.resolve(undefined); >Promise.resolve(undefined) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >undefined : undefined } } diff --git a/tests/baselines/reference/intraExpressionInferences.js b/tests/baselines/reference/intraExpressionInferences.js index b2ce11d0d93..e1b3a992695 100644 --- a/tests/baselines/reference/intraExpressionInferences.js +++ b/tests/baselines/reference/intraExpressionInferences.js @@ -338,7 +338,7 @@ declare function foo(options: { a: A; b: (a: A) => void; }): void; -declare type Chain = { +type Chain = { a(): R1; b(a: R1): R2; c(b: R2): void; @@ -347,11 +347,11 @@ declare function test(foo: Chain): void; declare class Wrapper { value?: T; } -declare type WrappedMap = Record; -declare type Unwrap = { +type WrappedMap = Record; +type Unwrap = { [K in keyof D]: D[K] extends Wrapper ? T : never; }; -declare type MappingComponent = { +type MappingComponent = { setup(): { inputs: I; outputs: O; diff --git a/tests/baselines/reference/intrinsicTypes.js b/tests/baselines/reference/intrinsicTypes.js index c8cb24fb9c5..4a5ee562df2 100644 --- a/tests/baselines/reference/intrinsicTypes.js +++ b/tests/baselines/reference/intrinsicTypes.js @@ -74,36 +74,36 @@ function foo4(x) { //// [intrinsicTypes.d.ts] -declare type TU1 = Uppercase<'hello'>; -declare type TU2 = Uppercase<'foo' | 'bar'>; -declare type TU3 = Uppercase; -declare type TU4 = Uppercase; -declare type TU5 = Uppercase; -declare type TU6 = Uppercase<42>; -declare type TL1 = Lowercase<'HELLO'>; -declare type TL2 = Lowercase<'FOO' | 'BAR'>; -declare type TL3 = Lowercase; -declare type TL4 = Lowercase; -declare type TL5 = Lowercase; -declare type TL6 = Lowercase<42>; -declare type TC1 = Capitalize<'hello'>; -declare type TC2 = Capitalize<'foo' | 'bar'>; -declare type TC3 = Capitalize; -declare type TC4 = Capitalize; -declare type TC5 = Capitalize; -declare type TC6 = Capitalize<42>; -declare type TN1 = Uncapitalize<'Hello'>; -declare type TN2 = Uncapitalize<'Foo' | 'Bar'>; -declare type TN3 = Uncapitalize; -declare type TN4 = Uncapitalize; -declare type TN5 = Uncapitalize; -declare type TN6 = Uncapitalize<42>; -declare type TX1 = Uppercase<`aB${S}`>; -declare type TX2 = TX1<'xYz'>; -declare type TX3 = Lowercase<`aB${S}`>; -declare type TX4 = TX3<'xYz'>; -declare type TX5 = `${Uppercase<'abc'>}${Lowercase<'XYZ'>}`; -declare type MyUppercase = intrinsic; +type TU1 = Uppercase<'hello'>; +type TU2 = Uppercase<'foo' | 'bar'>; +type TU3 = Uppercase; +type TU4 = Uppercase; +type TU5 = Uppercase; +type TU6 = Uppercase<42>; +type TL1 = Lowercase<'HELLO'>; +type TL2 = Lowercase<'FOO' | 'BAR'>; +type TL3 = Lowercase; +type TL4 = Lowercase; +type TL5 = Lowercase; +type TL6 = Lowercase<42>; +type TC1 = Capitalize<'hello'>; +type TC2 = Capitalize<'foo' | 'bar'>; +type TC3 = Capitalize; +type TC4 = Capitalize; +type TC5 = Capitalize; +type TC6 = Capitalize<42>; +type TN1 = Uncapitalize<'Hello'>; +type TN2 = Uncapitalize<'Foo' | 'Bar'>; +type TN3 = Uncapitalize; +type TN4 = Uncapitalize; +type TN5 = Uncapitalize; +type TN6 = Uncapitalize<42>; +type TX1 = Uppercase<`aB${S}`>; +type TX2 = TX1<'xYz'>; +type TX3 = Lowercase<`aB${S}`>; +type TX4 = TX3<'xYz'>; +type TX5 = `${Uppercase<'abc'>}${Lowercase<'XYZ'>}`; +type MyUppercase = intrinsic; declare function foo1(s: string, x: Uppercase, y: Uppercase): void; declare function foo2(x: Uppercase): void; declare function foo3(x: Uppercase): T; diff --git a/tests/baselines/reference/invalidTypeOfTarget.errors.txt b/tests/baselines/reference/invalidTypeOfTarget.errors.txt index 2744688f81d..db87a340952 100644 --- a/tests/baselines/reference/invalidTypeOfTarget.errors.txt +++ b/tests/baselines/reference/invalidTypeOfTarget.errors.txt @@ -36,7 +36,7 @@ tests/cases/conformance/types/specifyingTypes/typeQueries/invalidTypeOfTarget.ts var x7: typeof function f() { }; ~~~~~~~~ !!! error TS2552: Cannot find name 'function'. Did you mean 'Function'? -!!! related TS2728 /.ts/lib.es5.d.ts:324:13: 'Function' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:318:13: 'Function' is declared here. ~ !!! error TS1005: ',' expected. ~ diff --git a/tests/baselines/reference/isomorphicMappedTypeInference.js b/tests/baselines/reference/isomorphicMappedTypeInference.js index 04f6bfbff1e..6e1c1b6dfd6 100644 --- a/tests/baselines/reference/isomorphicMappedTypeInference.js +++ b/tests/baselines/reference/isomorphicMappedTypeInference.js @@ -298,10 +298,10 @@ var o2 = getProps(myAny, ['foo', 'bar']); //// [isomorphicMappedTypeInference.d.ts] -declare type Box = { +type Box = { value: T; }; -declare type Boxified = { +type Boxified = { [P in keyof T]: Box; }; declare function box(x: T): Box; @@ -332,13 +332,13 @@ declare function clone(obj: { declare function validateAndClone(obj: { readonly [P in keyof T]?: T[P]; }): T; -declare type Foo = { +type Foo = { a?: number; readonly b: string; }; declare function f10(foo: Foo): void; -declare type Func = (...args: any[]) => T; -declare type Spec = { +type Func = (...args: any[]) => T; +type Spec = { [P in keyof T]: Func | Spec; }; /** diff --git a/tests/baselines/reference/iteratorSpreadInArray10.errors.txt b/tests/baselines/reference/iteratorSpreadInArray10.errors.txt index 28a878ac431..00cc1017990 100644 --- a/tests/baselines/reference/iteratorSpreadInArray10.errors.txt +++ b/tests/baselines/reference/iteratorSpreadInArray10.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/es6/spread/iteratorSpreadInArray10.ts(7,17): error TS2489: An iterator must have a 'next()' method. +tests/cases/conformance/es6/spread/iteratorSpreadInArray10.ts(7,17): error TS2488: Type 'SymbolIterator' must have a '[Symbol.iterator]()' method that returns an iterator. ==== tests/cases/conformance/es6/spread/iteratorSpreadInArray10.ts (1 errors) ==== @@ -10,4 +10,5 @@ tests/cases/conformance/es6/spread/iteratorSpreadInArray10.ts(7,17): error TS248 var array = [...new SymbolIterator]; ~~~~~~~~~~~~~~~~~~ -!!! error TS2489: An iterator must have a 'next()' method. \ No newline at end of file +!!! error TS2488: Type 'SymbolIterator' must have a '[Symbol.iterator]()' method that returns an iterator. +!!! related TS2489 tests/cases/conformance/es6/spread/iteratorSpreadInArray10.ts:7:17: An iterator must have a 'next()' method. \ No newline at end of file diff --git a/tests/baselines/reference/javascriptImportDefaultBadExport.errors.txt b/tests/baselines/reference/javascriptImportDefaultBadExport.errors.txt index 71ff85e2155..e5631c22a89 100644 --- a/tests/baselines/reference/javascriptImportDefaultBadExport.errors.txt +++ b/tests/baselines/reference/javascriptImportDefaultBadExport.errors.txt @@ -12,5 +12,5 @@ import a from "./a"; ~ !!! error TS1259: Module '"/a"' can only be default-imported using the 'esModuleInterop' flag -!!! related TS2594 /a.js:5:1: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. +!!! related TS2594 /a.js:5:1: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. \ No newline at end of file diff --git a/tests/baselines/reference/jsDeclarationsJSDocRedirectedLookups.js b/tests/baselines/reference/jsDeclarationsJSDocRedirectedLookups.js index a56944c921d..019dd3663ed 100644 --- a/tests/baselines/reference/jsDeclarationsJSDocRedirectedLookups.js +++ b/tests/baselines/reference/jsDeclarationsJSDocRedirectedLookups.js @@ -88,7 +88,7 @@ out/index.d.ts(14,39): error TS2304: Cannot find name 'class'. out/index.d.ts(15,38): error TS2304: Cannot find name 'bool'. out/index.d.ts(16,37): error TS2304: Cannot find name 'int'. -out/index.d.ts(17,39): error TS2304: Cannot find name 'float'. +out/index.d.ts(17,39): error TS2552: Cannot find name 'float'. Did you mean 'GLfloat'? out/index.d.ts(18,41): error TS2304: Cannot find name 'integer'. @@ -117,7 +117,7 @@ out/index.d.ts(18,41): error TS2304: Cannot find name 'integer'. !!! error TS2304: Cannot find name 'int'. /** @type {float} */ declare const o: float; ~~~~~ -!!! error TS2304: Cannot find name 'float'. +!!! error TS2552: Cannot find name 'float'. Did you mean 'GLfloat'? /** @type {integer} */ declare const p: integer; ~~~~~~~ !!! error TS2304: Cannot find name 'integer'. diff --git a/tests/baselines/reference/jsDeclarationsJSDocRedirectedLookups.symbols b/tests/baselines/reference/jsDeclarationsJSDocRedirectedLookups.symbols index b24b2964a49..ac28461de26 100644 --- a/tests/baselines/reference/jsDeclarationsJSDocRedirectedLookups.symbols +++ b/tests/baselines/reference/jsDeclarationsJSDocRedirectedLookups.symbols @@ -31,9 +31,9 @@ /** @type {promise} */const j = Promise.resolve(0); >j : Symbol(j, Decl(index.js, 11, 27)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) /** @type {Object} */const k = {x: "x"}; >k : Symbol(k, Decl(index.js, 12, 42)) diff --git a/tests/baselines/reference/jsDeclarationsJSDocRedirectedLookups.types b/tests/baselines/reference/jsDeclarationsJSDocRedirectedLookups.types index f86bca410ef..a31abbb13db 100644 --- a/tests/baselines/reference/jsDeclarationsJSDocRedirectedLookups.types +++ b/tests/baselines/reference/jsDeclarationsJSDocRedirectedLookups.types @@ -43,9 +43,9 @@ /** @type {promise} */const j = Promise.resolve(0); >j : Promise >Promise.resolve(0) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >0 : 0 /** @type {Object} */const k = {x: "x"}; diff --git a/tests/baselines/reference/jsDeclarationsTypedefFunction.js b/tests/baselines/reference/jsDeclarationsTypedefFunction.js new file mode 100644 index 00000000000..9a64e37327f --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsTypedefFunction.js @@ -0,0 +1,48 @@ +//// [foo.js] +/** + * @typedef {{ + * [id: string]: [Function, Function]; + * }} ResolveRejectMap + */ + +let id = 0 + +/** + * @param {ResolveRejectMap} handlers + * @returns {Promise} + */ +const send = handlers => new Promise((resolve, reject) => { + handlers[++id] = [resolve, reject] +}) + +//// [foo.js] +/** + * @typedef {{ + * [id: string]: [Function, Function]; + * }} ResolveRejectMap + */ +let id = 0; +/** + * @param {ResolveRejectMap} handlers + * @returns {Promise} + */ +const send = handlers => new Promise((resolve, reject) => { + handlers[++id] = [resolve, reject]; +}); + + +//// [foo.d.ts] +/** + * @typedef {{ + * [id: string]: [Function, Function]; + * }} ResolveRejectMap + */ +declare let id: number; +/** + * @param {ResolveRejectMap} handlers + * @returns {Promise} + */ +declare function send(handlers: ResolveRejectMap): Promise; +type ResolveRejectMap = { + [id: string]: [Function, Function]; +}; diff --git a/tests/baselines/reference/jsDeclarationsTypedefFunction.symbols b/tests/baselines/reference/jsDeclarationsTypedefFunction.symbols new file mode 100644 index 00000000000..16ccfbae554 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsTypedefFunction.symbols @@ -0,0 +1,28 @@ +=== tests/cases/conformance/jsdoc/declarations/foo.js === +/** + * @typedef {{ + * [id: string]: [Function, Function]; + * }} ResolveRejectMap + */ + +let id = 0 +>id : Symbol(id, Decl(foo.js, 6, 3)) + +/** + * @param {ResolveRejectMap} handlers + * @returns {Promise} + */ +const send = handlers => new Promise((resolve, reject) => { +>send : Symbol(send, Decl(foo.js, 12, 5)) +>handlers : Symbol(handlers, Decl(foo.js, 12, 12)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>resolve : Symbol(resolve, Decl(foo.js, 12, 38)) +>reject : Symbol(reject, Decl(foo.js, 12, 46)) + + handlers[++id] = [resolve, reject] +>handlers : Symbol(handlers, Decl(foo.js, 12, 12)) +>id : Symbol(id, Decl(foo.js, 6, 3)) +>resolve : Symbol(resolve, Decl(foo.js, 12, 38)) +>reject : Symbol(reject, Decl(foo.js, 12, 46)) + +}) diff --git a/tests/baselines/reference/jsDeclarationsTypedefFunction.types b/tests/baselines/reference/jsDeclarationsTypedefFunction.types new file mode 100644 index 00000000000..a3cc3aa0e48 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsTypedefFunction.types @@ -0,0 +1,36 @@ +=== tests/cases/conformance/jsdoc/declarations/foo.js === +/** + * @typedef {{ + * [id: string]: [Function, Function]; + * }} ResolveRejectMap + */ + +let id = 0 +>id : number +>0 : 0 + +/** + * @param {ResolveRejectMap} handlers + * @returns {Promise} + */ +const send = handlers => new Promise((resolve, reject) => { +>send : (handlers: ResolveRejectMap) => Promise +>handlers => new Promise((resolve, reject) => { handlers[++id] = [resolve, reject]}) : (handlers: ResolveRejectMap) => Promise +>handlers : ResolveRejectMap +>new Promise((resolve, reject) => { handlers[++id] = [resolve, reject]}) : Promise +>Promise : PromiseConstructor +>(resolve, reject) => { handlers[++id] = [resolve, reject]} : (resolve: (value: any) => void, reject: (reason?: any) => void) => void +>resolve : (value: any) => void +>reject : (reason?: any) => void + + handlers[++id] = [resolve, reject] +>handlers[++id] = [resolve, reject] : [(value: any) => void, (reason?: any) => void] +>handlers[++id] : [Function, Function] +>handlers : ResolveRejectMap +>++id : number +>id : number +>[resolve, reject] : [(value: any) => void, (reason?: any) => void] +>resolve : (value: any) => void +>reject : (reason?: any) => void + +}) diff --git a/tests/baselines/reference/jsDocDontBreakWithNamespaces.baseline b/tests/baselines/reference/jsDocDontBreakWithNamespaces.baseline index 3618b914c58..df5d7365580 100644 --- a/tests/baselines/reference/jsDocDontBreakWithNamespaces.baseline +++ b/tests/baselines/reference/jsDocDontBreakWithNamespaces.baseline @@ -181,19 +181,82 @@ "kind": "space" } ], - "parameters": [], - "documentation": [], - "tags": [ + "parameters": [ { - "name": "type", - "text": [ + "name": "arg0", + "documentation": [], + "displayParts": [ { - "text": "{function(module:xxxx, module:xxxx): module:xxxxx}", - "kind": "text" + "text": "arg0", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "any", + "kind": "keyword" } - ] + ], + "isOptional": false, + "isRest": false + }, + { + "name": "arg1", + "documentation": [], + "displayParts": [ + { + "text": "arg1", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "any", + "kind": "keyword" + } + ], + "isOptional": false, + "isRest": false + }, + { + "name": "arg2", + "documentation": [], + "displayParts": [ + { + "text": "arg2", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "any", + "kind": "keyword" + } + ], + "isOptional": false, + "isRest": false } - ] + ], + "documentation": [], + "tags": [] } ], "applicableSpan": { diff --git a/tests/baselines/reference/jsEnumTagOnObjectFrozen.symbols b/tests/baselines/reference/jsEnumTagOnObjectFrozen.symbols index c7673af881f..ecdf10f8ea4 100644 --- a/tests/baselines/reference/jsEnumTagOnObjectFrozen.symbols +++ b/tests/baselines/reference/jsEnumTagOnObjectFrozen.symbols @@ -42,9 +42,9 @@ cbThing(type => { /** @enum {string} */ const Thing = Object.freeze({ >Thing : Symbol(Thing, Decl(index.js, 1, 5), Decl(index.js, 0, 4)) ->Object.freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>Object.freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) a: "thing", >a : Symbol(a, Decl(index.js, 1, 29)) diff --git a/tests/baselines/reference/jsEnumTagOnObjectFrozen.types b/tests/baselines/reference/jsEnumTagOnObjectFrozen.types index 12d79352452..c05a168a436 100644 --- a/tests/baselines/reference/jsEnumTagOnObjectFrozen.types +++ b/tests/baselines/reference/jsEnumTagOnObjectFrozen.types @@ -49,9 +49,9 @@ cbThing(type => { const Thing = Object.freeze({ >Thing : Readonly<{ a: "thing"; b: "chill"; }> >Object.freeze({ a: "thing", b: "chill"}) : Readonly<{ a: "thing"; b: "chill"; }> ->Object.freeze : { (a: T[]): readonly T[]; (f: T): T; (o: T): Readonly; (o: T): Readonly; } +>Object.freeze : { (f: T): T; (o: T): Readonly; (o: T): Readonly; } >Object : ObjectConstructor ->freeze : { (a: T[]): readonly T[]; (f: T): T; (o: T): Readonly; (o: T): Readonly; } +>freeze : { (f: T): T; (o: T): Readonly; (o: T): Readonly; } >{ a: "thing", b: "chill"} : { a: "thing"; b: "chill"; } a: "thing", diff --git a/tests/baselines/reference/jsFileCompilationAwaitModifier.symbols b/tests/baselines/reference/jsFileCompilationAwaitModifier.symbols index dc54056d756..4148f9b391c 100644 --- a/tests/baselines/reference/jsFileCompilationAwaitModifier.symbols +++ b/tests/baselines/reference/jsFileCompilationAwaitModifier.symbols @@ -6,18 +6,18 @@ class Foo { >a : Symbol(Foo.a, Decl(a.js, 0, 11)) await Promise.resolve(1); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) } b = async () => { >b : Symbol(Foo.b, Decl(a.js, 3, 5)) await Promise.resolve(1); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) } } diff --git a/tests/baselines/reference/jsFileCompilationAwaitModifier.types b/tests/baselines/reference/jsFileCompilationAwaitModifier.types index 3cbc18ccbd1..36fd99b0864 100644 --- a/tests/baselines/reference/jsFileCompilationAwaitModifier.types +++ b/tests/baselines/reference/jsFileCompilationAwaitModifier.types @@ -8,9 +8,9 @@ class Foo { await Promise.resolve(1); >await Promise.resolve(1) : number >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 } @@ -21,9 +21,9 @@ class Foo { await Promise.resolve(1); >await Promise.resolve(1) : number >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 } } diff --git a/tests/baselines/reference/jsdocArrayObjectPromiseImplicitAny.symbols b/tests/baselines/reference/jsdocArrayObjectPromiseImplicitAny.symbols index d7e26e854aa..70f95bf5a69 100644 --- a/tests/baselines/reference/jsdocArrayObjectPromiseImplicitAny.symbols +++ b/tests/baselines/reference/jsdocArrayObjectPromiseImplicitAny.symbols @@ -22,16 +22,16 @@ function returnAnyArray(arr) { /** @type {Promise} */ var anyPromise = Promise.resolve(5); >anyPromise : Symbol(anyPromise, Decl(jsdocArrayObjectPromiseImplicitAny.js, 15, 3)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) /** @type {Promise} */ var numberPromise = Promise.resolve(5); >numberPromise : Symbol(numberPromise, Decl(jsdocArrayObjectPromiseImplicitAny.js, 18, 3)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) /** * @param {Promise} pr diff --git a/tests/baselines/reference/jsdocArrayObjectPromiseImplicitAny.types b/tests/baselines/reference/jsdocArrayObjectPromiseImplicitAny.types index 3e7a475d66a..114f4384aae 100644 --- a/tests/baselines/reference/jsdocArrayObjectPromiseImplicitAny.types +++ b/tests/baselines/reference/jsdocArrayObjectPromiseImplicitAny.types @@ -27,18 +27,18 @@ function returnAnyArray(arr) { var anyPromise = Promise.resolve(5); >anyPromise : Promise >Promise.resolve(5) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >5 : 5 /** @type {Promise} */ var numberPromise = Promise.resolve(5); >numberPromise : Promise >Promise.resolve(5) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >5 : 5 /** diff --git a/tests/baselines/reference/jsdocArrayObjectPromiseNoImplicitAny.symbols b/tests/baselines/reference/jsdocArrayObjectPromiseNoImplicitAny.symbols index b46584a20ae..f4475a19ef4 100644 --- a/tests/baselines/reference/jsdocArrayObjectPromiseNoImplicitAny.symbols +++ b/tests/baselines/reference/jsdocArrayObjectPromiseNoImplicitAny.symbols @@ -22,16 +22,16 @@ function returnNotAnyArray(arr) { /** @type {Promise} */ var notAnyPromise = Promise.resolve(5); >notAnyPromise : Symbol(notAnyPromise, Decl(jsdocArrayObjectPromiseNoImplicitAny.js, 15, 3)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) /** @type {Promise} */ var numberPromise = Promise.resolve(5); >numberPromise : Symbol(numberPromise, Decl(jsdocArrayObjectPromiseNoImplicitAny.js, 18, 3)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) /** * @param {Promise} pr diff --git a/tests/baselines/reference/jsdocArrayObjectPromiseNoImplicitAny.types b/tests/baselines/reference/jsdocArrayObjectPromiseNoImplicitAny.types index 875f56ad9ca..950b482c72b 100644 --- a/tests/baselines/reference/jsdocArrayObjectPromiseNoImplicitAny.types +++ b/tests/baselines/reference/jsdocArrayObjectPromiseNoImplicitAny.types @@ -27,18 +27,18 @@ function returnNotAnyArray(arr) { var notAnyPromise = Promise.resolve(5); >notAnyPromise : Promise >Promise.resolve(5) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >5 : 5 /** @type {Promise} */ var numberPromise = Promise.resolve(5); >numberPromise : Promise >Promise.resolve(5) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >5 : 5 /** diff --git a/tests/baselines/reference/jsdocTypeTagRequiredParameters.errors.txt b/tests/baselines/reference/jsdocTypeTagRequiredParameters.errors.txt index 3658797f87f..22379631294 100644 --- a/tests/baselines/reference/jsdocTypeTagRequiredParameters.errors.txt +++ b/tests/baselines/reference/jsdocTypeTagRequiredParameters.errors.txt @@ -21,9 +21,9 @@ tests/cases/conformance/jsdoc/a.js(13,1): error TS2554: Expected 1 arguments, bu g() // should error ~~~ !!! error TS2554: Expected 1 arguments, but got 0. -!!! related TS6210 tests/cases/conformance/jsdoc/a.js:5:12: An argument for 's' was not provided. +!!! related TS6210 tests/cases/conformance/jsdoc/a.js:4:13: An argument for 's' was not provided. h() ~~~ !!! error TS2554: Expected 1 arguments, but got 0. -!!! related TS6210 tests/cases/conformance/jsdoc/a.js:8:12: An argument for 's' was not provided. +!!! related TS6210 tests/cases/conformance/jsdoc/a.js:7:14: An argument for 's' was not provided. \ No newline at end of file diff --git a/tests/baselines/reference/jsxClassAttributeResolution.errors.txt b/tests/baselines/reference/jsxClassAttributeResolution.errors.txt new file mode 100644 index 00000000000..b768da2332e --- /dev/null +++ b/tests/baselines/reference/jsxClassAttributeResolution.errors.txt @@ -0,0 +1,28 @@ +tests/cases/compiler/file.tsx(2,19): error TS2741: Property 'ref' is missing in type '{}' but required in type 'IntrinsicClassAttributesAlias'. + + +==== tests/cases/compiler/file.tsx (1 errors) ==== + class App {} + export const a = ; + ~~~ +!!! error TS2741: Property 'ref' is missing in type '{}' but required in type 'IntrinsicClassAttributesAlias'. +!!! related TS2728 /.src/tests/cases/compiler/node_modules/@types/react/index.d.ts:2:5: 'ref' is declared here. +==== tests/cases/compiler/node_modules/@types/react/package.json (0 errors) ==== + { + "name": "@types/react", + "version": "0.0.1", + "main": "", + "types": "index.d.ts", + } +==== tests/cases/compiler/node_modules/@types/react/index.d.ts (0 errors) ==== + interface IntrinsicClassAttributesAlias { + ref: T + } + declare namespace JSX { + type IntrinsicClassAttributes = IntrinsicClassAttributesAlias + } +==== tests/cases/compiler/node_modules/@types/react/jsx-runtime.d.ts (0 errors) ==== + import './'; +==== tests/cases/compiler/node_modules/@types/react/jsx-dev-runtime.d.ts (0 errors) ==== + import './'; + \ No newline at end of file diff --git a/tests/baselines/reference/jsxClassAttributeResolution.js b/tests/baselines/reference/jsxClassAttributeResolution.js new file mode 100644 index 00000000000..7fa77a36324 --- /dev/null +++ b/tests/baselines/reference/jsxClassAttributeResolution.js @@ -0,0 +1,33 @@ +//// [tests/cases/compiler/jsxClassAttributeResolution.tsx] //// + +//// [file.tsx] +class App {} +export const a = ; +//// [package.json] +{ + "name": "@types/react", + "version": "0.0.1", + "main": "", + "types": "index.d.ts", +} +//// [index.d.ts] +interface IntrinsicClassAttributesAlias { + ref: T +} +declare namespace JSX { + type IntrinsicClassAttributes = IntrinsicClassAttributesAlias +} +//// [jsx-runtime.d.ts] +import './'; +//// [jsx-dev-runtime.d.ts] +import './'; + + +//// [file.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const jsx_runtime_1 = require("react/jsx-runtime"); +class App { +} +exports.a = (0, jsx_runtime_1.jsx)(App, {}); diff --git a/tests/baselines/reference/jsxClassAttributeResolution.symbols b/tests/baselines/reference/jsxClassAttributeResolution.symbols new file mode 100644 index 00000000000..59ccd79b7be --- /dev/null +++ b/tests/baselines/reference/jsxClassAttributeResolution.symbols @@ -0,0 +1,33 @@ +=== tests/cases/compiler/file.tsx === +class App {} +>App : Symbol(App, Decl(file.tsx, 0, 0)) + +export const a = ; +>a : Symbol(a, Decl(file.tsx, 1, 12)) +>App : Symbol(App, Decl(file.tsx, 0, 0)) +>App : Symbol(App, Decl(file.tsx, 0, 0)) + +=== tests/cases/compiler/node_modules/@types/react/index.d.ts === +interface IntrinsicClassAttributesAlias { +>IntrinsicClassAttributesAlias : Symbol(IntrinsicClassAttributesAlias, Decl(index.d.ts, 0, 0)) +>T : Symbol(T, Decl(index.d.ts, 0, 40)) + + ref: T +>ref : Symbol(IntrinsicClassAttributesAlias.ref, Decl(index.d.ts, 0, 44)) +>T : Symbol(T, Decl(index.d.ts, 0, 40)) +} +declare namespace JSX { +>JSX : Symbol(JSX, Decl(index.d.ts, 2, 1)) + + type IntrinsicClassAttributes = IntrinsicClassAttributesAlias +>IntrinsicClassAttributes : Symbol(IntrinsicClassAttributes, Decl(index.d.ts, 3, 23)) +>T : Symbol(T, Decl(index.d.ts, 4, 34)) +>IntrinsicClassAttributesAlias : Symbol(IntrinsicClassAttributesAlias, Decl(index.d.ts, 0, 0)) +>T : Symbol(T, Decl(index.d.ts, 4, 34)) +} +=== tests/cases/compiler/node_modules/@types/react/jsx-runtime.d.ts === +import './'; +No type information for this code.=== tests/cases/compiler/node_modules/@types/react/jsx-dev-runtime.d.ts === +import './'; +No type information for this code. +No type information for this code. \ No newline at end of file diff --git a/tests/baselines/reference/jsxClassAttributeResolution.types b/tests/baselines/reference/jsxClassAttributeResolution.types new file mode 100644 index 00000000000..4a5c208a849 --- /dev/null +++ b/tests/baselines/reference/jsxClassAttributeResolution.types @@ -0,0 +1,25 @@ +=== tests/cases/compiler/file.tsx === +class App {} +>App : App + +export const a = ; +>a : any +> : any +>App : typeof App +>App : typeof App + +=== tests/cases/compiler/node_modules/@types/react/index.d.ts === +interface IntrinsicClassAttributesAlias { + ref: T +>ref : T +} +declare namespace JSX { + type IntrinsicClassAttributes = IntrinsicClassAttributesAlias +>IntrinsicClassAttributes : IntrinsicClassAttributes +} +=== tests/cases/compiler/node_modules/@types/react/jsx-runtime.d.ts === +import './'; +No type information for this code.=== tests/cases/compiler/node_modules/@types/react/jsx-dev-runtime.d.ts === +import './'; +No type information for this code. +No type information for this code. \ No newline at end of file diff --git a/tests/baselines/reference/jsxIntrinsicElementsCompatability.js b/tests/baselines/reference/jsxIntrinsicElementsCompatability.js new file mode 100644 index 00000000000..4381071491d --- /dev/null +++ b/tests/baselines/reference/jsxIntrinsicElementsCompatability.js @@ -0,0 +1,24 @@ +//// [jsxIntrinsicElementsCompatability.tsx] +/// +import * as React from "react"; +function SomeComponent(props: { element?: T } & JSX.IntrinsicElements[T]): JSX.Element { + // Just so the return value is RectElement, the rendered element doesnt matter + return

+} + +function Test(el: T) { + return +} + +//// [jsxIntrinsicElementsCompatability.js] +"use strict"; +exports.__esModule = true; +/// +var React = require("react"); +function SomeComponent(props) { + // Just so the return value is RectElement, the rendered element doesnt matter + return React.createElement("div", null); +} +function Test(el) { + return React.createElement(SomeComponent, { element: el }); +} diff --git a/tests/baselines/reference/jsxIntrinsicElementsCompatability.symbols b/tests/baselines/reference/jsxIntrinsicElementsCompatability.symbols new file mode 100644 index 00000000000..86da5d624ac --- /dev/null +++ b/tests/baselines/reference/jsxIntrinsicElementsCompatability.symbols @@ -0,0 +1,33 @@ +=== tests/cases/compiler/jsxIntrinsicElementsCompatability.tsx === +/// +import * as React from "react"; +>React : Symbol(React, Decl(jsxIntrinsicElementsCompatability.tsx, 1, 6)) + +function SomeComponent(props: { element?: T } & JSX.IntrinsicElements[T]): JSX.Element { +>SomeComponent : Symbol(SomeComponent, Decl(jsxIntrinsicElementsCompatability.tsx, 1, 31)) +>T : Symbol(T, Decl(jsxIntrinsicElementsCompatability.tsx, 2, 23)) +>props : Symbol(props, Decl(jsxIntrinsicElementsCompatability.tsx, 2, 49)) +>element : Symbol(element, Decl(jsxIntrinsicElementsCompatability.tsx, 2, 57)) +>T : Symbol(T, Decl(jsxIntrinsicElementsCompatability.tsx, 2, 23)) +>JSX : Symbol(JSX, Decl(react16.d.ts, 2493, 12)) +>IntrinsicElements : Symbol(JSX.IntrinsicElements, Decl(react16.d.ts, 2514, 86)) +>T : Symbol(T, Decl(jsxIntrinsicElementsCompatability.tsx, 2, 23)) +>JSX : Symbol(JSX, Decl(react16.d.ts, 2493, 12)) +>Element : Symbol(JSX.Element, Decl(react16.d.ts, 2494, 23)) + + // Just so the return value is RectElement, the rendered element doesnt matter + return
+>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2546, 114)) +} + +function Test(el: T) { +>Test : Symbol(Test, Decl(jsxIntrinsicElementsCompatability.tsx, 5, 1)) +>T : Symbol(T, Decl(jsxIntrinsicElementsCompatability.tsx, 7, 14)) +>el : Symbol(el, Decl(jsxIntrinsicElementsCompatability.tsx, 7, 40)) +>T : Symbol(T, Decl(jsxIntrinsicElementsCompatability.tsx, 7, 14)) + + return +>SomeComponent : Symbol(SomeComponent, Decl(jsxIntrinsicElementsCompatability.tsx, 1, 31)) +>element : Symbol(element, Decl(jsxIntrinsicElementsCompatability.tsx, 8, 25)) +>el : Symbol(el, Decl(jsxIntrinsicElementsCompatability.tsx, 7, 40)) +} diff --git a/tests/baselines/reference/jsxIntrinsicElementsCompatability.types b/tests/baselines/reference/jsxIntrinsicElementsCompatability.types new file mode 100644 index 00000000000..e0479dae19e --- /dev/null +++ b/tests/baselines/reference/jsxIntrinsicElementsCompatability.types @@ -0,0 +1,28 @@ +=== tests/cases/compiler/jsxIntrinsicElementsCompatability.tsx === +/// +import * as React from "react"; +>React : typeof React + +function SomeComponent(props: { element?: T } & JSX.IntrinsicElements[T]): JSX.Element { +>SomeComponent : (props: { element?: T;} & JSX.IntrinsicElements[T]) => JSX.Element +>props : { element?: T | undefined; } & JSX.IntrinsicElements[T] +>element : T | undefined +>JSX : any +>JSX : any + + // Just so the return value is RectElement, the rendered element doesnt matter + return
+>
: JSX.Element +>div : any +} + +function Test(el: T) { +>Test : (el: T) => JSX.Element +>el : T + + return +> : JSX.Element +>SomeComponent : (props: { element?: T | undefined; } & JSX.IntrinsicElements[T]) => JSX.Element +>element : T +>el : T +} diff --git a/tests/baselines/reference/jsxNamespacePrefixIntrinsics.errors.txt b/tests/baselines/reference/jsxNamespacePrefixIntrinsics.errors.txt index f7142133ebe..22bacb161c5 100644 --- a/tests/baselines/reference/jsxNamespacePrefixIntrinsics.errors.txt +++ b/tests/baselines/reference/jsxNamespacePrefixIntrinsics.errors.txt @@ -1,6 +1,6 @@ tests/cases/compiler/jsxNamespacePrefixIntrinsics.tsx(15,18): error TS2339: Property 'element' does not exist on type 'JSX.IntrinsicElements'. tests/cases/compiler/jsxNamespacePrefixIntrinsics.tsx(16,30): error TS2322: Type '{ attribute: string; }' is not assignable to type '{ "ns:attribute": string; }'. - Property 'attribute' does not exist on type '{ "ns:attribute": string; }'. + Property 'attribute' does not exist on type '{ "ns:attribute": string; }'. Did you mean '"ns:attribute"'? tests/cases/compiler/jsxNamespacePrefixIntrinsics.tsx(17,30): error TS2322: Type '{ "ns:invalid": string; }' is not assignable to type '{ "ns:attribute": string; }'. Property 'ns:invalid' does not exist on type '{ "ns:attribute": string; }'. @@ -26,7 +26,7 @@ tests/cases/compiler/jsxNamespacePrefixIntrinsics.tsx(17,30): error TS2322: Type const invalid2 = ; ~~~~~~~~~ !!! error TS2322: Type '{ attribute: string; }' is not assignable to type '{ "ns:attribute": string; }'. -!!! error TS2322: Property 'attribute' does not exist on type '{ "ns:attribute": string; }'. +!!! error TS2322: Property 'attribute' does not exist on type '{ "ns:attribute": string; }'. Did you mean '"ns:attribute"'? const invalid3 = ; ~~~~~~~~~~ !!! error TS2322: Type '{ "ns:invalid": string; }' is not assignable to type '{ "ns:attribute": string; }'. diff --git a/tests/baselines/reference/jsxSpreadOverwritesAttributeStrict.errors.txt b/tests/baselines/reference/jsxSpreadOverwritesAttributeStrict.errors.txt index fefbc6cac4d..9d751ce2216 100644 --- a/tests/baselines/reference/jsxSpreadOverwritesAttributeStrict.errors.txt +++ b/tests/baselines/reference/jsxSpreadOverwritesAttributeStrict.errors.txt @@ -6,13 +6,12 @@ tests/cases/conformance/jsx/file.tsx(20,23): error TS2783: 'b' is specified more tests/cases/conformance/jsx/file.tsx(21,17): error TS2783: 'a' is specified more than once, so this usage will be overwritten. tests/cases/conformance/jsx/file.tsx(21,23): error TS2783: 'd' is specified more than once, so this usage will be overwritten. tests/cases/conformance/jsx/file.tsx(22,17): error TS2783: 'a' is specified more than once, so this usage will be overwritten. -tests/cases/conformance/jsx/file.tsx(22,17): error TS2783: 'a' is specified more than once, so this usage will be overwritten. tests/cases/conformance/jsx/file.tsx(22,23): error TS2783: 'd' is specified more than once, so this usage will be overwritten. !!! error TS2318: Cannot find global type 'CallableFunction'. !!! error TS2318: Cannot find global type 'NewableFunction'. -==== tests/cases/conformance/jsx/file.tsx (8 errors) ==== +==== tests/cases/conformance/jsx/file.tsx (7 errors) ==== import React = require('react'); interface Props { @@ -53,9 +52,6 @@ tests/cases/conformance/jsx/file.tsx(22,23): error TS2783: 'd' is specified more ~~~~~ !!! error TS2783: 'a' is specified more than once, so this usage will be overwritten. !!! related TS2785 tests/cases/conformance/jsx/file.tsx:22:29: This spread always overwrites this property. - ~~~~~ -!!! error TS2783: 'a' is specified more than once, so this usage will be overwritten. -!!! related TS2785 tests/cases/conformance/jsx/file.tsx:22:40: This spread always overwrites this property. ~~~~~ !!! error TS2783: 'd' is specified more than once, so this usage will be overwritten. !!! related TS2785 tests/cases/conformance/jsx/file.tsx:22:40: This spread always overwrites this property. diff --git a/tests/baselines/reference/keyofAndIndexedAccess.js b/tests/baselines/reference/keyofAndIndexedAccess.js index f7c34bdb332..5b4210c1f82 100644 --- a/tests/baselines/reference/keyofAndIndexedAccess.js +++ b/tests/baselines/reference/keyofAndIndexedAccess.js @@ -1115,10 +1115,10 @@ declare class Item { declare class Options { visible: "yes" | "no"; } -declare type Dictionary = { +type Dictionary = { [x: string]: T; }; -declare type NumericallyIndexed = { +type NumericallyIndexed = { [x: number]: T; }; declare const enum E { @@ -1126,47 +1126,47 @@ declare const enum E { B = 1, C = 2 } -declare type K00 = keyof any; -declare type K01 = keyof string; -declare type K02 = keyof number; -declare type K03 = keyof boolean; -declare type K04 = keyof void; -declare type K05 = keyof undefined; -declare type K06 = keyof null; -declare type K07 = keyof never; -declare type K08 = keyof unknown; -declare type K10 = keyof Shape; -declare type K11 = keyof Shape[]; -declare type K12 = keyof Dictionary; -declare type K13 = keyof {}; -declare type K14 = keyof Object; -declare type K15 = keyof E; -declare type K16 = keyof [string, number]; -declare type K17 = keyof (Shape | Item); -declare type K18 = keyof (Shape & Item); -declare type K19 = keyof NumericallyIndexed; -declare type KeyOf = keyof T; -declare type K20 = KeyOf; -declare type K21 = KeyOf>; -declare type NAME = "name"; -declare type WIDTH_OR_HEIGHT = "width" | "height"; -declare type Q10 = Shape["name"]; -declare type Q11 = Shape["width" | "height"]; -declare type Q12 = Shape["name" | "visible"]; -declare type Q20 = Shape[NAME]; -declare type Q21 = Shape[WIDTH_OR_HEIGHT]; -declare type Q30 = [string, number][0]; -declare type Q31 = [string, number][1]; -declare type Q32 = [string, number][number]; -declare type Q33 = [string, number][E.A]; -declare type Q34 = [string, number][E.B]; -declare type Q35 = [string, number]["0"]; -declare type Q36 = [string, number]["1"]; -declare type Q40 = (Shape | Options)["visible"]; -declare type Q41 = (Shape & Options)["visible"]; -declare type Q50 = Dictionary["howdy"]; -declare type Q51 = Dictionary[123]; -declare type Q52 = Dictionary[E.B]; +type K00 = keyof any; +type K01 = keyof string; +type K02 = keyof number; +type K03 = keyof boolean; +type K04 = keyof void; +type K05 = keyof undefined; +type K06 = keyof null; +type K07 = keyof never; +type K08 = keyof unknown; +type K10 = keyof Shape; +type K11 = keyof Shape[]; +type K12 = keyof Dictionary; +type K13 = keyof {}; +type K14 = keyof Object; +type K15 = keyof E; +type K16 = keyof [string, number]; +type K17 = keyof (Shape | Item); +type K18 = keyof (Shape & Item); +type K19 = keyof NumericallyIndexed; +type KeyOf = keyof T; +type K20 = KeyOf; +type K21 = KeyOf>; +type NAME = "name"; +type WIDTH_OR_HEIGHT = "width" | "height"; +type Q10 = Shape["name"]; +type Q11 = Shape["width" | "height"]; +type Q12 = Shape["name" | "visible"]; +type Q20 = Shape[NAME]; +type Q21 = Shape[WIDTH_OR_HEIGHT]; +type Q30 = [string, number][0]; +type Q31 = [string, number][1]; +type Q32 = [string, number][number]; +type Q33 = [string, number][E.A]; +type Q34 = [string, number][E.B]; +type Q35 = [string, number]["0"]; +type Q36 = [string, number]["1"]; +type Q40 = (Shape | Options)["visible"]; +type Q41 = (Shape & Options)["visible"]; +type Q50 = Dictionary["howdy"]; +type Q51 = Dictionary[123]; +type Q52 = Dictionary[E.B]; declare let cond: boolean; declare function getProperty(obj: T, key: K): T[K]; declare function setProperty(obj: T, key: K, value: T[K]): void; @@ -1231,7 +1231,7 @@ declare class C1 { set(key: K, value: this[K]): void; foo(): void; } -declare type S2 = { +type S2 = { a: string; b: string; }; @@ -1256,7 +1256,7 @@ declare function path(obj: T, key1: K1): T[K1]; declare function path(obj: T, key1: K1, key2: K2): T[K1][K2]; declare function path(obj: T, key1: K1, key2: K2, key3: K3): T[K1][K2][K3]; declare function path(obj: any, ...keys: (string | number)[]): any; -declare type Thing = { +type Thing = { a: { x: number; y: string; @@ -1267,7 +1267,7 @@ declare function f1(thing: Thing): void; declare const assignTo2: (object: T, key1: K1, key2: K2) => (value: T[K1][K2]) => T[K1][K2]; declare function one(handler: (t: T) => void): T; declare var empty: unknown; -declare type Handlers = { +type Handlers = { [K in keyof T]: (t: T[K]) => void; }; declare function on(handlerHash: Handlers): T; @@ -1300,24 +1300,24 @@ interface R { p: number; } declare function f(p: K): void; -declare type MethodDescriptor = { +type MethodDescriptor = { name: string; args: any[]; returnValue: any; }; declare function dispatchMethod(name: M['name'], args: M['args']): M['returnValue']; -declare type SomeMethodDescriptor = { +type SomeMethodDescriptor = { name: "someMethod"; args: [string, number]; returnValue: string[]; }; declare let result: string[]; -declare type KeyTypes = "a" | "b"; +type KeyTypes = "a" | "b"; declare let MyThingy: { [key in KeyTypes]: string[]; }; declare function addToMyThingy(key: S): void; -declare type Handler = { +type Handler = { onChange: (name: keyof T) => void; }; declare function onChangeGenericFunction(handler: Handler extends SampleClass { brokenMethod(): void; } declare function f3>(t: T, k: K, tk: T[K]): void; -declare type Predicates = { +type Predicates = { [T in keyof TaggedRecord]: (variant: TaggedRecord[keyof TaggedRecord]) => variant is TaggedRecord[T]; }; -declare type Example = { [K in keyof T]: T[K]["prop"]; }; -declare type Result = Example<{ +type Result = Example<{ a: { prop: string; }; @@ -1375,15 +1375,15 @@ declare type Result = Example<{ prop: number; }; }>; -declare type Helper2 = { +type Helper2 = { [K in keyof T]: Extract; }; -declare type Example2 = { +type Example2 = { [K in keyof Helper2]: Helper2[K]["prop"]; }; -declare type Result2 = Example2<{ +type Result2 = Example2<{ 1: { prop: string; }; @@ -1391,18 +1391,18 @@ declare type Result2 = Example2<{ prop: number; }; }>; -declare type DBBoolTable = { +type DBBoolTable = { [k in K]: 0 | 1; }; declare enum Flag { FLAG_1 = "flag_1", FLAG_2 = "flag_2" } -declare type SimpleDBRecord = { +type SimpleDBRecord = { staticField: number; } & DBBoolTable; declare function getFlagsFromSimpleRecord(record: SimpleDBRecord, flags: Flag[]): SimpleDBRecord[Flag]; -declare type DynamicDBRecord = ({ +type DynamicDBRecord = ({ dynamicField: number; } | { dynamicField: string; @@ -1419,12 +1419,12 @@ declare class Unbounded { interface I7 { x: any; } -declare type Foo7 = T; +type Foo7 = T; declare function f7(type: K): Foo7; -declare type Dict = { +type Dict = { [key in T]: number; }; -declare type DictDict = { +type DictDict = { [key in V]: Dict; }; declare function ff1(dd: DictDict, k1: V, k2: T): number; diff --git a/tests/baselines/reference/keyofAndIndexedAccess.symbols b/tests/baselines/reference/keyofAndIndexedAccess.symbols index 277a012517b..c3bebb6c7d0 100644 --- a/tests/baselines/reference/keyofAndIndexedAccess.symbols +++ b/tests/baselines/reference/keyofAndIndexedAccess.symbols @@ -1933,9 +1933,9 @@ class SampleClass

{ >this.props : Symbol(SampleClass.props, Decl(keyofAndIndexedAccess.ts, 536, 22)) >this : Symbol(SampleClass, Decl(keyofAndIndexedAccess.ts, 532, 1)) >props : Symbol(SampleClass.props, Decl(keyofAndIndexedAccess.ts, 536, 22)) ->Object.freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>Object.freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >props : Symbol(props, Decl(keyofAndIndexedAccess.ts, 538, 16)) } } diff --git a/tests/baselines/reference/keyofAndIndexedAccess.types b/tests/baselines/reference/keyofAndIndexedAccess.types index fc4603b997f..13df0c25c6a 100644 --- a/tests/baselines/reference/keyofAndIndexedAccess.types +++ b/tests/baselines/reference/keyofAndIndexedAccess.types @@ -1876,9 +1876,9 @@ class SampleClass

{ >this : this >props : Readonly

>Object.freeze(props) : Readonly

}`]: () => T[P]; }; -declare type TG1 = Getters<{ +type TG1 = Getters<{ foo: string; bar: number; baz: { z: boolean; }; }>; -declare type PropDef = { +type PropDef = { name: K; type: T; }; -declare type TypeFromDefs> = { +type TypeFromDefs> = { [P in T as P['name']]: P['type']; }; -declare type TP1 = TypeFromDefs<{ +type TP1 = TypeFromDefs<{ name: 'a'; type: string; } | { @@ -196,26 +196,26 @@ declare type TP1 = TypeFromDefs<{ name: 'a'; type: boolean; }>; -declare type TA1 = Getters; -declare type TA2 = Getters<[number, boolean]>; -declare type Methods = { +type TA1 = Getters; +type TA2 = Getters<[number, boolean]>; +type Methods = { [P in keyof T as T[P] extends Function ? P : never]: T[P]; }; -declare type TM1 = Methods<{ +type TM1 = Methods<{ foo(): number; bar(x: string): boolean; baz: string | number; }>; -declare type DoubleProp = { +type DoubleProp = { [P in keyof T & string as `${P}1` | `${P}2`]: T[P]; }; -declare type TD1 = DoubleProp<{ +type TD1 = DoubleProp<{ a: string; b: number; }>; -declare type TD2 = keyof TD1; -declare type TD3 = keyof DoubleProp; -declare type Lazyify = { +type TD2 = keyof TD1; +type TD3 = keyof DoubleProp; +type Lazyify = { [K in keyof T as `get${Capitalize}`]: () => T[K]; }; interface Person { @@ -223,17 +223,17 @@ interface Person { age: number; location?: string; } -declare type LazyPerson = Lazyify; -declare type Example = { +type LazyPerson = Lazyify; +type Example = { foo: string; bar: number; }; -declare type PickByValueType = { +type PickByValueType = { [K in keyof T as T[K] extends U ? K : never]: T[K]; }; -declare type T1 = PickByValueType; +type T1 = PickByValueType; declare const e1: T1; -declare type T2 = keyof T1; +type T2 = keyof T1; declare const e2: T2; interface Car { name: string; @@ -249,39 +249,39 @@ interface Wheel { type: "summer" | "winter"; radius: number; } -declare type Primitive = string | number | boolean; -declare type OnlyPrimitives = { +type Primitive = string | number | boolean; +type OnlyPrimitives = { [K in keyof T as T[K] extends Primitive ? K : never]: T[K]; }; declare let primitiveCar: OnlyPrimitives; declare let keys: keyof OnlyPrimitives; -declare type KeysOfPrimitives = keyof OnlyPrimitives; +type KeysOfPrimitives = keyof OnlyPrimitives; declare let carKeys: KeysOfPrimitives; -declare type Equal = (() => T extends A ? 1 : 2) extends (() => T extends B ? 1 : 2) ? true : false; -declare type If = Cond extends true ? Then : Else; -declare type GetKey = keyof { +type Equal = (() => T extends A ? 1 : 2) extends (() => T extends B ? 1 : 2) ? true : false; +type If = Cond extends true ? Then : Else; +type GetKey = keyof { [TP in keyof S as Equal extends true ? TP : never]: any; }; -declare type GetKeyWithIf = keyof { +type GetKeyWithIf = keyof { [TP in keyof S as If, TP, never>]: any; }; -declare type GetObjWithIf = { +type GetObjWithIf = { [TP in keyof S as If, TP, never>]: any; }; -declare type Task = { +type Task = { isDone: boolean; }; -declare type Schema = { +type Schema = { root: { title: string; task: Task; }; Task: Task; }; -declare type Res1 = GetKey; -declare type Res2 = GetKeyWithIf; -declare type Res3 = keyof GetObjWithIf; -declare type KeysExtendedBy = keyof { +type Res1 = GetKey; +type Res2 = GetKeyWithIf; +type Res3 = keyof GetObjWithIf; +type KeysExtendedBy = keyof { [K in keyof T as U extends T[K] ? K : never]: T[K]; }; interface M { @@ -289,48 +289,48 @@ interface M { b: number; } declare function f(x: KeysExtendedBy): "b"; -declare type NameMap = { +type NameMap = { 'a': 'x'; 'b': 'y'; 'c': 'z'; }; -declare type TS0 = keyof { +type TS0 = keyof { [P in keyof T as keyof Record]: string; }; -declare type TS1 = keyof { +type TS1 = keyof { [P in keyof T as Extract]: string; }; -declare type TS2 = keyof { +type TS2 = keyof { [P in keyof T as P & ('a' | 'b' | 'c')]: string; }; -declare type TS3 = keyof { +type TS3 = keyof { [P in keyof T as Exclude]: string; }; -declare type TS4 = keyof { +type TS4 = keyof { [P in keyof T as NameMap[P & keyof NameMap]]: string; }; -declare type TS5 = keyof { +type TS5 = keyof { [P in keyof T & keyof NameMap as NameMap[P]]: string; }; -declare type TS6 = keyof { +type TS6 = keyof { [K in keyof T as V & (K extends U ? K : never)]: string; }; -declare type TN0 = keyof { +type TN0 = keyof { [P in keyof T as T[P] extends number ? P : never]: string; }; -declare type TN1 = keyof { +type TN1 = keyof { [P in keyof T as number extends T[P] ? P : never]: string; }; -declare type TN2 = keyof { +type TN2 = keyof { [P in keyof T as 'a' extends P ? 'x' : 'y']: string; }; -declare type TN3 = keyof { +type TN3 = keyof { [P in keyof T as Exclude, 'b'>, 'a'>]: string; }; -declare type TN4 = keyof { +type TN4 = keyof { [K in keyof T as (K extends U ? T[K] : never) extends T[K] ? K : never]: string; }; -declare type TN5 = keyof { +type TN5 = keyof { [K in keyof T as keyof { [P in K as T[P] extends U ? K : never]: true; }]: string; diff --git a/tests/baselines/reference/mappedTypeConstraints2.js b/tests/baselines/reference/mappedTypeConstraints2.js index 3237f1d8b81..442865e273a 100644 --- a/tests/baselines/reference/mappedTypeConstraints2.js +++ b/tests/baselines/reference/mappedTypeConstraints2.js @@ -74,25 +74,25 @@ function validate(obj, bounds) { //// [mappedTypeConstraints2.d.ts] -declare type Mapped1 = { +type Mapped1 = { [P in K]: { a: P; }; }; declare function f1(obj: Mapped1, key: K): void; -declare type Mapped2 = { +type Mapped2 = { [P in K as `get${P}`]: { a: P; }; }; declare function f2(obj: Mapped2, key: `get${K}`): void; -declare type Mapped3 = { +type Mapped3 = { [P in K as Uppercase

]: { a: P; }; }; declare function f3(obj: Mapped3, key: Uppercase): void; -declare type Foo = { +type Foo = { [RemappedT in T as `get${RemappedT}`]: RemappedT; }; declare const get: (t: T, foo: Foo) => T; @@ -100,7 +100,7 @@ interface Bounds { min: number; max: number; } -declare type NumericBoundsOf = { +type NumericBoundsOf = { [K in keyof T as T[K] extends number | undefined ? K : never]: Bounds; }; declare function validate(obj: T, bounds: NumericBoundsOf): boolean; diff --git a/tests/baselines/reference/mappedTypeErrors.js b/tests/baselines/reference/mappedTypeErrors.js index 276aeb76a1d..2b8b024abad 100644 --- a/tests/baselines/reference/mappedTypeErrors.js +++ b/tests/baselines/reference/mappedTypeErrors.js @@ -255,23 +255,23 @@ interface Point { x: number; y: number; } -declare type T00 = { +type T00 = { [P in P]: string; }; -declare type T01 = { +type T01 = { [P in number]: string; }; -declare type T02 = { +type T02 = { [P in Date]: number; }; -declare type T03 = Record; -declare type T10 = Pick; -declare type T11 = Pick; -declare type T12 = Pick; -declare type T13 = Pick; -declare type T14 = Pick; -declare type T15 = Pick; -declare type T16 = Pick; +type T03 = Record; +type T10 = Pick; +type T11 = Pick; +type T12 = Pick; +type T13 = Pick; +type T14 = Pick; +type T15 = Pick; +type T16 = Pick; declare function f1(x: T): void; declare function f2(x: T): void; declare function f3(x: T): void; @@ -294,7 +294,7 @@ declare class C { setState(props: Pick): void; } declare let c: C; -declare type T2 = { +type T2 = { a?: number; [key: string]: any; }; @@ -303,7 +303,7 @@ declare let x2: Partial; declare let x3: { [P in keyof T2]: T2[P]; }; -declare type Foo2 = { +type Foo2 = { pf: { [P in F]?: T[P]; }; @@ -311,7 +311,7 @@ declare type Foo2 = { [P in T]?: T[P]; }; }; -declare type O = { +type O = { x: number; y: boolean; }; diff --git a/tests/baselines/reference/mappedTypeErrors2.js b/tests/baselines/reference/mappedTypeErrors2.js index d9fc6b0bc72..d59d41db477 100644 --- a/tests/baselines/reference/mappedTypeErrors2.js +++ b/tests/baselines/reference/mappedTypeErrors2.js @@ -25,25 +25,25 @@ type T7 = {[key in AB[S]]: true}[L]; //// [mappedTypeErrors2.d.ts] -declare type AB = { +type AB = { a: 'a'; b: 'a'; }; -declare type T1 = { +type T1 = { [key in AB[K]]: true; }; -declare type T2 = T1[K]; -declare type R = AB[keyof AB]; -declare type T3 = { +type T2 = T1[K]; +type R = AB[keyof AB]; +type T3 = { [key in R]: true; }; -declare type T4 = T3[K]; -declare type T5 = { +type T4 = T3[K]; +type T5 = { [key in AB[S]]: true; }[S]; -declare type T6 = { +type T6 = { [key in AB[S]]: true; }[L]; -declare type T7 = { +type T7 = { [key in AB[S]]: true; }[L]; diff --git a/tests/baselines/reference/mappedTypeGenericIndexedAccess.js b/tests/baselines/reference/mappedTypeGenericIndexedAccess.js index a06d9b27218..17f0dfa3933 100644 --- a/tests/baselines/reference/mappedTypeGenericIndexedAccess.js +++ b/tests/baselines/reference/mappedTypeGenericIndexedAccess.js @@ -69,7 +69,7 @@ var onSomeEvent = function (p) { var _a; return (_a = typeHandlers[p.t]) === nul //// [mappedTypeGenericIndexedAccess.d.ts] -declare type Types = { +type Types = { first: { a1: true; }; @@ -87,7 +87,7 @@ declare class Test { constructor(); addEntry(name: T, entry: Types[T]): void; } -declare type TypesMap = { +type TypesMap = { [0]: { foo: 'bar'; }; @@ -95,10 +95,10 @@ declare type TypesMap = { a: 'b'; }; }; -declare type P = { +type P = { t: T; } & TypesMap[T]; -declare type TypeHandlers = { +type TypeHandlers = { [T in keyof TypesMap]?: (p: P) => void; }; declare const typeHandlers: TypeHandlers; diff --git a/tests/baselines/reference/mappedTypeGenericInstantiationPreservesHomomorphism.js b/tests/baselines/reference/mappedTypeGenericInstantiationPreservesHomomorphism.js index 2523efd3efe..aa5afe7ff43 100644 --- a/tests/baselines/reference/mappedTypeGenericInstantiationPreservesHomomorphism.js +++ b/tests/baselines/reference/mappedTypeGenericInstantiationPreservesHomomorphism.js @@ -30,7 +30,7 @@ exports.mappedUnionWithPrivateType = mappedUnionWithPrivateType; //// [internal.d.ts] export declare function usePrivateType(...args: T): PrivateMapped; -declare type PrivateMapped = { +type PrivateMapped = { [K in keyof Obj]: Obj[K]; }; export {}; diff --git a/tests/baselines/reference/mappedTypeOverlappingStringEnumKeys.types b/tests/baselines/reference/mappedTypeOverlappingStringEnumKeys.types index 21db5f8a35b..d6b729a965c 100644 --- a/tests/baselines/reference/mappedTypeOverlappingStringEnumKeys.types +++ b/tests/baselines/reference/mappedTypeOverlappingStringEnumKeys.types @@ -57,11 +57,11 @@ type CatMap = { const catMap: CatMap = { >catMap : CatMap ->{ cat: [ { type: TerrestrialAnimalTypes.CAT, address: "" }, { type: AlienAnimalTypes.CAT, planet: "" } ], dog: [] as never[]} : { cat: ({ type: TerrestrialAnimalTypes.CAT; address: string; } | { type: AlienAnimalTypes.CAT; planet: string; })[]; dog: never[]; } +>{ cat: [ { type: TerrestrialAnimalTypes.CAT, address: "" }, { type: AlienAnimalTypes.CAT, planet: "" } ], dog: [] as never[]} : { cat: ({ type: TerrestrialAnimalTypes.CAT; address: string; } | { type: AlienAnimalTypes; planet: string; })[]; dog: never[]; } cat: [ ->cat : ({ type: TerrestrialAnimalTypes.CAT; address: string; } | { type: AlienAnimalTypes.CAT; planet: string; })[] ->[ { type: TerrestrialAnimalTypes.CAT, address: "" }, { type: AlienAnimalTypes.CAT, planet: "" } ] : ({ type: TerrestrialAnimalTypes.CAT; address: string; } | { type: AlienAnimalTypes.CAT; planet: string; })[] +>cat : ({ type: TerrestrialAnimalTypes.CAT; address: string; } | { type: AlienAnimalTypes; planet: string; })[] +>[ { type: TerrestrialAnimalTypes.CAT, address: "" }, { type: AlienAnimalTypes.CAT, planet: "" } ] : ({ type: TerrestrialAnimalTypes.CAT; address: string; } | { type: AlienAnimalTypes; planet: string; })[] { type: TerrestrialAnimalTypes.CAT, address: "" }, >{ type: TerrestrialAnimalTypes.CAT, address: "" } : { type: TerrestrialAnimalTypes.CAT; address: string; } @@ -73,8 +73,8 @@ const catMap: CatMap = { >"" : "" { type: AlienAnimalTypes.CAT, planet: "" } ->{ type: AlienAnimalTypes.CAT, planet: "" } : { type: AlienAnimalTypes.CAT; planet: string; } ->type : AlienAnimalTypes.CAT +>{ type: AlienAnimalTypes.CAT, planet: "" } : { type: AlienAnimalTypes; planet: string; } +>type : AlienAnimalTypes >AlienAnimalTypes.CAT : AlienAnimalTypes >AlienAnimalTypes : typeof AlienAnimalTypes >CAT : AlienAnimalTypes diff --git a/tests/baselines/reference/mappedTypeProperties.js b/tests/baselines/reference/mappedTypeProperties.js index fce8364b0ce..6eb4f7411a2 100644 --- a/tests/baselines/reference/mappedTypeProperties.js +++ b/tests/baselines/reference/mappedTypeProperties.js @@ -69,4 +69,4 @@ var E = (_b = /** @class */ (function () { //// [mappedTypeProperties.d.ts] -export declare type PlaceType = 'openSky' | 'roofed' | 'garage'; +export type PlaceType = 'openSky' | 'roofed' | 'garage'; diff --git a/tests/baselines/reference/mappedTypeRelationships.js b/tests/baselines/reference/mappedTypeRelationships.js index deb240454c3..69b94ca81e5 100644 --- a/tests/baselines/reference/mappedTypeRelationships.js +++ b/tests/baselines/reference/mappedTypeRelationships.js @@ -343,7 +343,7 @@ declare function f20(x: T, y: Readonly, k: keyof T): void; declare function f21(x: T, y: Readonly, k: K): void; declare function f22(x: T, y: Readonly, k: keyof T): void; declare function f23(x: T, y: Readonly, k: K): void; -declare type Thing = { +type Thing = { a: string; b: string; }; @@ -351,22 +351,22 @@ declare function f30(x: T, y: Partial): void; declare function f31(x: Partial, y: Partial): void; declare function f40(x: T, y: Readonly): void; declare function f41(x: Readonly, y: Readonly): void; -declare type Item = { +type Item = { name: string; }; -declare type ItemMap = { +type ItemMap = { [x: string]: Item; }; declare function f50(obj: T, key: keyof T): string; declare function f51(obj: T, key: K): string; -declare type T1 = { +type T1 = { [P in keyof T]: T[P]; }; -declare type T2 = { +type T2 = { [P in keyof T]: T[P]; }; declare function f60(x: T1, y: T2): void; -declare type Identity = { +type Identity = { [P in keyof T]: T[P]; }; declare function f61(x: Identity, y: Partial): void; @@ -409,7 +409,7 @@ declare function f76(x: { declare function f80(t: T): Partial; declare function f81(t: T, k: K): Partial; declare function f82(t: T, k1: K1, k2: K2): Partial; -declare type Numeric = { +type Numeric = { [K in keyof T]?: number; }; declare function f90 = { +type ItemMap = { [P in keyof T]: Item; }; declare let x0: keyof any; @@ -97,20 +97,20 @@ declare let x3: { [P in keyof any]: Item; }; declare let x4: ItemMap; -declare type Data = { +type Data = { value: string; }; -declare type StrictDataMap = { +type StrictDataMap = { [P in keyof T]: Data; }; declare let z: StrictDataMap; -declare type Arrayish = { +type Arrayish = { [K in keyof T]: T[K]; }; -declare type Objectish = { +type Objectish = { [K in keyof T]: T[K]; }; -declare type IndirectArrayish = Objectish; +type IndirectArrayish = Objectish; declare function bar(arrayish: Arrayish, objectish: Objectish, indirectArrayish: IndirectArrayish): void; declare function stringifyArray(arr: T): { -readonly [K in keyof T]: string; @@ -120,9 +120,9 @@ declare function stringifyPair(arr: T): { -readonly [K in keyof T]: string; }; declare let def: [any, any]; -declare type Evolvable = { +type Evolvable = { [P in keyof E]: never; }; -declare type Evolver = any> = { +type Evolver = any> = { [key in keyof Partial]: never; }; diff --git a/tests/baselines/reference/mappedTypeWithAsClauseAndLateBoundProperty.errors.txt b/tests/baselines/reference/mappedTypeWithAsClauseAndLateBoundProperty.errors.txt index 39ef006ce8c..5fb49e0dd99 100644 --- a/tests/baselines/reference/mappedTypeWithAsClauseAndLateBoundProperty.errors.txt +++ b/tests/baselines/reference/mappedTypeWithAsClauseAndLateBoundProperty.errors.txt @@ -7,5 +7,5 @@ tests/cases/compiler/mappedTypeWithAsClauseAndLateBoundProperty.ts(3,1): error T tgt2 = src2; // Should error ~~~~ !!! error TS2741: Property 'length' is missing in type '{ [x: number]: number; toString: () => string; toLocaleString: () => string; pop: () => number; push: (...items: number[]) => number; concat: { (...items: ConcatArray[]): number[]; (...items: (number | ConcatArray)[]): number[]; }; join: (separator?: string) => string; reverse: () => number[]; shift: () => number; slice: (start?: number, end?: number) => number[]; sort: (compareFn?: (a: number, b: number) => number) => number[]; splice: { (start: number, deleteCount?: number): number[]; (start: number, deleteCount: number, ...items: number[]): number[]; }; unshift: (...items: number[]) => number; indexOf: (searchElement: number, fromIndex?: number) => number; lastIndexOf: (searchElement: number, fromIndex?: number) => number; every: { (predicate: (value: number, index: number, array: number[]) => value is S, thisArg?: any): this is S[]; (predicate: (value: number, index: number, array: number[]) => unknown, thisArg?: any): boolean; }; some: (predicate: (value: number, index: number, array: number[]) => unknown, thisArg?: any) => boolean; forEach: (callbackfn: (value: number, index: number, array: number[]) => void, thisArg?: any) => void; map: (callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[]; filter: { (predicate: (value: number, index: number, array: number[]) => value is S, thisArg?: any): S[]; (predicate: (value: number, index: number, array: number[]) => unknown, thisArg?: any): number[]; }; reduce: { (callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: number[]) => number): number; (callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: number[]) => number, initialValue: number): number; (callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: number[]) => U, initialValue: U): U; }; reduceRight: { (callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: number[]) => number): number; (callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: number[]) => number, initialValue: number): number; (callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: number[]) => U, initialValue: U): U; }; find: { (predicate: (this: void, value: number, index: number, obj: number[]) => value is S, thisArg?: any): S; (predicate: (value: number, index: number, obj: number[]) => unknown, thisArg?: any): number; }; findIndex: (predicate: (value: number, index: number, obj: number[]) => unknown, thisArg?: any) => number; fill: (value: number, start?: number, end?: number) => number[]; copyWithin: (target: number, start: number, end?: number) => number[]; entries: () => IterableIterator<[number, number]>; keys: () => IterableIterator; values: () => IterableIterator; includes: (searchElement: number, fromIndex?: number) => boolean; flatMap: (callback: (this: This, value: number, index: number, array: number[]) => U | readonly U[], thisArg?: This) => U[]; flat: (this: A, depth?: D) => FlatArray[]; [iterator]: () => IterableIterator; [unscopables]: () => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; }; }' but required in type 'number[]'. -!!! related TS2728 /.ts/lib.es5.d.ts:1291:5: 'length' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1299:5: 'length' is declared here. \ No newline at end of file diff --git a/tests/baselines/reference/mappedTypes1.js b/tests/baselines/reference/mappedTypes1.js index 67a7b8db9b2..dbdd537c17f 100644 --- a/tests/baselines/reference/mappedTypes1.js +++ b/tests/baselines/reference/mappedTypes1.js @@ -47,78 +47,78 @@ var x4 = f4(); //// [mappedTypes1.d.ts] -declare type Item = { +type Item = { a: string; b: number; c: boolean; }; -declare type T00 = { +type T00 = { [P in "x" | "y"]: number; }; -declare type T01 = { +type T01 = { [P in "x" | "y"]: P; }; -declare type T02 = { +type T02 = { [P in "a" | "b"]: Item[P]; }; -declare type T03 = { +type T03 = { [P in keyof Item]: Date; }; -declare type T10 = { +type T10 = { [P in keyof Item]: Item[P]; }; -declare type T11 = { +type T11 = { [P in keyof Item]?: Item[P]; }; -declare type T12 = { +type T12 = { readonly [P in keyof Item]: Item[P]; }; -declare type T13 = { +type T13 = { readonly [P in keyof Item]?: Item[P]; }; -declare type T20 = { +type T20 = { [P in keyof Item]: Item[P] | null; }; -declare type T21 = { +type T21 = { [P in keyof Item]: Array; }; -declare type T30 = { +type T30 = { [P in keyof any]: void; }; -declare type T31 = { +type T31 = { [P in keyof string]: void; }; -declare type T32 = { +type T32 = { [P in keyof number]: void; }; -declare type T33 = { +type T33 = { [P in keyof boolean]: void; }; -declare type T34 = { +type T34 = { [P in keyof undefined]: void; }; -declare type T35 = { +type T35 = { [P in keyof null]: void; }; -declare type T36 = { +type T36 = { [P in keyof void]: void; }; -declare type T37 = { +type T37 = { [P in keyof symbol]: void; }; -declare type T38 = { +type T38 = { [P in keyof never]: void; }; -declare type T40 = { +type T40 = { [P in string]: void; }; -declare type T43 = { +type T43 = { [P in "a" | "b"]: void; }; -declare type T44 = { +type T44 = { [P in "a" | "b" | "0" | "1"]: void; }; -declare type T47 = { +type T47 = { [P in string | "a" | "b" | "0" | "1"]: void; }; declare function f1(): { diff --git a/tests/baselines/reference/mappedTypes2.js b/tests/baselines/reference/mappedTypes2.js index 4122cf575c6..708447e0b3e 100644 --- a/tests/baselines/reference/mappedTypes2.js +++ b/tests/baselines/reference/mappedTypes2.js @@ -139,14 +139,14 @@ function f6(shape) { //// [mappedTypes2.d.ts] declare function verifyLibTypes(): void; -declare type Proxy = { +type Proxy = { get(): T; set(value: T): void; }; -declare type Proxify = { +type Proxify = { [P in keyof T]: Proxy; }; -declare type DeepReadonly = { +type DeepReadonly = { readonly [P in keyof T]: DeepReadonly; }; declare function assign(obj: T, props: Partial): void; diff --git a/tests/baselines/reference/mappedTypes3.js b/tests/baselines/reference/mappedTypes3.js index cac0e915b1b..8b5892f66a1 100644 --- a/tests/baselines/reference/mappedTypes3.js +++ b/tests/baselines/reference/mappedTypes3.js @@ -65,7 +65,7 @@ function f3(bb) { declare class Box

{ value: P; } -declare type Boxified = { +type Boxified = { [K in keyof T]: Box; }; declare function boxify(obj: T): Boxified; diff --git a/tests/baselines/reference/mappedTypes4.js b/tests/baselines/reference/mappedTypes4.js index 6237476906a..86784695922 100644 --- a/tests/baselines/reference/mappedTypes4.js +++ b/tests/baselines/reference/mappedTypes4.js @@ -63,7 +63,7 @@ var x1: DeepReadonlyFoo; type Z = { a: number }; type Clone = { - [P in keyof (T & {})]: T[P]; + [P in keyof (T & {})]: (T & {})[P]; }; type M = Clone; // M should be { a: number } @@ -92,37 +92,37 @@ var z1; //// [mappedTypes4.d.ts] -declare type Box = {}; -declare type Boxified = { +type Box = {}; +type Boxified = { [P in keyof T]: Box; }; declare function boxify(obj: T): Boxified; -declare type A = { +type A = { a: string; }; -declare type B = { +type B = { b: string; }; -declare type C = { +type C = { c: string; }; declare function f1(x: A | B | C | undefined): Boxified; -declare type T00 = Partial; -declare type T01 = Readonly; -declare type T02 = Boxified; -declare type T03 = Readonly; -declare type T04 = Boxified; -declare type T05 = Partial<"hello" | "world" | 42>; -declare type BoxifiedWithSentinel = { +type T00 = Partial; +type T01 = Readonly; +type T02 = Boxified; +type T03 = Readonly; +type T04 = Boxified; +type T05 = Partial<"hello" | "world" | 42>; +type BoxifiedWithSentinel = { [P in keyof T]: Box | U; }; -declare type T10 = BoxifiedWithSentinel; -declare type T11 = BoxifiedWithSentinel; -declare type T12 = BoxifiedWithSentinel; -declare type DeepReadonly = { +type T10 = BoxifiedWithSentinel; +type T11 = BoxifiedWithSentinel; +type T12 = BoxifiedWithSentinel; +type DeepReadonly = { readonly [P in keyof T]: DeepReadonly; }; -declare type Foo = { +type Foo = { x: number; y: { a: string; @@ -130,7 +130,7 @@ declare type Foo = { }; z: boolean; }; -declare type DeepReadonlyFoo = { +type DeepReadonlyFoo = { readonly x: number; readonly y: { readonly a: string; @@ -140,12 +140,12 @@ declare type DeepReadonlyFoo = { }; declare var x1: DeepReadonly; declare var x1: DeepReadonlyFoo; -declare type Z = { +type Z = { a: number; }; -declare type Clone = { - [P in keyof (T & {})]: T[P]; +type Clone = { + [P in keyof (T & {})]: (T & {})[P]; }; -declare type M = Clone; +type M = Clone; declare var z1: Z; declare var z1: Clone; diff --git a/tests/baselines/reference/mappedTypes4.symbols b/tests/baselines/reference/mappedTypes4.symbols index 487f91c214e..e4c6e6872b3 100644 --- a/tests/baselines/reference/mappedTypes4.symbols +++ b/tests/baselines/reference/mappedTypes4.symbols @@ -205,7 +205,7 @@ type Clone = { >Clone : Symbol(Clone, Decl(mappedTypes4.ts, 62, 23)) >T : Symbol(T, Decl(mappedTypes4.ts, 63, 11)) - [P in keyof (T & {})]: T[P]; + [P in keyof (T & {})]: (T & {})[P]; >P : Symbol(P, Decl(mappedTypes4.ts, 64, 3)) >T : Symbol(T, Decl(mappedTypes4.ts, 63, 11)) >T : Symbol(T, Decl(mappedTypes4.ts, 63, 11)) diff --git a/tests/baselines/reference/mappedTypes4.types b/tests/baselines/reference/mappedTypes4.types index b51aefa9cce..81e5b163d46 100644 --- a/tests/baselines/reference/mappedTypes4.types +++ b/tests/baselines/reference/mappedTypes4.types @@ -160,10 +160,10 @@ type Z = { a: number }; type Clone = { >Clone : Clone - [P in keyof (T & {})]: T[P]; + [P in keyof (T & {})]: (T & {})[P]; }; type M = Clone; // M should be { a: number } ->M : Clone +>M : { a: number; } var z1: Z; >z1 : Z diff --git a/tests/baselines/reference/mappedTypes6.js b/tests/baselines/reference/mappedTypes6.js index b24d210eb75..e9b319ee8ad 100644 --- a/tests/baselines/reference/mappedTypes6.js +++ b/tests/baselines/reference/mappedTypes6.js @@ -198,65 +198,65 @@ x5.b = 1; //// [mappedTypes6.d.ts] -declare type T00 = { +type T00 = { [P in keyof T]: T[P]; }; -declare type T01 = { +type T01 = { [P in keyof T]?: T[P]; }; -declare type T02 = { +type T02 = { [P in keyof T]+?: T[P]; }; -declare type T03 = { +type T03 = { [P in keyof T]-?: T[P]; }; -declare type T04 = { +type T04 = { readonly [P in keyof T]: T[P]; }; -declare type T05 = { +type T05 = { readonly [P in keyof T]?: T[P]; }; -declare type T06 = { +type T06 = { readonly [P in keyof T]+?: T[P]; }; -declare type T07 = { +type T07 = { readonly [P in keyof T]-?: T[P]; }; -declare type T08 = { +type T08 = { +readonly [P in keyof T]: T[P]; }; -declare type T09 = { +type T09 = { +readonly [P in keyof T]?: T[P]; }; -declare type T10 = { +type T10 = { +readonly [P in keyof T]+?: T[P]; }; -declare type T11 = { +type T11 = { +readonly [P in keyof T]-?: T[P]; }; -declare type T12 = { +type T12 = { -readonly [P in keyof T]: T[P]; }; -declare type T13 = { +type T13 = { -readonly [P in keyof T]?: T[P]; }; -declare type T14 = { +type T14 = { -readonly [P in keyof T]+?: T[P]; }; -declare type T15 = { +type T15 = { -readonly [P in keyof T]-?: T[P]; }; declare function f1(x: Required, y: T, z: Partial): void; -declare type Denullified = { +type Denullified = { [P in keyof T]-?: NonNullable; }; declare function f2(w: Denullified, x: Required, y: T, z: Partial): void; declare function f3(w: Denullified, x: Required, y: T, z: Partial): void; -declare type Readwrite = { +type Readwrite = { -readonly [P in keyof T]: T[P]; }; declare function f10(x: Readonly, y: T, z: Readwrite): void; -declare type Foo = { +type Foo = { a: number; b: number | undefined; c?: number; @@ -264,7 +264,7 @@ declare type Foo = { }; declare let x1: Foo; declare let x2: Required; -declare type Bar = { +type Bar = { a: number; readonly b: number; }; diff --git a/tests/baselines/reference/mappedTypesArraysTuples.js b/tests/baselines/reference/mappedTypesArraysTuples.js index 16459b6d6c2..63f180a5f6a 100644 --- a/tests/baselines/reference/mappedTypesArraysTuples.js +++ b/tests/baselines/reference/mappedTypesArraysTuples.js @@ -125,44 +125,44 @@ function acceptMappedArray(arr) { //// [mappedTypesArraysTuples.d.ts] -declare type Box = { +type Box = { value: T; }; -declare type Boxified = { +type Boxified = { [P in keyof T]: Box; }; -declare type T00 = Boxified<[number, string?, ...boolean[]]>; -declare type T01 = Partial<[number, string?, ...boolean[]]>; -declare type T02 = Required<[number, string?, ...boolean[]]>; -declare type T10 = Boxified; -declare type T11 = Partial; -declare type T12 = Required; -declare type T13 = Boxified>; -declare type T14 = Partial>; -declare type T15 = Required>; -declare type T20 = Boxified<(string | undefined)[]>; -declare type T21 = Partial<(string | undefined)[]>; -declare type T22 = Required<(string | undefined)[]>; -declare type T23 = Boxified>; -declare type T24 = Partial>; -declare type T25 = Required>; -declare type T30 = Boxified>; -declare type T31 = Partial>; -declare type A = { +type T00 = Boxified<[number, string?, ...boolean[]]>; +type T01 = Partial<[number, string?, ...boolean[]]>; +type T02 = Required<[number, string?, ...boolean[]]>; +type T10 = Boxified; +type T11 = Partial; +type T12 = Required; +type T13 = Boxified>; +type T14 = Partial>; +type T15 = Required>; +type T20 = Boxified<(string | undefined)[]>; +type T21 = Partial<(string | undefined)[]>; +type T22 = Required<(string | undefined)[]>; +type T23 = Boxified>; +type T24 = Partial>; +type T25 = Required>; +type T30 = Boxified>; +type T31 = Partial>; +type A = { a: string; }; -declare type B = { +type B = { b: string; }; -declare type T40 = Boxified | [A, B] | string | string[]>; -declare type ReadWrite = { +type T40 = Boxified | [A, B] | string | string[]>; +type ReadWrite = { -readonly [P in keyof T]: T[P]; }; -declare type T50 = Readonly; -declare type T51 = Readonly<[number, number]>; -declare type T52 = Partial>; -declare type T53 = Readonly>; -declare type T54 = ReadWrite>; +type T50 = Readonly; +type T51 = Readonly<[number, number]>; +type T52 = Partial>; +type T53 = Readonly>; +type T54 = ReadWrite>; declare function unboxify(x: Boxified): T; declare let x10: [Box, Box, ...Box[]]; declare let y10: [number, string, ...boolean[]]; @@ -189,24 +189,24 @@ declare let y22: { a: number; b: string[]; }; -declare type __Awaited = T extends PromiseLike ? U : T; -declare type Awaitified = { +type __Awaited = T extends PromiseLike ? U : T; +type Awaitified = { [P in keyof T]: __Awaited; }; declare function all(...values: T): Promise>; declare function f1(a: number, b: Promise, c: string[], d: Promise): void; declare function f2(a: Boxified): void; -declare type ElementType = T extends Array ? U : never; -declare type Mapped = { +type ElementType = T extends Array ? U : never; +type Mapped = { [K in keyof T]: T[K]; }; -declare type F = ElementType>; -declare type R1 = F<[string, number, boolean]>; -declare type R2 = ElementType>; +type F = ElementType>; +type R1 = F<[string, number, boolean]>; +type R2 = ElementType>; declare function acceptArray(arr: any[]): void; declare function mapArray(arr: T): Mapped; declare function acceptMappedArray(arr: T): void; -declare type Unconstrained = ElementType>; -declare type T1 = Unconstrained<[string, number, boolean]>; -declare type Constrained = ElementType>; -declare type T2 = Constrained<[string, number, boolean]>; +type Unconstrained = ElementType>; +type T1 = Unconstrained<[string, number, boolean]>; +type Constrained = ElementType>; +type T2 = Constrained<[string, number, boolean]>; diff --git a/tests/baselines/reference/mergeMultipleInterfacesReexported.js b/tests/baselines/reference/mergeMultipleInterfacesReexported.js new file mode 100644 index 00000000000..a6282d6844d --- /dev/null +++ b/tests/baselines/reference/mergeMultipleInterfacesReexported.js @@ -0,0 +1,65 @@ +//// [tests/cases/compiler/mergeMultipleInterfacesReexported.ts] //// + +//// [index.ts] +export * from './eventList'; + +//// [test.ts] +import { EventList } from "./eventList"; + +declare const p012: "p0" | "p1" | "p2" +const t: keyof EventList = p012 + +//// [eventList.ts] +export interface EventList { + p0: []; +} + +//// [foo.ts] +declare module './index' { + interface EventList { + p1: [] + } +} +export {}; + + +//// [bar.ts] +declare module './index' { + interface EventList { + p2: [] + } +} +export {}; + + +//// [eventList.js] +"use strict"; +exports.__esModule = true; +//// [index.js] +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +exports.__esModule = true; +__exportStar(require("./eventList"), exports); +//// [test.js] +"use strict"; +exports.__esModule = true; +var t = p012; +//// [foo.js] +"use strict"; +exports.__esModule = true; +//// [bar.js] +"use strict"; +exports.__esModule = true; diff --git a/tests/baselines/reference/mergeMultipleInterfacesReexported.symbols b/tests/baselines/reference/mergeMultipleInterfacesReexported.symbols new file mode 100644 index 00000000000..c40babde0a3 --- /dev/null +++ b/tests/baselines/reference/mergeMultipleInterfacesReexported.symbols @@ -0,0 +1,50 @@ +=== tests/cases/compiler/index.ts === +export * from './eventList'; +No type information for this code. +No type information for this code.=== tests/cases/compiler/test.ts === +import { EventList } from "./eventList"; +>EventList : Symbol(EventList, Decl(test.ts, 0, 8)) + +declare const p012: "p0" | "p1" | "p2" +>p012 : Symbol(p012, Decl(test.ts, 2, 13)) + +const t: keyof EventList = p012 +>t : Symbol(t, Decl(test.ts, 3, 5)) +>EventList : Symbol(EventList, Decl(test.ts, 0, 8)) +>p012 : Symbol(p012, Decl(test.ts, 2, 13)) + +=== tests/cases/compiler/eventList.ts === +export interface EventList { +>EventList : Symbol(EventList, Decl(eventList.ts, 0, 0), Decl(foo.ts, 0, 26), Decl(bar.ts, 0, 26)) + + p0: []; +>p0 : Symbol(EventList.p0, Decl(eventList.ts, 0, 28)) +} + +=== tests/cases/compiler/foo.ts === +declare module './index' { +>'./index' : Symbol("tests/cases/compiler/index", Decl(index.ts, 0, 0), Decl(foo.ts, 0, 0), Decl(bar.ts, 0, 0)) + + interface EventList { +>EventList : Symbol(EventList, Decl(eventList.ts, 0, 0), Decl(foo.ts, 0, 26), Decl(bar.ts, 0, 26)) + + p1: [] +>p1 : Symbol(EventList.p1, Decl(foo.ts, 1, 25)) + } +} +export {}; + + +=== tests/cases/compiler/bar.ts === +declare module './index' { +>'./index' : Symbol("tests/cases/compiler/index", Decl(index.ts, 0, 0), Decl(foo.ts, 0, 0), Decl(bar.ts, 0, 0)) + + interface EventList { +>EventList : Symbol(EventList, Decl(eventList.ts, 0, 0), Decl(foo.ts, 0, 26), Decl(bar.ts, 0, 26)) + + p2: [] +>p2 : Symbol(EventList.p2, Decl(bar.ts, 1, 25)) + } +} +export {}; + diff --git a/tests/baselines/reference/mergeMultipleInterfacesReexported.types b/tests/baselines/reference/mergeMultipleInterfacesReexported.types new file mode 100644 index 00000000000..1096770ca61 --- /dev/null +++ b/tests/baselines/reference/mergeMultipleInterfacesReexported.types @@ -0,0 +1,43 @@ +=== tests/cases/compiler/index.ts === +export * from './eventList'; +No type information for this code. +No type information for this code.=== tests/cases/compiler/test.ts === +import { EventList } from "./eventList"; +>EventList : any + +declare const p012: "p0" | "p1" | "p2" +>p012 : "p0" | "p1" | "p2" + +const t: keyof EventList = p012 +>t : keyof EventList +>p012 : "p0" | "p1" | "p2" + +=== tests/cases/compiler/eventList.ts === +export interface EventList { + p0: []; +>p0 : [] +} + +=== tests/cases/compiler/foo.ts === +declare module './index' { +>'./index' : typeof import("tests/cases/compiler/index") + + interface EventList { + p1: [] +>p1 : [] + } +} +export {}; + + +=== tests/cases/compiler/bar.ts === +declare module './index' { +>'./index' : typeof import("tests/cases/compiler/index") + + interface EventList { + p2: [] +>p2 : [] + } +} +export {}; + diff --git a/tests/baselines/reference/mixinAccessModifiers.js b/tests/baselines/reference/mixinAccessModifiers.js index 6590df868bd..45df5350025 100644 --- a/tests/baselines/reference/mixinAccessModifiers.js +++ b/tests/baselines/reference/mixinAccessModifiers.js @@ -322,7 +322,7 @@ function f9(x) { //// [mixinAccessModifiers.d.ts] -declare type Constructable = new (...args: any[]) => object; +type Constructable = new (...args: any[]) => object; declare class Private { constructor(...args: any[]); private p; diff --git a/tests/baselines/reference/mixinClassesAnnotated.js b/tests/baselines/reference/mixinClassesAnnotated.js index 7c35b18fec9..4cbe18fafeb 100644 --- a/tests/baselines/reference/mixinClassesAnnotated.js +++ b/tests/baselines/reference/mixinClassesAnnotated.js @@ -155,7 +155,7 @@ var Thing3 = /** @class */ (function (_super) { //// [mixinClassesAnnotated.d.ts] -declare type Constructor = new (...args: any[]) => T; +type Constructor = new (...args: any[]) => T; declare class Base { x: number; y: number; diff --git a/tests/baselines/reference/moduleAugmentationDoesNamespaceEnumMergeOfReexport.symbols b/tests/baselines/reference/moduleAugmentationDoesNamespaceEnumMergeOfReexport.symbols index 0f6a0ad51e4..89c0878d840 100644 --- a/tests/baselines/reference/moduleAugmentationDoesNamespaceEnumMergeOfReexport.symbols +++ b/tests/baselines/reference/moduleAugmentationDoesNamespaceEnumMergeOfReexport.symbols @@ -45,9 +45,9 @@ const g: ns.Root = ns.Root.A; >ns : Symbol(ns, Decl(augment.ts, 0, 6)) >Root : Symbol(ns.Root, Decl(file.ts, 0, 0), Decl(augment.ts, 2, 29)) >ns.Root.A : Symbol(ns.Root.A, Decl(augment.ts, 4, 22)) ->ns.Root : Symbol(ns.Root, Decl(augment.ts, 2, 29)) +>ns.Root : Symbol(ns.Root, Decl(file.ts, 0, 0), Decl(augment.ts, 2, 29)) >ns : Symbol(ns, Decl(augment.ts, 0, 6)) ->Root : Symbol(ns.Root, Decl(augment.ts, 2, 29)) +>Root : Symbol(ns.Root, Decl(file.ts, 0, 0), Decl(augment.ts, 2, 29)) >A : Symbol(ns.Root.A, Decl(augment.ts, 4, 22)) f.x; diff --git a/tests/baselines/reference/moduleDetectionIsolatedModulesCjsFileScope.js b/tests/baselines/reference/moduleDetectionIsolatedModulesCjsFileScope.js new file mode 100644 index 00000000000..5718d67611e --- /dev/null +++ b/tests/baselines/reference/moduleDetectionIsolatedModulesCjsFileScope.js @@ -0,0 +1,19 @@ +//// [tests/cases/compiler/moduleDetectionIsolatedModulesCjsFileScope.ts] //// + +//// [filename.cts] +const a = 2; +//// [filename.mts] +const a = 2; + +//// [filename.cjs] +const a = 2; +export {}; +//// [filename.mjs] +const a = 2; +export {}; + + +//// [filename.d.cts] +export {}; +//// [filename.d.mts] +export {}; diff --git a/tests/baselines/reference/moduleDetectionIsolatedModulesCjsFileScope.symbols b/tests/baselines/reference/moduleDetectionIsolatedModulesCjsFileScope.symbols new file mode 100644 index 00000000000..12507c08e5c --- /dev/null +++ b/tests/baselines/reference/moduleDetectionIsolatedModulesCjsFileScope.symbols @@ -0,0 +1,8 @@ +=== tests/cases/compiler/filename.cts === +const a = 2; +>a : Symbol(a, Decl(filename.cts, 0, 5)) + +=== tests/cases/compiler/filename.mts === +const a = 2; +>a : Symbol(a, Decl(filename.mts, 0, 5)) + diff --git a/tests/baselines/reference/moduleDetectionIsolatedModulesCjsFileScope.types b/tests/baselines/reference/moduleDetectionIsolatedModulesCjsFileScope.types new file mode 100644 index 00000000000..0f7b6eff869 --- /dev/null +++ b/tests/baselines/reference/moduleDetectionIsolatedModulesCjsFileScope.types @@ -0,0 +1,10 @@ +=== tests/cases/compiler/filename.cts === +const a = 2; +>a : 2 +>2 : 2 + +=== tests/cases/compiler/filename.mts === +const a = 2; +>a : 2 +>2 : 2 + diff --git a/tests/baselines/reference/moduleExportAssignment7.errors.txt b/tests/baselines/reference/moduleExportAssignment7.errors.txt new file mode 100644 index 00000000000..1bf25e6ca33 --- /dev/null +++ b/tests/baselines/reference/moduleExportAssignment7.errors.txt @@ -0,0 +1,92 @@ +tests/cases/conformance/salsa/index.ts(2,24): error TS2694: Namespace '"tests/cases/conformance/salsa/mod".export=' has no exported member 'Thing'. +tests/cases/conformance/salsa/index.ts(3,24): error TS2694: Namespace '"tests/cases/conformance/salsa/mod".export=' has no exported member 'AnotherThing'. +tests/cases/conformance/salsa/index.ts(4,24): error TS2694: Namespace '"tests/cases/conformance/salsa/mod".export=' has no exported member 'foo'. +tests/cases/conformance/salsa/index.ts(5,24): error TS2694: Namespace '"tests/cases/conformance/salsa/mod".export=' has no exported member 'qux'. +tests/cases/conformance/salsa/index.ts(6,24): error TS2694: Namespace '"tests/cases/conformance/salsa/mod".export=' has no exported member 'baz'. +tests/cases/conformance/salsa/index.ts(8,24): error TS2694: Namespace '"tests/cases/conformance/salsa/mod".export=' has no exported member 'literal'. +tests/cases/conformance/salsa/index.ts(19,31): error TS2694: Namespace '"tests/cases/conformance/salsa/mod".export=' has no exported member 'buz'. +tests/cases/conformance/salsa/main.js(20,35): error TS2694: Namespace '"tests/cases/conformance/salsa/mod".export=' has no exported member 'buz'. + + +==== tests/cases/conformance/salsa/mod.js (0 errors) ==== + class Thing { x = 1 } + class AnotherThing { y = 2 } + function foo() { return 3 } + function bar() { return 4 } + /** @typedef {() => number} buz */ + module.exports = { + Thing, + AnotherThing, + foo, + qux: bar, + baz() { return 5 }, + literal: "", + } +==== tests/cases/conformance/salsa/main.js (1 errors) ==== + /** + * @param {import("./mod").Thing} a + * @param {import("./mod").AnotherThing} b + * @param {import("./mod").foo} c + * @param {import("./mod").qux} d + * @param {import("./mod").baz} e + * @param {import("./mod").buz} f + * @param {import("./mod").literal} g + */ + function jstypes(a, b, c, d, e, f, g) { + return a.x + b.y + c() + d() + e() + f() + g.length + } + + /** + * @param {typeof import("./mod").Thing} a + * @param {typeof import("./mod").AnotherThing} b + * @param {typeof import("./mod").foo} c + * @param {typeof import("./mod").qux} d + * @param {typeof import("./mod").baz} e + * @param {typeof import("./mod").buz} f + ~~~ +!!! error TS2694: Namespace '"tests/cases/conformance/salsa/mod".export=' has no exported member 'buz'. + * @param {typeof import("./mod").literal} g + */ + function jsvalues(a, b, c, d, e, f, g) { + return a.length + b.length + c() + d() + e() + f() + g.length + } + +==== tests/cases/conformance/salsa/index.ts (7 errors) ==== + function types( + a: import('./mod').Thing, + ~~~~~ +!!! error TS2694: Namespace '"tests/cases/conformance/salsa/mod".export=' has no exported member 'Thing'. + b: import('./mod').AnotherThing, + ~~~~~~~~~~~~ +!!! error TS2694: Namespace '"tests/cases/conformance/salsa/mod".export=' has no exported member 'AnotherThing'. + c: import('./mod').foo, + ~~~ +!!! error TS2694: Namespace '"tests/cases/conformance/salsa/mod".export=' has no exported member 'foo'. + d: import('./mod').qux, + ~~~ +!!! error TS2694: Namespace '"tests/cases/conformance/salsa/mod".export=' has no exported member 'qux'. + e: import('./mod').baz, + ~~~ +!!! error TS2694: Namespace '"tests/cases/conformance/salsa/mod".export=' has no exported member 'baz'. + f: import('./mod').buz, + g: import('./mod').literal, + ~~~~~~~ +!!! error TS2694: Namespace '"tests/cases/conformance/salsa/mod".export=' has no exported member 'literal'. + ) { + return a.x + b.y + c() + d() + e() + f() + g.length + } + + function values( + a: typeof import('./mod').Thing, + b: typeof import('./mod').AnotherThing, + c: typeof import('./mod').foo, + d: typeof import('./mod').qux, + e: typeof import('./mod').baz, + f: typeof import('./mod').buz, + ~~~ +!!! error TS2694: Namespace '"tests/cases/conformance/salsa/mod".export=' has no exported member 'buz'. + g: typeof import('./mod').literal, + ) { + return a.length + b.length + c() + d() + e() + f() + g.length + } + \ No newline at end of file diff --git a/tests/baselines/reference/moduleExportAssignment7.symbols b/tests/baselines/reference/moduleExportAssignment7.symbols new file mode 100644 index 00000000000..35ff7fca3d1 --- /dev/null +++ b/tests/baselines/reference/moduleExportAssignment7.symbols @@ -0,0 +1,195 @@ +=== tests/cases/conformance/salsa/mod.js === +class Thing { x = 1 } +>Thing : Symbol(Thing, Decl(mod.js, 0, 0)) +>x : Symbol(Thing.x, Decl(mod.js, 0, 14)) + +class AnotherThing { y = 2 } +>AnotherThing : Symbol(AnotherThing, Decl(mod.js, 0, 22)) +>y : Symbol(AnotherThing.y, Decl(mod.js, 1, 20)) + +function foo() { return 3 } +>foo : Symbol(foo, Decl(mod.js, 1, 29)) + +function bar() { return 4 } +>bar : Symbol(bar, Decl(mod.js, 2, 27)) + +/** @typedef {() => number} buz */ +module.exports = { +>module.exports : Symbol(module.exports, Decl(mod.js, 0, 0)) +>module : Symbol(export=, Decl(mod.js, 3, 27)) +>exports : Symbol(export=, Decl(mod.js, 3, 27)) + + Thing, +>Thing : Symbol(Thing, Decl(mod.js, 5, 18)) + + AnotherThing, +>AnotherThing : Symbol(AnotherThing, Decl(mod.js, 6, 10)) + + foo, +>foo : Symbol(foo, Decl(mod.js, 7, 17)) + + qux: bar, +>qux : Symbol(qux, Decl(mod.js, 8, 8)) +>bar : Symbol(bar, Decl(mod.js, 2, 27)) + + baz() { return 5 }, +>baz : Symbol(baz, Decl(mod.js, 9, 13)) + + literal: "", +>literal : Symbol(literal, Decl(mod.js, 10, 23)) +} +=== tests/cases/conformance/salsa/main.js === +/** + * @param {import("./mod").Thing} a + * @param {import("./mod").AnotherThing} b + * @param {import("./mod").foo} c + * @param {import("./mod").qux} d + * @param {import("./mod").baz} e + * @param {import("./mod").buz} f + * @param {import("./mod").literal} g + */ +function jstypes(a, b, c, d, e, f, g) { +>jstypes : Symbol(jstypes, Decl(main.js, 0, 0)) +>a : Symbol(a, Decl(main.js, 9, 17)) +>b : Symbol(b, Decl(main.js, 9, 19)) +>c : Symbol(c, Decl(main.js, 9, 22)) +>d : Symbol(d, Decl(main.js, 9, 25)) +>e : Symbol(e, Decl(main.js, 9, 28)) +>f : Symbol(f, Decl(main.js, 9, 31)) +>g : Symbol(g, Decl(main.js, 9, 34)) + + return a.x + b.y + c() + d() + e() + f() + g.length +>a.x : Symbol(Thing.x, Decl(mod.js, 0, 14)) +>a : Symbol(a, Decl(main.js, 9, 17)) +>x : Symbol(Thing.x, Decl(mod.js, 0, 14)) +>b.y : Symbol(AnotherThing.y, Decl(mod.js, 1, 20)) +>b : Symbol(b, Decl(main.js, 9, 19)) +>y : Symbol(AnotherThing.y, Decl(mod.js, 1, 20)) +>c : Symbol(c, Decl(main.js, 9, 22)) +>d : Symbol(d, Decl(main.js, 9, 25)) +>e : Symbol(e, Decl(main.js, 9, 28)) +>f : Symbol(f, Decl(main.js, 9, 31)) +>g.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>g : Symbol(g, Decl(main.js, 9, 34)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +} + +/** + * @param {typeof import("./mod").Thing} a + * @param {typeof import("./mod").AnotherThing} b + * @param {typeof import("./mod").foo} c + * @param {typeof import("./mod").qux} d + * @param {typeof import("./mod").baz} e + * @param {typeof import("./mod").buz} f + * @param {typeof import("./mod").literal} g + */ +function jsvalues(a, b, c, d, e, f, g) { +>jsvalues : Symbol(jsvalues, Decl(main.js, 11, 1)) +>a : Symbol(a, Decl(main.js, 22, 18)) +>b : Symbol(b, Decl(main.js, 22, 20)) +>c : Symbol(c, Decl(main.js, 22, 23)) +>d : Symbol(d, Decl(main.js, 22, 26)) +>e : Symbol(e, Decl(main.js, 22, 29)) +>f : Symbol(f, Decl(main.js, 22, 32)) +>g : Symbol(g, Decl(main.js, 22, 35)) + + return a.length + b.length + c() + d() + e() + f() + g.length +>a.length : Symbol(Function.length, Decl(lib.es5.d.ts, --, --)) +>a : Symbol(a, Decl(main.js, 22, 18)) +>length : Symbol(Function.length, Decl(lib.es5.d.ts, --, --)) +>b.length : Symbol(Function.length, Decl(lib.es5.d.ts, --, --)) +>b : Symbol(b, Decl(main.js, 22, 20)) +>length : Symbol(Function.length, Decl(lib.es5.d.ts, --, --)) +>c : Symbol(c, Decl(main.js, 22, 23)) +>d : Symbol(d, Decl(main.js, 22, 26)) +>e : Symbol(e, Decl(main.js, 22, 29)) +>f : Symbol(f, Decl(main.js, 22, 32)) +>g.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>g : Symbol(g, Decl(main.js, 22, 35)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +} + +=== tests/cases/conformance/salsa/index.ts === +function types( +>types : Symbol(types, Decl(index.ts, 0, 0)) + + a: import('./mod').Thing, +>a : Symbol(a, Decl(index.ts, 0, 15)) + + b: import('./mod').AnotherThing, +>b : Symbol(b, Decl(index.ts, 1, 29)) + + c: import('./mod').foo, +>c : Symbol(c, Decl(index.ts, 2, 36)) + + d: import('./mod').qux, +>d : Symbol(d, Decl(index.ts, 3, 27)) + + e: import('./mod').baz, +>e : Symbol(e, Decl(index.ts, 4, 27)) + + f: import('./mod').buz, +>f : Symbol(f, Decl(index.ts, 5, 27)) +>buz : Symbol(buz, Decl(mod.js, 4, 4)) + + g: import('./mod').literal, +>g : Symbol(g, Decl(index.ts, 6, 27)) + +) { + return a.x + b.y + c() + d() + e() + f() + g.length +>a : Symbol(a, Decl(index.ts, 0, 15)) +>b : Symbol(b, Decl(index.ts, 1, 29)) +>c : Symbol(c, Decl(index.ts, 2, 36)) +>d : Symbol(d, Decl(index.ts, 3, 27)) +>e : Symbol(e, Decl(index.ts, 4, 27)) +>f : Symbol(f, Decl(index.ts, 5, 27)) +>g : Symbol(g, Decl(index.ts, 6, 27)) +} + +function values( +>values : Symbol(values, Decl(index.ts, 10, 1)) + + a: typeof import('./mod').Thing, +>a : Symbol(a, Decl(index.ts, 12, 16)) +>Thing : Symbol(Thing, Decl(mod.js, 5, 18)) + + b: typeof import('./mod').AnotherThing, +>b : Symbol(b, Decl(index.ts, 13, 36)) +>AnotherThing : Symbol(AnotherThing, Decl(mod.js, 6, 10)) + + c: typeof import('./mod').foo, +>c : Symbol(c, Decl(index.ts, 14, 43)) +>foo : Symbol(foo, Decl(mod.js, 7, 17)) + + d: typeof import('./mod').qux, +>d : Symbol(d, Decl(index.ts, 15, 34)) +>qux : Symbol(qux, Decl(mod.js, 8, 8)) + + e: typeof import('./mod').baz, +>e : Symbol(e, Decl(index.ts, 16, 34)) +>baz : Symbol(baz, Decl(mod.js, 9, 13)) + + f: typeof import('./mod').buz, +>f : Symbol(f, Decl(index.ts, 17, 34)) + + g: typeof import('./mod').literal, +>g : Symbol(g, Decl(index.ts, 18, 34)) +>literal : Symbol(literal, Decl(mod.js, 10, 23)) + +) { + return a.length + b.length + c() + d() + e() + f() + g.length +>a.length : Symbol(Function.length, Decl(lib.es5.d.ts, --, --)) +>a : Symbol(a, Decl(index.ts, 12, 16)) +>length : Symbol(Function.length, Decl(lib.es5.d.ts, --, --)) +>b.length : Symbol(Function.length, Decl(lib.es5.d.ts, --, --)) +>b : Symbol(b, Decl(index.ts, 13, 36)) +>length : Symbol(Function.length, Decl(lib.es5.d.ts, --, --)) +>c : Symbol(c, Decl(index.ts, 14, 43)) +>d : Symbol(d, Decl(index.ts, 15, 34)) +>e : Symbol(e, Decl(index.ts, 16, 34)) +>f : Symbol(f, Decl(index.ts, 17, 34)) +>g.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>g : Symbol(g, Decl(index.ts, 18, 34)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +} + diff --git a/tests/baselines/reference/moduleExportAssignment7.types b/tests/baselines/reference/moduleExportAssignment7.types new file mode 100644 index 00000000000..da89258952f --- /dev/null +++ b/tests/baselines/reference/moduleExportAssignment7.types @@ -0,0 +1,249 @@ +=== tests/cases/conformance/salsa/mod.js === +class Thing { x = 1 } +>Thing : Thing +>x : number +>1 : 1 + +class AnotherThing { y = 2 } +>AnotherThing : AnotherThing +>y : number +>2 : 2 + +function foo() { return 3 } +>foo : () => number +>3 : 3 + +function bar() { return 4 } +>bar : () => number +>4 : 4 + +/** @typedef {() => number} buz */ +module.exports = { +>module.exports = { Thing, AnotherThing, foo, qux: bar, baz() { return 5 }, literal: "",} : { Thing: typeof Thing; AnotherThing: typeof AnotherThing; foo: () => number; qux: () => number; baz(): number; literal: string; } +>module.exports : { Thing: typeof Thing; AnotherThing: typeof AnotherThing; foo: () => number; qux: () => number; baz(): number; literal: string; } +>module : { exports: { Thing: typeof Thing; AnotherThing: typeof AnotherThing; foo: () => number; qux: () => number; baz(): number; literal: string; }; } +>exports : { Thing: typeof Thing; AnotherThing: typeof AnotherThing; foo: () => number; qux: () => number; baz(): number; literal: string; } +>{ Thing, AnotherThing, foo, qux: bar, baz() { return 5 }, literal: "",} : { Thing: typeof Thing; AnotherThing: typeof AnotherThing; foo: () => number; qux: () => number; baz(): number; literal: string; } + + Thing, +>Thing : typeof Thing + + AnotherThing, +>AnotherThing : typeof AnotherThing + + foo, +>foo : () => number + + qux: bar, +>qux : () => number +>bar : () => number + + baz() { return 5 }, +>baz : () => number +>5 : 5 + + literal: "", +>literal : string +>"" : "" +} +=== tests/cases/conformance/salsa/main.js === +/** + * @param {import("./mod").Thing} a + * @param {import("./mod").AnotherThing} b + * @param {import("./mod").foo} c + * @param {import("./mod").qux} d + * @param {import("./mod").baz} e + * @param {import("./mod").buz} f + * @param {import("./mod").literal} g + */ +function jstypes(a, b, c, d, e, f, g) { +>jstypes : (a: Thing, b: AnotherThing, c: () => number, d: () => number, e: () => number, f: import("./mod").buz, g: string) => number +>a : Thing +>b : AnotherThing +>c : () => number +>d : () => number +>e : () => number +>f : import("tests/cases/conformance/salsa/mod").buz +>g : string + + return a.x + b.y + c() + d() + e() + f() + g.length +>a.x + b.y + c() + d() + e() + f() + g.length : number +>a.x + b.y + c() + d() + e() + f() : number +>a.x + b.y + c() + d() + e() : number +>a.x + b.y + c() + d() : number +>a.x + b.y + c() : number +>a.x + b.y : number +>a.x : number +>a : Thing +>x : number +>b.y : number +>b : AnotherThing +>y : number +>c() : number +>c : () => number +>d() : number +>d : () => number +>e() : number +>e : () => number +>f() : number +>f : import("tests/cases/conformance/salsa/mod").buz +>g.length : number +>g : string +>length : number +} + +/** + * @param {typeof import("./mod").Thing} a + * @param {typeof import("./mod").AnotherThing} b + * @param {typeof import("./mod").foo} c + * @param {typeof import("./mod").qux} d + * @param {typeof import("./mod").baz} e + * @param {typeof import("./mod").buz} f + * @param {typeof import("./mod").literal} g + */ +function jsvalues(a, b, c, d, e, f, g) { +>jsvalues : (a: typeof import("./mod").Thing, b: typeof import("./mod").AnotherThing, c: typeof import("./mod").foo, d: typeof import("./mod").qux, e: typeof import("./mod").baz, f: any, g: typeof import("./mod").literal) => any +>a : typeof Thing +>b : typeof AnotherThing +>c : () => number +>d : () => number +>e : () => number +>f : any +>g : string + + return a.length + b.length + c() + d() + e() + f() + g.length +>a.length + b.length + c() + d() + e() + f() + g.length : any +>a.length + b.length + c() + d() + e() + f() : any +>a.length + b.length + c() + d() + e() : number +>a.length + b.length + c() + d() : number +>a.length + b.length + c() : number +>a.length + b.length : number +>a.length : number +>a : typeof Thing +>length : number +>b.length : number +>b : typeof AnotherThing +>length : number +>c() : number +>c : () => number +>d() : number +>d : () => number +>e() : number +>e : () => number +>f() : any +>f : any +>g.length : number +>g : string +>length : number +} + +=== tests/cases/conformance/salsa/index.ts === +function types( +>types : (a: any, b: any, c: any, d: any, e: any, f: import('./mod').buz, g: any) => any + + a: import('./mod').Thing, +>a : any + + b: import('./mod').AnotherThing, +>b : any + + c: import('./mod').foo, +>c : any + + d: import('./mod').qux, +>d : any + + e: import('./mod').baz, +>e : any + + f: import('./mod').buz, +>f : import("tests/cases/conformance/salsa/mod").buz + + g: import('./mod').literal, +>g : any + +) { + return a.x + b.y + c() + d() + e() + f() + g.length +>a.x + b.y + c() + d() + e() + f() + g.length : any +>a.x + b.y + c() + d() + e() + f() : any +>a.x + b.y + c() + d() + e() : any +>a.x + b.y + c() + d() : any +>a.x + b.y + c() : any +>a.x + b.y : any +>a.x : any +>a : any +>x : any +>b.y : any +>b : any +>y : any +>c() : any +>c : any +>d() : any +>d : any +>e() : any +>e : any +>f() : number +>f : import("tests/cases/conformance/salsa/mod").buz +>g.length : any +>g : any +>length : any +} + +function values( +>values : (a: typeof import('./mod').Thing, b: typeof import('./mod').AnotherThing, c: typeof import('./mod').foo, d: typeof import('./mod').qux, e: typeof import('./mod').baz, f: any, g: typeof import('./mod').literal) => any + + a: typeof import('./mod').Thing, +>a : typeof Thing +>Thing : any + + b: typeof import('./mod').AnotherThing, +>b : typeof AnotherThing +>AnotherThing : any + + c: typeof import('./mod').foo, +>c : () => number +>foo : any + + d: typeof import('./mod').qux, +>d : () => number +>qux : any + + e: typeof import('./mod').baz, +>e : () => number +>baz : any + + f: typeof import('./mod').buz, +>f : any +>buz : any + + g: typeof import('./mod').literal, +>g : string +>literal : any + +) { + return a.length + b.length + c() + d() + e() + f() + g.length +>a.length + b.length + c() + d() + e() + f() + g.length : any +>a.length + b.length + c() + d() + e() + f() : any +>a.length + b.length + c() + d() + e() : number +>a.length + b.length + c() + d() : number +>a.length + b.length + c() : number +>a.length + b.length : number +>a.length : number +>a : typeof Thing +>length : number +>b.length : number +>b : typeof AnotherThing +>length : number +>c() : number +>c : () => number +>d() : number +>d : () => number +>e() : number +>e : () => number +>f() : any +>f : any +>g.length : number +>g : string +>length : number +} + diff --git a/tests/baselines/reference/namedTupleMembers.js b/tests/baselines/reference/namedTupleMembers.js index 9095259eec9..80d40f9c86f 100644 --- a/tests/baselines/reference/namedTupleMembers.js +++ b/tests/baselines/reference/namedTupleMembers.js @@ -114,8 +114,8 @@ exports.argumentsOfG = f.apply(void 0, getArgsForInjection(g)); // captured argu //// [namedTupleMembers.d.ts] -export declare type Segment = [length: number, count: number]; -export declare type SegmentAnnotated = [ +export type Segment = [length: number, count: number]; +export type SegmentAnnotated = [ /** * Size of message buffer segment handles */ @@ -125,16 +125,16 @@ export declare type SegmentAnnotated = [ */ count: number ]; -export declare type WithOptAndRest = [first: number, second?: number, ...rest: string[]]; -export declare type Func = (...x: T) => void; +export type WithOptAndRest = [first: number, second?: number, ...rest: string[]]; +export type Func = (...x: T) => void; export declare const func: Func; export declare function useState(initial: T): [value: T, setter: (T: any) => void]; -export declare type Iter = Func<[step: number, iterations: number]>; +export type Iter = Func<[step: number, iterations: number]>; export declare function readSegment([length, count]: [number, number]): void; export declare const val: [number, number]; -export declare type RecursiveTupleA = [initial: string, next: RecursiveTupleA]; -export declare type RecursiveTupleB = [first: string, ptr: RecursiveTupleB]; -export declare type RecusiveRest = [first: string, ...rest: RecusiveRest[]]; -export declare type RecusiveRest2 = [string, ...RecusiveRest2[]]; +export type RecursiveTupleA = [initial: string, next: RecursiveTupleA]; +export type RecursiveTupleB = [first: string, ptr: RecursiveTupleB]; +export type RecusiveRest = [first: string, ...rest: RecusiveRest[]]; +export type RecusiveRest2 = [string, ...RecusiveRest2[]]; export declare const argumentsOfGAsFirstArgument: [[elem: object, index: number]]; export declare const argumentsOfG: [elem: object, index: number]; diff --git a/tests/baselines/reference/namedTupleMembersErrors.js b/tests/baselines/reference/namedTupleMembersErrors.js index a436e61cd0c..62aa00af576 100644 --- a/tests/baselines/reference/namedTupleMembersErrors.js +++ b/tests/baselines/reference/namedTupleMembersErrors.js @@ -28,16 +28,16 @@ exports.__esModule = true; //// [namedTupleMembersErrors.d.ts] -export declare type Segment1 = [length: number, number]; -export declare type Segment2 = [number, size: number]; -export declare type List = [item: any, ...any]; -export declare type List2 = [any, ...remainder: any]; -export declare type Pair = [item: any, any?]; -export declare type Pair2 = [any, last?: any]; -export declare type Opt = [element: string?]; -export declare type Trailing = [first: string, rest: ...string[]]; -export declare type OptTrailing = [first: string, rest: ...?string[]]; -export declare type OptRest = [first: string, ...rest?: string[]]; -export declare type NonArrayRest = [first: string, ...rest: number]; -export declare type RecusiveRestUnlabeled = [string, ...RecusiveRestUnlabeled]; -export declare type RecusiveRest = [first: string, ...rest: RecusiveRest]; +export type Segment1 = [length: number, number]; +export type Segment2 = [number, size: number]; +export type List = [item: any, ...any]; +export type List2 = [any, ...remainder: any]; +export type Pair = [item: any, any?]; +export type Pair2 = [any, last?: any]; +export type Opt = [element: string?]; +export type Trailing = [first: string, rest: ...string[]]; +export type OptTrailing = [first: string, rest: ...?string[]]; +export type OptRest = [first: string, ...rest?: string[]]; +export type NonArrayRest = [first: string, ...rest: number]; +export type RecusiveRestUnlabeled = [string, ...RecusiveRestUnlabeled]; +export type RecusiveRest = [first: string, ...rest: RecusiveRest]; diff --git a/tests/baselines/reference/narrowExceptionVariableInCatchClause.errors.txt b/tests/baselines/reference/narrowExceptionVariableInCatchClause.errors.txt index 6331c0fa894..3a07bb2f5d9 100644 --- a/tests/baselines/reference/narrowExceptionVariableInCatchClause.errors.txt +++ b/tests/baselines/reference/narrowExceptionVariableInCatchClause.errors.txt @@ -24,7 +24,7 @@ tests/cases/conformance/types/any/narrowExceptionVariableInCatchClause.ts(16,17) err.massage; // ERROR: Property 'massage' does not exist on type 'Error' ~~~~~~~ !!! error TS2551: Property 'massage' does not exist on type 'Error'. Did you mean 'message'? -!!! related TS2728 /.ts/lib.es5.d.ts:1041:5: 'message' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1049:5: 'message' is declared here. } else { diff --git a/tests/baselines/reference/narrowFromAnyWithInstanceof.errors.txt b/tests/baselines/reference/narrowFromAnyWithInstanceof.errors.txt index 216c2a89380..2206d1c9b21 100644 --- a/tests/baselines/reference/narrowFromAnyWithInstanceof.errors.txt +++ b/tests/baselines/reference/narrowFromAnyWithInstanceof.errors.txt @@ -22,7 +22,7 @@ tests/cases/conformance/types/any/narrowFromAnyWithInstanceof.ts(22,7): error TS x.mesage; ~~~~~~ !!! error TS2551: Property 'mesage' does not exist on type 'Error'. Did you mean 'message'? -!!! related TS2728 /.ts/lib.es5.d.ts:1041:5: 'message' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1049:5: 'message' is declared here. } if (x instanceof Date) { @@ -30,6 +30,6 @@ tests/cases/conformance/types/any/narrowFromAnyWithInstanceof.ts(22,7): error TS x.getHuors(); ~~~~~~~~ !!! error TS2551: Property 'getHuors' does not exist on type 'Date'. Did you mean 'getHours'? -!!! related TS2728 /.ts/lib.es5.d.ts:789:5: 'getHours' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:783:5: 'getHours' is declared here. } \ No newline at end of file diff --git a/tests/baselines/reference/narrowFromAnyWithTypePredicate.errors.txt b/tests/baselines/reference/narrowFromAnyWithTypePredicate.errors.txt index 110cfc90aad..109738a3f4b 100644 --- a/tests/baselines/reference/narrowFromAnyWithTypePredicate.errors.txt +++ b/tests/baselines/reference/narrowFromAnyWithTypePredicate.errors.txt @@ -41,7 +41,7 @@ tests/cases/conformance/types/any/narrowFromAnyWithTypePredicate.ts(33,7): error x.mesage; ~~~~~~ !!! error TS2551: Property 'mesage' does not exist on type 'Error'. Did you mean 'message'? -!!! related TS2728 /.ts/lib.es5.d.ts:1041:5: 'message' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1049:5: 'message' is declared here. } if (isDate(x)) { @@ -49,6 +49,6 @@ tests/cases/conformance/types/any/narrowFromAnyWithTypePredicate.ts(33,7): error x.getHuors(); ~~~~~~~~ !!! error TS2551: Property 'getHuors' does not exist on type 'Date'. Did you mean 'getHours'? -!!! related TS2728 /.ts/lib.es5.d.ts:789:5: 'getHours' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:783:5: 'getHours' is declared here. } \ No newline at end of file diff --git a/tests/baselines/reference/narrowingUnionToUnion.js b/tests/baselines/reference/narrowingUnionToUnion.js new file mode 100644 index 00000000000..eaa3bd8fa33 --- /dev/null +++ b/tests/baselines/reference/narrowingUnionToUnion.js @@ -0,0 +1,423 @@ +//// [narrowingUnionToUnion.ts] +type Falsy = false | 0 | 0n | '' | null | undefined; + +declare function isFalsy(value: unknown): value is Falsy; + +function fx1(x: string | number | undefined) { + if (isFalsy(x)) { + x; // "" | 0 | undefined + } +} + +function fx2(x: T | undefined) { + if (isFalsy(x)) { + x; // T & Falsy | undefined + } +} + +function fx3(x: T) { + if (isFalsy(x)) { + x; // T & "" | T & 0 + } +} + +declare function isA(obj: unknown): obj is { a: false } | { b: 0 }; + +function fx4(obj: { b: number }) { + if (isA(obj)) { + obj; // { b: 0 } + } +} + +declare class X { x: string } +declare class XS extends X { xs: string } + +declare class Y { y: string } +declare class YS extends Y { ys: string } + +declare function isXSorY(obj: unknown): obj is XS | Y; + +function fx5(obj: X | YS, c: typeof XS | typeof Y) { + if (obj instanceof c) { + obj; // XS | YS + } + if (isXSorY(obj)) { + obj; // XS | YS + } +} + +// Repro from #31156 + +declare function isEmptyStrOrUndefined(mixed: any): mixed is "" | undefined; + +function fx10(s: string | undefined) { + if (isEmptyStrOrUndefined(s)) { + s; // "" | undefined + if (s == undefined) { + s; // undefined + } + else { + s; // "" + } + } +} + +// Repro from #37807 + +function f1(x: any): asserts x is number | undefined { } +let v1: number | string | undefined; +f1(v1); +v1; // number | undefined + +function f2(x: any): asserts x is 6 | undefined { } +let v2: number | string | undefined; +f2(v2); +v2; // 6 | undefined + +// #39105 + +declare function isEmptyString(value: string): value is ''; +declare function isMaybeEmptyString(value: string | null | undefined): value is '' | null | undefined; + +declare function isZero(value: number): value is 0; +declare function isMaybeZero(value: number | null | undefined): value is 0 | null | undefined; + +declare function isEmptyArray(value: T[]): value is []; +declare function isMaybeEmptyArray(value: T[] | null | undefined): value is [] | null | undefined; + +const TEST_CASES = [ + (value: string) => { + if (isEmptyString(value)) { + value; // "" + } + else { + value; // string + } + if (isMaybeEmptyString(value)) { + value; // "" + } + else { + value; // string + } + }, + (value?: string) => { + if (isMaybeEmptyString(value)) { + value; // "" | undefined + } + else { + value; // string + } + }, + (value: number) => { + if (isZero(value)) { + value; // 0 + } + else { + value; // number + } + if (isMaybeZero(value)) { + value; // 0 + } + else { + value; // number + } + }, + (value?: number) => { + if (isMaybeZero(value)) { + value; // 0 | undefined + } + else { + value; // number + } + }, + (value: string[]) => { + if (isEmptyArray(value)) { + value; // [] + } + else { + value; // string[] + } + if (isMaybeEmptyArray(value)) { + value; // [] + } + else { + value; // string[] + } + }, + (value?: string[]) => { + if (isMaybeEmptyArray(value)) { + value; // [] | undefined + } + else { + value; // string[] + } + }, +]; + +// Repro from #42101 + +type EmptyString = '' | null | undefined; + +function isEmpty(value: string | EmptyString): value is EmptyString { + return value === '' || value === null || value === undefined; +} + +let test: string | null | undefined; + +if (isEmpty(test)) { + test; // EmptyString +} + +// Repro from #43825 + +declare function assert(value: any): asserts value is T + +function test1(foo: number | string | boolean) { + assert<1 | string>(foo); + foo; // string | 1 +} + +// Repro from #46909 + +function check1(x: unknown): x is (string | 0) { + return typeof x === "string" || x === 0; +} + +function check2(x: unknown): x is ("hello" | 0) { + return x === "hello" || x === 0; +} + +function test3(x: unknown) { + if (typeof x === "string" || x === 0) { + x; // string | 0 + if (x === "hello" || x === 0) { + x; // 0 | "hello" + } + } + if (check1(x)) { + x; // string | 0 + if (check2(x)) { + x; // 0 | "hello" + } + } +} + +// Repro from #49588 + +function assertRelationIsNullOrStringArray(v: (string | number)[] | null): asserts v is string[] | null {} + +function f1x(obj: (string | number)[] | null) { + assertRelationIsNullOrStringArray(obj); + obj; // string[] | null +} + + +//// [narrowingUnionToUnion.js] +"use strict"; +function fx1(x) { + if (isFalsy(x)) { + x; // "" | 0 | undefined + } +} +function fx2(x) { + if (isFalsy(x)) { + x; // T & Falsy | undefined + } +} +function fx3(x) { + if (isFalsy(x)) { + x; // T & "" | T & 0 + } +} +function fx4(obj) { + if (isA(obj)) { + obj; // { b: 0 } + } +} +function fx5(obj, c) { + if (obj instanceof c) { + obj; // XS | YS + } + if (isXSorY(obj)) { + obj; // XS | YS + } +} +function fx10(s) { + if (isEmptyStrOrUndefined(s)) { + s; // "" | undefined + if (s == undefined) { + s; // undefined + } + else { + s; // "" + } + } +} +// Repro from #37807 +function f1(x) { } +var v1; +f1(v1); +v1; // number | undefined +function f2(x) { } +var v2; +f2(v2); +v2; // 6 | undefined +var TEST_CASES = [ + function (value) { + if (isEmptyString(value)) { + value; // "" + } + else { + value; // string + } + if (isMaybeEmptyString(value)) { + value; // "" + } + else { + value; // string + } + }, + function (value) { + if (isMaybeEmptyString(value)) { + value; // "" | undefined + } + else { + value; // string + } + }, + function (value) { + if (isZero(value)) { + value; // 0 + } + else { + value; // number + } + if (isMaybeZero(value)) { + value; // 0 + } + else { + value; // number + } + }, + function (value) { + if (isMaybeZero(value)) { + value; // 0 | undefined + } + else { + value; // number + } + }, + function (value) { + if (isEmptyArray(value)) { + value; // [] + } + else { + value; // string[] + } + if (isMaybeEmptyArray(value)) { + value; // [] + } + else { + value; // string[] + } + }, + function (value) { + if (isMaybeEmptyArray(value)) { + value; // [] | undefined + } + else { + value; // string[] + } + }, +]; +function isEmpty(value) { + return value === '' || value === null || value === undefined; +} +var test; +if (isEmpty(test)) { + test; // EmptyString +} +function test1(foo) { + assert(foo); + foo; // string | 1 +} +// Repro from #46909 +function check1(x) { + return typeof x === "string" || x === 0; +} +function check2(x) { + return x === "hello" || x === 0; +} +function test3(x) { + if (typeof x === "string" || x === 0) { + x; // string | 0 + if (x === "hello" || x === 0) { + x; // 0 | "hello" + } + } + if (check1(x)) { + x; // string | 0 + if (check2(x)) { + x; // 0 | "hello" + } + } +} +// Repro from #49588 +function assertRelationIsNullOrStringArray(v) { } +function f1x(obj) { + assertRelationIsNullOrStringArray(obj); + obj; // string[] | null +} + + +//// [narrowingUnionToUnion.d.ts] +type Falsy = false | 0 | 0n | '' | null | undefined; +declare function isFalsy(value: unknown): value is Falsy; +declare function fx1(x: string | number | undefined): void; +declare function fx2(x: T | undefined): void; +declare function fx3(x: T): void; +declare function isA(obj: unknown): obj is { + a: false; +} | { + b: 0; +}; +declare function fx4(obj: { + b: number; +}): void; +declare class X { + x: string; +} +declare class XS extends X { + xs: string; +} +declare class Y { + y: string; +} +declare class YS extends Y { + ys: string; +} +declare function isXSorY(obj: unknown): obj is XS | Y; +declare function fx5(obj: X | YS, c: typeof XS | typeof Y): void; +declare function isEmptyStrOrUndefined(mixed: any): mixed is "" | undefined; +declare function fx10(s: string | undefined): void; +declare function f1(x: any): asserts x is number | undefined; +declare let v1: number | string | undefined; +declare function f2(x: any): asserts x is 6 | undefined; +declare let v2: number | string | undefined; +declare function isEmptyString(value: string): value is ''; +declare function isMaybeEmptyString(value: string | null | undefined): value is '' | null | undefined; +declare function isZero(value: number): value is 0; +declare function isMaybeZero(value: number | null | undefined): value is 0 | null | undefined; +declare function isEmptyArray(value: T[]): value is []; +declare function isMaybeEmptyArray(value: T[] | null | undefined): value is [] | null | undefined; +declare const TEST_CASES: (((value: string) => void) | ((value: number) => void) | ((value: string[]) => void))[]; +type EmptyString = '' | null | undefined; +declare function isEmpty(value: string | EmptyString): value is EmptyString; +declare let test: string | null | undefined; +declare function assert(value: any): asserts value is T; +declare function test1(foo: number | string | boolean): void; +declare function check1(x: unknown): x is (string | 0); +declare function check2(x: unknown): x is ("hello" | 0); +declare function test3(x: unknown): void; +declare function assertRelationIsNullOrStringArray(v: (string | number)[] | null): asserts v is string[] | null; +declare function f1x(obj: (string | number)[] | null): void; diff --git a/tests/baselines/reference/narrowingUnionToUnion.symbols b/tests/baselines/reference/narrowingUnionToUnion.symbols new file mode 100644 index 00000000000..5c7dfcb41de --- /dev/null +++ b/tests/baselines/reference/narrowingUnionToUnion.symbols @@ -0,0 +1,482 @@ +=== tests/cases/compiler/narrowingUnionToUnion.ts === +type Falsy = false | 0 | 0n | '' | null | undefined; +>Falsy : Symbol(Falsy, Decl(narrowingUnionToUnion.ts, 0, 0)) + +declare function isFalsy(value: unknown): value is Falsy; +>isFalsy : Symbol(isFalsy, Decl(narrowingUnionToUnion.ts, 0, 52)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 2, 25)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 2, 25)) +>Falsy : Symbol(Falsy, Decl(narrowingUnionToUnion.ts, 0, 0)) + +function fx1(x: string | number | undefined) { +>fx1 : Symbol(fx1, Decl(narrowingUnionToUnion.ts, 2, 57)) +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 4, 13)) + + if (isFalsy(x)) { +>isFalsy : Symbol(isFalsy, Decl(narrowingUnionToUnion.ts, 0, 52)) +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 4, 13)) + + x; // "" | 0 | undefined +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 4, 13)) + } +} + +function fx2(x: T | undefined) { +>fx2 : Symbol(fx2, Decl(narrowingUnionToUnion.ts, 8, 1)) +>T : Symbol(T, Decl(narrowingUnionToUnion.ts, 10, 13)) +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 10, 16)) +>T : Symbol(T, Decl(narrowingUnionToUnion.ts, 10, 13)) + + if (isFalsy(x)) { +>isFalsy : Symbol(isFalsy, Decl(narrowingUnionToUnion.ts, 0, 52)) +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 10, 16)) + + x; // T & Falsy | undefined +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 10, 16)) + } +} + +function fx3(x: T) { +>fx3 : Symbol(fx3, Decl(narrowingUnionToUnion.ts, 14, 1)) +>T : Symbol(T, Decl(narrowingUnionToUnion.ts, 16, 13)) +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 16, 40)) +>T : Symbol(T, Decl(narrowingUnionToUnion.ts, 16, 13)) + + if (isFalsy(x)) { +>isFalsy : Symbol(isFalsy, Decl(narrowingUnionToUnion.ts, 0, 52)) +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 16, 40)) + + x; // T & "" | T & 0 +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 16, 40)) + } +} + +declare function isA(obj: unknown): obj is { a: false } | { b: 0 }; +>isA : Symbol(isA, Decl(narrowingUnionToUnion.ts, 20, 1)) +>obj : Symbol(obj, Decl(narrowingUnionToUnion.ts, 22, 21)) +>obj : Symbol(obj, Decl(narrowingUnionToUnion.ts, 22, 21)) +>a : Symbol(a, Decl(narrowingUnionToUnion.ts, 22, 44)) +>b : Symbol(b, Decl(narrowingUnionToUnion.ts, 22, 59)) + +function fx4(obj: { b: number }) { +>fx4 : Symbol(fx4, Decl(narrowingUnionToUnion.ts, 22, 67)) +>obj : Symbol(obj, Decl(narrowingUnionToUnion.ts, 24, 13)) +>b : Symbol(b, Decl(narrowingUnionToUnion.ts, 24, 19)) + + if (isA(obj)) { +>isA : Symbol(isA, Decl(narrowingUnionToUnion.ts, 20, 1)) +>obj : Symbol(obj, Decl(narrowingUnionToUnion.ts, 24, 13)) + + obj; // { b: 0 } +>obj : Symbol(obj, Decl(narrowingUnionToUnion.ts, 24, 13)) + } +} + +declare class X { x: string } +>X : Symbol(X, Decl(narrowingUnionToUnion.ts, 28, 1)) +>x : Symbol(X.x, Decl(narrowingUnionToUnion.ts, 30, 17)) + +declare class XS extends X { xs: string } +>XS : Symbol(XS, Decl(narrowingUnionToUnion.ts, 30, 29)) +>X : Symbol(X, Decl(narrowingUnionToUnion.ts, 28, 1)) +>xs : Symbol(XS.xs, Decl(narrowingUnionToUnion.ts, 31, 28)) + +declare class Y { y: string } +>Y : Symbol(Y, Decl(narrowingUnionToUnion.ts, 31, 41)) +>y : Symbol(Y.y, Decl(narrowingUnionToUnion.ts, 33, 17)) + +declare class YS extends Y { ys: string } +>YS : Symbol(YS, Decl(narrowingUnionToUnion.ts, 33, 29)) +>Y : Symbol(Y, Decl(narrowingUnionToUnion.ts, 31, 41)) +>ys : Symbol(YS.ys, Decl(narrowingUnionToUnion.ts, 34, 28)) + +declare function isXSorY(obj: unknown): obj is XS | Y; +>isXSorY : Symbol(isXSorY, Decl(narrowingUnionToUnion.ts, 34, 41)) +>obj : Symbol(obj, Decl(narrowingUnionToUnion.ts, 36, 25)) +>obj : Symbol(obj, Decl(narrowingUnionToUnion.ts, 36, 25)) +>XS : Symbol(XS, Decl(narrowingUnionToUnion.ts, 30, 29)) +>Y : Symbol(Y, Decl(narrowingUnionToUnion.ts, 31, 41)) + +function fx5(obj: X | YS, c: typeof XS | typeof Y) { +>fx5 : Symbol(fx5, Decl(narrowingUnionToUnion.ts, 36, 54)) +>T : Symbol(T, Decl(narrowingUnionToUnion.ts, 38, 13)) +>X : Symbol(X, Decl(narrowingUnionToUnion.ts, 28, 1)) +>obj : Symbol(obj, Decl(narrowingUnionToUnion.ts, 38, 26)) +>X : Symbol(X, Decl(narrowingUnionToUnion.ts, 28, 1)) +>YS : Symbol(YS, Decl(narrowingUnionToUnion.ts, 33, 29)) +>c : Symbol(c, Decl(narrowingUnionToUnion.ts, 38, 38)) +>XS : Symbol(XS, Decl(narrowingUnionToUnion.ts, 30, 29)) +>Y : Symbol(Y, Decl(narrowingUnionToUnion.ts, 31, 41)) + + if (obj instanceof c) { +>obj : Symbol(obj, Decl(narrowingUnionToUnion.ts, 38, 26)) +>c : Symbol(c, Decl(narrowingUnionToUnion.ts, 38, 38)) + + obj; // XS | YS +>obj : Symbol(obj, Decl(narrowingUnionToUnion.ts, 38, 26)) + } + if (isXSorY(obj)) { +>isXSorY : Symbol(isXSorY, Decl(narrowingUnionToUnion.ts, 34, 41)) +>obj : Symbol(obj, Decl(narrowingUnionToUnion.ts, 38, 26)) + + obj; // XS | YS +>obj : Symbol(obj, Decl(narrowingUnionToUnion.ts, 38, 26)) + } +} + +// Repro from #31156 + +declare function isEmptyStrOrUndefined(mixed: any): mixed is "" | undefined; +>isEmptyStrOrUndefined : Symbol(isEmptyStrOrUndefined, Decl(narrowingUnionToUnion.ts, 45, 1)) +>mixed : Symbol(mixed, Decl(narrowingUnionToUnion.ts, 49, 39)) +>mixed : Symbol(mixed, Decl(narrowingUnionToUnion.ts, 49, 39)) + +function fx10(s: string | undefined) { +>fx10 : Symbol(fx10, Decl(narrowingUnionToUnion.ts, 49, 76)) +>s : Symbol(s, Decl(narrowingUnionToUnion.ts, 51, 14)) + + if (isEmptyStrOrUndefined(s)) { +>isEmptyStrOrUndefined : Symbol(isEmptyStrOrUndefined, Decl(narrowingUnionToUnion.ts, 45, 1)) +>s : Symbol(s, Decl(narrowingUnionToUnion.ts, 51, 14)) + + s; // "" | undefined +>s : Symbol(s, Decl(narrowingUnionToUnion.ts, 51, 14)) + + if (s == undefined) { +>s : Symbol(s, Decl(narrowingUnionToUnion.ts, 51, 14)) +>undefined : Symbol(undefined) + + s; // undefined +>s : Symbol(s, Decl(narrowingUnionToUnion.ts, 51, 14)) + } + else { + s; // "" +>s : Symbol(s, Decl(narrowingUnionToUnion.ts, 51, 14)) + } + } +} + +// Repro from #37807 + +function f1(x: any): asserts x is number | undefined { } +>f1 : Symbol(f1, Decl(narrowingUnionToUnion.ts, 61, 1)) +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 65, 12)) +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 65, 12)) + +let v1: number | string | undefined; +>v1 : Symbol(v1, Decl(narrowingUnionToUnion.ts, 66, 3)) + +f1(v1); +>f1 : Symbol(f1, Decl(narrowingUnionToUnion.ts, 61, 1)) +>v1 : Symbol(v1, Decl(narrowingUnionToUnion.ts, 66, 3)) + +v1; // number | undefined +>v1 : Symbol(v1, Decl(narrowingUnionToUnion.ts, 66, 3)) + +function f2(x: any): asserts x is 6 | undefined { } +>f2 : Symbol(f2, Decl(narrowingUnionToUnion.ts, 68, 3)) +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 70, 12)) +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 70, 12)) + +let v2: number | string | undefined; +>v2 : Symbol(v2, Decl(narrowingUnionToUnion.ts, 71, 3)) + +f2(v2); +>f2 : Symbol(f2, Decl(narrowingUnionToUnion.ts, 68, 3)) +>v2 : Symbol(v2, Decl(narrowingUnionToUnion.ts, 71, 3)) + +v2; // 6 | undefined +>v2 : Symbol(v2, Decl(narrowingUnionToUnion.ts, 71, 3)) + +// #39105 + +declare function isEmptyString(value: string): value is ''; +>isEmptyString : Symbol(isEmptyString, Decl(narrowingUnionToUnion.ts, 73, 3)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 77, 31)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 77, 31)) + +declare function isMaybeEmptyString(value: string | null | undefined): value is '' | null | undefined; +>isMaybeEmptyString : Symbol(isMaybeEmptyString, Decl(narrowingUnionToUnion.ts, 77, 59)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 78, 36)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 78, 36)) + +declare function isZero(value: number): value is 0; +>isZero : Symbol(isZero, Decl(narrowingUnionToUnion.ts, 78, 102)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 80, 24)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 80, 24)) + +declare function isMaybeZero(value: number | null | undefined): value is 0 | null | undefined; +>isMaybeZero : Symbol(isMaybeZero, Decl(narrowingUnionToUnion.ts, 80, 51)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 81, 29)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 81, 29)) + +declare function isEmptyArray(value: T[]): value is []; +>isEmptyArray : Symbol(isEmptyArray, Decl(narrowingUnionToUnion.ts, 81, 94)) +>T : Symbol(T, Decl(narrowingUnionToUnion.ts, 83, 30)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 83, 33)) +>T : Symbol(T, Decl(narrowingUnionToUnion.ts, 83, 30)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 83, 33)) + +declare function isMaybeEmptyArray(value: T[] | null | undefined): value is [] | null | undefined; +>isMaybeEmptyArray : Symbol(isMaybeEmptyArray, Decl(narrowingUnionToUnion.ts, 83, 58)) +>T : Symbol(T, Decl(narrowingUnionToUnion.ts, 84, 35)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 84, 38)) +>T : Symbol(T, Decl(narrowingUnionToUnion.ts, 84, 35)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 84, 38)) + +const TEST_CASES = [ +>TEST_CASES : Symbol(TEST_CASES, Decl(narrowingUnionToUnion.ts, 86, 5)) + + (value: string) => { +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 87, 5)) + + if (isEmptyString(value)) { +>isEmptyString : Symbol(isEmptyString, Decl(narrowingUnionToUnion.ts, 73, 3)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 87, 5)) + + value; // "" +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 87, 5)) + } + else { + value; // string +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 87, 5)) + } + if (isMaybeEmptyString(value)) { +>isMaybeEmptyString : Symbol(isMaybeEmptyString, Decl(narrowingUnionToUnion.ts, 77, 59)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 87, 5)) + + value; // "" +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 87, 5)) + } + else { + value; // string +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 87, 5)) + } + }, + (value?: string) => { +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 101, 5)) + + if (isMaybeEmptyString(value)) { +>isMaybeEmptyString : Symbol(isMaybeEmptyString, Decl(narrowingUnionToUnion.ts, 77, 59)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 101, 5)) + + value; // "" | undefined +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 101, 5)) + } + else { + value; // string +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 101, 5)) + } + }, + (value: number) => { +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 109, 5)) + + if (isZero(value)) { +>isZero : Symbol(isZero, Decl(narrowingUnionToUnion.ts, 78, 102)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 109, 5)) + + value; // 0 +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 109, 5)) + } + else { + value; // number +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 109, 5)) + } + if (isMaybeZero(value)) { +>isMaybeZero : Symbol(isMaybeZero, Decl(narrowingUnionToUnion.ts, 80, 51)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 109, 5)) + + value; // 0 +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 109, 5)) + } + else { + value; // number +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 109, 5)) + } + }, + (value?: number) => { +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 123, 5)) + + if (isMaybeZero(value)) { +>isMaybeZero : Symbol(isMaybeZero, Decl(narrowingUnionToUnion.ts, 80, 51)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 123, 5)) + + value; // 0 | undefined +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 123, 5)) + } + else { + value; // number +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 123, 5)) + } + }, + (value: string[]) => { +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 131, 5)) + + if (isEmptyArray(value)) { +>isEmptyArray : Symbol(isEmptyArray, Decl(narrowingUnionToUnion.ts, 81, 94)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 131, 5)) + + value; // [] +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 131, 5)) + } + else { + value; // string[] +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 131, 5)) + } + if (isMaybeEmptyArray(value)) { +>isMaybeEmptyArray : Symbol(isMaybeEmptyArray, Decl(narrowingUnionToUnion.ts, 83, 58)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 131, 5)) + + value; // [] +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 131, 5)) + } + else { + value; // string[] +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 131, 5)) + } + }, + (value?: string[]) => { +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 145, 5)) + + if (isMaybeEmptyArray(value)) { +>isMaybeEmptyArray : Symbol(isMaybeEmptyArray, Decl(narrowingUnionToUnion.ts, 83, 58)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 145, 5)) + + value; // [] | undefined +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 145, 5)) + } + else { + value; // string[] +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 145, 5)) + } + }, +]; + +// Repro from #42101 + +type EmptyString = '' | null | undefined; +>EmptyString : Symbol(EmptyString, Decl(narrowingUnionToUnion.ts, 153, 2)) + +function isEmpty(value: string | EmptyString): value is EmptyString { +>isEmpty : Symbol(isEmpty, Decl(narrowingUnionToUnion.ts, 157, 41)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 159, 17)) +>EmptyString : Symbol(EmptyString, Decl(narrowingUnionToUnion.ts, 153, 2)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 159, 17)) +>EmptyString : Symbol(EmptyString, Decl(narrowingUnionToUnion.ts, 153, 2)) + + return value === '' || value === null || value === undefined; +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 159, 17)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 159, 17)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 159, 17)) +>undefined : Symbol(undefined) +} + +let test: string | null | undefined; +>test : Symbol(test, Decl(narrowingUnionToUnion.ts, 163, 3)) + +if (isEmpty(test)) { +>isEmpty : Symbol(isEmpty, Decl(narrowingUnionToUnion.ts, 157, 41)) +>test : Symbol(test, Decl(narrowingUnionToUnion.ts, 163, 3)) + + test; // EmptyString +>test : Symbol(test, Decl(narrowingUnionToUnion.ts, 163, 3)) +} + +// Repro from #43825 + +declare function assert(value: any): asserts value is T +>assert : Symbol(assert, Decl(narrowingUnionToUnion.ts, 167, 1)) +>T : Symbol(T, Decl(narrowingUnionToUnion.ts, 171, 24)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 171, 27)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 171, 27)) +>T : Symbol(T, Decl(narrowingUnionToUnion.ts, 171, 24)) + +function test1(foo: number | string | boolean) { +>test1 : Symbol(test1, Decl(narrowingUnionToUnion.ts, 171, 58)) +>foo : Symbol(foo, Decl(narrowingUnionToUnion.ts, 173, 15)) + + assert<1 | string>(foo); +>assert : Symbol(assert, Decl(narrowingUnionToUnion.ts, 167, 1)) +>foo : Symbol(foo, Decl(narrowingUnionToUnion.ts, 173, 15)) + + foo; // string | 1 +>foo : Symbol(foo, Decl(narrowingUnionToUnion.ts, 173, 15)) +} + +// Repro from #46909 + +function check1(x: unknown): x is (string | 0) { +>check1 : Symbol(check1, Decl(narrowingUnionToUnion.ts, 176, 1)) +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 180, 16)) +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 180, 16)) + + return typeof x === "string" || x === 0; +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 180, 16)) +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 180, 16)) +} + +function check2(x: unknown): x is ("hello" | 0) { +>check2 : Symbol(check2, Decl(narrowingUnionToUnion.ts, 182, 1)) +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 184, 16)) +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 184, 16)) + + return x === "hello" || x === 0; +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 184, 16)) +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 184, 16)) +} + +function test3(x: unknown) { +>test3 : Symbol(test3, Decl(narrowingUnionToUnion.ts, 186, 1)) +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 188, 15)) + + if (typeof x === "string" || x === 0) { +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 188, 15)) +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 188, 15)) + + x; // string | 0 +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 188, 15)) + + if (x === "hello" || x === 0) { +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 188, 15)) +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 188, 15)) + + x; // 0 | "hello" +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 188, 15)) + } + } + if (check1(x)) { +>check1 : Symbol(check1, Decl(narrowingUnionToUnion.ts, 176, 1)) +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 188, 15)) + + x; // string | 0 +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 188, 15)) + + if (check2(x)) { +>check2 : Symbol(check2, Decl(narrowingUnionToUnion.ts, 182, 1)) +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 188, 15)) + + x; // 0 | "hello" +>x : Symbol(x, Decl(narrowingUnionToUnion.ts, 188, 15)) + } + } +} + +// Repro from #49588 + +function assertRelationIsNullOrStringArray(v: (string | number)[] | null): asserts v is string[] | null {} +>assertRelationIsNullOrStringArray : Symbol(assertRelationIsNullOrStringArray, Decl(narrowingUnionToUnion.ts, 201, 1)) +>v : Symbol(v, Decl(narrowingUnionToUnion.ts, 205, 43)) +>v : Symbol(v, Decl(narrowingUnionToUnion.ts, 205, 43)) + +function f1x(obj: (string | number)[] | null) { +>f1x : Symbol(f1x, Decl(narrowingUnionToUnion.ts, 205, 106)) +>obj : Symbol(obj, Decl(narrowingUnionToUnion.ts, 207, 13)) + + assertRelationIsNullOrStringArray(obj); +>assertRelationIsNullOrStringArray : Symbol(assertRelationIsNullOrStringArray, Decl(narrowingUnionToUnion.ts, 201, 1)) +>obj : Symbol(obj, Decl(narrowingUnionToUnion.ts, 207, 13)) + + obj; // string[] | null +>obj : Symbol(obj, Decl(narrowingUnionToUnion.ts, 207, 13)) +} + diff --git a/tests/baselines/reference/narrowingUnionToUnion.types b/tests/baselines/reference/narrowingUnionToUnion.types new file mode 100644 index 00000000000..4b373711bd9 --- /dev/null +++ b/tests/baselines/reference/narrowingUnionToUnion.types @@ -0,0 +1,520 @@ +=== tests/cases/compiler/narrowingUnionToUnion.ts === +type Falsy = false | 0 | 0n | '' | null | undefined; +>Falsy : false | "" | 0 | 0n | null | undefined +>false : false +>null : null + +declare function isFalsy(value: unknown): value is Falsy; +>isFalsy : (value: unknown) => value is Falsy +>value : unknown + +function fx1(x: string | number | undefined) { +>fx1 : (x: string | number | undefined) => void +>x : string | number | undefined + + if (isFalsy(x)) { +>isFalsy(x) : boolean +>isFalsy : (value: unknown) => value is Falsy +>x : string | number | undefined + + x; // "" | 0 | undefined +>x : "" | 0 | undefined + } +} + +function fx2(x: T | undefined) { +>fx2 : (x: T | undefined) => void +>x : T | undefined + + if (isFalsy(x)) { +>isFalsy(x) : boolean +>isFalsy : (value: unknown) => value is Falsy +>x : T | undefined + + x; // T & Falsy | undefined +>x : (T & null) | (T & false) | (T & "") | (T & 0) | (T & 0n) | undefined + } +} + +function fx3(x: T) { +>fx3 : (x: T) => void +>x : T + + if (isFalsy(x)) { +>isFalsy(x) : boolean +>isFalsy : (value: unknown) => value is Falsy +>x : string | number + + x; // T & "" | T & 0 +>x : (T & "") | (T & 0) + } +} + +declare function isA(obj: unknown): obj is { a: false } | { b: 0 }; +>isA : (obj: unknown) => obj is { a: false; } | { b: 0; } +>obj : unknown +>a : false +>false : false +>b : 0 + +function fx4(obj: { b: number }) { +>fx4 : (obj: { b: number;}) => void +>obj : { b: number; } +>b : number + + if (isA(obj)) { +>isA(obj) : boolean +>isA : (obj: unknown) => obj is { a: false; } | { b: 0; } +>obj : { b: number; } + + obj; // { b: 0 } +>obj : { b: 0; } + } +} + +declare class X { x: string } +>X : X +>x : string + +declare class XS extends X { xs: string } +>XS : XS +>X : X +>xs : string + +declare class Y { y: string } +>Y : Y +>y : string + +declare class YS extends Y { ys: string } +>YS : YS +>Y : Y +>ys : string + +declare function isXSorY(obj: unknown): obj is XS | Y; +>isXSorY : (obj: unknown) => obj is XS | Y +>obj : unknown + +function fx5(obj: X | YS, c: typeof XS | typeof Y) { +>fx5 : (obj: X | YS, c: typeof XS | typeof Y) => void +>obj : X | YS +>c : typeof XS | typeof Y +>XS : typeof XS +>Y : typeof Y + + if (obj instanceof c) { +>obj instanceof c : boolean +>obj : X | YS +>c : typeof XS | typeof Y + + obj; // XS | YS +>obj : XS | YS + } + if (isXSorY(obj)) { +>isXSorY(obj) : boolean +>isXSorY : (obj: unknown) => obj is XS | Y +>obj : X | YS + + obj; // XS | YS +>obj : XS | YS + } +} + +// Repro from #31156 + +declare function isEmptyStrOrUndefined(mixed: any): mixed is "" | undefined; +>isEmptyStrOrUndefined : (mixed: any) => mixed is "" | undefined +>mixed : any + +function fx10(s: string | undefined) { +>fx10 : (s: string | undefined) => void +>s : string | undefined + + if (isEmptyStrOrUndefined(s)) { +>isEmptyStrOrUndefined(s) : boolean +>isEmptyStrOrUndefined : (mixed: any) => mixed is "" | undefined +>s : string | undefined + + s; // "" | undefined +>s : "" | undefined + + if (s == undefined) { +>s == undefined : boolean +>s : "" | undefined +>undefined : undefined + + s; // undefined +>s : undefined + } + else { + s; // "" +>s : "" + } + } +} + +// Repro from #37807 + +function f1(x: any): asserts x is number | undefined { } +>f1 : (x: any) => asserts x is number | undefined +>x : any + +let v1: number | string | undefined; +>v1 : string | number | undefined + +f1(v1); +>f1(v1) : void +>f1 : (x: any) => asserts x is number | undefined +>v1 : string | number | undefined + +v1; // number | undefined +>v1 : number | undefined + +function f2(x: any): asserts x is 6 | undefined { } +>f2 : (x: any) => asserts x is 6 | undefined +>x : any + +let v2: number | string | undefined; +>v2 : string | number | undefined + +f2(v2); +>f2(v2) : void +>f2 : (x: any) => asserts x is 6 | undefined +>v2 : string | number | undefined + +v2; // 6 | undefined +>v2 : 6 | undefined + +// #39105 + +declare function isEmptyString(value: string): value is ''; +>isEmptyString : (value: string) => value is "" +>value : string + +declare function isMaybeEmptyString(value: string | null | undefined): value is '' | null | undefined; +>isMaybeEmptyString : (value: string | null | undefined) => value is "" | null | undefined +>value : string | null | undefined +>null : null +>null : null + +declare function isZero(value: number): value is 0; +>isZero : (value: number) => value is 0 +>value : number + +declare function isMaybeZero(value: number | null | undefined): value is 0 | null | undefined; +>isMaybeZero : (value: number | null | undefined) => value is 0 | null | undefined +>value : number | null | undefined +>null : null +>null : null + +declare function isEmptyArray(value: T[]): value is []; +>isEmptyArray : (value: T[]) => value is [] +>value : T[] + +declare function isMaybeEmptyArray(value: T[] | null | undefined): value is [] | null | undefined; +>isMaybeEmptyArray : (value: T[] | null | undefined) => value is [] | null | undefined +>value : T[] | null | undefined +>null : null +>null : null + +const TEST_CASES = [ +>TEST_CASES : (((value: string) => void) | ((value: number) => void) | ((value: string[]) => void))[] +>[ (value: string) => { if (isEmptyString(value)) { value; // "" } else { value; // string } if (isMaybeEmptyString(value)) { value; // "" } else { value; // string } }, (value?: string) => { if (isMaybeEmptyString(value)) { value; // "" | undefined } else { value; // string } }, (value: number) => { if (isZero(value)) { value; // 0 } else { value; // number } if (isMaybeZero(value)) { value; // 0 } else { value; // number } }, (value?: number) => { if (isMaybeZero(value)) { value; // 0 | undefined } else { value; // number } }, (value: string[]) => { if (isEmptyArray(value)) { value; // [] } else { value; // string[] } if (isMaybeEmptyArray(value)) { value; // [] } else { value; // string[] } }, (value?: string[]) => { if (isMaybeEmptyArray(value)) { value; // [] | undefined } else { value; // string[] } },] : (((value: string) => void) | ((value: number) => void) | ((value: string[]) => void))[] + + (value: string) => { +>(value: string) => { if (isEmptyString(value)) { value; // "" } else { value; // string } if (isMaybeEmptyString(value)) { value; // "" } else { value; // string } } : (value: string) => void +>value : string + + if (isEmptyString(value)) { +>isEmptyString(value) : boolean +>isEmptyString : (value: string) => value is "" +>value : string + + value; // "" +>value : "" + } + else { + value; // string +>value : string + } + if (isMaybeEmptyString(value)) { +>isMaybeEmptyString(value) : boolean +>isMaybeEmptyString : (value: string | null | undefined) => value is "" | null | undefined +>value : string + + value; // "" +>value : "" + } + else { + value; // string +>value : string + } + }, + (value?: string) => { +>(value?: string) => { if (isMaybeEmptyString(value)) { value; // "" | undefined } else { value; // string } } : (value?: string) => void +>value : string | undefined + + if (isMaybeEmptyString(value)) { +>isMaybeEmptyString(value) : boolean +>isMaybeEmptyString : (value: string | null | undefined) => value is "" | null | undefined +>value : string | undefined + + value; // "" | undefined +>value : "" | undefined + } + else { + value; // string +>value : string + } + }, + (value: number) => { +>(value: number) => { if (isZero(value)) { value; // 0 } else { value; // number } if (isMaybeZero(value)) { value; // 0 } else { value; // number } } : (value: number) => void +>value : number + + if (isZero(value)) { +>isZero(value) : boolean +>isZero : (value: number) => value is 0 +>value : number + + value; // 0 +>value : 0 + } + else { + value; // number +>value : number + } + if (isMaybeZero(value)) { +>isMaybeZero(value) : boolean +>isMaybeZero : (value: number | null | undefined) => value is 0 | null | undefined +>value : number + + value; // 0 +>value : 0 + } + else { + value; // number +>value : number + } + }, + (value?: number) => { +>(value?: number) => { if (isMaybeZero(value)) { value; // 0 | undefined } else { value; // number } } : (value?: number) => void +>value : number | undefined + + if (isMaybeZero(value)) { +>isMaybeZero(value) : boolean +>isMaybeZero : (value: number | null | undefined) => value is 0 | null | undefined +>value : number | undefined + + value; // 0 | undefined +>value : 0 | undefined + } + else { + value; // number +>value : number + } + }, + (value: string[]) => { +>(value: string[]) => { if (isEmptyArray(value)) { value; // [] } else { value; // string[] } if (isMaybeEmptyArray(value)) { value; // [] } else { value; // string[] } } : (value: string[]) => void +>value : string[] + + if (isEmptyArray(value)) { +>isEmptyArray(value) : boolean +>isEmptyArray : (value: T[]) => value is [] +>value : string[] + + value; // [] +>value : [] + } + else { + value; // string[] +>value : string[] + } + if (isMaybeEmptyArray(value)) { +>isMaybeEmptyArray(value) : boolean +>isMaybeEmptyArray : (value: T[] | null | undefined) => value is [] | null | undefined +>value : string[] + + value; // [] +>value : [] + } + else { + value; // string[] +>value : string[] + } + }, + (value?: string[]) => { +>(value?: string[]) => { if (isMaybeEmptyArray(value)) { value; // [] | undefined } else { value; // string[] } } : (value?: string[]) => void +>value : string[] | undefined + + if (isMaybeEmptyArray(value)) { +>isMaybeEmptyArray(value) : boolean +>isMaybeEmptyArray : (value: T[] | null | undefined) => value is [] | null | undefined +>value : string[] | undefined + + value; // [] | undefined +>value : [] | undefined + } + else { + value; // string[] +>value : string[] + } + }, +]; + +// Repro from #42101 + +type EmptyString = '' | null | undefined; +>EmptyString : "" | null | undefined +>null : null + +function isEmpty(value: string | EmptyString): value is EmptyString { +>isEmpty : (value: string | EmptyString) => value is EmptyString +>value : string | null | undefined + + return value === '' || value === null || value === undefined; +>value === '' || value === null || value === undefined : boolean +>value === '' || value === null : boolean +>value === '' : boolean +>value : string | null | undefined +>'' : "" +>value === null : boolean +>value : string | null | undefined +>null : null +>value === undefined : boolean +>value : string | undefined +>undefined : undefined +} + +let test: string | null | undefined; +>test : string | null | undefined +>null : null + +if (isEmpty(test)) { +>isEmpty(test) : boolean +>isEmpty : (value: string | null | undefined) => value is EmptyString +>test : string | null | undefined + + test; // EmptyString +>test : EmptyString +} + +// Repro from #43825 + +declare function assert(value: any): asserts value is T +>assert : (value: any) => asserts value is T +>value : any + +function test1(foo: number | string | boolean) { +>test1 : (foo: number | string | boolean) => void +>foo : string | number | boolean + + assert<1 | string>(foo); +>assert<1 | string>(foo) : void +>assert : (value: any) => asserts value is T +>foo : string | number | boolean + + foo; // string | 1 +>foo : string | 1 +} + +// Repro from #46909 + +function check1(x: unknown): x is (string | 0) { +>check1 : (x: unknown) => x is string | 0 +>x : unknown + + return typeof x === "string" || x === 0; +>typeof x === "string" || x === 0 : boolean +>typeof x === "string" : boolean +>typeof x : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +>x : unknown +>"string" : "string" +>x === 0 : boolean +>x : unknown +>0 : 0 +} + +function check2(x: unknown): x is ("hello" | 0) { +>check2 : (x: unknown) => x is 0 | "hello" +>x : unknown + + return x === "hello" || x === 0; +>x === "hello" || x === 0 : boolean +>x === "hello" : boolean +>x : unknown +>"hello" : "hello" +>x === 0 : boolean +>x : unknown +>0 : 0 +} + +function test3(x: unknown) { +>test3 : (x: unknown) => void +>x : unknown + + if (typeof x === "string" || x === 0) { +>typeof x === "string" || x === 0 : boolean +>typeof x === "string" : boolean +>typeof x : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +>x : unknown +>"string" : "string" +>x === 0 : boolean +>x : unknown +>0 : 0 + + x; // string | 0 +>x : string | 0 + + if (x === "hello" || x === 0) { +>x === "hello" || x === 0 : boolean +>x === "hello" : boolean +>x : string | 0 +>"hello" : "hello" +>x === 0 : boolean +>x : string | 0 +>0 : 0 + + x; // 0 | "hello" +>x : 0 | "hello" + } + } + if (check1(x)) { +>check1(x) : boolean +>check1 : (x: unknown) => x is string | 0 +>x : unknown + + x; // string | 0 +>x : string | 0 + + if (check2(x)) { +>check2(x) : boolean +>check2 : (x: unknown) => x is 0 | "hello" +>x : string | 0 + + x; // 0 | "hello" +>x : 0 | "hello" + } + } +} + +// Repro from #49588 + +function assertRelationIsNullOrStringArray(v: (string | number)[] | null): asserts v is string[] | null {} +>assertRelationIsNullOrStringArray : (v: (string | number)[] | null) => asserts v is string[] | null +>v : (string | number)[] | null +>null : null +>null : null + +function f1x(obj: (string | number)[] | null) { +>f1x : (obj: (string | number)[] | null) => void +>obj : (string | number)[] | null +>null : null + + assertRelationIsNullOrStringArray(obj); +>assertRelationIsNullOrStringArray(obj) : void +>assertRelationIsNullOrStringArray : (v: (string | number)[] | null) => asserts v is string[] | null +>obj : (string | number)[] | null + + obj; // string[] | null +>obj : string[] | null +} + diff --git a/tests/baselines/reference/narrowingWithNonNullExpression.symbols b/tests/baselines/reference/narrowingWithNonNullExpression.symbols index ab952378302..b60abdddbe6 100644 --- a/tests/baselines/reference/narrowingWithNonNullExpression.symbols +++ b/tests/baselines/reference/narrowingWithNonNullExpression.symbols @@ -7,8 +7,11 @@ const m = ''.match(''); m! && m[0]; >m : Symbol(m, Decl(narrowingWithNonNullExpression.ts, 0, 5)) >m : Symbol(m, Decl(narrowingWithNonNullExpression.ts, 0, 5)) +>0 : Symbol(RegExpMatchArray[0], Decl(lib.es5.d.ts, --, --)) m?.[0]! && m[0]; >m : Symbol(m, Decl(narrowingWithNonNullExpression.ts, 0, 5)) +>0 : Symbol(RegExpMatchArray[0], Decl(lib.es5.d.ts, --, --)) >m : Symbol(m, Decl(narrowingWithNonNullExpression.ts, 0, 5)) +>0 : Symbol(RegExpMatchArray[0], Decl(lib.es5.d.ts, --, --)) diff --git a/tests/baselines/reference/neverReturningFunctions1.js b/tests/baselines/reference/neverReturningFunctions1.js index 7a9817644f2..d6b4fa7cacb 100644 --- a/tests/baselines/reference/neverReturningFunctions1.js +++ b/tests/baselines/reference/neverReturningFunctions1.js @@ -523,4 +523,4 @@ export interface ComponentConstructor { pause(): void; }; } -export declare type ComponentDefinition = T & Partial & ThisType; +export type ComponentDefinition = T & Partial & ThisType; diff --git a/tests/baselines/reference/noExcessiveStackDepthError.js b/tests/baselines/reference/noExcessiveStackDepthError.js index 97e9cb94464..5f28f97cda7 100644 --- a/tests/baselines/reference/noExcessiveStackDepthError.js +++ b/tests/baselines/reference/noExcessiveStackDepthError.js @@ -28,7 +28,7 @@ function foo() { interface FindOperator { foo: T; } -declare type FindConditions = { +type FindConditions = { [P in keyof T]?: FindConditions | FindOperator>; }; declare function foo(): void; diff --git a/tests/baselines/reference/noImplicitReturnsInAsync1.symbols b/tests/baselines/reference/noImplicitReturnsInAsync1.symbols index fbcd727d0d6..fe225cb508c 100644 --- a/tests/baselines/reference/noImplicitReturnsInAsync1.symbols +++ b/tests/baselines/reference/noImplicitReturnsInAsync1.symbols @@ -10,7 +10,7 @@ async function test(isError: boolean = false) { } let x = await Promise.resolve("The test is passed without an error."); >x : Symbol(x, Decl(noImplicitReturnsInAsync1.ts, 4, 7)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) } diff --git a/tests/baselines/reference/noImplicitReturnsInAsync1.types b/tests/baselines/reference/noImplicitReturnsInAsync1.types index d6ae47e213f..de9b95cdb49 100644 --- a/tests/baselines/reference/noImplicitReturnsInAsync1.types +++ b/tests/baselines/reference/noImplicitReturnsInAsync1.types @@ -15,8 +15,8 @@ async function test(isError: boolean = false) { >x : string >await Promise.resolve("The test is passed without an error.") : string >Promise.resolve("The test is passed without an error.") : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >"The test is passed without an error." : "The test is passed without an error." } diff --git a/tests/baselines/reference/nodeAllowJsPackageSelfName(module=node16).errors.txt b/tests/baselines/reference/nodeAllowJsPackageSelfName(module=node16).errors.txt index 42a324dadf6..45e5c345de2 100644 --- a/tests/baselines/reference/nodeAllowJsPackageSelfName(module=node16).errors.txt +++ b/tests/baselines/reference/nodeAllowJsPackageSelfName(module=node16).errors.txt @@ -1,5 +1,5 @@ error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file 'tests/cases/conformance/node/allowJs/package.json'. Supply the `rootDir` compiler option to disambiguate. -tests/cases/conformance/node/allowJs/index.cjs(2,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.cjs(2,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. !!! error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file 'tests/cases/conformance/node/allowJs/package.json'. Supply the `rootDir` compiler option to disambiguate. @@ -15,7 +15,7 @@ tests/cases/conformance/node/allowJs/index.cjs(2,23): error TS1471: Module 'pack // esm format file import * as self from "package"; ~~~~~~~~~ -!!! error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. self; ==== tests/cases/conformance/node/allowJs/package.json (0 errors) ==== { diff --git a/tests/baselines/reference/nodeAllowJsPackageSelfName(module=nodenext).errors.txt b/tests/baselines/reference/nodeAllowJsPackageSelfName(module=nodenext).errors.txt index 42a324dadf6..45e5c345de2 100644 --- a/tests/baselines/reference/nodeAllowJsPackageSelfName(module=nodenext).errors.txt +++ b/tests/baselines/reference/nodeAllowJsPackageSelfName(module=nodenext).errors.txt @@ -1,5 +1,5 @@ error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file 'tests/cases/conformance/node/allowJs/package.json'. Supply the `rootDir` compiler option to disambiguate. -tests/cases/conformance/node/allowJs/index.cjs(2,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.cjs(2,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. !!! error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file 'tests/cases/conformance/node/allowJs/package.json'. Supply the `rootDir` compiler option to disambiguate. @@ -15,7 +15,7 @@ tests/cases/conformance/node/allowJs/index.cjs(2,23): error TS1471: Module 'pack // esm format file import * as self from "package"; ~~~~~~~~~ -!!! error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. self; ==== tests/cases/conformance/node/allowJs/package.json (0 errors) ==== { diff --git a/tests/baselines/reference/nodeModules1(module=node16).errors.txt b/tests/baselines/reference/nodeModules1(module=node16).errors.txt index e8bcd1c06a7..fdadf6a8f5c 100644 --- a/tests/baselines/reference/nodeModules1(module=node16).errors.txt +++ b/tests/baselines/reference/nodeModules1(module=node16).errors.txt @@ -1,19 +1,19 @@ -tests/cases/conformance/node/index.cts(2,21): error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(3,21): error TS1471: Module './index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(6,21): error TS1471: Module './subfolder/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(9,21): error TS1471: Module './subfolder2/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(11,22): error TS1471: Module './subfolder2/another/index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(12,22): error TS1471: Module './subfolder2/another/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(15,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(16,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(23,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(24,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(25,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(51,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(52,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(59,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(60,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(61,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.cts(2,21): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./index.js")' call instead. +tests/cases/conformance/node/index.cts(3,21): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./index.mjs")' call instead. +tests/cases/conformance/node/index.cts(6,21): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder/index.mjs")' call instead. +tests/cases/conformance/node/index.cts(9,21): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/index.mjs")' call instead. +tests/cases/conformance/node/index.cts(11,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/index.js")' call instead. +tests/cases/conformance/node/index.cts(12,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/index.mjs")' call instead. +tests/cases/conformance/node/index.cts(15,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./")' call instead. +tests/cases/conformance/node/index.cts(16,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./index")' call instead. +tests/cases/conformance/node/index.cts(23,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another")' call instead. +tests/cases/conformance/node/index.cts(24,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/")' call instead. +tests/cases/conformance/node/index.cts(25,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/index")' call instead. +tests/cases/conformance/node/index.cts(51,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/index.cts(52,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/index.cts(59,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/index.cts(60,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/index.cts(61,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/index.cts(75,21): error TS2307: Cannot find module './' or its corresponding type declarations. tests/cases/conformance/node/index.cts(76,21): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './index.mjs'? tests/cases/conformance/node/index.cts(77,21): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path. @@ -36,11 +36,11 @@ tests/cases/conformance/node/index.mts(21,22): error TS2835: Relative import pat tests/cases/conformance/node/index.mts(22,22): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path. tests/cases/conformance/node/index.mts(23,22): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path. tests/cases/conformance/node/index.mts(24,22): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './subfolder2/another/index.mjs'? -tests/cases/conformance/node/index.mts(50,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.mts(51,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.mts(58,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.mts(59,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.mts(60,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.mts(50,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/index.mts(51,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/index.mts(58,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/index.mts(59,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/index.mts(60,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/index.mts(74,21): error TS2307: Cannot find module './' or its corresponding type declarations. tests/cases/conformance/node/index.mts(75,21): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './index.mjs'? tests/cases/conformance/node/index.mts(76,21): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path. @@ -63,11 +63,11 @@ tests/cases/conformance/node/index.ts(21,22): error TS2835: Relative import path tests/cases/conformance/node/index.ts(22,22): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path. tests/cases/conformance/node/index.ts(23,22): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path. tests/cases/conformance/node/index.ts(24,22): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './subfolder2/another/index.mjs'? -tests/cases/conformance/node/index.ts(50,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.ts(51,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.ts(58,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.ts(59,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.ts(60,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.ts(50,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/index.ts(51,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/index.ts(58,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/index.ts(59,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/index.ts(60,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/index.ts(74,21): error TS2307: Cannot find module './' or its corresponding type declarations. tests/cases/conformance/node/index.ts(75,21): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './index.mjs'? tests/cases/conformance/node/index.ts(76,21): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path. @@ -191,10 +191,10 @@ tests/cases/conformance/node/index.ts(84,21): error TS2835: Relative import path // These should _mostly_ work - `import = require` always desugars to require calls, which do have extension and index resolution (but can't load anything that resolves to esm!) import m24 = require("./"); ~~~~ -!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m25 = require("./index"); ~~~~~~~~~ -!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m26 = require("./subfolder"); import m27 = require("./subfolder/"); import m28 = require("./subfolder/index"); @@ -203,13 +203,13 @@ tests/cases/conformance/node/index.ts(84,21): error TS2835: Relative import path import m31 = require("./subfolder2/index"); import m32 = require("./subfolder2/another"); ~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m33 = require("./subfolder2/another/"); ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m34 = require("./subfolder2/another/index"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. void m24; void m25; void m26; @@ -264,35 +264,35 @@ tests/cases/conformance/node/index.ts(84,21): error TS2835: Relative import path // ESM-format imports below should issue errors import * as m1 from "./index.js"; ~~~~~~~~~~~~ -!!! error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./index.js")' call instead. import * as m2 from "./index.mjs"; ~~~~~~~~~~~~~ -!!! error TS1471: Module './index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./index.mjs")' call instead. import * as m3 from "./index.cjs"; import * as m4 from "./subfolder/index.js"; import * as m5 from "./subfolder/index.mjs"; ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder/index.mjs")' call instead. import * as m6 from "./subfolder/index.cjs"; import * as m7 from "./subfolder2/index.js"; import * as m8 from "./subfolder2/index.mjs"; ~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/index.mjs")' call instead. import * as m9 from "./subfolder2/index.cjs"; import * as m10 from "./subfolder2/another/index.js"; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/index.js")' call instead. import * as m11 from "./subfolder2/another/index.mjs"; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/index.mjs")' call instead. import * as m12 from "./subfolder2/another/index.cjs"; // The next ones should _mostly_ work - cjs format files have index resolution and extension resolution (except for those which resolve to an esm format file) import * as m13 from "./"; ~~~~ -!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./")' call instead. import * as m14 from "./index"; ~~~~~~~~~ -!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./index")' call instead. import * as m15 from "./subfolder"; import * as m16 from "./subfolder/"; import * as m17 from "./subfolder/index"; @@ -301,13 +301,13 @@ tests/cases/conformance/node/index.ts(84,21): error TS2835: Relative import path import * as m20 from "./subfolder2/index"; import * as m21 from "./subfolder2/another"; ~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another")' call instead. import * as m22 from "./subfolder2/another/"; ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/")' call instead. import * as m23 from "./subfolder2/another/index"; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/index")' call instead. void m1; void m2; void m3; @@ -335,10 +335,10 @@ tests/cases/conformance/node/index.ts(84,21): error TS2835: Relative import path // These should _mostly_ work - `import = require` always desugars to require calls, which do have extension and index resolution (but can't load anything that resolves to esm!) import m24 = require("./"); ~~~~ -!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m25 = require("./index"); ~~~~~~~~~ -!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m26 = require("./subfolder"); import m27 = require("./subfolder/"); import m28 = require("./subfolder/index"); @@ -347,13 +347,13 @@ tests/cases/conformance/node/index.ts(84,21): error TS2835: Relative import path import m31 = require("./subfolder2/index"); import m32 = require("./subfolder2/another"); ~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m33 = require("./subfolder2/another/"); ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m34 = require("./subfolder2/another/index"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. void m24; void m25; void m26; @@ -477,10 +477,10 @@ tests/cases/conformance/node/index.ts(84,21): error TS2835: Relative import path // These should _mostly_ work - `import = require` always desugars to require calls, which do have extension and index resolution (but can't load anything that resolves to esm!) import m24 = require("./"); ~~~~ -!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m25 = require("./index"); ~~~~~~~~~ -!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m26 = require("./subfolder"); import m27 = require("./subfolder/"); import m28 = require("./subfolder/index"); @@ -489,13 +489,13 @@ tests/cases/conformance/node/index.ts(84,21): error TS2835: Relative import path import m31 = require("./subfolder2/index"); import m32 = require("./subfolder2/another"); ~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m33 = require("./subfolder2/another/"); ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m34 = require("./subfolder2/another/index"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. void m24; void m25; void m26; diff --git a/tests/baselines/reference/nodeModules1(module=nodenext).errors.txt b/tests/baselines/reference/nodeModules1(module=nodenext).errors.txt index e8bcd1c06a7..fdadf6a8f5c 100644 --- a/tests/baselines/reference/nodeModules1(module=nodenext).errors.txt +++ b/tests/baselines/reference/nodeModules1(module=nodenext).errors.txt @@ -1,19 +1,19 @@ -tests/cases/conformance/node/index.cts(2,21): error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(3,21): error TS1471: Module './index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(6,21): error TS1471: Module './subfolder/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(9,21): error TS1471: Module './subfolder2/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(11,22): error TS1471: Module './subfolder2/another/index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(12,22): error TS1471: Module './subfolder2/another/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(15,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(16,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(23,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(24,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(25,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(51,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(52,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(59,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(60,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(61,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.cts(2,21): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./index.js")' call instead. +tests/cases/conformance/node/index.cts(3,21): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./index.mjs")' call instead. +tests/cases/conformance/node/index.cts(6,21): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder/index.mjs")' call instead. +tests/cases/conformance/node/index.cts(9,21): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/index.mjs")' call instead. +tests/cases/conformance/node/index.cts(11,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/index.js")' call instead. +tests/cases/conformance/node/index.cts(12,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/index.mjs")' call instead. +tests/cases/conformance/node/index.cts(15,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./")' call instead. +tests/cases/conformance/node/index.cts(16,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./index")' call instead. +tests/cases/conformance/node/index.cts(23,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another")' call instead. +tests/cases/conformance/node/index.cts(24,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/")' call instead. +tests/cases/conformance/node/index.cts(25,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/index")' call instead. +tests/cases/conformance/node/index.cts(51,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/index.cts(52,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/index.cts(59,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/index.cts(60,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/index.cts(61,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/index.cts(75,21): error TS2307: Cannot find module './' or its corresponding type declarations. tests/cases/conformance/node/index.cts(76,21): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './index.mjs'? tests/cases/conformance/node/index.cts(77,21): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path. @@ -36,11 +36,11 @@ tests/cases/conformance/node/index.mts(21,22): error TS2835: Relative import pat tests/cases/conformance/node/index.mts(22,22): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path. tests/cases/conformance/node/index.mts(23,22): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path. tests/cases/conformance/node/index.mts(24,22): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './subfolder2/another/index.mjs'? -tests/cases/conformance/node/index.mts(50,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.mts(51,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.mts(58,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.mts(59,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.mts(60,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.mts(50,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/index.mts(51,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/index.mts(58,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/index.mts(59,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/index.mts(60,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/index.mts(74,21): error TS2307: Cannot find module './' or its corresponding type declarations. tests/cases/conformance/node/index.mts(75,21): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './index.mjs'? tests/cases/conformance/node/index.mts(76,21): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path. @@ -63,11 +63,11 @@ tests/cases/conformance/node/index.ts(21,22): error TS2835: Relative import path tests/cases/conformance/node/index.ts(22,22): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path. tests/cases/conformance/node/index.ts(23,22): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path. tests/cases/conformance/node/index.ts(24,22): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './subfolder2/another/index.mjs'? -tests/cases/conformance/node/index.ts(50,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.ts(51,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.ts(58,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.ts(59,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.ts(60,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.ts(50,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/index.ts(51,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/index.ts(58,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/index.ts(59,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/index.ts(60,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/index.ts(74,21): error TS2307: Cannot find module './' or its corresponding type declarations. tests/cases/conformance/node/index.ts(75,21): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './index.mjs'? tests/cases/conformance/node/index.ts(76,21): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path. @@ -191,10 +191,10 @@ tests/cases/conformance/node/index.ts(84,21): error TS2835: Relative import path // These should _mostly_ work - `import = require` always desugars to require calls, which do have extension and index resolution (but can't load anything that resolves to esm!) import m24 = require("./"); ~~~~ -!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m25 = require("./index"); ~~~~~~~~~ -!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m26 = require("./subfolder"); import m27 = require("./subfolder/"); import m28 = require("./subfolder/index"); @@ -203,13 +203,13 @@ tests/cases/conformance/node/index.ts(84,21): error TS2835: Relative import path import m31 = require("./subfolder2/index"); import m32 = require("./subfolder2/another"); ~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m33 = require("./subfolder2/another/"); ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m34 = require("./subfolder2/another/index"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. void m24; void m25; void m26; @@ -264,35 +264,35 @@ tests/cases/conformance/node/index.ts(84,21): error TS2835: Relative import path // ESM-format imports below should issue errors import * as m1 from "./index.js"; ~~~~~~~~~~~~ -!!! error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./index.js")' call instead. import * as m2 from "./index.mjs"; ~~~~~~~~~~~~~ -!!! error TS1471: Module './index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./index.mjs")' call instead. import * as m3 from "./index.cjs"; import * as m4 from "./subfolder/index.js"; import * as m5 from "./subfolder/index.mjs"; ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder/index.mjs")' call instead. import * as m6 from "./subfolder/index.cjs"; import * as m7 from "./subfolder2/index.js"; import * as m8 from "./subfolder2/index.mjs"; ~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/index.mjs")' call instead. import * as m9 from "./subfolder2/index.cjs"; import * as m10 from "./subfolder2/another/index.js"; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/index.js")' call instead. import * as m11 from "./subfolder2/another/index.mjs"; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/index.mjs")' call instead. import * as m12 from "./subfolder2/another/index.cjs"; // The next ones should _mostly_ work - cjs format files have index resolution and extension resolution (except for those which resolve to an esm format file) import * as m13 from "./"; ~~~~ -!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./")' call instead. import * as m14 from "./index"; ~~~~~~~~~ -!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./index")' call instead. import * as m15 from "./subfolder"; import * as m16 from "./subfolder/"; import * as m17 from "./subfolder/index"; @@ -301,13 +301,13 @@ tests/cases/conformance/node/index.ts(84,21): error TS2835: Relative import path import * as m20 from "./subfolder2/index"; import * as m21 from "./subfolder2/another"; ~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another")' call instead. import * as m22 from "./subfolder2/another/"; ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/")' call instead. import * as m23 from "./subfolder2/another/index"; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/index")' call instead. void m1; void m2; void m3; @@ -335,10 +335,10 @@ tests/cases/conformance/node/index.ts(84,21): error TS2835: Relative import path // These should _mostly_ work - `import = require` always desugars to require calls, which do have extension and index resolution (but can't load anything that resolves to esm!) import m24 = require("./"); ~~~~ -!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m25 = require("./index"); ~~~~~~~~~ -!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m26 = require("./subfolder"); import m27 = require("./subfolder/"); import m28 = require("./subfolder/index"); @@ -347,13 +347,13 @@ tests/cases/conformance/node/index.ts(84,21): error TS2835: Relative import path import m31 = require("./subfolder2/index"); import m32 = require("./subfolder2/another"); ~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m33 = require("./subfolder2/another/"); ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m34 = require("./subfolder2/another/index"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. void m24; void m25; void m26; @@ -477,10 +477,10 @@ tests/cases/conformance/node/index.ts(84,21): error TS2835: Relative import path // These should _mostly_ work - `import = require` always desugars to require calls, which do have extension and index resolution (but can't load anything that resolves to esm!) import m24 = require("./"); ~~~~ -!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m25 = require("./index"); ~~~~~~~~~ -!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m26 = require("./subfolder"); import m27 = require("./subfolder/"); import m28 = require("./subfolder/index"); @@ -489,13 +489,13 @@ tests/cases/conformance/node/index.ts(84,21): error TS2835: Relative import path import m31 = require("./subfolder2/index"); import m32 = require("./subfolder2/another"); ~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m33 = require("./subfolder2/another/"); ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m34 = require("./subfolder2/another/index"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. void m24; void m25; void m26; diff --git a/tests/baselines/reference/nodeModulesAllowJs1(module=node16).errors.txt b/tests/baselines/reference/nodeModulesAllowJs1(module=node16).errors.txt index 83c4abe3350..58a2647d59c 100644 --- a/tests/baselines/reference/nodeModulesAllowJs1(module=node16).errors.txt +++ b/tests/baselines/reference/nodeModulesAllowJs1(module=node16).errors.txt @@ -1,18 +1,18 @@ -tests/cases/conformance/node/allowJs/index.cjs(2,21): error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(3,21): error TS1471: Module './index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(6,21): error TS1471: Module './subfolder/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(9,21): error TS1471: Module './subfolder2/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(11,22): error TS1471: Module './subfolder2/another/index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(12,22): error TS1471: Module './subfolder2/another/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(15,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(16,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(23,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(24,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(25,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.cjs(2,21): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./index.js")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(3,21): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./index.mjs")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(6,21): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder/index.mjs")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(9,21): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/index.mjs")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(11,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/index.js")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(12,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/index.mjs")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(15,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(16,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./index")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(23,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(24,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(25,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/index")' call instead. tests/cases/conformance/node/allowJs/index.cjs(51,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.cjs(51,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.cjs(51,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.cjs(52,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.cjs(52,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.cjs(52,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.cjs(53,1): error TS8002: 'import ... =' can only be used in TypeScript files. tests/cases/conformance/node/allowJs/index.cjs(54,1): error TS8002: 'import ... =' can only be used in TypeScript files. tests/cases/conformance/node/allowJs/index.cjs(55,1): error TS8002: 'import ... =' can only be used in TypeScript files. @@ -20,11 +20,11 @@ tests/cases/conformance/node/allowJs/index.cjs(56,1): error TS8002: 'import ... tests/cases/conformance/node/allowJs/index.cjs(57,1): error TS8002: 'import ... =' can only be used in TypeScript files. tests/cases/conformance/node/allowJs/index.cjs(58,1): error TS8002: 'import ... =' can only be used in TypeScript files. tests/cases/conformance/node/allowJs/index.cjs(59,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.cjs(59,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.cjs(59,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.cjs(60,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.cjs(60,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.cjs(60,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.cjs(61,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.cjs(61,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.cjs(61,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.cjs(75,21): error TS2307: Cannot find module './' or its corresponding type declarations. tests/cases/conformance/node/allowJs/index.cjs(76,21): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './index.mjs'? tests/cases/conformance/node/allowJs/index.cjs(77,21): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path. @@ -48,9 +48,9 @@ tests/cases/conformance/node/allowJs/index.js(22,22): error TS2834: Relative imp tests/cases/conformance/node/allowJs/index.js(23,22): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path. tests/cases/conformance/node/allowJs/index.js(24,22): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './subfolder2/another/index.mjs'? tests/cases/conformance/node/allowJs/index.js(50,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.js(50,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.js(50,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.js(51,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.js(51,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.js(51,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.js(52,1): error TS8002: 'import ... =' can only be used in TypeScript files. tests/cases/conformance/node/allowJs/index.js(53,1): error TS8002: 'import ... =' can only be used in TypeScript files. tests/cases/conformance/node/allowJs/index.js(54,1): error TS8002: 'import ... =' can only be used in TypeScript files. @@ -58,11 +58,11 @@ tests/cases/conformance/node/allowJs/index.js(55,1): error TS8002: 'import ... = tests/cases/conformance/node/allowJs/index.js(56,1): error TS8002: 'import ... =' can only be used in TypeScript files. tests/cases/conformance/node/allowJs/index.js(57,1): error TS8002: 'import ... =' can only be used in TypeScript files. tests/cases/conformance/node/allowJs/index.js(58,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.js(58,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.js(58,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.js(59,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.js(59,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.js(59,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.js(60,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.js(60,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.js(60,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.js(74,21): error TS2307: Cannot find module './' or its corresponding type declarations. tests/cases/conformance/node/allowJs/index.js(75,21): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './index.mjs'? tests/cases/conformance/node/allowJs/index.js(76,21): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path. @@ -86,9 +86,9 @@ tests/cases/conformance/node/allowJs/index.mjs(22,22): error TS2834: Relative im tests/cases/conformance/node/allowJs/index.mjs(23,22): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path. tests/cases/conformance/node/allowJs/index.mjs(24,22): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './subfolder2/another/index.mjs'? tests/cases/conformance/node/allowJs/index.mjs(50,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.mjs(50,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.mjs(50,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.mjs(51,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.mjs(51,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.mjs(51,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.mjs(52,1): error TS8002: 'import ... =' can only be used in TypeScript files. tests/cases/conformance/node/allowJs/index.mjs(53,1): error TS8002: 'import ... =' can only be used in TypeScript files. tests/cases/conformance/node/allowJs/index.mjs(54,1): error TS8002: 'import ... =' can only be used in TypeScript files. @@ -96,11 +96,11 @@ tests/cases/conformance/node/allowJs/index.mjs(55,1): error TS8002: 'import ... tests/cases/conformance/node/allowJs/index.mjs(56,1): error TS8002: 'import ... =' can only be used in TypeScript files. tests/cases/conformance/node/allowJs/index.mjs(57,1): error TS8002: 'import ... =' can only be used in TypeScript files. tests/cases/conformance/node/allowJs/index.mjs(58,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.mjs(58,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.mjs(58,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.mjs(59,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.mjs(59,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.mjs(59,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.mjs(60,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.mjs(60,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.mjs(60,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.mjs(74,21): error TS2307: Cannot find module './' or its corresponding type declarations. tests/cases/conformance/node/allowJs/index.mjs(75,21): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './index.mjs'? tests/cases/conformance/node/allowJs/index.mjs(76,21): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path. @@ -226,12 +226,12 @@ tests/cases/conformance/node/allowJs/index.mjs(84,21): error TS2835: Relative im ~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~ -!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m25 = require("./index"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~ -!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m26 = require("./subfolder"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. @@ -254,17 +254,17 @@ tests/cases/conformance/node/allowJs/index.mjs(84,21): error TS2835: Relative im ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m33 = require("./subfolder2/another/"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m34 = require("./subfolder2/another/index"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. void m24; void m25; void m26; @@ -318,35 +318,35 @@ tests/cases/conformance/node/allowJs/index.mjs(84,21): error TS2835: Relative im // ESM-format imports below should issue errors import * as m1 from "./index.js"; ~~~~~~~~~~~~ -!!! error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./index.js")' call instead. import * as m2 from "./index.mjs"; ~~~~~~~~~~~~~ -!!! error TS1471: Module './index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./index.mjs")' call instead. import * as m3 from "./index.cjs"; import * as m4 from "./subfolder/index.js"; import * as m5 from "./subfolder/index.mjs"; ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder/index.mjs")' call instead. import * as m6 from "./subfolder/index.cjs"; import * as m7 from "./subfolder2/index.js"; import * as m8 from "./subfolder2/index.mjs"; ~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/index.mjs")' call instead. import * as m9 from "./subfolder2/index.cjs"; import * as m10 from "./subfolder2/another/index.js"; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/index.js")' call instead. import * as m11 from "./subfolder2/another/index.mjs"; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/index.mjs")' call instead. import * as m12 from "./subfolder2/another/index.cjs"; // The next ones should _mostly_ work - cjs format files have index resolution and extension resolution (except for those which resolve to an esm format file) import * as m13 from "./"; ~~~~ -!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./")' call instead. import * as m14 from "./index"; ~~~~~~~~~ -!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./index")' call instead. import * as m15 from "./subfolder"; import * as m16 from "./subfolder/"; import * as m17 from "./subfolder/index"; @@ -355,13 +355,13 @@ tests/cases/conformance/node/allowJs/index.mjs(84,21): error TS2835: Relative im import * as m20 from "./subfolder2/index"; import * as m21 from "./subfolder2/another"; ~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another")' call instead. import * as m22 from "./subfolder2/another/"; ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/")' call instead. import * as m23 from "./subfolder2/another/index"; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/index")' call instead. void m1; void m2; void m3; @@ -391,12 +391,12 @@ tests/cases/conformance/node/allowJs/index.mjs(84,21): error TS2835: Relative im ~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~ -!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m25 = require("./index"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~ -!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m26 = require("./subfolder"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. @@ -419,17 +419,17 @@ tests/cases/conformance/node/allowJs/index.mjs(84,21): error TS2835: Relative im ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m33 = require("./subfolder2/another/"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m34 = require("./subfolder2/another/index"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. void m24; void m25; void m26; @@ -555,12 +555,12 @@ tests/cases/conformance/node/allowJs/index.mjs(84,21): error TS2835: Relative im ~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~ -!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m25 = require("./index"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~ -!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m26 = require("./subfolder"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. @@ -583,17 +583,17 @@ tests/cases/conformance/node/allowJs/index.mjs(84,21): error TS2835: Relative im ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m33 = require("./subfolder2/another/"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m34 = require("./subfolder2/another/index"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. void m24; void m25; void m26; diff --git a/tests/baselines/reference/nodeModulesAllowJs1(module=nodenext).errors.txt b/tests/baselines/reference/nodeModulesAllowJs1(module=nodenext).errors.txt index 83c4abe3350..58a2647d59c 100644 --- a/tests/baselines/reference/nodeModulesAllowJs1(module=nodenext).errors.txt +++ b/tests/baselines/reference/nodeModulesAllowJs1(module=nodenext).errors.txt @@ -1,18 +1,18 @@ -tests/cases/conformance/node/allowJs/index.cjs(2,21): error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(3,21): error TS1471: Module './index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(6,21): error TS1471: Module './subfolder/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(9,21): error TS1471: Module './subfolder2/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(11,22): error TS1471: Module './subfolder2/another/index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(12,22): error TS1471: Module './subfolder2/another/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(15,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(16,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(23,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(24,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(25,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.cjs(2,21): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./index.js")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(3,21): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./index.mjs")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(6,21): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder/index.mjs")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(9,21): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/index.mjs")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(11,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/index.js")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(12,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/index.mjs")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(15,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(16,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./index")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(23,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(24,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(25,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/index")' call instead. tests/cases/conformance/node/allowJs/index.cjs(51,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.cjs(51,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.cjs(51,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.cjs(52,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.cjs(52,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.cjs(52,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.cjs(53,1): error TS8002: 'import ... =' can only be used in TypeScript files. tests/cases/conformance/node/allowJs/index.cjs(54,1): error TS8002: 'import ... =' can only be used in TypeScript files. tests/cases/conformance/node/allowJs/index.cjs(55,1): error TS8002: 'import ... =' can only be used in TypeScript files. @@ -20,11 +20,11 @@ tests/cases/conformance/node/allowJs/index.cjs(56,1): error TS8002: 'import ... tests/cases/conformance/node/allowJs/index.cjs(57,1): error TS8002: 'import ... =' can only be used in TypeScript files. tests/cases/conformance/node/allowJs/index.cjs(58,1): error TS8002: 'import ... =' can only be used in TypeScript files. tests/cases/conformance/node/allowJs/index.cjs(59,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.cjs(59,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.cjs(59,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.cjs(60,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.cjs(60,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.cjs(60,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.cjs(61,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.cjs(61,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.cjs(61,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.cjs(75,21): error TS2307: Cannot find module './' or its corresponding type declarations. tests/cases/conformance/node/allowJs/index.cjs(76,21): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './index.mjs'? tests/cases/conformance/node/allowJs/index.cjs(77,21): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path. @@ -48,9 +48,9 @@ tests/cases/conformance/node/allowJs/index.js(22,22): error TS2834: Relative imp tests/cases/conformance/node/allowJs/index.js(23,22): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path. tests/cases/conformance/node/allowJs/index.js(24,22): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './subfolder2/another/index.mjs'? tests/cases/conformance/node/allowJs/index.js(50,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.js(50,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.js(50,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.js(51,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.js(51,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.js(51,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.js(52,1): error TS8002: 'import ... =' can only be used in TypeScript files. tests/cases/conformance/node/allowJs/index.js(53,1): error TS8002: 'import ... =' can only be used in TypeScript files. tests/cases/conformance/node/allowJs/index.js(54,1): error TS8002: 'import ... =' can only be used in TypeScript files. @@ -58,11 +58,11 @@ tests/cases/conformance/node/allowJs/index.js(55,1): error TS8002: 'import ... = tests/cases/conformance/node/allowJs/index.js(56,1): error TS8002: 'import ... =' can only be used in TypeScript files. tests/cases/conformance/node/allowJs/index.js(57,1): error TS8002: 'import ... =' can only be used in TypeScript files. tests/cases/conformance/node/allowJs/index.js(58,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.js(58,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.js(58,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.js(59,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.js(59,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.js(59,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.js(60,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.js(60,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.js(60,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.js(74,21): error TS2307: Cannot find module './' or its corresponding type declarations. tests/cases/conformance/node/allowJs/index.js(75,21): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './index.mjs'? tests/cases/conformance/node/allowJs/index.js(76,21): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path. @@ -86,9 +86,9 @@ tests/cases/conformance/node/allowJs/index.mjs(22,22): error TS2834: Relative im tests/cases/conformance/node/allowJs/index.mjs(23,22): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path. tests/cases/conformance/node/allowJs/index.mjs(24,22): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './subfolder2/another/index.mjs'? tests/cases/conformance/node/allowJs/index.mjs(50,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.mjs(50,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.mjs(50,22): error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.mjs(51,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.mjs(51,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.mjs(51,22): error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.mjs(52,1): error TS8002: 'import ... =' can only be used in TypeScript files. tests/cases/conformance/node/allowJs/index.mjs(53,1): error TS8002: 'import ... =' can only be used in TypeScript files. tests/cases/conformance/node/allowJs/index.mjs(54,1): error TS8002: 'import ... =' can only be used in TypeScript files. @@ -96,11 +96,11 @@ tests/cases/conformance/node/allowJs/index.mjs(55,1): error TS8002: 'import ... tests/cases/conformance/node/allowJs/index.mjs(56,1): error TS8002: 'import ... =' can only be used in TypeScript files. tests/cases/conformance/node/allowJs/index.mjs(57,1): error TS8002: 'import ... =' can only be used in TypeScript files. tests/cases/conformance/node/allowJs/index.mjs(58,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.mjs(58,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.mjs(58,22): error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.mjs(59,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.mjs(59,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.mjs(59,22): error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.mjs(60,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.mjs(60,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.mjs(60,22): error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.mjs(74,21): error TS2307: Cannot find module './' or its corresponding type declarations. tests/cases/conformance/node/allowJs/index.mjs(75,21): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './index.mjs'? tests/cases/conformance/node/allowJs/index.mjs(76,21): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path. @@ -226,12 +226,12 @@ tests/cases/conformance/node/allowJs/index.mjs(84,21): error TS2835: Relative im ~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~ -!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m25 = require("./index"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~ -!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m26 = require("./subfolder"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. @@ -254,17 +254,17 @@ tests/cases/conformance/node/allowJs/index.mjs(84,21): error TS2835: Relative im ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m33 = require("./subfolder2/another/"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m34 = require("./subfolder2/another/index"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. void m24; void m25; void m26; @@ -318,35 +318,35 @@ tests/cases/conformance/node/allowJs/index.mjs(84,21): error TS2835: Relative im // ESM-format imports below should issue errors import * as m1 from "./index.js"; ~~~~~~~~~~~~ -!!! error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./index.js")' call instead. import * as m2 from "./index.mjs"; ~~~~~~~~~~~~~ -!!! error TS1471: Module './index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./index.mjs")' call instead. import * as m3 from "./index.cjs"; import * as m4 from "./subfolder/index.js"; import * as m5 from "./subfolder/index.mjs"; ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder/index.mjs")' call instead. import * as m6 from "./subfolder/index.cjs"; import * as m7 from "./subfolder2/index.js"; import * as m8 from "./subfolder2/index.mjs"; ~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/index.mjs")' call instead. import * as m9 from "./subfolder2/index.cjs"; import * as m10 from "./subfolder2/another/index.js"; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/index.js")' call instead. import * as m11 from "./subfolder2/another/index.mjs"; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/index.mjs")' call instead. import * as m12 from "./subfolder2/another/index.cjs"; // The next ones should _mostly_ work - cjs format files have index resolution and extension resolution (except for those which resolve to an esm format file) import * as m13 from "./"; ~~~~ -!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./")' call instead. import * as m14 from "./index"; ~~~~~~~~~ -!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./index")' call instead. import * as m15 from "./subfolder"; import * as m16 from "./subfolder/"; import * as m17 from "./subfolder/index"; @@ -355,13 +355,13 @@ tests/cases/conformance/node/allowJs/index.mjs(84,21): error TS2835: Relative im import * as m20 from "./subfolder2/index"; import * as m21 from "./subfolder2/another"; ~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another")' call instead. import * as m22 from "./subfolder2/another/"; ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/")' call instead. import * as m23 from "./subfolder2/another/index"; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./subfolder2/another/index")' call instead. void m1; void m2; void m3; @@ -391,12 +391,12 @@ tests/cases/conformance/node/allowJs/index.mjs(84,21): error TS2835: Relative im ~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~ -!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m25 = require("./index"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~ -!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m26 = require("./subfolder"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. @@ -419,17 +419,17 @@ tests/cases/conformance/node/allowJs/index.mjs(84,21): error TS2835: Relative im ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m33 = require("./subfolder2/another/"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m34 = require("./subfolder2/another/index"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. void m24; void m25; void m26; @@ -555,12 +555,12 @@ tests/cases/conformance/node/allowJs/index.mjs(84,21): error TS2835: Relative im ~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~ -!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m25 = require("./index"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~ -!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m26 = require("./subfolder"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. @@ -583,17 +583,17 @@ tests/cases/conformance/node/allowJs/index.mjs(84,21): error TS2835: Relative im ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m33 = require("./subfolder2/another/"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another/' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import m34 = require("./subfolder2/another/index"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './subfolder2/another/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. void m24; void m25; void m26; diff --git a/tests/baselines/reference/nodeModulesAllowJsConditionalPackageExports(module=node16).errors.txt b/tests/baselines/reference/nodeModulesAllowJsConditionalPackageExports(module=node16).errors.txt index 904a4714318..f5b871b32e7 100644 --- a/tests/baselines/reference/nodeModulesAllowJsConditionalPackageExports(module=node16).errors.txt +++ b/tests/baselines/reference/nodeModulesAllowJsConditionalPackageExports(module=node16).errors.txt @@ -1,6 +1,6 @@ error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file 'tests/cases/conformance/node/allowJs/package.json'. Supply the `rootDir` compiler option to disambiguate. -tests/cases/conformance/node/allowJs/index.cjs(3,22): error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(4,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.cjs(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package/mjs")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(4,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. tests/cases/conformance/node/allowJs/node_modules/inner/index.d.mts(2,13): error TS2303: Circular definition of import alias 'cjs'. tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'. @@ -43,10 +43,10 @@ tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(2,13): error import * as cjs from "package/cjs"; import * as mjs from "package/mjs"; ~~~~~~~~~~~~~ -!!! error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package/mjs")' call instead. import * as type from "package"; ~~~~~~~~~ -!!! error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. cjs; mjs; type; diff --git a/tests/baselines/reference/nodeModulesAllowJsConditionalPackageExports(module=nodenext).errors.txt b/tests/baselines/reference/nodeModulesAllowJsConditionalPackageExports(module=nodenext).errors.txt index 904a4714318..f5b871b32e7 100644 --- a/tests/baselines/reference/nodeModulesAllowJsConditionalPackageExports(module=nodenext).errors.txt +++ b/tests/baselines/reference/nodeModulesAllowJsConditionalPackageExports(module=nodenext).errors.txt @@ -1,6 +1,6 @@ error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file 'tests/cases/conformance/node/allowJs/package.json'. Supply the `rootDir` compiler option to disambiguate. -tests/cases/conformance/node/allowJs/index.cjs(3,22): error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(4,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.cjs(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package/mjs")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(4,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. tests/cases/conformance/node/allowJs/node_modules/inner/index.d.mts(2,13): error TS2303: Circular definition of import alias 'cjs'. tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'. @@ -43,10 +43,10 @@ tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(2,13): error import * as cjs from "package/cjs"; import * as mjs from "package/mjs"; ~~~~~~~~~~~~~ -!!! error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package/mjs")' call instead. import * as type from "package"; ~~~~~~~~~ -!!! error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. cjs; mjs; type; diff --git a/tests/baselines/reference/nodeModulesAllowJsPackageExports(module=node16).errors.txt b/tests/baselines/reference/nodeModulesAllowJsPackageExports(module=node16).errors.txt index 63e7af6ada0..376e4a9483b 100644 --- a/tests/baselines/reference/nodeModulesAllowJsPackageExports(module=node16).errors.txt +++ b/tests/baselines/reference/nodeModulesAllowJsPackageExports(module=node16).errors.txt @@ -1,10 +1,10 @@ error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file 'tests/cases/conformance/node/allowJs/package.json'. Supply the `rootDir` compiler option to disambiguate. -tests/cases/conformance/node/allowJs/index.cjs(3,22): error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(4,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(9,23): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/node_modules/inner/index.d.cts(3,22): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.cjs(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package/mjs")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(4,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(9,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. +tests/cases/conformance/node/allowJs/node_modules/inner/index.d.cts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'. -tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. !!! error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file 'tests/cases/conformance/node/allowJs/package.json'. Supply the `rootDir` compiler option to disambiguate. @@ -41,17 +41,17 @@ tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error import * as cjs from "package/cjs"; import * as mjs from "package/mjs"; ~~~~~~~~~~~~~ -!!! error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package/mjs")' call instead. import * as type from "package"; ~~~~~~~~~ -!!! error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. cjs; mjs; type; import * as cjsi from "inner/cjs"; import * as mjsi from "inner/mjs"; ~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. import * as typei from "inner"; cjsi; mjsi; @@ -63,7 +63,7 @@ tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error !!! error TS2303: Circular definition of import alias 'cjs'. import * as mjs from "inner/mjs"; ~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. import * as type from "inner"; export { cjs }; export { mjs }; @@ -81,7 +81,7 @@ tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error import * as cjs from "inner/cjs"; import * as mjs from "inner/mjs"; ~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. import * as type from "inner"; export { cjs }; export { mjs }; diff --git a/tests/baselines/reference/nodeModulesAllowJsPackageExports(module=nodenext).errors.txt b/tests/baselines/reference/nodeModulesAllowJsPackageExports(module=nodenext).errors.txt index 63e7af6ada0..376e4a9483b 100644 --- a/tests/baselines/reference/nodeModulesAllowJsPackageExports(module=nodenext).errors.txt +++ b/tests/baselines/reference/nodeModulesAllowJsPackageExports(module=nodenext).errors.txt @@ -1,10 +1,10 @@ error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file 'tests/cases/conformance/node/allowJs/package.json'. Supply the `rootDir` compiler option to disambiguate. -tests/cases/conformance/node/allowJs/index.cjs(3,22): error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(4,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(9,23): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/node_modules/inner/index.d.cts(3,22): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.cjs(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package/mjs")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(4,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(9,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. +tests/cases/conformance/node/allowJs/node_modules/inner/index.d.cts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'. -tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. !!! error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file 'tests/cases/conformance/node/allowJs/package.json'. Supply the `rootDir` compiler option to disambiguate. @@ -41,17 +41,17 @@ tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error import * as cjs from "package/cjs"; import * as mjs from "package/mjs"; ~~~~~~~~~~~~~ -!!! error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package/mjs")' call instead. import * as type from "package"; ~~~~~~~~~ -!!! error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. cjs; mjs; type; import * as cjsi from "inner/cjs"; import * as mjsi from "inner/mjs"; ~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. import * as typei from "inner"; cjsi; mjsi; @@ -63,7 +63,7 @@ tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error !!! error TS2303: Circular definition of import alias 'cjs'. import * as mjs from "inner/mjs"; ~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. import * as type from "inner"; export { cjs }; export { mjs }; @@ -81,7 +81,7 @@ tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error import * as cjs from "inner/cjs"; import * as mjs from "inner/mjs"; ~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. import * as type from "inner"; export { cjs }; export { mjs }; diff --git a/tests/baselines/reference/nodeModulesAllowJsPackageImports(module=node16).errors.txt b/tests/baselines/reference/nodeModulesAllowJsPackageImports(module=node16).errors.txt index ffbcbe24e99..3f5cb24b8ba 100644 --- a/tests/baselines/reference/nodeModulesAllowJsPackageImports(module=node16).errors.txt +++ b/tests/baselines/reference/nodeModulesAllowJsPackageImports(module=node16).errors.txt @@ -1,6 +1,6 @@ error TS2210: The project root is ambiguous, but is required to resolve import map entry '.' in file 'tests/cases/conformance/node/allowJs/package.json'. Supply the `rootDir` compiler option to disambiguate. -tests/cases/conformance/node/allowJs/index.cjs(3,22): error TS1471: Module '#mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(4,23): error TS1471: Module '#type' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.cjs(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("#mjs")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(4,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("#type")' call instead. !!! error TS2210: The project root is ambiguous, but is required to resolve import map entry '.' in file 'tests/cases/conformance/node/allowJs/package.json'. Supply the `rootDir` compiler option to disambiguate. @@ -25,10 +25,10 @@ tests/cases/conformance/node/allowJs/index.cjs(4,23): error TS1471: Module '#typ import * as cjs from "#cjs"; import * as mjs from "#mjs"; ~~~~~~ -!!! error TS1471: Module '#mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("#mjs")' call instead. import * as type from "#type"; ~~~~~~~ -!!! error TS1471: Module '#type' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("#type")' call instead. cjs; mjs; type; diff --git a/tests/baselines/reference/nodeModulesAllowJsPackageImports(module=nodenext).errors.txt b/tests/baselines/reference/nodeModulesAllowJsPackageImports(module=nodenext).errors.txt index ffbcbe24e99..3f5cb24b8ba 100644 --- a/tests/baselines/reference/nodeModulesAllowJsPackageImports(module=nodenext).errors.txt +++ b/tests/baselines/reference/nodeModulesAllowJsPackageImports(module=nodenext).errors.txt @@ -1,6 +1,6 @@ error TS2210: The project root is ambiguous, but is required to resolve import map entry '.' in file 'tests/cases/conformance/node/allowJs/package.json'. Supply the `rootDir` compiler option to disambiguate. -tests/cases/conformance/node/allowJs/index.cjs(3,22): error TS1471: Module '#mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/index.cjs(4,23): error TS1471: Module '#type' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.cjs(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("#mjs")' call instead. +tests/cases/conformance/node/allowJs/index.cjs(4,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("#type")' call instead. !!! error TS2210: The project root is ambiguous, but is required to resolve import map entry '.' in file 'tests/cases/conformance/node/allowJs/package.json'. Supply the `rootDir` compiler option to disambiguate. @@ -25,10 +25,10 @@ tests/cases/conformance/node/allowJs/index.cjs(4,23): error TS1471: Module '#typ import * as cjs from "#cjs"; import * as mjs from "#mjs"; ~~~~~~ -!!! error TS1471: Module '#mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("#mjs")' call instead. import * as type from "#type"; ~~~~~~~ -!!! error TS1471: Module '#type' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("#type")' call instead. cjs; mjs; type; diff --git a/tests/baselines/reference/nodeModulesAllowJsPackagePatternExports(module=node16).errors.txt b/tests/baselines/reference/nodeModulesAllowJsPackagePatternExports(module=node16).errors.txt index 0f199947722..9472951c042 100644 --- a/tests/baselines/reference/nodeModulesAllowJsPackagePatternExports(module=node16).errors.txt +++ b/tests/baselines/reference/nodeModulesAllowJsPackagePatternExports(module=node16).errors.txt @@ -1,7 +1,7 @@ -tests/cases/conformance/node/allowJs/index.cjs(3,23): error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/node_modules/inner/index.d.cts(3,22): error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.cjs(3,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. +tests/cases/conformance/node/allowJs/node_modules/inner/index.d.cts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'. -tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. ==== tests/cases/conformance/node/allowJs/index.js (0 errors) ==== @@ -25,7 +25,7 @@ tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error import * as cjsi from "inner/cjs/index"; import * as mjsi from "inner/mjs/index"; ~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. import * as typei from "inner/js/index"; cjsi; mjsi; @@ -37,7 +37,7 @@ tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error !!! error TS2303: Circular definition of import alias 'cjs'. import * as mjs from "inner/mjs/index"; ~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. import * as type from "inner/js/index"; export { cjs }; export { mjs }; @@ -55,7 +55,7 @@ tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error import * as cjs from "inner/cjs/index"; import * as mjs from "inner/mjs/index"; ~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. import * as type from "inner/js/index"; export { cjs }; export { mjs }; diff --git a/tests/baselines/reference/nodeModulesAllowJsPackagePatternExports(module=nodenext).errors.txt b/tests/baselines/reference/nodeModulesAllowJsPackagePatternExports(module=nodenext).errors.txt index 0f199947722..9472951c042 100644 --- a/tests/baselines/reference/nodeModulesAllowJsPackagePatternExports(module=nodenext).errors.txt +++ b/tests/baselines/reference/nodeModulesAllowJsPackagePatternExports(module=nodenext).errors.txt @@ -1,7 +1,7 @@ -tests/cases/conformance/node/allowJs/index.cjs(3,23): error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/node_modules/inner/index.d.cts(3,22): error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.cjs(3,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. +tests/cases/conformance/node/allowJs/node_modules/inner/index.d.cts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'. -tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. ==== tests/cases/conformance/node/allowJs/index.js (0 errors) ==== @@ -25,7 +25,7 @@ tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error import * as cjsi from "inner/cjs/index"; import * as mjsi from "inner/mjs/index"; ~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. import * as typei from "inner/js/index"; cjsi; mjsi; @@ -37,7 +37,7 @@ tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error !!! error TS2303: Circular definition of import alias 'cjs'. import * as mjs from "inner/mjs/index"; ~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. import * as type from "inner/js/index"; export { cjs }; export { mjs }; @@ -55,7 +55,7 @@ tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error import * as cjs from "inner/cjs/index"; import * as mjs from "inner/mjs/index"; ~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. import * as type from "inner/js/index"; export { cjs }; export { mjs }; diff --git a/tests/baselines/reference/nodeModulesAllowJsPackagePatternExportsTrailers(module=node16).errors.txt b/tests/baselines/reference/nodeModulesAllowJsPackagePatternExportsTrailers(module=node16).errors.txt index b989016f16a..ab754b119d8 100644 --- a/tests/baselines/reference/nodeModulesAllowJsPackagePatternExportsTrailers(module=node16).errors.txt +++ b/tests/baselines/reference/nodeModulesAllowJsPackagePatternExportsTrailers(module=node16).errors.txt @@ -1,7 +1,7 @@ -tests/cases/conformance/node/allowJs/index.cjs(3,23): error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/node_modules/inner/index.d.cts(3,22): error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.cjs(3,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index.mjs")' call instead. +tests/cases/conformance/node/allowJs/node_modules/inner/index.d.cts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index.mjs")' call instead. tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'. -tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index.mjs")' call instead. ==== tests/cases/conformance/node/allowJs/index.js (0 errors) ==== @@ -25,7 +25,7 @@ tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error import * as cjsi from "inner/cjs/index.cjs"; import * as mjsi from "inner/mjs/index.mjs"; ~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index.mjs")' call instead. import * as typei from "inner/js/index.js"; cjsi; mjsi; @@ -37,7 +37,7 @@ tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error !!! error TS2303: Circular definition of import alias 'cjs'. import * as mjs from "inner/mjs/index.mjs"; ~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index.mjs")' call instead. import * as type from "inner/js/index.js"; export { cjs }; export { mjs }; @@ -55,7 +55,7 @@ tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error import * as cjs from "inner/cjs/index.cjs"; import * as mjs from "inner/mjs/index.mjs"; ~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index.mjs")' call instead. import * as type from "inner/js/index.js"; export { cjs }; export { mjs }; diff --git a/tests/baselines/reference/nodeModulesAllowJsPackagePatternExportsTrailers(module=nodenext).errors.txt b/tests/baselines/reference/nodeModulesAllowJsPackagePatternExportsTrailers(module=nodenext).errors.txt index b989016f16a..ab754b119d8 100644 --- a/tests/baselines/reference/nodeModulesAllowJsPackagePatternExportsTrailers(module=nodenext).errors.txt +++ b/tests/baselines/reference/nodeModulesAllowJsPackagePatternExportsTrailers(module=nodenext).errors.txt @@ -1,7 +1,7 @@ -tests/cases/conformance/node/allowJs/index.cjs(3,23): error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/allowJs/node_modules/inner/index.d.cts(3,22): error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.cjs(3,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index.mjs")' call instead. +tests/cases/conformance/node/allowJs/node_modules/inner/index.d.cts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index.mjs")' call instead. tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'. -tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index.mjs")' call instead. ==== tests/cases/conformance/node/allowJs/index.js (0 errors) ==== @@ -25,7 +25,7 @@ tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error import * as cjsi from "inner/cjs/index.cjs"; import * as mjsi from "inner/mjs/index.mjs"; ~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index.mjs")' call instead. import * as typei from "inner/js/index.js"; cjsi; mjsi; @@ -37,7 +37,7 @@ tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error !!! error TS2303: Circular definition of import alias 'cjs'. import * as mjs from "inner/mjs/index.mjs"; ~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index.mjs")' call instead. import * as type from "inner/js/index.js"; export { cjs }; export { mjs }; @@ -55,7 +55,7 @@ tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error import * as cjs from "inner/cjs/index.cjs"; import * as mjs from "inner/mjs/index.mjs"; ~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index.mjs")' call instead. import * as type from "inner/js/index.js"; export { cjs }; export { mjs }; diff --git a/tests/baselines/reference/nodeModulesAllowJsSynchronousCallErrors(module=node16).errors.txt b/tests/baselines/reference/nodeModulesAllowJsSynchronousCallErrors(module=node16).errors.txt index c722192e670..f3f58f40463 100644 --- a/tests/baselines/reference/nodeModulesAllowJsSynchronousCallErrors(module=node16).errors.txt +++ b/tests/baselines/reference/nodeModulesAllowJsSynchronousCallErrors(module=node16).errors.txt @@ -1,9 +1,10 @@ tests/cases/conformance/node/allowJs/index.js(3,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.js(3,22): error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.js(3,22): error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.js(5,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/subfolder/index.js(2,17): error TS1471: Module '../index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/subfolder/index.js(2,17): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("../index.js")' call instead. + To convert this file to an ECMAScript module, change its file extension to '.mjs' or create a local package.json file with `{ "type": "module" }`. tests/cases/conformance/node/allowJs/subfolder/index.js(3,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/subfolder/index.js(3,22): error TS1471: Module '../index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/subfolder/index.js(3,22): error TS1471: Module '../index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/subfolder/index.js(5,1): error TS8002: 'import ... =' can only be used in TypeScript files. @@ -11,12 +12,13 @@ tests/cases/conformance/node/allowJs/subfolder/index.js(5,1): error TS8002: 'imp // cjs format file import {h} from "../index.js"; ~~~~~~~~~~~~~ -!!! error TS1471: Module '../index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("../index.js")' call instead. +!!! error TS1479: To convert this file to an ECMAScript module, change its file extension to '.mjs' or create a local package.json file with `{ "type": "module" }`. import mod = require("../index.js"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~~~~~ -!!! error TS1471: Module '../index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module '../index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import {f as _f} from "./index.js"; import mod2 = require("./index.js"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -33,7 +35,7 @@ tests/cases/conformance/node/allowJs/subfolder/index.js(5,1): error TS8002: 'imp ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~~~~ -!!! error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import {f} from "./subfolder/index.js"; import mod2 = require("./subfolder/index.js"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/tests/baselines/reference/nodeModulesAllowJsSynchronousCallErrors(module=nodenext).errors.txt b/tests/baselines/reference/nodeModulesAllowJsSynchronousCallErrors(module=nodenext).errors.txt index c722192e670..f3f58f40463 100644 --- a/tests/baselines/reference/nodeModulesAllowJsSynchronousCallErrors(module=nodenext).errors.txt +++ b/tests/baselines/reference/nodeModulesAllowJsSynchronousCallErrors(module=nodenext).errors.txt @@ -1,9 +1,10 @@ tests/cases/conformance/node/allowJs/index.js(3,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/index.js(3,22): error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/index.js(3,22): error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/index.js(5,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/subfolder/index.js(2,17): error TS1471: Module '../index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/subfolder/index.js(2,17): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("../index.js")' call instead. + To convert this file to an ECMAScript module, change its file extension to '.mjs' or create a local package.json file with `{ "type": "module" }`. tests/cases/conformance/node/allowJs/subfolder/index.js(3,1): error TS8002: 'import ... =' can only be used in TypeScript files. -tests/cases/conformance/node/allowJs/subfolder/index.js(3,22): error TS1471: Module '../index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/allowJs/subfolder/index.js(3,22): error TS1471: Module '../index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. tests/cases/conformance/node/allowJs/subfolder/index.js(5,1): error TS8002: 'import ... =' can only be used in TypeScript files. @@ -11,12 +12,13 @@ tests/cases/conformance/node/allowJs/subfolder/index.js(5,1): error TS8002: 'imp // cjs format file import {h} from "../index.js"; ~~~~~~~~~~~~~ -!!! error TS1471: Module '../index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("../index.js")' call instead. +!!! error TS1479: To convert this file to an ECMAScript module, change its file extension to '.mjs' or create a local package.json file with `{ "type": "module" }`. import mod = require("../index.js"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~~~~~ -!!! error TS1471: Module '../index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module '../index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import {f as _f} from "./index.js"; import mod2 = require("./index.js"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -33,7 +35,7 @@ tests/cases/conformance/node/allowJs/subfolder/index.js(5,1): error TS8002: 'imp ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS8002: 'import ... =' can only be used in TypeScript files. ~~~~~~~~~~~~ -!!! error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import {f} from "./subfolder/index.js"; import mod2 = require("./subfolder/index.js"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/tests/baselines/reference/nodeModulesCJSResolvingToESM1_emptyPackageJson.errors.txt b/tests/baselines/reference/nodeModulesCJSResolvingToESM1_emptyPackageJson.errors.txt new file mode 100644 index 00000000000..fe0dbb5d5b8 --- /dev/null +++ b/tests/baselines/reference/nodeModulesCJSResolvingToESM1_emptyPackageJson.errors.txt @@ -0,0 +1,38 @@ +/ctsExtension.cts(1,16): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. +/jsExtension.js(1,16): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. + To convert this file to an ECMAScript module, change its file extension to '.mjs', or add the field `"type": "module"` to '/package.json'. +/tsExtension.ts(1,16): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. + To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `"type": "module"` to '/package.json'. +/tsxExtension.tsx(1,16): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. + To convert this file to an ECMAScript module, add the field `"type": "module"` to '/package.json'. + + +==== /package.json (0 errors) ==== + {} + +==== /module.mts (0 errors) ==== + export {}; + +==== /tsExtension.ts (1 errors) ==== + import {} from "./module.mjs"; + ~~~~~~~~~~~~~~ +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. +!!! error TS1479: To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `"type": "module"` to '/package.json'. + +==== /jsExtension.js (1 errors) ==== + import {} from "./module.mjs"; + ~~~~~~~~~~~~~~ +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. +!!! error TS1479: To convert this file to an ECMAScript module, change its file extension to '.mjs', or add the field `"type": "module"` to '/package.json'. + +==== /ctsExtension.cts (1 errors) ==== + import {} from "./module.mjs"; + ~~~~~~~~~~~~~~ +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. + +==== /tsxExtension.tsx (1 errors) ==== + import {} from "./module.mjs"; + ~~~~~~~~~~~~~~ +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. +!!! error TS1479: To convert this file to an ECMAScript module, add the field `"type": "module"` to '/package.json'. + \ No newline at end of file diff --git a/tests/baselines/reference/nodeModulesCJSResolvingToESM2_cjsPackageJson.errors.txt b/tests/baselines/reference/nodeModulesCJSResolvingToESM2_cjsPackageJson.errors.txt new file mode 100644 index 00000000000..c8a14545ae1 --- /dev/null +++ b/tests/baselines/reference/nodeModulesCJSResolvingToESM2_cjsPackageJson.errors.txt @@ -0,0 +1,38 @@ +/ctsExtension.cts(1,16): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. +/jsExtension.js(1,16): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. + To convert this file to an ECMAScript module, change its file extension to '.mjs' or create a local package.json file with `{ "type": "module" }`. +/tsExtension.ts(1,16): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. + To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ "type": "module" }`. +/tsxExtension.tsx(1,16): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. + To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`. + + +==== /package.json (0 errors) ==== + { "type": "commonjs" } + +==== /module.mts (0 errors) ==== + export {}; + +==== /tsExtension.ts (1 errors) ==== + import {} from "./module.mjs"; + ~~~~~~~~~~~~~~ +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. +!!! error TS1479: To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ "type": "module" }`. + +==== /jsExtension.js (1 errors) ==== + import {} from "./module.mjs"; + ~~~~~~~~~~~~~~ +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. +!!! error TS1479: To convert this file to an ECMAScript module, change its file extension to '.mjs' or create a local package.json file with `{ "type": "module" }`. + +==== /ctsExtension.cts (1 errors) ==== + import {} from "./module.mjs"; + ~~~~~~~~~~~~~~ +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. + +==== /tsxExtension.tsx (1 errors) ==== + import {} from "./module.mjs"; + ~~~~~~~~~~~~~~ +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. +!!! error TS1479: To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`. + \ No newline at end of file diff --git a/tests/baselines/reference/nodeModulesCJSResolvingToESM3_modulePackageJson.errors.txt b/tests/baselines/reference/nodeModulesCJSResolvingToESM3_modulePackageJson.errors.txt new file mode 100644 index 00000000000..5a95dbced9d --- /dev/null +++ b/tests/baselines/reference/nodeModulesCJSResolvingToESM3_modulePackageJson.errors.txt @@ -0,0 +1,23 @@ +/ctsExtension.cts(1,16): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. + + +==== /package.json (0 errors) ==== + { "type": "module" } + +==== /module.mts (0 errors) ==== + export {}; + +==== /tsExtension.ts (0 errors) ==== + import {} from "./module.mjs"; + +==== /jsExtension.js (0 errors) ==== + import {} from "./module.mjs"; + +==== /ctsExtension.cts (1 errors) ==== + import {} from "./module.mjs"; + ~~~~~~~~~~~~~~ +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. + +==== /tsxExtension.tsx (0 errors) ==== + import {} from "./module.mjs"; + \ No newline at end of file diff --git a/tests/baselines/reference/nodeModulesCJSResolvingToESM4_noPackageJson.errors.txt b/tests/baselines/reference/nodeModulesCJSResolvingToESM4_noPackageJson.errors.txt new file mode 100644 index 00000000000..14af0e2900c --- /dev/null +++ b/tests/baselines/reference/nodeModulesCJSResolvingToESM4_noPackageJson.errors.txt @@ -0,0 +1,35 @@ +/ctsExtension.cts(1,16): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. +/jsExtension.js(1,16): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. + To convert this file to an ECMAScript module, change its file extension to '.mjs' or create a local package.json file with `{ "type": "module" }`. +/tsExtension.ts(1,16): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. + To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ "type": "module" }`. +/tsxExtension.tsx(1,16): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. + To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`. + + +==== /module.mts (0 errors) ==== + export {}; + +==== /tsExtension.ts (1 errors) ==== + import {} from "./module.mjs"; + ~~~~~~~~~~~~~~ +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. +!!! error TS1479: To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ "type": "module" }`. + +==== /jsExtension.js (1 errors) ==== + import {} from "./module.mjs"; + ~~~~~~~~~~~~~~ +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. +!!! error TS1479: To convert this file to an ECMAScript module, change its file extension to '.mjs' or create a local package.json file with `{ "type": "module" }`. + +==== /ctsExtension.cts (1 errors) ==== + import {} from "./module.mjs"; + ~~~~~~~~~~~~~~ +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. + +==== /tsxExtension.tsx (1 errors) ==== + import {} from "./module.mjs"; + ~~~~~~~~~~~~~~ +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./module.mjs")' call instead. +!!! error TS1479: To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`. + \ No newline at end of file diff --git a/tests/baselines/reference/nodeModulesConditionalPackageExports(module=node16).errors.txt b/tests/baselines/reference/nodeModulesConditionalPackageExports(module=node16).errors.txt index 793f3f03da2..86b9f2304df 100644 --- a/tests/baselines/reference/nodeModulesConditionalPackageExports(module=node16).errors.txt +++ b/tests/baselines/reference/nodeModulesConditionalPackageExports(module=node16).errors.txt @@ -1,6 +1,6 @@ error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file 'tests/cases/conformance/node/package.json'. Supply the `rootDir` compiler option to disambiguate. -tests/cases/conformance/node/index.cts(3,22): error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(4,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.cts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package/mjs")' call instead. +tests/cases/conformance/node/index.cts(4,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. tests/cases/conformance/node/node_modules/inner/index.d.mts(2,13): error TS2303: Circular definition of import alias 'cjs'. tests/cases/conformance/node/node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'. @@ -43,10 +43,10 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(2,13): error TS2303: import * as cjs from "package/cjs"; import * as mjs from "package/mjs"; ~~~~~~~~~~~~~ -!!! error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package/mjs")' call instead. import * as type from "package"; ~~~~~~~~~ -!!! error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. cjs; mjs; type; diff --git a/tests/baselines/reference/nodeModulesConditionalPackageExports(module=nodenext).errors.txt b/tests/baselines/reference/nodeModulesConditionalPackageExports(module=nodenext).errors.txt index 793f3f03da2..86b9f2304df 100644 --- a/tests/baselines/reference/nodeModulesConditionalPackageExports(module=nodenext).errors.txt +++ b/tests/baselines/reference/nodeModulesConditionalPackageExports(module=nodenext).errors.txt @@ -1,6 +1,6 @@ error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file 'tests/cases/conformance/node/package.json'. Supply the `rootDir` compiler option to disambiguate. -tests/cases/conformance/node/index.cts(3,22): error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(4,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.cts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package/mjs")' call instead. +tests/cases/conformance/node/index.cts(4,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. tests/cases/conformance/node/node_modules/inner/index.d.mts(2,13): error TS2303: Circular definition of import alias 'cjs'. tests/cases/conformance/node/node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'. @@ -43,10 +43,10 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(2,13): error TS2303: import * as cjs from "package/cjs"; import * as mjs from "package/mjs"; ~~~~~~~~~~~~~ -!!! error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package/mjs")' call instead. import * as type from "package"; ~~~~~~~~~ -!!! error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. cjs; mjs; type; diff --git a/tests/baselines/reference/nodeModulesDeclarationEmitWithPackageExports(module=node16).errors.txt b/tests/baselines/reference/nodeModulesDeclarationEmitWithPackageExports(module=node16).errors.txt index 4ee7f3c4cef..d31427a694d 100644 --- a/tests/baselines/reference/nodeModulesDeclarationEmitWithPackageExports(module=node16).errors.txt +++ b/tests/baselines/reference/nodeModulesDeclarationEmitWithPackageExports(module=node16).errors.txt @@ -1,11 +1,11 @@ error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file 'tests/cases/conformance/node/package.json'. Supply the `rootDir` compiler option to disambiguate. -tests/cases/conformance/node/index.cts(3,22): error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(4,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(9,23): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/node_modules/inner/index.d.cts(3,22): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.cts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package/mjs")' call instead. +tests/cases/conformance/node/index.cts(4,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. +tests/cases/conformance/node/index.cts(9,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. +tests/cases/conformance/node/node_modules/inner/index.d.cts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. tests/cases/conformance/node/node_modules/inner/index.d.cts(5,1): error TS1036: Statements are not allowed in ambient contexts. tests/cases/conformance/node/node_modules/inner/index.d.mts(5,1): error TS1036: Statements are not allowed in ambient contexts. -tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. tests/cases/conformance/node/node_modules/inner/index.d.ts(5,1): error TS1036: Statements are not allowed in ambient contexts. @@ -43,17 +43,17 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(5,1): error TS1036: S import * as cjs from "package/cjs"; import * as mjs from "package/mjs"; ~~~~~~~~~~~~~ -!!! error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package/mjs")' call instead. import * as type from "package"; ~~~~~~~~~ -!!! error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. export const a = cjs; export const b = mjs; export const c = type; import * as cjsi from "inner/cjs"; import * as mjsi from "inner/mjs"; ~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. import * as typei from "inner"; export const d = cjsi; export const e = mjsi; @@ -63,7 +63,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(5,1): error TS1036: S import * as cjs from "inner/cjs"; import * as mjs from "inner/mjs"; ~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. import * as type from "inner"; cjs; ~~~ @@ -87,7 +87,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(5,1): error TS1036: S import * as cjs from "inner/cjs"; import * as mjs from "inner/mjs"; ~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. import * as type from "inner"; cjs; ~~~ diff --git a/tests/baselines/reference/nodeModulesDeclarationEmitWithPackageExports(module=nodenext).errors.txt b/tests/baselines/reference/nodeModulesDeclarationEmitWithPackageExports(module=nodenext).errors.txt index 4ee7f3c4cef..d31427a694d 100644 --- a/tests/baselines/reference/nodeModulesDeclarationEmitWithPackageExports(module=nodenext).errors.txt +++ b/tests/baselines/reference/nodeModulesDeclarationEmitWithPackageExports(module=nodenext).errors.txt @@ -1,11 +1,11 @@ error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file 'tests/cases/conformance/node/package.json'. Supply the `rootDir` compiler option to disambiguate. -tests/cases/conformance/node/index.cts(3,22): error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(4,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(9,23): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/node_modules/inner/index.d.cts(3,22): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.cts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package/mjs")' call instead. +tests/cases/conformance/node/index.cts(4,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. +tests/cases/conformance/node/index.cts(9,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. +tests/cases/conformance/node/node_modules/inner/index.d.cts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. tests/cases/conformance/node/node_modules/inner/index.d.cts(5,1): error TS1036: Statements are not allowed in ambient contexts. tests/cases/conformance/node/node_modules/inner/index.d.mts(5,1): error TS1036: Statements are not allowed in ambient contexts. -tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. tests/cases/conformance/node/node_modules/inner/index.d.ts(5,1): error TS1036: Statements are not allowed in ambient contexts. @@ -43,17 +43,17 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(5,1): error TS1036: S import * as cjs from "package/cjs"; import * as mjs from "package/mjs"; ~~~~~~~~~~~~~ -!!! error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package/mjs")' call instead. import * as type from "package"; ~~~~~~~~~ -!!! error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. export const a = cjs; export const b = mjs; export const c = type; import * as cjsi from "inner/cjs"; import * as mjsi from "inner/mjs"; ~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. import * as typei from "inner"; export const d = cjsi; export const e = mjsi; @@ -63,7 +63,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(5,1): error TS1036: S import * as cjs from "inner/cjs"; import * as mjs from "inner/mjs"; ~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. import * as type from "inner"; cjs; ~~~ @@ -87,7 +87,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(5,1): error TS1036: S import * as cjs from "inner/cjs"; import * as mjs from "inner/mjs"; ~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. import * as type from "inner"; cjs; ~~~ diff --git a/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmit1(module=node16).js b/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmit1(module=node16).js index 4a65e05cdd9..1b444aae0df 100644 --- a/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmit1(module=node16).js +++ b/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmit1(module=node16).js @@ -31,6 +31,6 @@ exports.b = null; //// [index.d.ts] -export declare type LocalInterface = import("pkg", { assert: { "resolution-mode": "require" } }).RequireInterface & import("pkg", { assert: { "resolution-mode": "import" } }).ImportInterface; +export type LocalInterface = import("pkg", { assert: { "resolution-mode": "require" } }).RequireInterface & import("pkg", { assert: { "resolution-mode": "import" } }).ImportInterface; export declare const a: import("pkg").RequireInterface; export declare const b: import("pkg", { assert: { "resolution-mode": "import" } }).ImportInterface; diff --git a/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmit1(module=nodenext).js b/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmit1(module=nodenext).js index 4a65e05cdd9..1b444aae0df 100644 --- a/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmit1(module=nodenext).js +++ b/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmit1(module=nodenext).js @@ -31,6 +31,6 @@ exports.b = null; //// [index.d.ts] -export declare type LocalInterface = import("pkg", { assert: { "resolution-mode": "require" } }).RequireInterface & import("pkg", { assert: { "resolution-mode": "import" } }).ImportInterface; +export type LocalInterface = import("pkg", { assert: { "resolution-mode": "require" } }).RequireInterface & import("pkg", { assert: { "resolution-mode": "import" } }).ImportInterface; export declare const a: import("pkg").RequireInterface; export declare const b: import("pkg", { assert: { "resolution-mode": "import" } }).ImportInterface; diff --git a/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node16).js b/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node16).js index 7fd0aff8e8f..6b34fb98748 100644 --- a/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node16).js +++ b/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node16).js @@ -120,28 +120,28 @@ exports.b = null; //// [index.d.ts] -export declare type LocalInterface = import("pkg", { assert: { "resolution-mode": "foobar" } }).RequireInterface & import("pkg", { assert: { "resolution-mode": "import" } }).ImportInterface; +export type LocalInterface = import("pkg", { assert: { "resolution-mode": "foobar" } }).RequireInterface & import("pkg", { assert: { "resolution-mode": "import" } }).ImportInterface; export declare const a: import("pkg").RequireInterface; export declare const b: import("pkg", { assert: { "resolution-mode": "import" } }).ImportInterface; //// [other.d.ts] -export declare type LocalInterface = import("pkg", { assert: {} }); +export type LocalInterface = import("pkg", { assert: {} }); export declare const a: any; export declare const b: any; //// [other2.d.ts] -export declare type LocalInterface = import("pkg", { assert: { "bad": "require" } }).RequireInterface & import("pkg", { assert: { "bad": "import" } }).ImportInterface; +export type LocalInterface = import("pkg", { assert: { "bad": "require" } }).RequireInterface & import("pkg", { assert: { "bad": "import" } }).ImportInterface; export declare const a: import("pkg").RequireInterface; export declare const b: any; //// [other3.d.ts] -export declare type LocalInterface = import("pkg", { assert: {} })[{ +export type LocalInterface = import("pkg", { assert: {} })[{ "resolution-mode": "require"; }]; export declare const a: any; export declare const b: any; //// [other4.d.ts] -export declare type LocalInterface = import("pkg", { assert: {} }); +export type LocalInterface = import("pkg", { assert: {} }); export declare const a: any, Asserts1: any, RequireInterface: any; export declare const b: any, Asserts2: any, ImportInterface: any; //// [other5.d.ts] -export declare type LocalInterface = import("pkg", { assert: {} }).RequireInterface & import("pkg", { assert: {} }).ImportInterface; +export type LocalInterface = import("pkg", { assert: {} }).RequireInterface & import("pkg", { assert: {} }).ImportInterface; export declare const a: import("pkg").RequireInterface; export declare const b: any; diff --git a/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=nodenext).js b/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=nodenext).js index 7fd0aff8e8f..6b34fb98748 100644 --- a/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=nodenext).js +++ b/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=nodenext).js @@ -120,28 +120,28 @@ exports.b = null; //// [index.d.ts] -export declare type LocalInterface = import("pkg", { assert: { "resolution-mode": "foobar" } }).RequireInterface & import("pkg", { assert: { "resolution-mode": "import" } }).ImportInterface; +export type LocalInterface = import("pkg", { assert: { "resolution-mode": "foobar" } }).RequireInterface & import("pkg", { assert: { "resolution-mode": "import" } }).ImportInterface; export declare const a: import("pkg").RequireInterface; export declare const b: import("pkg", { assert: { "resolution-mode": "import" } }).ImportInterface; //// [other.d.ts] -export declare type LocalInterface = import("pkg", { assert: {} }); +export type LocalInterface = import("pkg", { assert: {} }); export declare const a: any; export declare const b: any; //// [other2.d.ts] -export declare type LocalInterface = import("pkg", { assert: { "bad": "require" } }).RequireInterface & import("pkg", { assert: { "bad": "import" } }).ImportInterface; +export type LocalInterface = import("pkg", { assert: { "bad": "require" } }).RequireInterface & import("pkg", { assert: { "bad": "import" } }).ImportInterface; export declare const a: import("pkg").RequireInterface; export declare const b: any; //// [other3.d.ts] -export declare type LocalInterface = import("pkg", { assert: {} })[{ +export type LocalInterface = import("pkg", { assert: {} })[{ "resolution-mode": "require"; }]; export declare const a: any; export declare const b: any; //// [other4.d.ts] -export declare type LocalInterface = import("pkg", { assert: {} }); +export type LocalInterface = import("pkg", { assert: {} }); export declare const a: any, Asserts1: any, RequireInterface: any; export declare const b: any, Asserts2: any, ImportInterface: any; //// [other5.d.ts] -export declare type LocalInterface = import("pkg", { assert: {} }).RequireInterface & import("pkg", { assert: {} }).ImportInterface; +export type LocalInterface = import("pkg", { assert: {} }).RequireInterface & import("pkg", { assert: {} }).ImportInterface; export declare const a: import("pkg").RequireInterface; export declare const b: any; diff --git a/tests/baselines/reference/nodeModulesPackageExports(module=node16).errors.txt b/tests/baselines/reference/nodeModulesPackageExports(module=node16).errors.txt index 8f7452ffa72..deca8a06719 100644 --- a/tests/baselines/reference/nodeModulesPackageExports(module=node16).errors.txt +++ b/tests/baselines/reference/nodeModulesPackageExports(module=node16).errors.txt @@ -1,10 +1,10 @@ error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file 'tests/cases/conformance/node/package.json'. Supply the `rootDir` compiler option to disambiguate. -tests/cases/conformance/node/index.cts(3,22): error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(4,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(9,23): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/node_modules/inner/index.d.cts(3,22): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.cts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package/mjs")' call instead. +tests/cases/conformance/node/index.cts(4,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. +tests/cases/conformance/node/index.cts(9,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. +tests/cases/conformance/node/node_modules/inner/index.d.cts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. tests/cases/conformance/node/node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'. -tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. !!! error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file 'tests/cases/conformance/node/package.json'. Supply the `rootDir` compiler option to disambiguate. @@ -41,17 +41,17 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: import * as cjs from "package/cjs"; import * as mjs from "package/mjs"; ~~~~~~~~~~~~~ -!!! error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package/mjs")' call instead. import * as type from "package"; ~~~~~~~~~ -!!! error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. cjs; mjs; type; import * as cjsi from "inner/cjs"; import * as mjsi from "inner/mjs"; ~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. import * as typei from "inner"; cjsi; mjsi; @@ -63,7 +63,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: !!! error TS2303: Circular definition of import alias 'cjs'. import * as mjs from "inner/mjs"; ~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. import * as type from "inner"; export { cjs }; export { mjs }; @@ -81,7 +81,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: import * as cjs from "inner/cjs"; import * as mjs from "inner/mjs"; ~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. import * as type from "inner"; export { cjs }; export { mjs }; diff --git a/tests/baselines/reference/nodeModulesPackageExports(module=nodenext).errors.txt b/tests/baselines/reference/nodeModulesPackageExports(module=nodenext).errors.txt index 8f7452ffa72..deca8a06719 100644 --- a/tests/baselines/reference/nodeModulesPackageExports(module=nodenext).errors.txt +++ b/tests/baselines/reference/nodeModulesPackageExports(module=nodenext).errors.txt @@ -1,10 +1,10 @@ error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file 'tests/cases/conformance/node/package.json'. Supply the `rootDir` compiler option to disambiguate. -tests/cases/conformance/node/index.cts(3,22): error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(4,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(9,23): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/node_modules/inner/index.d.cts(3,22): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.cts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package/mjs")' call instead. +tests/cases/conformance/node/index.cts(4,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. +tests/cases/conformance/node/index.cts(9,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. +tests/cases/conformance/node/node_modules/inner/index.d.cts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. tests/cases/conformance/node/node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'. -tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. !!! error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file 'tests/cases/conformance/node/package.json'. Supply the `rootDir` compiler option to disambiguate. @@ -41,17 +41,17 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: import * as cjs from "package/cjs"; import * as mjs from "package/mjs"; ~~~~~~~~~~~~~ -!!! error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package/mjs")' call instead. import * as type from "package"; ~~~~~~~~~ -!!! error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. cjs; mjs; type; import * as cjsi from "inner/cjs"; import * as mjsi from "inner/mjs"; ~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. import * as typei from "inner"; cjsi; mjsi; @@ -63,7 +63,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: !!! error TS2303: Circular definition of import alias 'cjs'. import * as mjs from "inner/mjs"; ~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. import * as type from "inner"; export { cjs }; export { mjs }; @@ -81,7 +81,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: import * as cjs from "inner/cjs"; import * as mjs from "inner/mjs"; ~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs")' call instead. import * as type from "inner"; export { cjs }; export { mjs }; diff --git a/tests/baselines/reference/nodeModulesPackageImports(module=node16).errors.txt b/tests/baselines/reference/nodeModulesPackageImports(module=node16).errors.txt index cc174f1eb7e..64b8cd72b3a 100644 --- a/tests/baselines/reference/nodeModulesPackageImports(module=node16).errors.txt +++ b/tests/baselines/reference/nodeModulesPackageImports(module=node16).errors.txt @@ -1,5 +1,5 @@ -tests/cases/conformance/node/index.cts(3,22): error TS1471: Module '#mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(4,23): error TS1471: Module '#type' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.cts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("#mjs")' call instead. +tests/cases/conformance/node/index.cts(4,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("#type")' call instead. ==== tests/cases/conformance/node/index.ts (0 errors) ==== @@ -23,10 +23,10 @@ tests/cases/conformance/node/index.cts(4,23): error TS1471: Module '#type' canno import * as cjs from "#cjs"; import * as mjs from "#mjs"; ~~~~~~ -!!! error TS1471: Module '#mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("#mjs")' call instead. import * as type from "#type"; ~~~~~~~ -!!! error TS1471: Module '#type' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("#type")' call instead. cjs; mjs; type; diff --git a/tests/baselines/reference/nodeModulesPackageImports(module=nodenext).errors.txt b/tests/baselines/reference/nodeModulesPackageImports(module=nodenext).errors.txt index cc174f1eb7e..64b8cd72b3a 100644 --- a/tests/baselines/reference/nodeModulesPackageImports(module=nodenext).errors.txt +++ b/tests/baselines/reference/nodeModulesPackageImports(module=nodenext).errors.txt @@ -1,5 +1,5 @@ -tests/cases/conformance/node/index.cts(3,22): error TS1471: Module '#mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/index.cts(4,23): error TS1471: Module '#type' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.cts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("#mjs")' call instead. +tests/cases/conformance/node/index.cts(4,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("#type")' call instead. ==== tests/cases/conformance/node/index.ts (0 errors) ==== @@ -23,10 +23,10 @@ tests/cases/conformance/node/index.cts(4,23): error TS1471: Module '#type' canno import * as cjs from "#cjs"; import * as mjs from "#mjs"; ~~~~~~ -!!! error TS1471: Module '#mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("#mjs")' call instead. import * as type from "#type"; ~~~~~~~ -!!! error TS1471: Module '#type' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("#type")' call instead. cjs; mjs; type; diff --git a/tests/baselines/reference/nodeModulesPackagePatternExports(module=node16).errors.txt b/tests/baselines/reference/nodeModulesPackagePatternExports(module=node16).errors.txt index 0dc3774d5ef..91d984d5e8f 100644 --- a/tests/baselines/reference/nodeModulesPackagePatternExports(module=node16).errors.txt +++ b/tests/baselines/reference/nodeModulesPackagePatternExports(module=node16).errors.txt @@ -1,7 +1,7 @@ -tests/cases/conformance/node/index.cts(3,23): error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/node_modules/inner/index.d.cts(3,22): error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.cts(3,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. +tests/cases/conformance/node/node_modules/inner/index.d.cts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. tests/cases/conformance/node/node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'. -tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. ==== tests/cases/conformance/node/index.ts (0 errors) ==== @@ -25,7 +25,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: import * as cjsi from "inner/cjs/index"; import * as mjsi from "inner/mjs/index"; ~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. import * as typei from "inner/js/index"; cjsi; mjsi; @@ -37,7 +37,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: !!! error TS2303: Circular definition of import alias 'cjs'. import * as mjs from "inner/mjs/index"; ~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. import * as type from "inner/js/index"; export { cjs }; export { mjs }; @@ -55,7 +55,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: import * as cjs from "inner/cjs/index"; import * as mjs from "inner/mjs/index"; ~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. import * as type from "inner/js/index"; export { cjs }; export { mjs }; diff --git a/tests/baselines/reference/nodeModulesPackagePatternExports(module=nodenext).errors.txt b/tests/baselines/reference/nodeModulesPackagePatternExports(module=nodenext).errors.txt index 0dc3774d5ef..91d984d5e8f 100644 --- a/tests/baselines/reference/nodeModulesPackagePatternExports(module=nodenext).errors.txt +++ b/tests/baselines/reference/nodeModulesPackagePatternExports(module=nodenext).errors.txt @@ -1,7 +1,7 @@ -tests/cases/conformance/node/index.cts(3,23): error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/node_modules/inner/index.d.cts(3,22): error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.cts(3,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. +tests/cases/conformance/node/node_modules/inner/index.d.cts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. tests/cases/conformance/node/node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'. -tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. ==== tests/cases/conformance/node/index.ts (0 errors) ==== @@ -25,7 +25,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: import * as cjsi from "inner/cjs/index"; import * as mjsi from "inner/mjs/index"; ~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. import * as typei from "inner/js/index"; cjsi; mjsi; @@ -37,7 +37,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: !!! error TS2303: Circular definition of import alias 'cjs'. import * as mjs from "inner/mjs/index"; ~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. import * as type from "inner/js/index"; export { cjs }; export { mjs }; @@ -55,7 +55,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: import * as cjs from "inner/cjs/index"; import * as mjs from "inner/mjs/index"; ~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. import * as type from "inner/js/index"; export { cjs }; export { mjs }; diff --git a/tests/baselines/reference/nodeModulesPackagePatternExportsExclude(module=node16).errors.txt b/tests/baselines/reference/nodeModulesPackagePatternExportsExclude(module=node16).errors.txt index 863b455cf47..5239d2aee99 100644 --- a/tests/baselines/reference/nodeModulesPackagePatternExportsExclude(module=node16).errors.txt +++ b/tests/baselines/reference/nodeModulesPackagePatternExportsExclude(module=node16).errors.txt @@ -1,7 +1,7 @@ tests/cases/conformance/node/index.cts(2,23): error TS2307: Cannot find module 'inner/cjs/exclude/index' or its corresponding type declarations. tests/cases/conformance/node/index.cts(3,23): error TS2307: Cannot find module 'inner/mjs/exclude/index' or its corresponding type declarations. tests/cases/conformance/node/index.cts(4,24): error TS2307: Cannot find module 'inner/js/exclude/index' or its corresponding type declarations. -tests/cases/conformance/node/index.cts(9,24): error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.cts(9,24): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. tests/cases/conformance/node/index.mts(2,23): error TS2307: Cannot find module 'inner/cjs/exclude/index' or its corresponding type declarations. tests/cases/conformance/node/index.mts(3,23): error TS2307: Cannot find module 'inner/mjs/exclude/index' or its corresponding type declarations. tests/cases/conformance/node/index.mts(4,24): error TS2307: Cannot find module 'inner/js/exclude/index' or its corresponding type declarations. @@ -17,9 +17,9 @@ tests/cases/conformance/node/node_modules/inner/exclude/index.d.mts(4,23): error tests/cases/conformance/node/node_modules/inner/exclude/index.d.ts(2,22): error TS2307: Cannot find module 'inner/cjs/exclude/index' or its corresponding type declarations. tests/cases/conformance/node/node_modules/inner/exclude/index.d.ts(3,22): error TS2307: Cannot find module 'inner/mjs/exclude/index' or its corresponding type declarations. tests/cases/conformance/node/node_modules/inner/exclude/index.d.ts(4,23): error TS2307: Cannot find module 'inner/js/exclude/index' or its corresponding type declarations. -tests/cases/conformance/node/node_modules/inner/index.d.cts(3,22): error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/node_modules/inner/index.d.cts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. tests/cases/conformance/node/node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'. -tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. ==== tests/cases/conformance/node/index.ts (3 errors) ==== @@ -79,7 +79,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: import * as cjsi2 from "inner/cjs/index"; import * as mjsi2 from "inner/mjs/index"; ~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. import * as typei2 from "inner/js/index"; cjsi2; mjsi2; @@ -133,7 +133,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: !!! error TS2303: Circular definition of import alias 'cjs'. import * as mjs from "inner/mjs/index"; ~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. import * as type from "inner/js/index"; export { cjs }; export { mjs }; @@ -151,7 +151,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: import * as cjs from "inner/cjs/index"; import * as mjs from "inner/mjs/index"; ~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. import * as type from "inner/js/index"; export { cjs }; export { mjs }; diff --git a/tests/baselines/reference/nodeModulesPackagePatternExportsExclude(module=nodenext).errors.txt b/tests/baselines/reference/nodeModulesPackagePatternExportsExclude(module=nodenext).errors.txt index 863b455cf47..5239d2aee99 100644 --- a/tests/baselines/reference/nodeModulesPackagePatternExportsExclude(module=nodenext).errors.txt +++ b/tests/baselines/reference/nodeModulesPackagePatternExportsExclude(module=nodenext).errors.txt @@ -1,7 +1,7 @@ tests/cases/conformance/node/index.cts(2,23): error TS2307: Cannot find module 'inner/cjs/exclude/index' or its corresponding type declarations. tests/cases/conformance/node/index.cts(3,23): error TS2307: Cannot find module 'inner/mjs/exclude/index' or its corresponding type declarations. tests/cases/conformance/node/index.cts(4,24): error TS2307: Cannot find module 'inner/js/exclude/index' or its corresponding type declarations. -tests/cases/conformance/node/index.cts(9,24): error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.cts(9,24): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. tests/cases/conformance/node/index.mts(2,23): error TS2307: Cannot find module 'inner/cjs/exclude/index' or its corresponding type declarations. tests/cases/conformance/node/index.mts(3,23): error TS2307: Cannot find module 'inner/mjs/exclude/index' or its corresponding type declarations. tests/cases/conformance/node/index.mts(4,24): error TS2307: Cannot find module 'inner/js/exclude/index' or its corresponding type declarations. @@ -17,9 +17,9 @@ tests/cases/conformance/node/node_modules/inner/exclude/index.d.mts(4,23): error tests/cases/conformance/node/node_modules/inner/exclude/index.d.ts(2,22): error TS2307: Cannot find module 'inner/cjs/exclude/index' or its corresponding type declarations. tests/cases/conformance/node/node_modules/inner/exclude/index.d.ts(3,22): error TS2307: Cannot find module 'inner/mjs/exclude/index' or its corresponding type declarations. tests/cases/conformance/node/node_modules/inner/exclude/index.d.ts(4,23): error TS2307: Cannot find module 'inner/js/exclude/index' or its corresponding type declarations. -tests/cases/conformance/node/node_modules/inner/index.d.cts(3,22): error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/node_modules/inner/index.d.cts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. tests/cases/conformance/node/node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'. -tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. ==== tests/cases/conformance/node/index.ts (3 errors) ==== @@ -79,7 +79,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: import * as cjsi2 from "inner/cjs/index"; import * as mjsi2 from "inner/mjs/index"; ~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. import * as typei2 from "inner/js/index"; cjsi2; mjsi2; @@ -133,7 +133,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: !!! error TS2303: Circular definition of import alias 'cjs'. import * as mjs from "inner/mjs/index"; ~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. import * as type from "inner/js/index"; export { cjs }; export { mjs }; @@ -151,7 +151,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: import * as cjs from "inner/cjs/index"; import * as mjs from "inner/mjs/index"; ~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index")' call instead. import * as type from "inner/js/index"; export { cjs }; export { mjs }; diff --git a/tests/baselines/reference/nodeModulesPackagePatternExportsTrailers(module=node16).errors.txt b/tests/baselines/reference/nodeModulesPackagePatternExportsTrailers(module=node16).errors.txt index 9aa041ab418..e9566d8bf55 100644 --- a/tests/baselines/reference/nodeModulesPackagePatternExportsTrailers(module=node16).errors.txt +++ b/tests/baselines/reference/nodeModulesPackagePatternExportsTrailers(module=node16).errors.txt @@ -1,7 +1,7 @@ -tests/cases/conformance/node/index.cts(3,23): error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/node_modules/inner/index.d.cts(3,22): error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.cts(3,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index.mjs")' call instead. +tests/cases/conformance/node/node_modules/inner/index.d.cts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index.mjs")' call instead. tests/cases/conformance/node/node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'. -tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index.mjs")' call instead. ==== tests/cases/conformance/node/index.ts (0 errors) ==== @@ -25,7 +25,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: import * as cjsi from "inner/cjs/index.cjs"; import * as mjsi from "inner/mjs/index.mjs"; ~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index.mjs")' call instead. import * as typei from "inner/js/index.js"; cjsi; mjsi; @@ -37,7 +37,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: !!! error TS2303: Circular definition of import alias 'cjs'. import * as mjs from "inner/mjs/index.mjs"; ~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index.mjs")' call instead. import * as type from "inner/js/index.js"; export { cjs }; export { mjs }; @@ -55,7 +55,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: import * as cjs from "inner/cjs/index.cjs"; import * as mjs from "inner/mjs/index.mjs"; ~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index.mjs")' call instead. import * as type from "inner/js/index.js"; export { cjs }; export { mjs }; diff --git a/tests/baselines/reference/nodeModulesPackagePatternExportsTrailers(module=nodenext).errors.txt b/tests/baselines/reference/nodeModulesPackagePatternExportsTrailers(module=nodenext).errors.txt index 9aa041ab418..e9566d8bf55 100644 --- a/tests/baselines/reference/nodeModulesPackagePatternExportsTrailers(module=nodenext).errors.txt +++ b/tests/baselines/reference/nodeModulesPackagePatternExportsTrailers(module=nodenext).errors.txt @@ -1,7 +1,7 @@ -tests/cases/conformance/node/index.cts(3,23): error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/node_modules/inner/index.d.cts(3,22): error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.cts(3,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index.mjs")' call instead. +tests/cases/conformance/node/node_modules/inner/index.d.cts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index.mjs")' call instead. tests/cases/conformance/node/node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'. -tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index.mjs")' call instead. ==== tests/cases/conformance/node/index.ts (0 errors) ==== @@ -25,7 +25,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: import * as cjsi from "inner/cjs/index.cjs"; import * as mjsi from "inner/mjs/index.mjs"; ~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index.mjs")' call instead. import * as typei from "inner/js/index.js"; cjsi; mjsi; @@ -37,7 +37,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: !!! error TS2303: Circular definition of import alias 'cjs'. import * as mjs from "inner/mjs/index.mjs"; ~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index.mjs")' call instead. import * as type from "inner/js/index.js"; export { cjs }; export { mjs }; @@ -55,7 +55,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: import * as cjs from "inner/cjs/index.cjs"; import * as mjs from "inner/mjs/index.mjs"; ~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("inner/mjs/index.mjs")' call instead. import * as type from "inner/js/index.js"; export { cjs }; export { mjs }; diff --git a/tests/baselines/reference/nodeModulesSynchronousCallErrors(module=node16).errors.txt b/tests/baselines/reference/nodeModulesSynchronousCallErrors(module=node16).errors.txt index 012ef390621..e64d68f5701 100644 --- a/tests/baselines/reference/nodeModulesSynchronousCallErrors(module=node16).errors.txt +++ b/tests/baselines/reference/nodeModulesSynchronousCallErrors(module=node16).errors.txt @@ -1,16 +1,18 @@ -tests/cases/conformance/node/index.ts(3,22): error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/subfolder/index.ts(2,17): error TS1471: Module '../index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/subfolder/index.ts(3,22): error TS1471: Module '../index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.ts(3,22): error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/subfolder/index.ts(2,17): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("../index.js")' call instead. + To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ "type": "module" }`. +tests/cases/conformance/node/subfolder/index.ts(3,22): error TS1471: Module '../index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. ==== tests/cases/conformance/node/subfolder/index.ts (2 errors) ==== // cjs format file import {h} from "../index.js"; ~~~~~~~~~~~~~ -!!! error TS1471: Module '../index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("../index.js")' call instead. +!!! error TS1479: To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ "type": "module" }`. import mod = require("../index.js"); ~~~~~~~~~~~~~ -!!! error TS1471: Module '../index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module '../index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import {f as _f} from "./index.js"; import mod2 = require("./index.js"); export async function f() { @@ -23,7 +25,7 @@ tests/cases/conformance/node/subfolder/index.ts(3,22): error TS1471: Module '../ import {h as _h} from "./index.js"; import mod = require("./index.js"); ~~~~~~~~~~~~ -!!! error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import {f} from "./subfolder/index.js"; import mod2 = require("./subfolder/index.js"); export async function h() { diff --git a/tests/baselines/reference/nodeModulesSynchronousCallErrors(module=nodenext).errors.txt b/tests/baselines/reference/nodeModulesSynchronousCallErrors(module=nodenext).errors.txt index 012ef390621..e64d68f5701 100644 --- a/tests/baselines/reference/nodeModulesSynchronousCallErrors(module=nodenext).errors.txt +++ b/tests/baselines/reference/nodeModulesSynchronousCallErrors(module=nodenext).errors.txt @@ -1,16 +1,18 @@ -tests/cases/conformance/node/index.ts(3,22): error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/subfolder/index.ts(2,17): error TS1471: Module '../index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. -tests/cases/conformance/node/subfolder/index.ts(3,22): error TS1471: Module '../index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.ts(3,22): error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. +tests/cases/conformance/node/subfolder/index.ts(2,17): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("../index.js")' call instead. + To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ "type": "module" }`. +tests/cases/conformance/node/subfolder/index.ts(3,22): error TS1471: Module '../index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. ==== tests/cases/conformance/node/subfolder/index.ts (2 errors) ==== // cjs format file import {h} from "../index.js"; ~~~~~~~~~~~~~ -!!! error TS1471: Module '../index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("../index.js")' call instead. +!!! error TS1479: To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ "type": "module" }`. import mod = require("../index.js"); ~~~~~~~~~~~~~ -!!! error TS1471: Module '../index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module '../index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import {f as _f} from "./index.js"; import mod2 = require("./index.js"); export async function f() { @@ -23,7 +25,7 @@ tests/cases/conformance/node/subfolder/index.ts(3,22): error TS1471: Module '../ import {h as _h} from "./index.js"; import mod = require("./index.js"); ~~~~~~~~~~~~ -!!! error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. import {f} from "./subfolder/index.js"; import mod2 = require("./subfolder/index.js"); export async function h() { diff --git a/tests/baselines/reference/nodePackageSelfName(module=node16).errors.txt b/tests/baselines/reference/nodePackageSelfName(module=node16).errors.txt index c1573b8f51d..bc1836c35c7 100644 --- a/tests/baselines/reference/nodePackageSelfName(module=node16).errors.txt +++ b/tests/baselines/reference/nodePackageSelfName(module=node16).errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/node/index.cts(2,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.cts(2,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. ==== tests/cases/conformance/node/index.ts (0 errors) ==== @@ -13,7 +13,7 @@ tests/cases/conformance/node/index.cts(2,23): error TS1471: Module 'package' can // esm format file import * as self from "package"; ~~~~~~~~~ -!!! error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. self; ==== tests/cases/conformance/node/package.json (0 errors) ==== { diff --git a/tests/baselines/reference/nodePackageSelfName(module=nodenext).errors.txt b/tests/baselines/reference/nodePackageSelfName(module=nodenext).errors.txt index c1573b8f51d..bc1836c35c7 100644 --- a/tests/baselines/reference/nodePackageSelfName(module=nodenext).errors.txt +++ b/tests/baselines/reference/nodePackageSelfName(module=nodenext).errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/node/index.cts(2,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.cts(2,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. ==== tests/cases/conformance/node/index.ts (0 errors) ==== @@ -13,7 +13,7 @@ tests/cases/conformance/node/index.cts(2,23): error TS1471: Module 'package' can // esm format file import * as self from "package"; ~~~~~~~~~ -!!! error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead. self; ==== tests/cases/conformance/node/package.json (0 errors) ==== { diff --git a/tests/baselines/reference/nodePackageSelfNameScoped(module=node16).errors.txt b/tests/baselines/reference/nodePackageSelfNameScoped(module=node16).errors.txt index b2a9f313de7..afda2813d6f 100644 --- a/tests/baselines/reference/nodePackageSelfNameScoped(module=node16).errors.txt +++ b/tests/baselines/reference/nodePackageSelfNameScoped(module=node16).errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/node/index.cts(2,23): error TS1471: Module '@scope/package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.cts(2,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("@scope/package")' call instead. ==== tests/cases/conformance/node/index.ts (0 errors) ==== @@ -13,7 +13,7 @@ tests/cases/conformance/node/index.cts(2,23): error TS1471: Module '@scope/packa // cjs format file import * as self from "@scope/package"; ~~~~~~~~~~~~~~~~ -!!! error TS1471: Module '@scope/package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("@scope/package")' call instead. self; ==== tests/cases/conformance/node/package.json (0 errors) ==== { diff --git a/tests/baselines/reference/nodePackageSelfNameScoped(module=nodenext).errors.txt b/tests/baselines/reference/nodePackageSelfNameScoped(module=nodenext).errors.txt index b2a9f313de7..afda2813d6f 100644 --- a/tests/baselines/reference/nodePackageSelfNameScoped(module=nodenext).errors.txt +++ b/tests/baselines/reference/nodePackageSelfNameScoped(module=nodenext).errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/node/index.cts(2,23): error TS1471: Module '@scope/package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +tests/cases/conformance/node/index.cts(2,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("@scope/package")' call instead. ==== tests/cases/conformance/node/index.ts (0 errors) ==== @@ -13,7 +13,7 @@ tests/cases/conformance/node/index.cts(2,23): error TS1471: Module '@scope/packa // cjs format file import * as self from "@scope/package"; ~~~~~~~~~~~~~~~~ -!!! error TS1471: Module '@scope/package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("@scope/package")' call instead. self; ==== tests/cases/conformance/node/package.json (0 errors) ==== { diff --git a/tests/baselines/reference/nonInferrableTypePropagation1.js b/tests/baselines/reference/nonInferrableTypePropagation1.js new file mode 100644 index 00000000000..ae1fbe79765 --- /dev/null +++ b/tests/baselines/reference/nonInferrableTypePropagation1.js @@ -0,0 +1,34 @@ +//// [nonInferrableTypePropagation1.ts] +type Op = (thing: Thing) => Thing; +type Thing = { + value: T; + pipe( + opA: Op, + opB: Op, + ): Thing; +}; +type Box = { data: V }; + +declare const thing: Thing; + +declare function map(project: (value: T) => R): Op; +declare function tap(next: (value: T) => void): Op; +declare function box(data: V): Box; +declare function createAndUnbox(factory: () => Thing>): Thing; +declare function log(value: any): void; + +const result1 = createAndUnbox(() => thing.pipe( + map((data) => box(data)), + tap((v) => log(v)), +)); + +const result2 = createAndUnbox(() => thing.pipe( + tap((v) => log(v)), + map((data) => box(data)), +)); + + +//// [nonInferrableTypePropagation1.js] +"use strict"; +var result1 = createAndUnbox(function () { return thing.pipe(map(function (data) { return box(data); }), tap(function (v) { return log(v); })); }); +var result2 = createAndUnbox(function () { return thing.pipe(tap(function (v) { return log(v); }), map(function (data) { return box(data); })); }); diff --git a/tests/baselines/reference/nonInferrableTypePropagation1.symbols b/tests/baselines/reference/nonInferrableTypePropagation1.symbols new file mode 100644 index 00000000000..00b78ed8484 --- /dev/null +++ b/tests/baselines/reference/nonInferrableTypePropagation1.symbols @@ -0,0 +1,138 @@ +=== tests/cases/compiler/nonInferrableTypePropagation1.ts === +type Op = (thing: Thing) => Thing; +>Op : Symbol(Op, Decl(nonInferrableTypePropagation1.ts, 0, 0)) +>I : Symbol(I, Decl(nonInferrableTypePropagation1.ts, 0, 8)) +>O : Symbol(O, Decl(nonInferrableTypePropagation1.ts, 0, 10)) +>thing : Symbol(thing, Decl(nonInferrableTypePropagation1.ts, 0, 17)) +>Thing : Symbol(Thing, Decl(nonInferrableTypePropagation1.ts, 0, 46)) +>I : Symbol(I, Decl(nonInferrableTypePropagation1.ts, 0, 8)) +>Thing : Symbol(Thing, Decl(nonInferrableTypePropagation1.ts, 0, 46)) +>O : Symbol(O, Decl(nonInferrableTypePropagation1.ts, 0, 10)) + +type Thing = { +>Thing : Symbol(Thing, Decl(nonInferrableTypePropagation1.ts, 0, 46)) +>T : Symbol(T, Decl(nonInferrableTypePropagation1.ts, 1, 11)) + + value: T; +>value : Symbol(value, Decl(nonInferrableTypePropagation1.ts, 1, 17)) +>T : Symbol(T, Decl(nonInferrableTypePropagation1.ts, 1, 11)) + + pipe( +>pipe : Symbol(pipe, Decl(nonInferrableTypePropagation1.ts, 2, 13)) +>A : Symbol(A, Decl(nonInferrableTypePropagation1.ts, 3, 9)) +>B : Symbol(B, Decl(nonInferrableTypePropagation1.ts, 3, 11)) + + opA: Op, +>opA : Symbol(opA, Decl(nonInferrableTypePropagation1.ts, 3, 15)) +>Op : Symbol(Op, Decl(nonInferrableTypePropagation1.ts, 0, 0)) +>T : Symbol(T, Decl(nonInferrableTypePropagation1.ts, 1, 11)) +>A : Symbol(A, Decl(nonInferrableTypePropagation1.ts, 3, 9)) + + opB: Op, +>opB : Symbol(opB, Decl(nonInferrableTypePropagation1.ts, 4, 22)) +>Op : Symbol(Op, Decl(nonInferrableTypePropagation1.ts, 0, 0)) +>A : Symbol(A, Decl(nonInferrableTypePropagation1.ts, 3, 9)) +>B : Symbol(B, Decl(nonInferrableTypePropagation1.ts, 3, 11)) + + ): Thing; +>Thing : Symbol(Thing, Decl(nonInferrableTypePropagation1.ts, 0, 46)) +>B : Symbol(B, Decl(nonInferrableTypePropagation1.ts, 3, 11)) + +}; +type Box = { data: V }; +>Box : Symbol(Box, Decl(nonInferrableTypePropagation1.ts, 7, 2)) +>V : Symbol(V, Decl(nonInferrableTypePropagation1.ts, 8, 9)) +>data : Symbol(data, Decl(nonInferrableTypePropagation1.ts, 8, 15)) +>V : Symbol(V, Decl(nonInferrableTypePropagation1.ts, 8, 9)) + +declare const thing: Thing; +>thing : Symbol(thing, Decl(nonInferrableTypePropagation1.ts, 10, 13)) +>Thing : Symbol(Thing, Decl(nonInferrableTypePropagation1.ts, 0, 46)) + +declare function map(project: (value: T) => R): Op; +>map : Symbol(map, Decl(nonInferrableTypePropagation1.ts, 10, 35)) +>T : Symbol(T, Decl(nonInferrableTypePropagation1.ts, 12, 21)) +>R : Symbol(R, Decl(nonInferrableTypePropagation1.ts, 12, 23)) +>project : Symbol(project, Decl(nonInferrableTypePropagation1.ts, 12, 27)) +>value : Symbol(value, Decl(nonInferrableTypePropagation1.ts, 12, 37)) +>T : Symbol(T, Decl(nonInferrableTypePropagation1.ts, 12, 21)) +>R : Symbol(R, Decl(nonInferrableTypePropagation1.ts, 12, 23)) +>Op : Symbol(Op, Decl(nonInferrableTypePropagation1.ts, 0, 0)) +>T : Symbol(T, Decl(nonInferrableTypePropagation1.ts, 12, 21)) +>R : Symbol(R, Decl(nonInferrableTypePropagation1.ts, 12, 23)) + +declare function tap(next: (value: T) => void): Op; +>tap : Symbol(tap, Decl(nonInferrableTypePropagation1.ts, 12, 63)) +>T : Symbol(T, Decl(nonInferrableTypePropagation1.ts, 13, 21)) +>next : Symbol(next, Decl(nonInferrableTypePropagation1.ts, 13, 24)) +>value : Symbol(value, Decl(nonInferrableTypePropagation1.ts, 13, 31)) +>T : Symbol(T, Decl(nonInferrableTypePropagation1.ts, 13, 21)) +>Op : Symbol(Op, Decl(nonInferrableTypePropagation1.ts, 0, 0)) +>T : Symbol(T, Decl(nonInferrableTypePropagation1.ts, 13, 21)) +>T : Symbol(T, Decl(nonInferrableTypePropagation1.ts, 13, 21)) + +declare function box(data: V): Box; +>box : Symbol(box, Decl(nonInferrableTypePropagation1.ts, 13, 60)) +>V : Symbol(V, Decl(nonInferrableTypePropagation1.ts, 14, 21)) +>data : Symbol(data, Decl(nonInferrableTypePropagation1.ts, 14, 24)) +>V : Symbol(V, Decl(nonInferrableTypePropagation1.ts, 14, 21)) +>Box : Symbol(Box, Decl(nonInferrableTypePropagation1.ts, 7, 2)) +>V : Symbol(V, Decl(nonInferrableTypePropagation1.ts, 14, 21)) + +declare function createAndUnbox(factory: () => Thing>): Thing; +>createAndUnbox : Symbol(createAndUnbox, Decl(nonInferrableTypePropagation1.ts, 14, 41)) +>V : Symbol(V, Decl(nonInferrableTypePropagation1.ts, 15, 32)) +>factory : Symbol(factory, Decl(nonInferrableTypePropagation1.ts, 15, 35)) +>Thing : Symbol(Thing, Decl(nonInferrableTypePropagation1.ts, 0, 46)) +>V : Symbol(V, Decl(nonInferrableTypePropagation1.ts, 15, 32)) +>Box : Symbol(Box, Decl(nonInferrableTypePropagation1.ts, 7, 2)) +>V : Symbol(V, Decl(nonInferrableTypePropagation1.ts, 15, 32)) +>Thing : Symbol(Thing, Decl(nonInferrableTypePropagation1.ts, 0, 46)) +>V : Symbol(V, Decl(nonInferrableTypePropagation1.ts, 15, 32)) + +declare function log(value: any): void; +>log : Symbol(log, Decl(nonInferrableTypePropagation1.ts, 15, 79)) +>value : Symbol(value, Decl(nonInferrableTypePropagation1.ts, 16, 21)) + +const result1 = createAndUnbox(() => thing.pipe( +>result1 : Symbol(result1, Decl(nonInferrableTypePropagation1.ts, 18, 5)) +>createAndUnbox : Symbol(createAndUnbox, Decl(nonInferrableTypePropagation1.ts, 14, 41)) +>thing.pipe : Symbol(pipe, Decl(nonInferrableTypePropagation1.ts, 2, 13)) +>thing : Symbol(thing, Decl(nonInferrableTypePropagation1.ts, 10, 13)) +>pipe : Symbol(pipe, Decl(nonInferrableTypePropagation1.ts, 2, 13)) + + map((data) => box(data)), +>map : Symbol(map, Decl(nonInferrableTypePropagation1.ts, 10, 35)) +>data : Symbol(data, Decl(nonInferrableTypePropagation1.ts, 19, 9)) +>box : Symbol(box, Decl(nonInferrableTypePropagation1.ts, 13, 60)) +>data : Symbol(data, Decl(nonInferrableTypePropagation1.ts, 19, 9)) + + tap((v) => log(v)), +>tap : Symbol(tap, Decl(nonInferrableTypePropagation1.ts, 12, 63)) +>v : Symbol(v, Decl(nonInferrableTypePropagation1.ts, 20, 9)) +>log : Symbol(log, Decl(nonInferrableTypePropagation1.ts, 15, 79)) +>v : Symbol(v, Decl(nonInferrableTypePropagation1.ts, 20, 9)) + +)); + +const result2 = createAndUnbox(() => thing.pipe( +>result2 : Symbol(result2, Decl(nonInferrableTypePropagation1.ts, 23, 5)) +>createAndUnbox : Symbol(createAndUnbox, Decl(nonInferrableTypePropagation1.ts, 14, 41)) +>thing.pipe : Symbol(pipe, Decl(nonInferrableTypePropagation1.ts, 2, 13)) +>thing : Symbol(thing, Decl(nonInferrableTypePropagation1.ts, 10, 13)) +>pipe : Symbol(pipe, Decl(nonInferrableTypePropagation1.ts, 2, 13)) + + tap((v) => log(v)), +>tap : Symbol(tap, Decl(nonInferrableTypePropagation1.ts, 12, 63)) +>v : Symbol(v, Decl(nonInferrableTypePropagation1.ts, 24, 9)) +>log : Symbol(log, Decl(nonInferrableTypePropagation1.ts, 15, 79)) +>v : Symbol(v, Decl(nonInferrableTypePropagation1.ts, 24, 9)) + + map((data) => box(data)), +>map : Symbol(map, Decl(nonInferrableTypePropagation1.ts, 10, 35)) +>data : Symbol(data, Decl(nonInferrableTypePropagation1.ts, 25, 9)) +>box : Symbol(box, Decl(nonInferrableTypePropagation1.ts, 13, 60)) +>data : Symbol(data, Decl(nonInferrableTypePropagation1.ts, 25, 9)) + +)); + diff --git a/tests/baselines/reference/nonInferrableTypePropagation1.types b/tests/baselines/reference/nonInferrableTypePropagation1.types new file mode 100644 index 00000000000..fd132594192 --- /dev/null +++ b/tests/baselines/reference/nonInferrableTypePropagation1.types @@ -0,0 +1,111 @@ +=== tests/cases/compiler/nonInferrableTypePropagation1.ts === +type Op = (thing: Thing) => Thing; +>Op : Op +>thing : Thing + +type Thing = { +>Thing : Thing + + value: T; +>value : T + + pipe( +>pipe : (opA: Op, opB: Op) => Thing + + opA: Op, +>opA : Op + + opB: Op, +>opB : Op + + ): Thing; +}; +type Box = { data: V }; +>Box : Box +>data : V + +declare const thing: Thing; +>thing : Thing + +declare function map(project: (value: T) => R): Op; +>map : (project: (value: T) => R) => Op +>project : (value: T) => R +>value : T + +declare function tap(next: (value: T) => void): Op; +>tap : (next: (value: T) => void) => Op +>next : (value: T) => void +>value : T + +declare function box(data: V): Box; +>box : (data: V) => Box +>data : V + +declare function createAndUnbox(factory: () => Thing>): Thing; +>createAndUnbox : (factory: () => Thing>) => Thing +>factory : () => Thing> + +declare function log(value: any): void; +>log : (value: any) => void +>value : any + +const result1 = createAndUnbox(() => thing.pipe( +>result1 : Thing +>createAndUnbox(() => thing.pipe( map((data) => box(data)), tap((v) => log(v)),)) : Thing +>createAndUnbox : (factory: () => Thing>) => Thing +>() => thing.pipe( map((data) => box(data)), tap((v) => log(v)),) : () => Thing> +>thing.pipe( map((data) => box(data)), tap((v) => log(v)),) : Thing> +>thing.pipe : (opA: Op, opB: Op) => Thing +>thing : Thing +>pipe : (opA: Op, opB: Op) => Thing + + map((data) => box(data)), +>map((data) => box(data)) : Op> +>map : (project: (value: T) => R) => Op +>(data) => box(data) : (data: number) => Box +>data : number +>box(data) : Box +>box : (data: V) => Box +>data : number + + tap((v) => log(v)), +>tap((v) => log(v)) : Op, Box> +>tap : (next: (value: T) => void) => Op +>(v) => log(v) : (v: Box) => void +>v : Box +>log(v) : void +>log : (value: any) => void +>v : Box + +)); + +const result2 = createAndUnbox(() => thing.pipe( +>result2 : Thing +>createAndUnbox(() => thing.pipe( tap((v) => log(v)), map((data) => box(data)),)) : Thing +>createAndUnbox : (factory: () => Thing>) => Thing +>() => thing.pipe( tap((v) => log(v)), map((data) => box(data)),) : () => Thing> +>thing.pipe( tap((v) => log(v)), map((data) => box(data)),) : Thing> +>thing.pipe : (opA: Op, opB: Op) => Thing +>thing : Thing +>pipe : (opA: Op, opB: Op) => Thing + + tap((v) => log(v)), +>tap((v) => log(v)) : Op +>tap : (next: (value: T) => void) => Op +>(v) => log(v) : (v: number) => void +>v : number +>log(v) : void +>log : (value: any) => void +>v : number + + map((data) => box(data)), +>map((data) => box(data)) : Op> +>map : (project: (value: T) => R) => Op +>(data) => box(data) : (data: number) => Box +>data : number +>box(data) : Box +>box : (data: V) => Box +>data : number + +)); + diff --git a/tests/baselines/reference/nonInferrableTypePropagation2.js b/tests/baselines/reference/nonInferrableTypePropagation2.js new file mode 100644 index 00000000000..1cbd3d1533c --- /dev/null +++ b/tests/baselines/reference/nonInferrableTypePropagation2.js @@ -0,0 +1,38 @@ +//// [nonInferrableTypePropagation2.ts] +export interface Predicate { + (a: A): boolean +} + +interface Left { + readonly _tag: 'Left' + readonly left: E +} + +interface Right { + readonly _tag: 'Right' + readonly right: A +} + +type Either = Left | Right; + +interface Refinement { + (a: A): a is B +} + +declare const filter: { + (refinement: Refinement): (as: ReadonlyArray) => ReadonlyArray + (predicate: Predicate): (bs: ReadonlyArray) => ReadonlyArray + (predicate: Predicate): (as: ReadonlyArray) => ReadonlyArray +}; + +declare function pipe(a: A, ab: (a: A) => B): B; +declare function exists(predicate: Predicate): (ma: Either) => boolean; + +declare const es: Either[]; +const x = pipe(es, filter(exists((n) => n > 0))) + + +//// [nonInferrableTypePropagation2.js] +"use strict"; +exports.__esModule = true; +var x = pipe(es, filter(exists(function (n) { return n > 0; }))); diff --git a/tests/baselines/reference/nonInferrableTypePropagation2.symbols b/tests/baselines/reference/nonInferrableTypePropagation2.symbols new file mode 100644 index 00000000000..681520aa271 --- /dev/null +++ b/tests/baselines/reference/nonInferrableTypePropagation2.symbols @@ -0,0 +1,136 @@ +=== tests/cases/compiler/nonInferrableTypePropagation2.ts === +export interface Predicate { +>Predicate : Symbol(Predicate, Decl(nonInferrableTypePropagation2.ts, 0, 0)) +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 0, 27)) + + (a: A): boolean +>a : Symbol(a, Decl(nonInferrableTypePropagation2.ts, 1, 5)) +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 0, 27)) +} + +interface Left { +>Left : Symbol(Left, Decl(nonInferrableTypePropagation2.ts, 2, 1)) +>E : Symbol(E, Decl(nonInferrableTypePropagation2.ts, 4, 15)) + + readonly _tag: 'Left' +>_tag : Symbol(Left._tag, Decl(nonInferrableTypePropagation2.ts, 4, 19)) + + readonly left: E +>left : Symbol(Left.left, Decl(nonInferrableTypePropagation2.ts, 5, 25)) +>E : Symbol(E, Decl(nonInferrableTypePropagation2.ts, 4, 15)) +} + +interface Right { +>Right : Symbol(Right, Decl(nonInferrableTypePropagation2.ts, 7, 1)) +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 9, 16)) + + readonly _tag: 'Right' +>_tag : Symbol(Right._tag, Decl(nonInferrableTypePropagation2.ts, 9, 20)) + + readonly right: A +>right : Symbol(Right.right, Decl(nonInferrableTypePropagation2.ts, 10, 26)) +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 9, 16)) +} + +type Either = Left | Right; +>Either : Symbol(Either, Decl(nonInferrableTypePropagation2.ts, 12, 1)) +>E : Symbol(E, Decl(nonInferrableTypePropagation2.ts, 14, 12)) +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 14, 14)) +>Left : Symbol(Left, Decl(nonInferrableTypePropagation2.ts, 2, 1)) +>E : Symbol(E, Decl(nonInferrableTypePropagation2.ts, 14, 12)) +>Right : Symbol(Right, Decl(nonInferrableTypePropagation2.ts, 7, 1)) +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 14, 14)) + +interface Refinement { +>Refinement : Symbol(Refinement, Decl(nonInferrableTypePropagation2.ts, 14, 39)) +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 16, 21)) +>B : Symbol(B, Decl(nonInferrableTypePropagation2.ts, 16, 23)) +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 16, 21)) + + (a: A): a is B +>a : Symbol(a, Decl(nonInferrableTypePropagation2.ts, 17, 5)) +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 16, 21)) +>a : Symbol(a, Decl(nonInferrableTypePropagation2.ts, 17, 5)) +>B : Symbol(B, Decl(nonInferrableTypePropagation2.ts, 16, 23)) +} + +declare const filter: { +>filter : Symbol(filter, Decl(nonInferrableTypePropagation2.ts, 20, 13)) + + (refinement: Refinement): (as: ReadonlyArray) => ReadonlyArray +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 21, 5)) +>B : Symbol(B, Decl(nonInferrableTypePropagation2.ts, 21, 7)) +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 21, 5)) +>refinement : Symbol(refinement, Decl(nonInferrableTypePropagation2.ts, 21, 21)) +>Refinement : Symbol(Refinement, Decl(nonInferrableTypePropagation2.ts, 14, 39)) +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 21, 5)) +>B : Symbol(B, Decl(nonInferrableTypePropagation2.ts, 21, 7)) +>as : Symbol(as, Decl(nonInferrableTypePropagation2.ts, 21, 53)) +>ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --)) +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 21, 5)) +>ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --)) +>B : Symbol(B, Decl(nonInferrableTypePropagation2.ts, 21, 7)) + + (predicate: Predicate): (bs: ReadonlyArray) => ReadonlyArray +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 22, 5)) +>predicate : Symbol(predicate, Decl(nonInferrableTypePropagation2.ts, 22, 8)) +>Predicate : Symbol(Predicate, Decl(nonInferrableTypePropagation2.ts, 0, 0)) +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 22, 5)) +>B : Symbol(B, Decl(nonInferrableTypePropagation2.ts, 22, 35)) +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 22, 5)) +>bs : Symbol(bs, Decl(nonInferrableTypePropagation2.ts, 22, 48)) +>ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --)) +>B : Symbol(B, Decl(nonInferrableTypePropagation2.ts, 22, 35)) +>ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --)) +>B : Symbol(B, Decl(nonInferrableTypePropagation2.ts, 22, 35)) + + (predicate: Predicate): (as: ReadonlyArray) => ReadonlyArray +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 23, 5)) +>predicate : Symbol(predicate, Decl(nonInferrableTypePropagation2.ts, 23, 8)) +>Predicate : Symbol(Predicate, Decl(nonInferrableTypePropagation2.ts, 0, 0)) +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 23, 5)) +>as : Symbol(as, Decl(nonInferrableTypePropagation2.ts, 23, 35)) +>ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --)) +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 23, 5)) +>ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --)) +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 23, 5)) + +}; + +declare function pipe(a: A, ab: (a: A) => B): B; +>pipe : Symbol(pipe, Decl(nonInferrableTypePropagation2.ts, 24, 2)) +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 26, 22)) +>B : Symbol(B, Decl(nonInferrableTypePropagation2.ts, 26, 24)) +>a : Symbol(a, Decl(nonInferrableTypePropagation2.ts, 26, 28)) +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 26, 22)) +>ab : Symbol(ab, Decl(nonInferrableTypePropagation2.ts, 26, 33)) +>a : Symbol(a, Decl(nonInferrableTypePropagation2.ts, 26, 39)) +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 26, 22)) +>B : Symbol(B, Decl(nonInferrableTypePropagation2.ts, 26, 24)) +>B : Symbol(B, Decl(nonInferrableTypePropagation2.ts, 26, 24)) + +declare function exists(predicate: Predicate): (ma: Either) => boolean; +>exists : Symbol(exists, Decl(nonInferrableTypePropagation2.ts, 26, 54)) +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 27, 24)) +>predicate : Symbol(predicate, Decl(nonInferrableTypePropagation2.ts, 27, 27)) +>Predicate : Symbol(Predicate, Decl(nonInferrableTypePropagation2.ts, 0, 0)) +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 27, 24)) +>E : Symbol(E, Decl(nonInferrableTypePropagation2.ts, 27, 54)) +>ma : Symbol(ma, Decl(nonInferrableTypePropagation2.ts, 27, 57)) +>Either : Symbol(Either, Decl(nonInferrableTypePropagation2.ts, 12, 1)) +>E : Symbol(E, Decl(nonInferrableTypePropagation2.ts, 27, 54)) +>A : Symbol(A, Decl(nonInferrableTypePropagation2.ts, 27, 24)) + +declare const es: Either[]; +>es : Symbol(es, Decl(nonInferrableTypePropagation2.ts, 29, 13)) +>Either : Symbol(Either, Decl(nonInferrableTypePropagation2.ts, 12, 1)) + +const x = pipe(es, filter(exists((n) => n > 0))) +>x : Symbol(x, Decl(nonInferrableTypePropagation2.ts, 30, 5)) +>pipe : Symbol(pipe, Decl(nonInferrableTypePropagation2.ts, 24, 2)) +>es : Symbol(es, Decl(nonInferrableTypePropagation2.ts, 29, 13)) +>filter : Symbol(filter, Decl(nonInferrableTypePropagation2.ts, 20, 13)) +>exists : Symbol(exists, Decl(nonInferrableTypePropagation2.ts, 26, 54)) +>n : Symbol(n, Decl(nonInferrableTypePropagation2.ts, 30, 34)) +>n : Symbol(n, Decl(nonInferrableTypePropagation2.ts, 30, 34)) + diff --git a/tests/baselines/reference/nonInferrableTypePropagation2.types b/tests/baselines/reference/nonInferrableTypePropagation2.types new file mode 100644 index 00000000000..e3046345994 --- /dev/null +++ b/tests/baselines/reference/nonInferrableTypePropagation2.types @@ -0,0 +1,76 @@ +=== tests/cases/compiler/nonInferrableTypePropagation2.ts === +export interface Predicate { + (a: A): boolean +>a : A +} + +interface Left { + readonly _tag: 'Left' +>_tag : "Left" + + readonly left: E +>left : E +} + +interface Right { + readonly _tag: 'Right' +>_tag : "Right" + + readonly right: A +>right : A +} + +type Either = Left | Right; +>Either : Either + +interface Refinement { + (a: A): a is B +>a : A +} + +declare const filter: { +>filter : { (refinement: Refinement): (as: readonly A[]) => readonly B[]; (predicate: Predicate): (bs: readonly B[]) => readonly B[]; (predicate: Predicate): (as: readonly A[]) => readonly A[]; } + + (refinement: Refinement): (as: ReadonlyArray) => ReadonlyArray +>refinement : Refinement +>as : readonly A[] + + (predicate: Predicate): (bs: ReadonlyArray) => ReadonlyArray +>predicate : Predicate +>bs : readonly B[] + + (predicate: Predicate): (as: ReadonlyArray) => ReadonlyArray +>predicate : Predicate +>as : readonly A[] + +}; + +declare function pipe(a: A, ab: (a: A) => B): B; +>pipe : (a: A, ab: (a: A) => B) => B +>a : A +>ab : (a: A) => B +>a : A + +declare function exists(predicate: Predicate): (ma: Either) => boolean; +>exists : (predicate: Predicate) => (ma: Either) => boolean +>predicate : Predicate +>ma : Either + +declare const es: Either[]; +>es : Either[] + +const x = pipe(es, filter(exists((n) => n > 0))) +>x : readonly Either[] +>pipe(es, filter(exists((n) => n > 0))) : readonly Either[] +>pipe : (a: A, ab: (a: A) => B) => B +>es : Either[] +>filter(exists((n) => n > 0)) : (as: readonly Either[]) => readonly Either[] +>filter : { (refinement: Refinement): (as: readonly A[]) => readonly B[]; (predicate: Predicate): (bs: readonly B[]) => readonly B[]; (predicate: Predicate): (as: readonly A[]) => readonly A[]; } +>exists((n) => n > 0) : (ma: Either) => boolean +>exists : (predicate: Predicate) => (ma: Either) => boolean +>(n) => n > 0 : (n: number) => boolean +>n : number +>n > 0 : boolean +>n : number +>0 : 0 + diff --git a/tests/baselines/reference/numberVsBigIntOperations.errors.txt b/tests/baselines/reference/numberVsBigIntOperations.errors.txt index 42e49eb3304..e5ad663d131 100644 --- a/tests/baselines/reference/numberVsBigIntOperations.errors.txt +++ b/tests/baselines/reference/numberVsBigIntOperations.errors.txt @@ -62,9 +62,11 @@ tests/cases/compiler/numberVsBigIntOperations.ts(61,1): error TS2365: Operator ' tests/cases/compiler/numberVsBigIntOperations.ts(70,2): error TS2736: Operator '+' cannot be applied to type 'number | bigint'. tests/cases/compiler/numberVsBigIntOperations.ts(86,7): error TS1155: 'const' declarations must be initialized. tests/cases/compiler/numberVsBigIntOperations.ts(93,7): error TS1155: 'const' declarations must be initialized. +tests/cases/compiler/numberVsBigIntOperations.ts(98,6): error TS2736: Operator '+' cannot be applied to type 'S'. +tests/cases/compiler/numberVsBigIntOperations.ts(99,5): error TS2365: Operator '+' cannot be applied to types 'number' and 'S'. -==== tests/cases/compiler/numberVsBigIntOperations.ts (64 errors) ==== +==== tests/cases/compiler/numberVsBigIntOperations.ts (66 errors) ==== // Cannot mix bigints and numbers let bigInt = 1n, num = 2; bigInt = 1n; bigInt = 2; num = 1n; num = 2; @@ -286,4 +288,15 @@ tests/cases/compiler/numberVsBigIntOperations.ts(93,7): error TS1155: 'const' de const bigZeroOrOne: 0n | 1; ~~~~~~~~~~~~ !!! error TS1155: 'const' declarations must be initialized. - if (bigZeroOrOne) isOne(bigZeroOrOne); \ No newline at end of file + if (bigZeroOrOne) isOne(bigZeroOrOne); + + type NumberOrBigint = number | bigint; + function getKey(key: S) { + +key; // should error + ~~~ +!!! error TS2736: Operator '+' cannot be applied to type 'S'. + 0 + key; // should error + ~~~~~~~ +!!! error TS2365: Operator '+' cannot be applied to types 'number' and 'S'. + } + \ No newline at end of file diff --git a/tests/baselines/reference/numberVsBigIntOperations.js b/tests/baselines/reference/numberVsBigIntOperations.js index 9d8a4920d0d..3558a073551 100644 --- a/tests/baselines/reference/numberVsBigIntOperations.js +++ b/tests/baselines/reference/numberVsBigIntOperations.js @@ -92,7 +92,14 @@ else isNumber(zeroOrBigOne); const isOne = (x: 1 | 1n) => x; if (zeroOrBigOne) isOne(zeroOrBigOne); const bigZeroOrOne: 0n | 1; -if (bigZeroOrOne) isOne(bigZeroOrOne); +if (bigZeroOrOne) isOne(bigZeroOrOne); + +type NumberOrBigint = number | bigint; +function getKey(key: S) { + +key; // should error + 0 + key; // should error +} + //// [numberVsBigIntOperations.js] // Cannot mix bigints and numbers @@ -272,3 +279,7 @@ if (zeroOrBigOne) const bigZeroOrOne; if (bigZeroOrOne) isOne(bigZeroOrOne); +function getKey(key) { + +key; // should error + 0 + key; // should error +} diff --git a/tests/baselines/reference/numberVsBigIntOperations.symbols b/tests/baselines/reference/numberVsBigIntOperations.symbols index 1b164afb1de..e9f91b8d1f6 100644 --- a/tests/baselines/reference/numberVsBigIntOperations.symbols +++ b/tests/baselines/reference/numberVsBigIntOperations.symbols @@ -348,3 +348,20 @@ if (bigZeroOrOne) isOne(bigZeroOrOne); >isOne : Symbol(isOne, Decl(numberVsBigIntOperations.ts, 90, 5)) >bigZeroOrOne : Symbol(bigZeroOrOne, Decl(numberVsBigIntOperations.ts, 92, 5)) +type NumberOrBigint = number | bigint; +>NumberOrBigint : Symbol(NumberOrBigint, Decl(numberVsBigIntOperations.ts, 93, 38)) + +function getKey(key: S) { +>getKey : Symbol(getKey, Decl(numberVsBigIntOperations.ts, 95, 38)) +>S : Symbol(S, Decl(numberVsBigIntOperations.ts, 96, 16)) +>NumberOrBigint : Symbol(NumberOrBigint, Decl(numberVsBigIntOperations.ts, 93, 38)) +>key : Symbol(key, Decl(numberVsBigIntOperations.ts, 96, 42)) +>S : Symbol(S, Decl(numberVsBigIntOperations.ts, 96, 16)) + + +key; // should error +>key : Symbol(key, Decl(numberVsBigIntOperations.ts, 96, 42)) + + 0 + key; // should error +>key : Symbol(key, Decl(numberVsBigIntOperations.ts, 96, 42)) +} + diff --git a/tests/baselines/reference/numberVsBigIntOperations.types b/tests/baselines/reference/numberVsBigIntOperations.types index ddb81030309..4fc625d3e82 100644 --- a/tests/baselines/reference/numberVsBigIntOperations.types +++ b/tests/baselines/reference/numberVsBigIntOperations.types @@ -727,3 +727,20 @@ if (bigZeroOrOne) isOne(bigZeroOrOne); >isOne : (x: 1n | 1) => 1n | 1 >bigZeroOrOne : 1 +type NumberOrBigint = number | bigint; +>NumberOrBigint : number | bigint + +function getKey(key: S) { +>getKey : (key: S) => void +>key : S + + +key; // should error +>+key : number +>key : S + + 0 + key; // should error +>0 + key : any +>0 : 0 +>key : S +} + diff --git a/tests/baselines/reference/numericEnumMappedType.js b/tests/baselines/reference/numericEnumMappedType.js index 78a13e443ff..a4de91b9981 100644 --- a/tests/baselines/reference/numericEnumMappedType.js +++ b/tests/baselines/reference/numericEnumMappedType.js @@ -79,10 +79,10 @@ declare enum E2 { TWO, THREE } -declare type Bins1 = { +type Bins1 = { [k in E1]?: string; }; -declare type Bins2 = { +type Bins2 = { [k in E2]?: string; }; declare const b1: Bins1; @@ -98,7 +98,7 @@ declare enum N2 { C, D } -declare type T1 = { +type T1 = { [K in N1 | N2]: K; }; declare enum E { diff --git a/tests/baselines/reference/numericStringLiteralTypes.js b/tests/baselines/reference/numericStringLiteralTypes.js index 975ca1d3179..1b47eaf4395 100644 --- a/tests/baselines/reference/numericStringLiteralTypes.js +++ b/tests/baselines/reference/numericStringLiteralTypes.js @@ -55,23 +55,23 @@ f([container1, container2], function (value1, value2) { //// [numericStringLiteralTypes.d.ts] -declare type T0 = string & `${string}`; -declare type T1 = string & `${number}`; -declare type T2 = string & `${bigint}`; -declare type T3 = string & `${T}`; -declare type T4 = string & `${Capitalize<`${T}`>}`; +type T0 = string & `${string}`; +type T1 = string & `${number}`; +type T2 = string & `${bigint}`; +type T3 = string & `${T}`; +type T4 = string & `${Capitalize<`${T}`>}`; declare function f1(a: boolean[], x: `${number}`): void; declare function f2(a: boolean[], x: number | `${number}`): void; -declare type T10 = boolean[][`${number}`]; -declare type T11 = boolean[][number | `${number}`]; -declare type T20 = T; -declare type T21 = { +type T10 = boolean[][`${number}`]; +type T11 = boolean[][number | `${number}`]; +type T20 = T; +type T21 = { [K in keyof T]: T20; }; -declare type Container = { +type Container = { value: T; }; -declare type UnwrapContainers[]> = { +type UnwrapContainers[]> = { [K in keyof T]: T[K]['value']; }; declare function createContainer(value: T): Container; diff --git a/tests/baselines/reference/objectFreeze.symbols b/tests/baselines/reference/objectFreeze.symbols index 0a3a7f66be0..b550b79aeb7 100644 --- a/tests/baselines/reference/objectFreeze.symbols +++ b/tests/baselines/reference/objectFreeze.symbols @@ -1,9 +1,9 @@ === tests/cases/compiler/objectFreeze.ts === const f = Object.freeze(function foo(a: number, b: string) { return false; }); >f : Symbol(f, Decl(objectFreeze.ts, 0, 5)) ->Object.freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>Object.freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >foo : Symbol(foo, Decl(objectFreeze.ts, 0, 24)) >a : Symbol(a, Decl(objectFreeze.ts, 0, 37)) >b : Symbol(b, Decl(objectFreeze.ts, 0, 47)) @@ -17,9 +17,9 @@ class C { constructor(a: number) { } } const c = Object.freeze(C); >c : Symbol(c, Decl(objectFreeze.ts, 4, 5)) ->Object.freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>Object.freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >C : Symbol(C, Decl(objectFreeze.ts, 1, 19)) new c(1); @@ -27,9 +27,9 @@ new c(1); const a = Object.freeze([1, 2, 3]); >a : Symbol(a, Decl(objectFreeze.ts, 7, 5)) ->Object.freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>Object.freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) a[0] = a[2].toString(); >a : Symbol(a, Decl(objectFreeze.ts, 7, 5)) @@ -39,9 +39,9 @@ a[0] = a[2].toString(); const o = Object.freeze({ a: 1, b: "string", c: true }); >o : Symbol(o, Decl(objectFreeze.ts, 10, 5)) ->Object.freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>Object.freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >a : Symbol(a, Decl(objectFreeze.ts, 10, 25)) >b : Symbol(b, Decl(objectFreeze.ts, 10, 31)) >c : Symbol(c, Decl(objectFreeze.ts, 10, 44)) diff --git a/tests/baselines/reference/objectFreeze.types b/tests/baselines/reference/objectFreeze.types index b39293e1092..a8c4f445aca 100644 --- a/tests/baselines/reference/objectFreeze.types +++ b/tests/baselines/reference/objectFreeze.types @@ -2,9 +2,9 @@ const f = Object.freeze(function foo(a: number, b: string) { return false; }); >f : (a: number, b: string) => false >Object.freeze(function foo(a: number, b: string) { return false; }) : (a: number, b: string) => false ->Object.freeze : { (a: T[]): readonly T[]; (f: T): T; (o: T): Readonly; (o: T): Readonly; } +>Object.freeze : { (f: T): T; (o: T): Readonly; (o: T): Readonly; } >Object : ObjectConstructor ->freeze : { (a: T[]): readonly T[]; (f: T): T; (o: T): Readonly; (o: T): Readonly; } +>freeze : { (f: T): T; (o: T): Readonly; (o: T): Readonly; } >function foo(a: number, b: string) { return false; } : (a: number, b: string) => false >foo : (a: number, b: string) => false >a : number @@ -26,9 +26,9 @@ class C { constructor(a: number) { } } const c = Object.freeze(C); >c : typeof C >Object.freeze(C) : typeof C ->Object.freeze : { (a: T[]): readonly T[]; (f: T): T; (o: T): Readonly; (o: T): Readonly; } +>Object.freeze : { (f: T): T; (o: T): Readonly; (o: T): Readonly; } >Object : ObjectConstructor ->freeze : { (a: T[]): readonly T[]; (f: T): T; (o: T): Readonly; (o: T): Readonly; } +>freeze : { (f: T): T; (o: T): Readonly; (o: T): Readonly; } >C : typeof C new c(1); @@ -39,9 +39,9 @@ new c(1); const a = Object.freeze([1, 2, 3]); >a : readonly number[] >Object.freeze([1, 2, 3]) : readonly number[] ->Object.freeze : { (a: T[]): readonly T[]; (f: T): T; (o: T): Readonly; (o: T): Readonly; } +>Object.freeze : { (f: T): T; (o: T): Readonly; (o: T): Readonly; } >Object : ObjectConstructor ->freeze : { (a: T[]): readonly T[]; (f: T): T; (o: T): Readonly; (o: T): Readonly; } +>freeze : { (f: T): T; (o: T): Readonly; (o: T): Readonly; } >[1, 2, 3] : number[] >1 : 1 >2 : 2 @@ -62,9 +62,9 @@ a[0] = a[2].toString(); const o = Object.freeze({ a: 1, b: "string", c: true }); >o : Readonly<{ a: 1; b: "string"; c: true; }> >Object.freeze({ a: 1, b: "string", c: true }) : Readonly<{ a: 1; b: "string"; c: true; }> ->Object.freeze : { (a: T[]): readonly T[]; (f: T): T; (o: T): Readonly; (o: T): Readonly; } +>Object.freeze : { (f: T): T; (o: T): Readonly; (o: T): Readonly; } >Object : ObjectConstructor ->freeze : { (a: T[]): readonly T[]; (f: T): T; (o: T): Readonly; (o: T): Readonly; } +>freeze : { (f: T): T; (o: T): Readonly; (o: T): Readonly; } >{ a: 1, b: "string", c: true } : { a: 1; b: "string"; c: true; } >a : 1 >1 : 1 diff --git a/tests/baselines/reference/objectFreezeLiteralsDontWiden.errors.txt b/tests/baselines/reference/objectFreezeLiteralsDontWiden.errors.txt new file mode 100644 index 00000000000..928d70915cb --- /dev/null +++ b/tests/baselines/reference/objectFreezeLiteralsDontWiden.errors.txt @@ -0,0 +1,14 @@ +tests/cases/compiler/objectFreezeLiteralsDontWiden.ts(7,1): error TS2322: Type '"latest"' is not assignable to type '"1011831"'. + + +==== tests/cases/compiler/objectFreezeLiteralsDontWiden.ts (1 errors) ==== + const PUPPETEER_REVISIONS = Object.freeze({ + chromium: '1011831', + firefox: 'latest', + }); + + let preferredRevision = PUPPETEER_REVISIONS.chromium; + preferredRevision = PUPPETEER_REVISIONS.firefox; + ~~~~~~~~~~~~~~~~~ +!!! error TS2322: Type '"latest"' is not assignable to type '"1011831"'. + \ No newline at end of file diff --git a/tests/baselines/reference/objectFreezeLiteralsDontWiden.js b/tests/baselines/reference/objectFreezeLiteralsDontWiden.js new file mode 100644 index 00000000000..de9d5bec07f --- /dev/null +++ b/tests/baselines/reference/objectFreezeLiteralsDontWiden.js @@ -0,0 +1,17 @@ +//// [objectFreezeLiteralsDontWiden.ts] +const PUPPETEER_REVISIONS = Object.freeze({ + chromium: '1011831', + firefox: 'latest', +}); + +let preferredRevision = PUPPETEER_REVISIONS.chromium; +preferredRevision = PUPPETEER_REVISIONS.firefox; + + +//// [objectFreezeLiteralsDontWiden.js] +var PUPPETEER_REVISIONS = Object.freeze({ + chromium: '1011831', + firefox: 'latest' +}); +var preferredRevision = PUPPETEER_REVISIONS.chromium; +preferredRevision = PUPPETEER_REVISIONS.firefox; diff --git a/tests/baselines/reference/objectFreezeLiteralsDontWiden.symbols b/tests/baselines/reference/objectFreezeLiteralsDontWiden.symbols new file mode 100644 index 00000000000..6eb5b43a26e --- /dev/null +++ b/tests/baselines/reference/objectFreezeLiteralsDontWiden.symbols @@ -0,0 +1,27 @@ +=== tests/cases/compiler/objectFreezeLiteralsDontWiden.ts === +const PUPPETEER_REVISIONS = Object.freeze({ +>PUPPETEER_REVISIONS : Symbol(PUPPETEER_REVISIONS, Decl(objectFreezeLiteralsDontWiden.ts, 0, 5)) +>Object.freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + chromium: '1011831', +>chromium : Symbol(chromium, Decl(objectFreezeLiteralsDontWiden.ts, 0, 43)) + + firefox: 'latest', +>firefox : Symbol(firefox, Decl(objectFreezeLiteralsDontWiden.ts, 1, 22)) + +}); + +let preferredRevision = PUPPETEER_REVISIONS.chromium; +>preferredRevision : Symbol(preferredRevision, Decl(objectFreezeLiteralsDontWiden.ts, 5, 3)) +>PUPPETEER_REVISIONS.chromium : Symbol(chromium, Decl(objectFreezeLiteralsDontWiden.ts, 0, 43)) +>PUPPETEER_REVISIONS : Symbol(PUPPETEER_REVISIONS, Decl(objectFreezeLiteralsDontWiden.ts, 0, 5)) +>chromium : Symbol(chromium, Decl(objectFreezeLiteralsDontWiden.ts, 0, 43)) + +preferredRevision = PUPPETEER_REVISIONS.firefox; +>preferredRevision : Symbol(preferredRevision, Decl(objectFreezeLiteralsDontWiden.ts, 5, 3)) +>PUPPETEER_REVISIONS.firefox : Symbol(firefox, Decl(objectFreezeLiteralsDontWiden.ts, 1, 22)) +>PUPPETEER_REVISIONS : Symbol(PUPPETEER_REVISIONS, Decl(objectFreezeLiteralsDontWiden.ts, 0, 5)) +>firefox : Symbol(firefox, Decl(objectFreezeLiteralsDontWiden.ts, 1, 22)) + diff --git a/tests/baselines/reference/objectFreezeLiteralsDontWiden.types b/tests/baselines/reference/objectFreezeLiteralsDontWiden.types new file mode 100644 index 00000000000..a93f6d75e0d --- /dev/null +++ b/tests/baselines/reference/objectFreezeLiteralsDontWiden.types @@ -0,0 +1,32 @@ +=== tests/cases/compiler/objectFreezeLiteralsDontWiden.ts === +const PUPPETEER_REVISIONS = Object.freeze({ +>PUPPETEER_REVISIONS : Readonly<{ chromium: "1011831"; firefox: "latest"; }> +>Object.freeze({ chromium: '1011831', firefox: 'latest',}) : Readonly<{ chromium: "1011831"; firefox: "latest"; }> +>Object.freeze : { (f: T): T; (o: T): Readonly; (o: T): Readonly; } +>Object : ObjectConstructor +>freeze : { (f: T): T; (o: T): Readonly; (o: T): Readonly; } +>{ chromium: '1011831', firefox: 'latest',} : { chromium: "1011831"; firefox: "latest"; } + + chromium: '1011831', +>chromium : "1011831" +>'1011831' : "1011831" + + firefox: 'latest', +>firefox : "latest" +>'latest' : "latest" + +}); + +let preferredRevision = PUPPETEER_REVISIONS.chromium; +>preferredRevision : "1011831" +>PUPPETEER_REVISIONS.chromium : "1011831" +>PUPPETEER_REVISIONS : Readonly<{ chromium: "1011831"; firefox: "latest"; }> +>chromium : "1011831" + +preferredRevision = PUPPETEER_REVISIONS.firefox; +>preferredRevision = PUPPETEER_REVISIONS.firefox : "latest" +>preferredRevision : "1011831" +>PUPPETEER_REVISIONS.firefox : "latest" +>PUPPETEER_REVISIONS : Readonly<{ chromium: "1011831"; firefox: "latest"; }> +>firefox : "latest" + diff --git a/tests/baselines/reference/objectFromEntries.symbols b/tests/baselines/reference/objectFromEntries.symbols index 6848200acd7..ffb38b0d92c 100644 --- a/tests/baselines/reference/objectFromEntries.symbols +++ b/tests/baselines/reference/objectFromEntries.symbols @@ -22,9 +22,9 @@ const o3 = Object.fromEntries(new Map([[Symbol("key"), "value"]])); const frozenArray = Object.freeze([['a', 1], ['b', 2], ['c', 3]]); >frozenArray : Symbol(frozenArray, Decl(objectFromEntries.ts, 4, 5)) ->Object.freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>Object.freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) const o4 = Object.fromEntries(frozenArray); >o4 : Symbol(o4, Decl(objectFromEntries.ts, 5, 5)) @@ -35,9 +35,9 @@ const o4 = Object.fromEntries(frozenArray); const frozenArray2: readonly [string, number][] = Object.freeze([['a', 1], ['b', 2], ['c', 3]]); >frozenArray2 : Symbol(frozenArray2, Decl(objectFromEntries.ts, 7, 5)) ->Object.freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>Object.freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>freeze : Symbol(ObjectConstructor.freeze, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) const o5 = Object.fromEntries(frozenArray2); >o5 : Symbol(o5, Decl(objectFromEntries.ts, 8, 5)) diff --git a/tests/baselines/reference/objectFromEntries.types b/tests/baselines/reference/objectFromEntries.types index 0701b9ed525..9812b4ae90c 100644 --- a/tests/baselines/reference/objectFromEntries.types +++ b/tests/baselines/reference/objectFromEntries.types @@ -43,9 +43,9 @@ const o3 = Object.fromEntries(new Map([[Symbol("key"), "value"]])); const frozenArray = Object.freeze([['a', 1], ['b', 2], ['c', 3]]); >frozenArray : readonly (string | number)[][] >Object.freeze([['a', 1], ['b', 2], ['c', 3]]) : readonly (string | number)[][] ->Object.freeze : { (a: T[]): readonly T[]; (f: T): T; (o: T): Readonly; (o: T): Readonly; } +>Object.freeze : { (f: T): T; (o: T): Readonly; (o: T): Readonly; } >Object : ObjectConstructor ->freeze : { (a: T[]): readonly T[]; (f: T): T; (o: T): Readonly; (o: T): Readonly; } +>freeze : { (f: T): T; (o: T): Readonly; (o: T): Readonly; } >[['a', 1], ['b', 2], ['c', 3]] : (string | number)[][] >['a', 1] : (string | number)[] >'a' : "a" @@ -68,9 +68,9 @@ const o4 = Object.fromEntries(frozenArray); const frozenArray2: readonly [string, number][] = Object.freeze([['a', 1], ['b', 2], ['c', 3]]); >frozenArray2 : readonly [string, number][] >Object.freeze([['a', 1], ['b', 2], ['c', 3]]) : readonly [string, number][] ->Object.freeze : { (a: T[]): readonly T[]; (f: T): T; (o: T): Readonly; (o: T): Readonly; } +>Object.freeze : { (f: T): T; (o: T): Readonly; (o: T): Readonly; } >Object : ObjectConstructor ->freeze : { (a: T[]): readonly T[]; (f: T): T; (o: T): Readonly; (o: T): Readonly; } +>freeze : { (f: T): T; (o: T): Readonly; (o: T): Readonly; } >[['a', 1], ['b', 2], ['c', 3]] : [string, number][] >['a', 1] : [string, number] >'a' : "a" diff --git a/tests/baselines/reference/objectPropertyAsClass.symbols b/tests/baselines/reference/objectPropertyAsClass.symbols new file mode 100644 index 00000000000..ad9712fa523 --- /dev/null +++ b/tests/baselines/reference/objectPropertyAsClass.symbols @@ -0,0 +1,52 @@ +=== tests/cases/compiler/index.js === +const a1 = { +>a1 : Symbol(a1, Decl(index.js, 0, 5)) + + foo() { +>foo : Symbol(foo, Decl(index.js, 0, 12)) + + this.x = 0; +>this : Symbol(a1, Decl(index.js, 0, 10)) +>x : Symbol(x, Decl(index.js, 1, 11)) + } +} + +const a2 = { +>a2 : Symbol(a2, Decl(index.js, 6, 5)) + + foo: function() { +>foo : Symbol(foo, Decl(index.js, 6, 12)) + + this.x = 0; +>this : Symbol(a2, Decl(index.js, 6, 10)) +>x : Symbol(foo.x, Decl(index.js, 7, 21)) + } +} + +const b1 = { +>b1 : Symbol(b1, Decl(index.js, 12, 5)) + + /** @class */ + foo() { +>foo : Symbol(foo, Decl(index.js, 12, 12)) + + this.x = 0; +>this : Symbol(b1, Decl(index.js, 12, 10)) +>x : Symbol(x, Decl(index.js, 14, 11)) + } +} + +const b2 = { +>b2 : Symbol(b2, Decl(index.js, 19, 5)) + + /** @class */ + foo: function() { +>foo : Symbol(foo, Decl(index.js, 19, 12)) + + this.x = 0; +>this.x : Symbol(foo.x, Decl(index.js, 21, 21)) +>this : Symbol(foo, Decl(index.js, 21, 8)) +>x : Symbol(foo.x, Decl(index.js, 21, 21)) + } +} + diff --git a/tests/baselines/reference/objectPropertyAsClass.types b/tests/baselines/reference/objectPropertyAsClass.types new file mode 100644 index 00000000000..7d27103e011 --- /dev/null +++ b/tests/baselines/reference/objectPropertyAsClass.types @@ -0,0 +1,69 @@ +=== tests/cases/compiler/index.js === +const a1 = { +>a1 : { foo(): void; } +>{ foo() { this.x = 0; }} : { foo(): void; } + + foo() { +>foo : () => void + + this.x = 0; +>this.x = 0 : 0 +>this.x : any +>this : { foo(): void; } +>x : any +>0 : 0 + } +} + +const a2 = { +>a2 : { foo: typeof foo; } +>{ foo: function() { this.x = 0; }} : { foo: typeof foo; } + + foo: function() { +>foo : typeof foo +>function() { this.x = 0; } : typeof foo + + this.x = 0; +>this.x = 0 : 0 +>this.x : any +>this : { foo: typeof foo; } +>x : any +>0 : 0 + } +} + +const b1 = { +>b1 : { foo(): void; } +>{ /** @class */ foo() { this.x = 0; }} : { foo(): void; } + + /** @class */ + foo() { +>foo : () => void + + this.x = 0; +>this.x = 0 : 0 +>this.x : any +>this : { foo(): void; } +>x : any +>0 : 0 + } +} + +const b2 = { +>b2 : { foo: typeof foo; } +>{ /** @class */ foo: function() { this.x = 0; }} : { foo: typeof foo; } + + /** @class */ + foo: function() { +>foo : typeof foo +>function() { this.x = 0; } : typeof foo + + this.x = 0; +>this.x = 0 : 0 +>this.x : any +>this : this +>x : any +>0 : 0 + } +} + diff --git a/tests/baselines/reference/objectSpreadNegative.errors.txt b/tests/baselines/reference/objectSpreadNegative.errors.txt index eeacad3ef0c..df51023a99d 100644 --- a/tests/baselines/reference/objectSpreadNegative.errors.txt +++ b/tests/baselines/reference/objectSpreadNegative.errors.txt @@ -10,7 +10,6 @@ tests/cases/conformance/types/spread/objectSpreadNegative.ts(28,36): error TS111 tests/cases/conformance/types/spread/objectSpreadNegative.ts(28,53): error TS1117: An object literal cannot have multiple properties with the same name. tests/cases/conformance/types/spread/objectSpreadNegative.ts(32,7): error TS2783: 'b' is specified more than once, so this usage will be overwritten. tests/cases/conformance/types/spread/objectSpreadNegative.ts(37,7): error TS2783: 'b' is specified more than once, so this usage will be overwritten. -tests/cases/conformance/types/spread/objectSpreadNegative.ts(37,7): error TS2783: 'b' is specified more than once, so this usage will be overwritten. tests/cases/conformance/types/spread/objectSpreadNegative.ts(39,14): error TS2783: 'b' is specified more than once, so this usage will be overwritten. tests/cases/conformance/types/spread/objectSpreadNegative.ts(41,53): error TS2783: 'd' is specified more than once, so this usage will be overwritten. tests/cases/conformance/types/spread/objectSpreadNegative.ts(43,7): error TS2783: 'a' is specified more than once, so this usage will be overwritten. @@ -27,7 +26,7 @@ tests/cases/conformance/types/spread/objectSpreadNegative.ts(69,9): error TS2339 tests/cases/conformance/types/spread/objectSpreadNegative.ts(74,11): error TS2339: Property 'a' does not exist on type '{}'. -==== tests/cases/conformance/types/spread/objectSpreadNegative.ts (23 errors) ==== +==== tests/cases/conformance/types/spread/objectSpreadNegative.ts (22 errors) ==== let o = { a: 1, b: 'no' } /// private propagates @@ -91,9 +90,6 @@ tests/cases/conformance/types/spread/objectSpreadNegative.ts(74,11): error TS233 ~~~~~~~ !!! error TS2783: 'b' is specified more than once, so this usage will be overwritten. !!! related TS2785 tests/cases/conformance/types/spread/objectSpreadNegative.ts:37:16: This spread always overwrites this property. - ~~~~~~~ -!!! error TS2783: 'b' is specified more than once, so this usage will be overwritten. -!!! related TS2785 tests/cases/conformance/types/spread/objectSpreadNegative.ts:37:23: This spread always overwrites this property. let combinedMid: { a: number, b: string, c: boolean } = { ...o3, b: 'ok', ...o4 } ~~~~~~~ diff --git a/tests/baselines/reference/omitTypeTestErrors01.js b/tests/baselines/reference/omitTypeTestErrors01.js index fd134c7f977..d4fbea6f63d 100644 --- a/tests/baselines/reference/omitTypeTestErrors01.js +++ b/tests/baselines/reference/omitTypeTestErrors01.js @@ -38,8 +38,8 @@ interface Foo { b: number; c: boolean; } -export declare type Bar = Omit; -export declare type Baz = Omit; +export type Bar = Omit; +export type Baz = Omit; export declare function getBarC(bar: Bar): any; export declare function getBazB(baz: Baz): any; export {}; diff --git a/tests/baselines/reference/omitTypeTests01.js b/tests/baselines/reference/omitTypeTests01.js index 866994eea17..4d0b0e6badc 100644 --- a/tests/baselines/reference/omitTypeTests01.js +++ b/tests/baselines/reference/omitTypeTests01.js @@ -38,8 +38,8 @@ interface Foo { b: number; c: boolean; } -export declare type Bar = Omit; -export declare type Baz = Omit; +export type Bar = Omit; +export type Baz = Omit; export declare function getBarA(bar: Bar): string; export declare function getBazA(baz: Baz): string; export {}; diff --git a/tests/baselines/reference/optionalBindingParameters3.errors.txt b/tests/baselines/reference/optionalBindingParameters3.errors.txt new file mode 100644 index 00000000000..3e8e0021417 --- /dev/null +++ b/tests/baselines/reference/optionalBindingParameters3.errors.txt @@ -0,0 +1,16 @@ +/a.js(9,12): error TS2463: A binding pattern parameter cannot be optional in an implementation signature. + + +==== /a.js (1 errors) ==== + /** + * @typedef Foo + * @property {string} a + */ + + /** + * @param {Foo} [options] + */ + function f({ a = "a" }) {} + ~~~~~~~~~~~ +!!! error TS2463: A binding pattern parameter cannot be optional in an implementation signature. + \ No newline at end of file diff --git a/tests/baselines/reference/optionalBindingParameters3.symbols b/tests/baselines/reference/optionalBindingParameters3.symbols new file mode 100644 index 00000000000..f8def8131fd --- /dev/null +++ b/tests/baselines/reference/optionalBindingParameters3.symbols @@ -0,0 +1,13 @@ +=== /a.js === +/** + * @typedef Foo + * @property {string} a + */ + +/** + * @param {Foo} [options] + */ +function f({ a = "a" }) {} +>f : Symbol(f, Decl(a.js, 0, 0)) +>a : Symbol(a, Decl(a.js, 8, 12)) + diff --git a/tests/baselines/reference/optionalBindingParameters3.types b/tests/baselines/reference/optionalBindingParameters3.types new file mode 100644 index 00000000000..a67a8380726 --- /dev/null +++ b/tests/baselines/reference/optionalBindingParameters3.types @@ -0,0 +1,14 @@ +=== /a.js === +/** + * @typedef Foo + * @property {string} a + */ + +/** + * @param {Foo} [options] + */ +function f({ a = "a" }) {} +>f : ({ a }?: Foo) => void +>a : string +>"a" : "a" + diff --git a/tests/baselines/reference/optionalChainWithInstantiationExpression1(target=es2020).js b/tests/baselines/reference/optionalChainWithInstantiationExpression1(target=es2020).js index 86f3e9f5209..33459ce82ad 100644 --- a/tests/baselines/reference/optionalChainWithInstantiationExpression1(target=es2020).js +++ b/tests/baselines/reference/optionalChainWithInstantiationExpression1(target=es2020).js @@ -16,5 +16,5 @@ a?.b.d //// [optionalChainWithInstantiationExpression1.js] -a?.b.d; +(a?.b).d; a?.b.d; diff --git a/tests/baselines/reference/optionalChainingInTypeAssertions(target=es2015).js b/tests/baselines/reference/optionalChainingInTypeAssertions(target=es2015).js index 1c3ccbc1d61..889de6a8a6e 100644 --- a/tests/baselines/reference/optionalChainingInTypeAssertions(target=es2015).js +++ b/tests/baselines/reference/optionalChainingInTypeAssertions(target=es2015).js @@ -10,7 +10,12 @@ const foo = new Foo(); /*a1*/(/*a2*/foo.m as any/*a3*/)/*a4*/?.(); /*b1*/(/*b2*/foo.m/*b3*/)/*b4*/?.(); - + +// https://github.com/microsoft/TypeScript/issues/50148 +(foo?.m as any).length; +(foo?.m).length; +(foo?.["m"] as any).length; +(foo?.["m"]).length; //// [optionalChainingInTypeAssertions.js] var _a, _b, _c, _d; @@ -22,3 +27,8 @@ const foo = new Foo(); (_b = foo.m) === null || _b === void 0 ? void 0 : _b.call(foo); /*a1*/ (_c = /*a2*/ foo.m /*a3*/ /*a4*/) === null || _c === void 0 ? void 0 : _c.call(foo); /*b1*/ (_d = /*b2*/ foo.m /*b3*/ /*b4*/) === null || _d === void 0 ? void 0 : _d.call(foo); +// https://github.com/microsoft/TypeScript/issues/50148 +(foo === null || foo === void 0 ? void 0 : foo.m).length; +(foo === null || foo === void 0 ? void 0 : foo.m).length; +(foo === null || foo === void 0 ? void 0 : foo["m"]).length; +(foo === null || foo === void 0 ? void 0 : foo["m"]).length; diff --git a/tests/baselines/reference/optionalChainingInTypeAssertions(target=es2015).symbols b/tests/baselines/reference/optionalChainingInTypeAssertions(target=es2015).symbols index 3c84c092176..dbd5aa85506 100644 --- a/tests/baselines/reference/optionalChainingInTypeAssertions(target=es2015).symbols +++ b/tests/baselines/reference/optionalChainingInTypeAssertions(target=es2015).symbols @@ -30,3 +30,22 @@ const foo = new Foo(); >foo : Symbol(foo, Decl(optionalChainingInTypeAssertions.ts, 4, 5)) >m : Symbol(Foo.m, Decl(optionalChainingInTypeAssertions.ts, 0, 11)) +// https://github.com/microsoft/TypeScript/issues/50148 +(foo?.m as any).length; +>foo?.m : Symbol(Foo.m, Decl(optionalChainingInTypeAssertions.ts, 0, 11)) +>foo : Symbol(foo, Decl(optionalChainingInTypeAssertions.ts, 4, 5)) +>m : Symbol(Foo.m, Decl(optionalChainingInTypeAssertions.ts, 0, 11)) + +(foo?.m).length; +>foo?.m : Symbol(Foo.m, Decl(optionalChainingInTypeAssertions.ts, 0, 11)) +>foo : Symbol(foo, Decl(optionalChainingInTypeAssertions.ts, 4, 5)) +>m : Symbol(Foo.m, Decl(optionalChainingInTypeAssertions.ts, 0, 11)) + +(foo?.["m"] as any).length; +>foo : Symbol(foo, Decl(optionalChainingInTypeAssertions.ts, 4, 5)) +>"m" : Symbol(Foo.m, Decl(optionalChainingInTypeAssertions.ts, 0, 11)) + +(foo?.["m"]).length; +>foo : Symbol(foo, Decl(optionalChainingInTypeAssertions.ts, 4, 5)) +>"m" : Symbol(Foo.m, Decl(optionalChainingInTypeAssertions.ts, 0, 11)) + diff --git a/tests/baselines/reference/optionalChainingInTypeAssertions(target=es2015).types b/tests/baselines/reference/optionalChainingInTypeAssertions(target=es2015).types index 2df0f69dbc5..e59bb8956fa 100644 --- a/tests/baselines/reference/optionalChainingInTypeAssertions(target=es2015).types +++ b/tests/baselines/reference/optionalChainingInTypeAssertions(target=es2015).types @@ -43,3 +43,40 @@ const foo = new Foo(); >foo : Foo >m : () => void +// https://github.com/microsoft/TypeScript/issues/50148 +(foo?.m as any).length; +>(foo?.m as any).length : any +>(foo?.m as any) : any +>foo?.m as any : any +>foo?.m : () => void +>foo : Foo +>m : () => void +>length : any + +(foo?.m).length; +>(foo?.m).length : any +>(foo?.m) : any +>foo?.m : any +>foo?.m : () => void +>foo : Foo +>m : () => void +>length : any + +(foo?.["m"] as any).length; +>(foo?.["m"] as any).length : any +>(foo?.["m"] as any) : any +>foo?.["m"] as any : any +>foo?.["m"] : () => void +>foo : Foo +>"m" : "m" +>length : any + +(foo?.["m"]).length; +>(foo?.["m"]).length : any +>(foo?.["m"]) : any +>foo?.["m"] : any +>foo?.["m"] : () => void +>foo : Foo +>"m" : "m" +>length : any + diff --git a/tests/baselines/reference/optionalChainingInTypeAssertions(target=esnext).js b/tests/baselines/reference/optionalChainingInTypeAssertions(target=esnext).js index 454b3962c57..bbe403f97c7 100644 --- a/tests/baselines/reference/optionalChainingInTypeAssertions(target=esnext).js +++ b/tests/baselines/reference/optionalChainingInTypeAssertions(target=esnext).js @@ -10,7 +10,12 @@ const foo = new Foo(); /*a1*/(/*a2*/foo.m as any/*a3*/)/*a4*/?.(); /*b1*/(/*b2*/foo.m/*b3*/)/*b4*/?.(); - + +// https://github.com/microsoft/TypeScript/issues/50148 +(foo?.m as any).length; +(foo?.m).length; +(foo?.["m"] as any).length; +(foo?.["m"]).length; //// [optionalChainingInTypeAssertions.js] class Foo { @@ -21,3 +26,8 @@ foo.m?.(); foo.m?.(); /*a1*/ /*a2*/ foo.m /*a3*/ /*a4*/?.(); /*b1*/ /*b2*/ foo.m /*b3*/ /*b4*/?.(); +// https://github.com/microsoft/TypeScript/issues/50148 +(foo?.m).length; +(foo?.m).length; +(foo?.["m"]).length; +(foo?.["m"]).length; diff --git a/tests/baselines/reference/optionalChainingInTypeAssertions(target=esnext).symbols b/tests/baselines/reference/optionalChainingInTypeAssertions(target=esnext).symbols index 3c84c092176..dbd5aa85506 100644 --- a/tests/baselines/reference/optionalChainingInTypeAssertions(target=esnext).symbols +++ b/tests/baselines/reference/optionalChainingInTypeAssertions(target=esnext).symbols @@ -30,3 +30,22 @@ const foo = new Foo(); >foo : Symbol(foo, Decl(optionalChainingInTypeAssertions.ts, 4, 5)) >m : Symbol(Foo.m, Decl(optionalChainingInTypeAssertions.ts, 0, 11)) +// https://github.com/microsoft/TypeScript/issues/50148 +(foo?.m as any).length; +>foo?.m : Symbol(Foo.m, Decl(optionalChainingInTypeAssertions.ts, 0, 11)) +>foo : Symbol(foo, Decl(optionalChainingInTypeAssertions.ts, 4, 5)) +>m : Symbol(Foo.m, Decl(optionalChainingInTypeAssertions.ts, 0, 11)) + +(foo?.m).length; +>foo?.m : Symbol(Foo.m, Decl(optionalChainingInTypeAssertions.ts, 0, 11)) +>foo : Symbol(foo, Decl(optionalChainingInTypeAssertions.ts, 4, 5)) +>m : Symbol(Foo.m, Decl(optionalChainingInTypeAssertions.ts, 0, 11)) + +(foo?.["m"] as any).length; +>foo : Symbol(foo, Decl(optionalChainingInTypeAssertions.ts, 4, 5)) +>"m" : Symbol(Foo.m, Decl(optionalChainingInTypeAssertions.ts, 0, 11)) + +(foo?.["m"]).length; +>foo : Symbol(foo, Decl(optionalChainingInTypeAssertions.ts, 4, 5)) +>"m" : Symbol(Foo.m, Decl(optionalChainingInTypeAssertions.ts, 0, 11)) + diff --git a/tests/baselines/reference/optionalChainingInTypeAssertions(target=esnext).types b/tests/baselines/reference/optionalChainingInTypeAssertions(target=esnext).types index 2df0f69dbc5..e59bb8956fa 100644 --- a/tests/baselines/reference/optionalChainingInTypeAssertions(target=esnext).types +++ b/tests/baselines/reference/optionalChainingInTypeAssertions(target=esnext).types @@ -43,3 +43,40 @@ const foo = new Foo(); >foo : Foo >m : () => void +// https://github.com/microsoft/TypeScript/issues/50148 +(foo?.m as any).length; +>(foo?.m as any).length : any +>(foo?.m as any) : any +>foo?.m as any : any +>foo?.m : () => void +>foo : Foo +>m : () => void +>length : any + +(foo?.m).length; +>(foo?.m).length : any +>(foo?.m) : any +>foo?.m : any +>foo?.m : () => void +>foo : Foo +>m : () => void +>length : any + +(foo?.["m"] as any).length; +>(foo?.["m"] as any).length : any +>(foo?.["m"] as any) : any +>foo?.["m"] as any : any +>foo?.["m"] : () => void +>foo : Foo +>"m" : "m" +>length : any + +(foo?.["m"]).length; +>(foo?.["m"]).length : any +>(foo?.["m"]) : any +>foo?.["m"] : any +>foo?.["m"] : () => void +>foo : Foo +>"m" : "m" +>length : any + diff --git a/tests/baselines/reference/optionalTupleElements1.js b/tests/baselines/reference/optionalTupleElements1.js index 73d3f616aa7..255c4e8fc37 100644 --- a/tests/baselines/reference/optionalTupleElements1.js +++ b/tests/baselines/reference/optionalTupleElements1.js @@ -80,15 +80,15 @@ t4 = []; //// [optionalTupleElements1.d.ts] -declare type T1 = [number, string, boolean]; -declare type T2 = [number, string, boolean?]; -declare type T3 = [number, string?, boolean?]; -declare type T4 = [number?, string?, boolean?]; -declare type L1 = T1["length"]; -declare type L2 = T2["length"]; -declare type L3 = T3["length"]; -declare type L4 = T4["length"]; -declare type T5 = [number, string?, boolean]; +type T1 = [number, string, boolean]; +type T2 = [number, string, boolean?]; +type T3 = [number, string?, boolean?]; +type T4 = [number?, string?, boolean?]; +type L1 = T1["length"]; +type L2 = T2["length"]; +type L3 = T3["length"]; +type L4 = T4["length"]; +type T5 = [number, string?, boolean]; declare function f1(t1: T1, t2: T2, t3: T3, t4: T4): void; declare let t2: T2; declare let t3: T3; diff --git a/tests/baselines/reference/parameterPropertyInConstructorWithPrologues.js b/tests/baselines/reference/parameterPropertyInConstructorWithPrologues.js index d952cf8ba17..c42324201d2 100644 --- a/tests/baselines/reference/parameterPropertyInConstructorWithPrologues.js +++ b/tests/baselines/reference/parameterPropertyInConstructorWithPrologues.js @@ -1,6 +1,8 @@ //// [parameterPropertyInConstructorWithPrologues.ts] // https://github.com/microsoft/TypeScript/issues/48671 +class C {} + class Foo1 { constructor(private A: string) { "ngInject1"; @@ -43,10 +45,65 @@ class Foo6 { console.log("hi"); } } + +class Foo7 extends C { + constructor( + private member: boolean, + ) { + "ngInject1"; + super(); + console.log("hi"); + } +} + +class Foo8 extends C { + constructor( + private member: boolean, + ) { + "ngInject1"; + super(); + this.m(); + console.log("hi"); + } + + m() {} +} + +class Foo9 extends C { + constructor() { + "ngInject1"; + "ngInject2"; + super(); + this.m(); + console.log("hi"); + } + + m() {} +} //// [parameterPropertyInConstructorWithPrologues.js] // https://github.com/microsoft/TypeScript/issues/48671 +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var C = /** @class */ (function () { + function C() { + } + return C; +}()); var Foo1 = /** @class */ (function () { function Foo1(A) { "ngInject1"; @@ -102,3 +159,40 @@ var Foo6 = /** @class */ (function () { } return Foo6; }()); +var Foo7 = /** @class */ (function (_super) { + __extends(Foo7, _super); + function Foo7(member) { + "ngInject1"; + var _this = _super.call(this) || this; + _this.member = member; + console.log("hi"); + return _this; + } + return Foo7; +}(C)); +var Foo8 = /** @class */ (function (_super) { + __extends(Foo8, _super); + function Foo8(member) { + "ngInject1"; + var _this = _super.call(this) || this; + _this.member = member; + _this.m(); + console.log("hi"); + return _this; + } + Foo8.prototype.m = function () { }; + return Foo8; +}(C)); +var Foo9 = /** @class */ (function (_super) { + __extends(Foo9, _super); + function Foo9() { + "ngInject1"; + "ngInject2"; + var _this = _super.call(this) || this; + _this.m(); + console.log("hi"); + return _this; + } + Foo9.prototype.m = function () { }; + return Foo9; +}(C)); diff --git a/tests/baselines/reference/parameterPropertyInConstructorWithPrologues.symbols b/tests/baselines/reference/parameterPropertyInConstructorWithPrologues.symbols index 582bfd762d2..7e2adfcb4fd 100644 --- a/tests/baselines/reference/parameterPropertyInConstructorWithPrologues.symbols +++ b/tests/baselines/reference/parameterPropertyInConstructorWithPrologues.symbols @@ -1,22 +1,25 @@ === tests/cases/compiler/parameterPropertyInConstructorWithPrologues.ts === // https://github.com/microsoft/TypeScript/issues/48671 +class C {} +>C : Symbol(C, Decl(parameterPropertyInConstructorWithPrologues.ts, 0, 0)) + class Foo1 { ->Foo1 : Symbol(Foo1, Decl(parameterPropertyInConstructorWithPrologues.ts, 0, 0)) +>Foo1 : Symbol(Foo1, Decl(parameterPropertyInConstructorWithPrologues.ts, 2, 10)) constructor(private A: string) { ->A : Symbol(Foo1.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 3, 14)) +>A : Symbol(Foo1.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 5, 14)) "ngInject1"; } } class Foo2 { ->Foo2 : Symbol(Foo2, Decl(parameterPropertyInConstructorWithPrologues.ts, 6, 1)) +>Foo2 : Symbol(Foo2, Decl(parameterPropertyInConstructorWithPrologues.ts, 8, 1)) constructor(private A: string, private B: string) { ->A : Symbol(Foo2.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 9, 14)) ->B : Symbol(Foo2.B, Decl(parameterPropertyInConstructorWithPrologues.ts, 9, 32)) +>A : Symbol(Foo2.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 11, 14)) +>B : Symbol(Foo2.B, Decl(parameterPropertyInConstructorWithPrologues.ts, 11, 32)) "ngInject1"; "ngInject2"; @@ -24,12 +27,12 @@ class Foo2 { } class Foo3 { ->Foo3 : Symbol(Foo3, Decl(parameterPropertyInConstructorWithPrologues.ts, 13, 1)) +>Foo3 : Symbol(Foo3, Decl(parameterPropertyInConstructorWithPrologues.ts, 15, 1)) constructor(private A: string, private B: string, private C: string) { ->A : Symbol(Foo3.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 16, 14)) ->B : Symbol(Foo3.B, Decl(parameterPropertyInConstructorWithPrologues.ts, 16, 32)) ->C : Symbol(Foo3.C, Decl(parameterPropertyInConstructorWithPrologues.ts, 16, 51)) +>A : Symbol(Foo3.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 18, 14)) +>B : Symbol(Foo3.B, Decl(parameterPropertyInConstructorWithPrologues.ts, 18, 32)) +>C : Symbol(Foo3.C, Decl(parameterPropertyInConstructorWithPrologues.ts, 18, 51)) "ngInject1"; "ngInject2"; @@ -37,10 +40,10 @@ class Foo3 { } class Foo4 { ->Foo4 : Symbol(Foo4, Decl(parameterPropertyInConstructorWithPrologues.ts, 20, 1)) +>Foo4 : Symbol(Foo4, Decl(parameterPropertyInConstructorWithPrologues.ts, 22, 1)) constructor(private A: string) { ->A : Symbol(Foo4.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 23, 14)) +>A : Symbol(Foo4.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 25, 14)) "ngInject1"; console.log("hi"); @@ -51,11 +54,11 @@ class Foo4 { } class Foo5 { ->Foo5 : Symbol(Foo5, Decl(parameterPropertyInConstructorWithPrologues.ts, 27, 1)) +>Foo5 : Symbol(Foo5, Decl(parameterPropertyInConstructorWithPrologues.ts, 29, 1)) constructor(private A: string, private B: string) { ->A : Symbol(Foo5.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 30, 14)) ->B : Symbol(Foo5.B, Decl(parameterPropertyInConstructorWithPrologues.ts, 30, 32)) +>A : Symbol(Foo5.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 32, 14)) +>B : Symbol(Foo5.B, Decl(parameterPropertyInConstructorWithPrologues.ts, 32, 32)) "ngInject1"; "ngInject2"; @@ -67,12 +70,12 @@ class Foo5 { } class Foo6 { ->Foo6 : Symbol(Foo6, Decl(parameterPropertyInConstructorWithPrologues.ts, 35, 1)) +>Foo6 : Symbol(Foo6, Decl(parameterPropertyInConstructorWithPrologues.ts, 37, 1)) constructor(private A: string, private B: string, private C: string) { ->A : Symbol(Foo6.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 38, 14)) ->B : Symbol(Foo6.B, Decl(parameterPropertyInConstructorWithPrologues.ts, 38, 32)) ->C : Symbol(Foo6.C, Decl(parameterPropertyInConstructorWithPrologues.ts, 38, 51)) +>A : Symbol(Foo6.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 40, 14)) +>B : Symbol(Foo6.B, Decl(parameterPropertyInConstructorWithPrologues.ts, 40, 32)) +>C : Symbol(Foo6.C, Decl(parameterPropertyInConstructorWithPrologues.ts, 40, 51)) "ngInject1"; "ngInject2"; @@ -83,3 +86,76 @@ class Foo6 { } } +class Foo7 extends C { +>Foo7 : Symbol(Foo7, Decl(parameterPropertyInConstructorWithPrologues.ts, 45, 1)) +>C : Symbol(C, Decl(parameterPropertyInConstructorWithPrologues.ts, 0, 0)) + + constructor( + private member: boolean, +>member : Symbol(Foo7.member, Decl(parameterPropertyInConstructorWithPrologues.ts, 48, 14)) + + ) { + "ngInject1"; + super(); +>super : Symbol(C, Decl(parameterPropertyInConstructorWithPrologues.ts, 0, 0)) + + console.log("hi"); +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) + } +} + +class Foo8 extends C { +>Foo8 : Symbol(Foo8, Decl(parameterPropertyInConstructorWithPrologues.ts, 55, 1)) +>C : Symbol(C, Decl(parameterPropertyInConstructorWithPrologues.ts, 0, 0)) + + constructor( + private member: boolean, +>member : Symbol(Foo8.member, Decl(parameterPropertyInConstructorWithPrologues.ts, 58, 14)) + + ) { + "ngInject1"; + super(); +>super : Symbol(C, Decl(parameterPropertyInConstructorWithPrologues.ts, 0, 0)) + + this.m(); +>this.m : Symbol(Foo8.m, Decl(parameterPropertyInConstructorWithPrologues.ts, 65, 3)) +>this : Symbol(Foo8, Decl(parameterPropertyInConstructorWithPrologues.ts, 55, 1)) +>m : Symbol(Foo8.m, Decl(parameterPropertyInConstructorWithPrologues.ts, 65, 3)) + + console.log("hi"); +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) + } + + m() {} +>m : Symbol(Foo8.m, Decl(parameterPropertyInConstructorWithPrologues.ts, 65, 3)) +} + +class Foo9 extends C { +>Foo9 : Symbol(Foo9, Decl(parameterPropertyInConstructorWithPrologues.ts, 68, 1)) +>C : Symbol(C, Decl(parameterPropertyInConstructorWithPrologues.ts, 0, 0)) + + constructor() { + "ngInject1"; + "ngInject2"; + super(); +>super : Symbol(C, Decl(parameterPropertyInConstructorWithPrologues.ts, 0, 0)) + + this.m(); +>this.m : Symbol(Foo9.m, Decl(parameterPropertyInConstructorWithPrologues.ts, 77, 3)) +>this : Symbol(Foo9, Decl(parameterPropertyInConstructorWithPrologues.ts, 68, 1)) +>m : Symbol(Foo9.m, Decl(parameterPropertyInConstructorWithPrologues.ts, 77, 3)) + + console.log("hi"); +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) + } + + m() {} +>m : Symbol(Foo9.m, Decl(parameterPropertyInConstructorWithPrologues.ts, 77, 3)) +} + diff --git a/tests/baselines/reference/parameterPropertyInConstructorWithPrologues.types b/tests/baselines/reference/parameterPropertyInConstructorWithPrologues.types index 2f676ee39ee..857196e37d9 100644 --- a/tests/baselines/reference/parameterPropertyInConstructorWithPrologues.types +++ b/tests/baselines/reference/parameterPropertyInConstructorWithPrologues.types @@ -1,6 +1,9 @@ === tests/cases/compiler/parameterPropertyInConstructorWithPrologues.ts === // https://github.com/microsoft/TypeScript/issues/48671 +class C {} +>C : C + class Foo1 { >Foo1 : Foo1 @@ -106,3 +109,95 @@ class Foo6 { } } +class Foo7 extends C { +>Foo7 : Foo7 +>C : C + + constructor( + private member: boolean, +>member : boolean + + ) { + "ngInject1"; +>"ngInject1" : "ngInject1" + + super(); +>super() : void +>super : typeof C + + console.log("hi"); +>console.log("hi") : void +>console.log : (...data: any[]) => void +>console : Console +>log : (...data: any[]) => void +>"hi" : "hi" + } +} + +class Foo8 extends C { +>Foo8 : Foo8 +>C : C + + constructor( + private member: boolean, +>member : boolean + + ) { + "ngInject1"; +>"ngInject1" : "ngInject1" + + super(); +>super() : void +>super : typeof C + + this.m(); +>this.m() : void +>this.m : () => void +>this : this +>m : () => void + + console.log("hi"); +>console.log("hi") : void +>console.log : (...data: any[]) => void +>console : Console +>log : (...data: any[]) => void +>"hi" : "hi" + } + + m() {} +>m : () => void +} + +class Foo9 extends C { +>Foo9 : Foo9 +>C : C + + constructor() { + "ngInject1"; +>"ngInject1" : "ngInject1" + + "ngInject2"; +>"ngInject2" : "ngInject2" + + super(); +>super() : void +>super : typeof C + + this.m(); +>this.m() : void +>this.m : () => void +>this : this +>m : () => void + + console.log("hi"); +>console.log("hi") : void +>console.log : (...data: any[]) => void +>console : Console +>log : (...data: any[]) => void +>"hi" : "hi" + } + + m() {} +>m : () => void +} + diff --git a/tests/baselines/reference/parenthesisDoesNotBlockAliasSymbolCreation.js b/tests/baselines/reference/parenthesisDoesNotBlockAliasSymbolCreation.js index 35899503574..7682fc58af0 100644 --- a/tests/baselines/reference/parenthesisDoesNotBlockAliasSymbolCreation.js +++ b/tests/baselines/reference/parenthesisDoesNotBlockAliasSymbolCreation.js @@ -28,14 +28,14 @@ exports.a4 = null; //// [parenthesisDoesNotBlockAliasSymbolCreation.d.ts] -export declare type InvalidKeys = { +export type InvalidKeys = { [P in K]?: never; }; -export declare type InvalidKeys2 = ({ +export type InvalidKeys2 = ({ [P in K]?: never; }); -export declare type A = (T & InvalidKeys<"a">); -export declare type A2 = (T & InvalidKeys2<"a">); +export type A = (T & InvalidKeys<"a">); +export type A2 = (T & InvalidKeys2<"a">); export declare const a: A<{ x: number; }>; diff --git a/tests/baselines/reference/parseAssertEntriesError.errors.txt b/tests/baselines/reference/parseAssertEntriesError.errors.txt new file mode 100644 index 00000000000..b0784172a9a --- /dev/null +++ b/tests/baselines/reference/parseAssertEntriesError.errors.txt @@ -0,0 +1,122 @@ +/index.ts(2,7): error TS1340: Module 'pkg' does not refer to a type, but is used as a type here. Did you mean 'typeof import('pkg')'? +/index.ts(2,32): error TS1478: Identifier or string literal expected. +/index.ts(2,32): error TS2695: Left side of comma operator is unused and has no side effects. +/index.ts(2,55): error TS1005: ';' expected. +/index.ts(2,66): error TS1128: Declaration or statement expected. +/index.ts(2,68): error TS1128: Declaration or statement expected. +/index.ts(2,69): error TS1128: Declaration or statement expected. +/index.ts(2,70): error TS1128: Declaration or statement expected. +/index.ts(2,71): error TS2304: Cannot find name 'RequireInterface'. +/index.ts(3,36): error TS1005: ':' expected. +/index.ts(3,70): error TS2339: Property 'ImportInterface' does not exist on type 'Promise<{ default: typeof import("/node_modules/pkg/import"); }>'. +/index.ts(5,34): error TS1340: Module 'pkg' does not refer to a type, but is used as a type here. Did you mean 'typeof import('pkg')'? +/index.ts(5,59): error TS1478: Identifier or string literal expected. +/index.ts(5,59): error TS2695: Left side of comma operator is unused and has no side effects. +/index.ts(5,82): error TS1005: ';' expected. +/index.ts(5,93): error TS1128: Declaration or statement expected. +/index.ts(5,95): error TS1128: Declaration or statement expected. +/index.ts(5,96): error TS1128: Declaration or statement expected. +/index.ts(5,97): error TS1128: Declaration or statement expected. +/index.ts(5,98): error TS1434: Unexpected keyword or identifier. +/index.ts(5,98): error TS2304: Cannot find name 'RequireInterface'. +/index.ts(5,114): error TS1128: Declaration or statement expected. +/index.ts(6,34): error TS1340: Module 'pkg' does not refer to a type, but is used as a type here. Did you mean 'typeof import('pkg')'? +/index.ts(6,59): error TS1478: Identifier or string literal expected. +/index.ts(6,59): error TS2695: Left side of comma operator is unused and has no side effects. +/index.ts(6,82): error TS1005: ';' expected. +/index.ts(6,92): error TS1128: Declaration or statement expected. +/index.ts(6,94): error TS1128: Declaration or statement expected. +/index.ts(6,95): error TS1128: Declaration or statement expected. +/index.ts(6,96): error TS1128: Declaration or statement expected. +/index.ts(6,97): error TS1434: Unexpected keyword or identifier. +/index.ts(6,97): error TS2304: Cannot find name 'ImportInterface'. +/index.ts(6,112): error TS1128: Declaration or statement expected. + + +==== /index.ts (33 errors) ==== + export type LocalInterface = + & import("pkg", { assert: {1234, "resolution-mode": "require"} }).RequireInterface + ~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1340: Module 'pkg' does not refer to a type, but is used as a type here. Did you mean 'typeof import('pkg')'? + ~~~~ +!!! error TS1478: Identifier or string literal expected. + ~~~~ +!!! error TS2695: Left side of comma operator is unused and has no side effects. + ~ +!!! error TS1005: ';' expected. + ~ +!!! error TS1128: Declaration or statement expected. + ~ +!!! error TS1128: Declaration or statement expected. + ~ +!!! error TS1128: Declaration or statement expected. + ~ +!!! error TS1128: Declaration or statement expected. + ~~~~~~~~~~~~~~~~ +!!! error TS2304: Cannot find name 'RequireInterface'. + & import("pkg", { assert: {1234, "resolution-mode": "import"} }).ImportInterface; + ~ +!!! error TS1005: ':' expected. + ~~~~~~~~~~~~~~~ +!!! error TS2339: Property 'ImportInterface' does not exist on type 'Promise<{ default: typeof import("/node_modules/pkg/import"); }>'. + + export const a = (null as any as import("pkg", { assert: {1234, "resolution-mode": "require"} }).RequireInterface); + ~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1340: Module 'pkg' does not refer to a type, but is used as a type here. Did you mean 'typeof import('pkg')'? + ~~~~ +!!! error TS1478: Identifier or string literal expected. + ~~~~ +!!! error TS2695: Left side of comma operator is unused and has no side effects. + ~ +!!! error TS1005: ';' expected. + ~ +!!! error TS1128: Declaration or statement expected. + ~ +!!! error TS1128: Declaration or statement expected. + ~ +!!! error TS1128: Declaration or statement expected. + ~ +!!! error TS1128: Declaration or statement expected. + ~~~~~~~~~~~~~~~~ +!!! error TS1434: Unexpected keyword or identifier. + ~~~~~~~~~~~~~~~~ +!!! error TS2304: Cannot find name 'RequireInterface'. + ~ +!!! error TS1128: Declaration or statement expected. + export const b = (null as any as import("pkg", { assert: {1234, "resolution-mode": "import"} }).ImportInterface); + ~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1340: Module 'pkg' does not refer to a type, but is used as a type here. Did you mean 'typeof import('pkg')'? + ~~~~ +!!! error TS1478: Identifier or string literal expected. + ~~~~ +!!! error TS2695: Left side of comma operator is unused and has no side effects. + ~ +!!! error TS1005: ';' expected. + ~ +!!! error TS1128: Declaration or statement expected. + ~ +!!! error TS1128: Declaration or statement expected. + ~ +!!! error TS1128: Declaration or statement expected. + ~ +!!! error TS1128: Declaration or statement expected. + ~~~~~~~~~~~~~~~ +!!! error TS1434: Unexpected keyword or identifier. + ~~~~~~~~~~~~~~~ +!!! error TS2304: Cannot find name 'ImportInterface'. + ~ +!!! error TS1128: Declaration or statement expected. + +==== /node_modules/pkg/package.json (0 errors) ==== + { + "name": "pkg", + "version": "0.0.1", + "exports": { + "import": "./import.js", + "require": "./require.js" + } + } +==== /node_modules/pkg/import.d.ts (0 errors) ==== + export interface ImportInterface {} +==== /node_modules/pkg/require.d.ts (0 errors) ==== + export interface RequireInterface {} \ No newline at end of file diff --git a/tests/baselines/reference/parseAssertEntriesError.js b/tests/baselines/reference/parseAssertEntriesError.js new file mode 100644 index 00000000000..28a0c7bc234 --- /dev/null +++ b/tests/baselines/reference/parseAssertEntriesError.js @@ -0,0 +1,48 @@ +//// [tests/cases/compiler/parseAssertEntriesError.ts] //// + +//// [package.json] +{ + "name": "pkg", + "version": "0.0.1", + "exports": { + "import": "./import.js", + "require": "./require.js" + } +} +//// [import.d.ts] +export interface ImportInterface {} +//// [require.d.ts] +export interface RequireInterface {} +//// [index.ts] +export type LocalInterface = + & import("pkg", { assert: {1234, "resolution-mode": "require"} }).RequireInterface + & import("pkg", { assert: {1234, "resolution-mode": "import"} }).ImportInterface; + +export const a = (null as any as import("pkg", { assert: {1234, "resolution-mode": "require"} }).RequireInterface); +export const b = (null as any as import("pkg", { assert: {1234, "resolution-mode": "import"} }).ImportInterface); + + +//// [index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = exports.a = void 0; +1234, "resolution-mode"; +"require"; +RequireInterface + & import("pkg", { assert: { 1234: , "resolution-mode": "import" } }).ImportInterface; +exports.a = null; +1234, "resolution-mode"; +"require"; +RequireInterface; +; +exports.b = null; +1234, "resolution-mode"; +"import"; +ImportInterface; +; + + +//// [index.d.ts] +export type LocalInterface = import("pkg", { assert: {} }); +export declare const a: any; +export declare const b: any; diff --git a/tests/baselines/reference/parseAssertEntriesError.symbols b/tests/baselines/reference/parseAssertEntriesError.symbols new file mode 100644 index 00000000000..d47c7225f9d --- /dev/null +++ b/tests/baselines/reference/parseAssertEntriesError.symbols @@ -0,0 +1,25 @@ +=== /index.ts === +export type LocalInterface = +>LocalInterface : Symbol(LocalInterface, Decl(index.ts, 0, 0)) + + & import("pkg", { assert: {1234, "resolution-mode": "require"} }).RequireInterface + & import("pkg", { assert: {1234, "resolution-mode": "import"} }).ImportInterface; +>"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) +>assert : Symbol(assert, Decl(index.ts, 2, 21)) +>1234 : Symbol(1234, Decl(index.ts, 2, 31)) +>"resolution-mode" : Symbol("resolution-mode", Decl(index.ts, 2, 36)) + +export const a = (null as any as import("pkg", { assert: {1234, "resolution-mode": "require"} }).RequireInterface); +>a : Symbol(a, Decl(index.ts, 4, 12)) + +export const b = (null as any as import("pkg", { assert: {1234, "resolution-mode": "import"} }).ImportInterface); +>b : Symbol(b, Decl(index.ts, 5, 12)) + +=== /node_modules/pkg/import.d.ts === +export interface ImportInterface {} +>ImportInterface : Symbol(ImportInterface, Decl(import.d.ts, 0, 0)) + +=== /node_modules/pkg/require.d.ts === +export interface RequireInterface {} +>RequireInterface : Symbol(RequireInterface, Decl(require.d.ts, 0, 0)) + diff --git a/tests/baselines/reference/parseAssertEntriesError.types b/tests/baselines/reference/parseAssertEntriesError.types new file mode 100644 index 00000000000..fb6f46a20c1 --- /dev/null +++ b/tests/baselines/reference/parseAssertEntriesError.types @@ -0,0 +1,54 @@ +=== /index.ts === +export type LocalInterface = +>LocalInterface : any + + & import("pkg", { assert: {1234, "resolution-mode": "require"} }).RequireInterface +>1234, "resolution-mode" : "resolution-mode" +>1234 : 1234 +>"resolution-mode" : "resolution-mode" +>"require" : "require" +>RequireInterface & import("pkg", { assert: {1234, "resolution-mode": "import"} }).ImportInterface : number +>RequireInterface : any + + & import("pkg", { assert: {1234, "resolution-mode": "import"} }).ImportInterface; +>import("pkg", { assert: {1234, "resolution-mode": "import"} }).ImportInterface : any +>import("pkg", { assert: {1234, "resolution-mode": "import"} }) : Promise<{ default: typeof import("/node_modules/pkg/import"); }> +>"pkg" : "pkg" +>{ assert: {1234, "resolution-mode": "import"} } : { assert: { 1234: any; "resolution-mode": string; }; } +>assert : { 1234: any; "resolution-mode": string; } +>{1234, "resolution-mode": "import"} : { 1234: any; "resolution-mode": string; } +>1234 : any +> : any +>"resolution-mode" : string +>"import" : "import" +>ImportInterface : any + +export const a = (null as any as import("pkg", { assert: {1234, "resolution-mode": "require"} }).RequireInterface); +>a : any +>(null as any as import("pkg", { assert: { : any +>null as any as import("pkg", { assert: { : any +>null as any : any +>null : null +>1234, "resolution-mode" : "resolution-mode" +>1234 : 1234 +>"resolution-mode" : "resolution-mode" +>"require" : "require" +>RequireInterface : any + +export const b = (null as any as import("pkg", { assert: {1234, "resolution-mode": "import"} }).ImportInterface); +>b : any +>(null as any as import("pkg", { assert: { : any +>null as any as import("pkg", { assert: { : any +>null as any : any +>null : null +>1234, "resolution-mode" : "resolution-mode" +>1234 : 1234 +>"resolution-mode" : "resolution-mode" +>"import" : "import" +>ImportInterface : any + +=== /node_modules/pkg/import.d.ts === +export interface ImportInterface {} +No type information for this code.=== /node_modules/pkg/require.d.ts === +export interface RequireInterface {} +No type information for this code. \ No newline at end of file diff --git a/tests/baselines/reference/parser15.4.4.14-9-2.errors.txt b/tests/baselines/reference/parser15.4.4.14-9-2.errors.txt index ef37fd3e964..1727eec8323 100644 --- a/tests/baselines/reference/parser15.4.4.14-9-2.errors.txt +++ b/tests/baselines/reference/parser15.4.4.14-9-2.errors.txt @@ -3,7 +3,7 @@ tests/cases/conformance/parser/ecmascript5/parser15.4.4.14-9-2.ts(17,17): error tests/cases/conformance/parser/ecmascript5/parser15.4.4.14-9-2.ts(18,17): error TS2345: Argument of type 'number' is not assignable to parameter of type 'boolean'. tests/cases/conformance/parser/ecmascript5/parser15.4.4.14-9-2.ts(19,17): error TS2345: Argument of type 'number' is not assignable to parameter of type 'boolean'. tests/cases/conformance/parser/ecmascript5/parser15.4.4.14-9-2.ts(20,17): error TS2345: Argument of type 'number' is not assignable to parameter of type 'boolean'. -tests/cases/conformance/parser/ecmascript5/parser15.4.4.14-9-2.ts(25,1): error TS2304: Cannot find name 'runTestCase'. +tests/cases/conformance/parser/ecmascript5/parser15.4.4.14-9-2.ts(25,1): error TS2552: Cannot find name 'runTestCase'. Did you mean 'testcase'? ==== tests/cases/conformance/parser/ecmascript5/parser15.4.4.14-9-2.ts (6 errors) ==== @@ -43,5 +43,6 @@ tests/cases/conformance/parser/ecmascript5/parser15.4.4.14-9-2.ts(25,1): error T } runTestCase(testcase); ~~~~~~~~~~~ -!!! error TS2304: Cannot find name 'runTestCase'. +!!! error TS2552: Cannot find name 'runTestCase'. Did you mean 'testcase'? +!!! related TS2728 tests/cases/conformance/parser/ecmascript5/parser15.4.4.14-9-2.ts:12:10: 'testcase' is declared here. \ No newline at end of file diff --git a/tests/baselines/reference/parserInterfaceDeclaration9.js b/tests/baselines/reference/parserInterfaceDeclaration9.js new file mode 100644 index 00000000000..f7742a1c281 --- /dev/null +++ b/tests/baselines/reference/parserInterfaceDeclaration9.js @@ -0,0 +1,18 @@ +//// [parserInterfaceDeclaration9.ts] +interface I1 { + get foo(): number, + set foo(value: number), +} + +interface I2 { + get foo(): number; + set foo(value: number); +} + +interface I3 { + get foo(): number + set foo(value: number) +} + + +//// [parserInterfaceDeclaration9.js] diff --git a/tests/baselines/reference/parserInterfaceDeclaration9.symbols b/tests/baselines/reference/parserInterfaceDeclaration9.symbols new file mode 100644 index 00000000000..4f27455f443 --- /dev/null +++ b/tests/baselines/reference/parserInterfaceDeclaration9.symbols @@ -0,0 +1,34 @@ +=== tests/cases/conformance/parser/ecmascript5/InterfaceDeclarations/parserInterfaceDeclaration9.ts === +interface I1 { +>I1 : Symbol(I1, Decl(parserInterfaceDeclaration9.ts, 0, 0)) + + get foo(): number, +>foo : Symbol(I1.foo, Decl(parserInterfaceDeclaration9.ts, 0, 14), Decl(parserInterfaceDeclaration9.ts, 1, 22)) + + set foo(value: number), +>foo : Symbol(I1.foo, Decl(parserInterfaceDeclaration9.ts, 0, 14), Decl(parserInterfaceDeclaration9.ts, 1, 22)) +>value : Symbol(value, Decl(parserInterfaceDeclaration9.ts, 2, 12)) +} + +interface I2 { +>I2 : Symbol(I2, Decl(parserInterfaceDeclaration9.ts, 3, 1)) + + get foo(): number; +>foo : Symbol(I2.foo, Decl(parserInterfaceDeclaration9.ts, 5, 14), Decl(parserInterfaceDeclaration9.ts, 6, 22)) + + set foo(value: number); +>foo : Symbol(I2.foo, Decl(parserInterfaceDeclaration9.ts, 5, 14), Decl(parserInterfaceDeclaration9.ts, 6, 22)) +>value : Symbol(value, Decl(parserInterfaceDeclaration9.ts, 7, 12)) +} + +interface I3 { +>I3 : Symbol(I3, Decl(parserInterfaceDeclaration9.ts, 8, 1)) + + get foo(): number +>foo : Symbol(I3.foo, Decl(parserInterfaceDeclaration9.ts, 10, 14), Decl(parserInterfaceDeclaration9.ts, 11, 21)) + + set foo(value: number) +>foo : Symbol(I3.foo, Decl(parserInterfaceDeclaration9.ts, 10, 14), Decl(parserInterfaceDeclaration9.ts, 11, 21)) +>value : Symbol(value, Decl(parserInterfaceDeclaration9.ts, 12, 12)) +} + diff --git a/tests/baselines/reference/parserInterfaceDeclaration9.types b/tests/baselines/reference/parserInterfaceDeclaration9.types new file mode 100644 index 00000000000..4c557f73b5f --- /dev/null +++ b/tests/baselines/reference/parserInterfaceDeclaration9.types @@ -0,0 +1,28 @@ +=== tests/cases/conformance/parser/ecmascript5/InterfaceDeclarations/parserInterfaceDeclaration9.ts === +interface I1 { + get foo(): number, +>foo : number + + set foo(value: number), +>foo : number +>value : number +} + +interface I2 { + get foo(): number; +>foo : number + + set foo(value: number); +>foo : number +>value : number +} + +interface I3 { + get foo(): number +>foo : number + + set foo(value: number) +>foo : number +>value : number +} + diff --git a/tests/baselines/reference/parserMemberAccessAfterPostfixExpression1.errors.txt b/tests/baselines/reference/parserMemberAccessAfterPostfixExpression1.errors.txt index 6694afaf78c..daab2dd65ec 100644 --- a/tests/baselines/reference/parserMemberAccessAfterPostfixExpression1.errors.txt +++ b/tests/baselines/reference/parserMemberAccessAfterPostfixExpression1.errors.txt @@ -11,4 +11,4 @@ tests/cases/conformance/parser/ecmascript5/Expressions/parserMemberAccessAfterPo !!! error TS1005: ';' expected. ~~~~~~~~ !!! error TS2552: Cannot find name 'toString'. Did you mean 'String'? -!!! related TS2728 /.ts/lib.es5.d.ts:536:13: 'String' is declared here. \ No newline at end of file +!!! related TS2728 /.ts/lib.es5.d.ts:530:13: 'String' is declared here. \ No newline at end of file diff --git a/tests/baselines/reference/parserRealSource7.errors.txt b/tests/baselines/reference/parserRealSource7.errors.txt index a566f7212e3..a6dd2559d73 100644 --- a/tests/baselines/reference/parserRealSource7.errors.txt +++ b/tests/baselines/reference/parserRealSource7.errors.txt @@ -5,7 +5,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts(16,37): error TS tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts(16,46): error TS1011: An element access expression should take an argument. tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts(21,36): error TS2552: Cannot find name 'TypeLink'. Did you mean 'typeLink'? tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts(29,29): error TS2304: Cannot find name 'Type'. -tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts(29,45): error TS2304: Cannot find name 'TypeDeclaration'. +tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts(29,45): error TS2552: Cannot find name 'TypeDeclaration'. Did you mean 'CSSStyleDeclaration'? tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts(34,43): error TS2304: Cannot find name 'Type'. tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts(34,54): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts(34,68): error TS2304: Cannot find name 'TypeCollectionContext'. @@ -351,7 +351,8 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts(828,13): error T ~~~~ !!! error TS2304: Cannot find name 'Type'. ~~~~~~~~~~~~~~~ -!!! error TS2304: Cannot find name 'TypeDeclaration'. +!!! error TS2552: Cannot find name 'TypeDeclaration'. Did you mean 'CSSStyleDeclaration'? +!!! related TS2728 /.ts/lib.dom.d.ts:3275:13: 'CSSStyleDeclaration' is declared here. type.extendsTypeLinks = getBaseTypeLinks(typeDecl.extendsList, type.extendsTypeLinks); type.implementsTypeLinks = getBaseTypeLinks(typeDecl.implementsList, type.implementsTypeLinks); } diff --git a/tests/baselines/reference/parserRegularExpressionDivideAmbiguity1.errors.txt b/tests/baselines/reference/parserRegularExpressionDivideAmbiguity1.errors.txt index ab0c1dc4d2e..252a08e5c38 100644 --- a/tests/baselines/reference/parserRegularExpressionDivideAmbiguity1.errors.txt +++ b/tests/baselines/reference/parserRegularExpressionDivideAmbiguity1.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpressionDivideAmbiguity1.ts(2,2): error TS2304: Cannot find name 'notregexp'. +tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpressionDivideAmbiguity1.ts(2,2): error TS2552: Cannot find name 'notregexp'. Did you mean 'RegExp'? tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpressionDivideAmbiguity1.ts(2,12): error TS2304: Cannot find name 'a'. @@ -6,6 +6,7 @@ tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpre 1 /notregexp/a.foo(); ~~~~~~~~~ -!!! error TS2304: Cannot find name 'notregexp'. +!!! error TS2552: Cannot find name 'notregexp'. Did you mean 'RegExp'? +!!! related TS2728 /.ts/lib.es5.d.ts:1045:13: 'RegExp' is declared here. ~ !!! error TS2304: Cannot find name 'a'. \ No newline at end of file diff --git a/tests/baselines/reference/parserRegularExpressionDivideAmbiguity2.errors.txt b/tests/baselines/reference/parserRegularExpressionDivideAmbiguity2.errors.txt index eac54ef0fe4..3eb2b982426 100644 --- a/tests/baselines/reference/parserRegularExpressionDivideAmbiguity2.errors.txt +++ b/tests/baselines/reference/parserRegularExpressionDivideAmbiguity2.errors.txt @@ -1,10 +1,11 @@ -tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpressionDivideAmbiguity2.ts(1,6): error TS2304: Cannot find name 'notregexp'. +tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpressionDivideAmbiguity2.ts(1,6): error TS2552: Cannot find name 'notregexp'. Did you mean 'RegExp'? tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpressionDivideAmbiguity2.ts(1,16): error TS2304: Cannot find name 'a'. ==== tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpressionDivideAmbiguity2.ts (2 errors) ==== (1) /notregexp/a.foo(); ~~~~~~~~~ -!!! error TS2304: Cannot find name 'notregexp'. +!!! error TS2552: Cannot find name 'notregexp'. Did you mean 'RegExp'? +!!! related TS2728 /.ts/lib.es5.d.ts:1045:13: 'RegExp' is declared here. ~ !!! error TS2304: Cannot find name 'a'. \ No newline at end of file diff --git a/tests/baselines/reference/parserS7.2_A1.5_T2.errors.txt b/tests/baselines/reference/parserS7.2_A1.5_T2.errors.txt index 862f176326e..d89e7dbdbf6 100644 --- a/tests/baselines/reference/parserS7.2_A1.5_T2.errors.txt +++ b/tests/baselines/reference/parserS7.2_A1.5_T2.errors.txt @@ -19,7 +19,7 @@ tests/cases/conformance/parser/ecmascript5/parserS7.2_A1.5_T2.ts(20,3): error TS $ERROR('#1: eval("\\u00A0var x\\u00A0= 1\\u00A0"); x === 1. Actual: ' + (x)); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } //CHECK#2 @@ -28,7 +28,7 @@ tests/cases/conformance/parser/ecmascript5/parserS7.2_A1.5_T2.ts(20,3): error TS $ERROR('#2:  var x = 1 ; x === 1. Actual: ' + (x)); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } diff --git a/tests/baselines/reference/parserS7.3_A1.1_T2.errors.txt b/tests/baselines/reference/parserS7.3_A1.1_T2.errors.txt index b90ae737bae..1b259eccc99 100644 --- a/tests/baselines/reference/parserS7.3_A1.1_T2.errors.txt +++ b/tests/baselines/reference/parserS7.3_A1.1_T2.errors.txt @@ -21,7 +21,7 @@ tests/cases/conformance/parser/ecmascript5/parserS7.3_A1.1_T2.ts(17,3): error TS $ERROR('#1: var\\nx\\n=\\n1\\n; x === 1. Actual: ' + (x)); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } \ No newline at end of file diff --git a/tests/baselines/reference/parserS7.6_A4.2_T1.errors.txt b/tests/baselines/reference/parserS7.6_A4.2_T1.errors.txt index b1992ccb2e7..3e7acb4d3f1 100644 --- a/tests/baselines/reference/parserS7.6_A4.2_T1.errors.txt +++ b/tests/baselines/reference/parserS7.6_A4.2_T1.errors.txt @@ -50,70 +50,70 @@ tests/cases/conformance/parser/ecmascript5/parserS7.6_A4.2_T1.ts(142,3): error T $ERROR('#А'); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } var \u0411 = 1; if (Б !== 1) { $ERROR('#Б'); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } var \u0412 = 1; if (В !== 1) { $ERROR('#В'); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } var \u0413 = 1; if (Г !== 1) { $ERROR('#Г'); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } var \u0414 = 1; if (Д !== 1) { $ERROR('#Д'); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } var \u0415 = 1; if (Е !== 1) { $ERROR('#Е'); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } var \u0416 = 1; if (Ж !== 1) { $ERROR('#Ж'); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } var \u0417 = 1; if (З !== 1) { $ERROR('#З'); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } var \u0418 = 1; if (И !== 1) { $ERROR('#И'); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } var \u0419 = 1; if (Й !== 1) { $ERROR('#Й'); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } var \u041A = 1; if (К !== 1) { diff --git a/tests/baselines/reference/parserSuperExpression2.symbols b/tests/baselines/reference/parserSuperExpression2.symbols index c382e54855f..47fff63acce 100644 --- a/tests/baselines/reference/parserSuperExpression2.symbols +++ b/tests/baselines/reference/parserSuperExpression2.symbols @@ -6,5 +6,6 @@ class C { >M : Symbol(C.M, Decl(parserSuperExpression2.ts, 0, 9)) super(0); +>T : Symbol(T) } } diff --git a/tests/baselines/reference/parserUnicode1.errors.txt b/tests/baselines/reference/parserUnicode1.errors.txt index f6a04ed1e32..d2f7148f6f2 100644 --- a/tests/baselines/reference/parserUnicode1.errors.txt +++ b/tests/baselines/reference/parserUnicode1.errors.txt @@ -11,13 +11,13 @@ tests/cases/conformance/parser/ecmascript5/parserUnicode1.ts(10,5): error TS2552 $ERROR('#6.1: var \\u0078x = 1; xx === 6. Actual: ' + (xx)); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } } catch (e) { $ERROR('#6.2: var \\u0078x = 1; xx === 6. Actual: ' + (xx)); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } \ No newline at end of file diff --git a/tests/baselines/reference/parserharness.symbols b/tests/baselines/reference/parserharness.symbols index 92953908f73..62604cadf5a 100644 --- a/tests/baselines/reference/parserharness.symbols +++ b/tests/baselines/reference/parserharness.symbols @@ -3809,6 +3809,7 @@ module Harness { >path.match : Symbol(String.match, Decl(lib.es5.d.ts, --, --)) >path : Symbol(path, Decl(parserharness.ts, 1285, 36)) >match : Symbol(String.match, Decl(lib.es5.d.ts, --, --)) +>0 : Symbol(RegExpMatchArray[0], Decl(lib.es5.d.ts, --, --)) var code = readFile(path); >code : Symbol(code, Decl(parserharness.ts, 1288, 15)) @@ -3946,6 +3947,7 @@ module Harness { >lastUnit : Symbol(lastUnit, Decl(parserharness.ts, 1326, 15)) >name : Symbol(TestCaseParser.TestUnitData.name, Decl(parserharness.ts, 1422, 28)) >match : Symbol(String.match, Decl(lib.es5.d.ts, --, --)) +>0 : Symbol(RegExpMatchArray[0], Decl(lib.es5.d.ts, --, --)) var dependencies = units.slice(0, units.length - 1); >dependencies : Symbol(dependencies, Decl(parserharness.ts, 1329, 15)) @@ -5698,6 +5700,7 @@ module Harness { >path.match : Symbol(String.match, Decl(lib.es5.d.ts, --, --)) >path : Symbol(path, Decl(parserharness.ts, 1869, 38)) >match : Symbol(String.match, Decl(lib.es5.d.ts, --, --)) +>0 : Symbol(RegExpMatchArray[0], Decl(lib.es5.d.ts, --, --)) >callback : Symbol(callback, Decl(parserharness.ts, 1869, 51)) } diff --git a/tests/baselines/reference/primitiveUnionDetection.js b/tests/baselines/reference/primitiveUnionDetection.js index 7d12cd85f92..d302bd4e4d8 100644 --- a/tests/baselines/reference/primitiveUnionDetection.js +++ b/tests/baselines/reference/primitiveUnionDetection.js @@ -15,7 +15,7 @@ var result = getInterfaceFromString({ type: 'two' }); //// [primitiveUnionDetection.d.ts] -declare type Kind = "one" | "two" | "three"; +type Kind = "one" | "two" | "three"; declare function getInterfaceFromString(options?: { type?: T; } & { diff --git a/tests/baselines/reference/privateNameFieldUnaryMutation.js b/tests/baselines/reference/privateNameFieldUnaryMutation.js index 8d16a10861b..2d7ece3c650 100644 --- a/tests/baselines/reference/privateNameFieldUnaryMutation.js +++ b/tests/baselines/reference/privateNameFieldUnaryMutation.js @@ -12,6 +12,17 @@ class C { const d = --this.#test; for (this.#test = 0; this.#test < 10; ++this.#test) {} for (this.#test = 0; this.#test < 10; this.#test++) {} + + (this.#test)++; + (this.#test)--; + ++(this.#test); + --(this.#test); + const e = (this.#test)++; + const f = (this.#test)--; + const g = ++(this.#test); + const h = --(this.#test); + for (this.#test = 0; this.#test < 10; ++(this.#test)) {} + for (this.#test = 0; this.#test < 10; (this.#test)++) {} } test() { this.getInstance().#test++; @@ -24,6 +35,17 @@ class C { const d = --this.getInstance().#test; for (this.getInstance().#test = 0; this.getInstance().#test < 10; ++this.getInstance().#test) {} for (this.getInstance().#test = 0; this.getInstance().#test < 10; this.getInstance().#test++) {} + + (this.getInstance().#test)++; + (this.getInstance().#test)--; + ++(this.getInstance().#test); + --(this.getInstance().#test); + const e = (this.getInstance().#test)++; + const f = (this.getInstance().#test)--; + const g = ++(this.getInstance().#test); + const h = --(this.getInstance().#test); + for (this.getInstance().#test = 0; this.getInstance().#test < 10; ++(this.getInstance().#test)) {} + for (this.getInstance().#test = 0; this.getInstance().#test < 10; (this.getInstance().#test)++) {} } getInstance() { return new C(); } } @@ -44,7 +66,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function ( var _C_test; class C { constructor() { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m; + var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z; _C_test.set(this, 24); __classPrivateFieldSet(this, _C_test, (_a = __classPrivateFieldGet(this, _C_test, "f"), _a++, _a), "f"); __classPrivateFieldSet(this, _C_test, (_b = __classPrivateFieldGet(this, _C_test, "f"), _b--, _b), "f"); @@ -56,9 +78,19 @@ class C { const d = __classPrivateFieldSet(this, _C_test, (_k = __classPrivateFieldGet(this, _C_test, "f"), --_k), "f"); for (__classPrivateFieldSet(this, _C_test, 0, "f"); __classPrivateFieldGet(this, _C_test, "f") < 10; __classPrivateFieldSet(this, _C_test, (_l = __classPrivateFieldGet(this, _C_test, "f"), ++_l), "f")) { } for (__classPrivateFieldSet(this, _C_test, 0, "f"); __classPrivateFieldGet(this, _C_test, "f") < 10; __classPrivateFieldSet(this, _C_test, (_m = __classPrivateFieldGet(this, _C_test, "f"), _m++, _m), "f")) { } + __classPrivateFieldSet(this, _C_test, (_o = __classPrivateFieldGet(this, _C_test, "f"), _o++, _o), "f"); + __classPrivateFieldSet(this, _C_test, (_p = __classPrivateFieldGet(this, _C_test, "f"), _p--, _p), "f"); + __classPrivateFieldSet(this, _C_test, (_q = __classPrivateFieldGet(this, _C_test, "f"), ++_q), "f"); + __classPrivateFieldSet(this, _C_test, (_r = __classPrivateFieldGet(this, _C_test, "f"), --_r), "f"); + const e = (__classPrivateFieldSet(this, _C_test, (_t = __classPrivateFieldGet(this, _C_test, "f"), _s = _t++, _t), "f"), _s); + const f = (__classPrivateFieldSet(this, _C_test, (_v = __classPrivateFieldGet(this, _C_test, "f"), _u = _v--, _v), "f"), _u); + const g = __classPrivateFieldSet(this, _C_test, (_w = __classPrivateFieldGet(this, _C_test, "f"), ++_w), "f"); + const h = __classPrivateFieldSet(this, _C_test, (_x = __classPrivateFieldGet(this, _C_test, "f"), --_x), "f"); + for (__classPrivateFieldSet(this, _C_test, 0, "f"); __classPrivateFieldGet(this, _C_test, "f") < 10; __classPrivateFieldSet(this, _C_test, (_y = __classPrivateFieldGet(this, _C_test, "f"), ++_y), "f")) { } + for (__classPrivateFieldSet(this, _C_test, 0, "f"); __classPrivateFieldGet(this, _C_test, "f") < 10; __classPrivateFieldSet(this, _C_test, (_z = __classPrivateFieldGet(this, _C_test, "f"), _z++, _z), "f")) { } } test() { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x; + var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19; __classPrivateFieldSet(_a = this.getInstance(), _C_test, (_b = __classPrivateFieldGet(_a, _C_test, "f"), _b++, _b), "f"); __classPrivateFieldSet(_c = this.getInstance(), _C_test, (_d = __classPrivateFieldGet(_c, _C_test, "f"), _d--, _d), "f"); __classPrivateFieldSet(_e = this.getInstance(), _C_test, (_f = __classPrivateFieldGet(_e, _C_test, "f"), ++_f), "f"); @@ -69,6 +101,16 @@ class C { const d = __classPrivateFieldSet(_s = this.getInstance(), _C_test, (_t = __classPrivateFieldGet(_s, _C_test, "f"), --_t), "f"); for (__classPrivateFieldSet(this.getInstance(), _C_test, 0, "f"); __classPrivateFieldGet(this.getInstance(), _C_test, "f") < 10; __classPrivateFieldSet(_u = this.getInstance(), _C_test, (_v = __classPrivateFieldGet(_u, _C_test, "f"), ++_v), "f")) { } for (__classPrivateFieldSet(this.getInstance(), _C_test, 0, "f"); __classPrivateFieldGet(this.getInstance(), _C_test, "f") < 10; __classPrivateFieldSet(_w = this.getInstance(), _C_test, (_x = __classPrivateFieldGet(_w, _C_test, "f"), _x++, _x), "f")) { } + __classPrivateFieldSet(_y = this.getInstance(), _C_test, (_z = __classPrivateFieldGet(_y, _C_test, "f"), _z++, _z), "f"); + __classPrivateFieldSet(_0 = this.getInstance(), _C_test, (_1 = __classPrivateFieldGet(_0, _C_test, "f"), _1--, _1), "f"); + __classPrivateFieldSet(_2 = this.getInstance(), _C_test, (_3 = __classPrivateFieldGet(_2, _C_test, "f"), ++_3), "f"); + __classPrivateFieldSet(_4 = this.getInstance(), _C_test, (_5 = __classPrivateFieldGet(_4, _C_test, "f"), --_5), "f"); + const e = (__classPrivateFieldSet(_6 = this.getInstance(), _C_test, (_8 = __classPrivateFieldGet(_6, _C_test, "f"), _7 = _8++, _8), "f"), _7); + const f = (__classPrivateFieldSet(_9 = this.getInstance(), _C_test, (_11 = __classPrivateFieldGet(_9, _C_test, "f"), _10 = _11--, _11), "f"), _10); + const g = __classPrivateFieldSet(_12 = this.getInstance(), _C_test, (_13 = __classPrivateFieldGet(_12, _C_test, "f"), ++_13), "f"); + const h = __classPrivateFieldSet(_14 = this.getInstance(), _C_test, (_15 = __classPrivateFieldGet(_14, _C_test, "f"), --_15), "f"); + for (__classPrivateFieldSet(this.getInstance(), _C_test, 0, "f"); __classPrivateFieldGet(this.getInstance(), _C_test, "f") < 10; __classPrivateFieldSet(_16 = this.getInstance(), _C_test, (_17 = __classPrivateFieldGet(_16, _C_test, "f"), ++_17), "f")) { } + for (__classPrivateFieldSet(this.getInstance(), _C_test, 0, "f"); __classPrivateFieldGet(this.getInstance(), _C_test, "f") < 10; __classPrivateFieldSet(_18 = this.getInstance(), _C_test, (_19 = __classPrivateFieldGet(_18, _C_test, "f"), _19++, _19), "f")) { } } getInstance() { return new C(); } } diff --git a/tests/baselines/reference/privateNameFieldUnaryMutation.symbols b/tests/baselines/reference/privateNameFieldUnaryMutation.symbols index 8344e04c911..f1481f4c8f0 100644 --- a/tests/baselines/reference/privateNameFieldUnaryMutation.symbols +++ b/tests/baselines/reference/privateNameFieldUnaryMutation.symbols @@ -56,93 +56,225 @@ class C { >this.#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) >this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) >this.#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) + + (this.#test)++; +>this.#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) + + (this.#test)--; +>this.#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) + + ++(this.#test); +>this.#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) + + --(this.#test); +>this.#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) + + const e = (this.#test)++; +>e : Symbol(e, Decl(privateNameFieldUnaryMutation.ts, 18, 13)) +>this.#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) + + const f = (this.#test)--; +>f : Symbol(f, Decl(privateNameFieldUnaryMutation.ts, 19, 13)) +>this.#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) + + const g = ++(this.#test); +>g : Symbol(g, Decl(privateNameFieldUnaryMutation.ts, 20, 13)) +>this.#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) + + const h = --(this.#test); +>h : Symbol(h, Decl(privateNameFieldUnaryMutation.ts, 21, 13)) +>this.#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) + + for (this.#test = 0; this.#test < 10; ++(this.#test)) {} +>this.#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) +>this.#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) +>this.#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) + + for (this.#test = 0; this.#test < 10; (this.#test)++) {} +>this.#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) +>this.#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) +>this.#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) >this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) } test() { ->test : Symbol(C.test, Decl(privateNameFieldUnaryMutation.ts, 13, 5)) +>test : Symbol(C.test, Decl(privateNameFieldUnaryMutation.ts, 24, 5)) this.getInstance().#test++; >this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) ->this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) >this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) ->getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) this.getInstance().#test--; >this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) ->this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) >this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) ->getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) ++this.getInstance().#test; >this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) ->this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) >this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) ->getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) --this.getInstance().#test; >this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) ->this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) >this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) ->getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) const a = this.getInstance().#test++; ->a : Symbol(a, Decl(privateNameFieldUnaryMutation.ts, 19, 13)) +>a : Symbol(a, Decl(privateNameFieldUnaryMutation.ts, 30, 13)) >this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) ->this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) >this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) ->getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) const b = this.getInstance().#test--; ->b : Symbol(b, Decl(privateNameFieldUnaryMutation.ts, 20, 13)) +>b : Symbol(b, Decl(privateNameFieldUnaryMutation.ts, 31, 13)) >this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) ->this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) >this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) ->getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) const c = ++this.getInstance().#test; ->c : Symbol(c, Decl(privateNameFieldUnaryMutation.ts, 21, 13)) +>c : Symbol(c, Decl(privateNameFieldUnaryMutation.ts, 32, 13)) >this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) ->this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) >this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) ->getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) const d = --this.getInstance().#test; ->d : Symbol(d, Decl(privateNameFieldUnaryMutation.ts, 22, 13)) +>d : Symbol(d, Decl(privateNameFieldUnaryMutation.ts, 33, 13)) >this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) ->this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) >this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) ->getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) for (this.getInstance().#test = 0; this.getInstance().#test < 10; ++this.getInstance().#test) {} >this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) ->this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) >this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) ->getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) >this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) ->this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) >this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) ->getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) >this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) ->this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) >this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) ->getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) for (this.getInstance().#test = 0; this.getInstance().#test < 10; this.getInstance().#test++) {} >this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) ->this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) >this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) ->getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) >this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) ->this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) >this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) ->getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) >this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) ->this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) >this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) ->getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) + + (this.getInstance().#test)++; +>this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) + + (this.getInstance().#test)--; +>this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) + + ++(this.getInstance().#test); +>this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) + + --(this.getInstance().#test); +>this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) + + const e = (this.getInstance().#test)++; +>e : Symbol(e, Decl(privateNameFieldUnaryMutation.ts, 41, 13)) +>this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) + + const f = (this.getInstance().#test)--; +>f : Symbol(f, Decl(privateNameFieldUnaryMutation.ts, 42, 13)) +>this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) + + const g = ++(this.getInstance().#test); +>g : Symbol(g, Decl(privateNameFieldUnaryMutation.ts, 43, 13)) +>this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) + + const h = --(this.getInstance().#test); +>h : Symbol(h, Decl(privateNameFieldUnaryMutation.ts, 44, 13)) +>this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) + + for (this.getInstance().#test = 0; this.getInstance().#test < 10; ++(this.getInstance().#test)) {} +>this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) +>this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) +>this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) + + for (this.getInstance().#test = 0; this.getInstance().#test < 10; (this.getInstance().#test)++) {} +>this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) +>this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) +>this.getInstance().#test : Symbol(C.#test, Decl(privateNameFieldUnaryMutation.ts, 0, 9)) +>this.getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) +>this : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) } getInstance() { return new C(); } ->getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 25, 5)) +>getInstance : Symbol(C.getInstance, Decl(privateNameFieldUnaryMutation.ts, 47, 5)) >C : Symbol(C, Decl(privateNameFieldUnaryMutation.ts, 0, 0)) } diff --git a/tests/baselines/reference/privateNameFieldUnaryMutation.types b/tests/baselines/reference/privateNameFieldUnaryMutation.types index 4fc0d7805d9..c0487a1c01d 100644 --- a/tests/baselines/reference/privateNameFieldUnaryMutation.types +++ b/tests/baselines/reference/privateNameFieldUnaryMutation.types @@ -75,6 +75,86 @@ class C { >10 : 10 >this.#test++ : number >this.#test : number +>this : this + + (this.#test)++; +>(this.#test)++ : number +>(this.#test) : number +>this.#test : number +>this : this + + (this.#test)--; +>(this.#test)-- : number +>(this.#test) : number +>this.#test : number +>this : this + + ++(this.#test); +>++(this.#test) : number +>(this.#test) : number +>this.#test : number +>this : this + + --(this.#test); +>--(this.#test) : number +>(this.#test) : number +>this.#test : number +>this : this + + const e = (this.#test)++; +>e : number +>(this.#test)++ : number +>(this.#test) : number +>this.#test : number +>this : this + + const f = (this.#test)--; +>f : number +>(this.#test)-- : number +>(this.#test) : number +>this.#test : number +>this : this + + const g = ++(this.#test); +>g : number +>++(this.#test) : number +>(this.#test) : number +>this.#test : number +>this : this + + const h = --(this.#test); +>h : number +>--(this.#test) : number +>(this.#test) : number +>this.#test : number +>this : this + + for (this.#test = 0; this.#test < 10; ++(this.#test)) {} +>this.#test = 0 : 0 +>this.#test : number +>this : this +>0 : 0 +>this.#test < 10 : boolean +>this.#test : number +>this : this +>10 : 10 +>++(this.#test) : number +>(this.#test) : number +>this.#test : number +>this : this + + for (this.#test = 0; this.#test < 10; (this.#test)++) {} +>this.#test = 0 : 0 +>this.#test : number +>this : this +>0 : 0 +>this.#test < 10 : boolean +>this.#test : number +>this : this +>10 : 10 +>(this.#test)++ : number +>(this.#test) : number +>this.#test : number >this : this } test() { @@ -190,6 +270,128 @@ class C { >this.getInstance() : C >this.getInstance : () => C >this : this +>getInstance : () => C + + (this.getInstance().#test)++; +>(this.getInstance().#test)++ : number +>(this.getInstance().#test) : number +>this.getInstance().#test : number +>this.getInstance() : C +>this.getInstance : () => C +>this : this +>getInstance : () => C + + (this.getInstance().#test)--; +>(this.getInstance().#test)-- : number +>(this.getInstance().#test) : number +>this.getInstance().#test : number +>this.getInstance() : C +>this.getInstance : () => C +>this : this +>getInstance : () => C + + ++(this.getInstance().#test); +>++(this.getInstance().#test) : number +>(this.getInstance().#test) : number +>this.getInstance().#test : number +>this.getInstance() : C +>this.getInstance : () => C +>this : this +>getInstance : () => C + + --(this.getInstance().#test); +>--(this.getInstance().#test) : number +>(this.getInstance().#test) : number +>this.getInstance().#test : number +>this.getInstance() : C +>this.getInstance : () => C +>this : this +>getInstance : () => C + + const e = (this.getInstance().#test)++; +>e : number +>(this.getInstance().#test)++ : number +>(this.getInstance().#test) : number +>this.getInstance().#test : number +>this.getInstance() : C +>this.getInstance : () => C +>this : this +>getInstance : () => C + + const f = (this.getInstance().#test)--; +>f : number +>(this.getInstance().#test)-- : number +>(this.getInstance().#test) : number +>this.getInstance().#test : number +>this.getInstance() : C +>this.getInstance : () => C +>this : this +>getInstance : () => C + + const g = ++(this.getInstance().#test); +>g : number +>++(this.getInstance().#test) : number +>(this.getInstance().#test) : number +>this.getInstance().#test : number +>this.getInstance() : C +>this.getInstance : () => C +>this : this +>getInstance : () => C + + const h = --(this.getInstance().#test); +>h : number +>--(this.getInstance().#test) : number +>(this.getInstance().#test) : number +>this.getInstance().#test : number +>this.getInstance() : C +>this.getInstance : () => C +>this : this +>getInstance : () => C + + for (this.getInstance().#test = 0; this.getInstance().#test < 10; ++(this.getInstance().#test)) {} +>this.getInstance().#test = 0 : 0 +>this.getInstance().#test : number +>this.getInstance() : C +>this.getInstance : () => C +>this : this +>getInstance : () => C +>0 : 0 +>this.getInstance().#test < 10 : boolean +>this.getInstance().#test : number +>this.getInstance() : C +>this.getInstance : () => C +>this : this +>getInstance : () => C +>10 : 10 +>++(this.getInstance().#test) : number +>(this.getInstance().#test) : number +>this.getInstance().#test : number +>this.getInstance() : C +>this.getInstance : () => C +>this : this +>getInstance : () => C + + for (this.getInstance().#test = 0; this.getInstance().#test < 10; (this.getInstance().#test)++) {} +>this.getInstance().#test = 0 : 0 +>this.getInstance().#test : number +>this.getInstance() : C +>this.getInstance : () => C +>this : this +>getInstance : () => C +>0 : 0 +>this.getInstance().#test < 10 : boolean +>this.getInstance().#test : number +>this.getInstance() : C +>this.getInstance : () => C +>this : this +>getInstance : () => C +>10 : 10 +>(this.getInstance().#test)++ : number +>(this.getInstance().#test) : number +>this.getInstance().#test : number +>this.getInstance() : C +>this.getInstance : () => C +>this : this >getInstance : () => C } getInstance() { return new C(); } diff --git a/tests/baselines/reference/privateNameMethodAsync.symbols b/tests/baselines/reference/privateNameMethodAsync.symbols index f3c70cb19ed..6503c07c589 100644 --- a/tests/baselines/reference/privateNameMethodAsync.symbols +++ b/tests/baselines/reference/privateNameMethodAsync.symbols @@ -4,9 +4,9 @@ const C = class { async #bar() { return await Promise.resolve(42); } >#bar : Symbol(C.#bar, Decl(privateNameMethodAsync.ts, 0, 17)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) async foo() { >foo : Symbol(C.foo, Decl(privateNameMethodAsync.ts, 1, 54)) @@ -38,9 +38,9 @@ const C = class { >#qux : Symbol(C.#qux, Decl(privateNameMethodAsync.ts, 6, 25)) yield (await Promise.resolve(42)); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) } } diff --git a/tests/baselines/reference/privateNameMethodAsync.types b/tests/baselines/reference/privateNameMethodAsync.types index 3ac547af040..cab18ac600e 100644 --- a/tests/baselines/reference/privateNameMethodAsync.types +++ b/tests/baselines/reference/privateNameMethodAsync.types @@ -7,9 +7,9 @@ const C = class { >#bar : () => Promise >await Promise.resolve(42) : number >Promise.resolve(42) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >42 : 42 async foo() { @@ -64,9 +64,9 @@ const C = class { >(await Promise.resolve(42)) : number >await Promise.resolve(42) : number >Promise.resolve(42) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >42 : 42 } } diff --git a/tests/baselines/reference/privateNameStaticMethodAsync.symbols b/tests/baselines/reference/privateNameStaticMethodAsync.symbols index 0e13961283a..238e2f1ede4 100644 --- a/tests/baselines/reference/privateNameStaticMethodAsync.symbols +++ b/tests/baselines/reference/privateNameStaticMethodAsync.symbols @@ -4,9 +4,9 @@ const C = class { static async #bar() { return await Promise.resolve(42); } >#bar : Symbol(C.#bar, Decl(privateNameStaticMethodAsync.ts, 0, 17)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) static async foo() { >foo : Symbol(C.foo, Decl(privateNameStaticMethodAsync.ts, 1, 61)) @@ -38,9 +38,9 @@ const C = class { >#qux : Symbol(C.#qux, Decl(privateNameStaticMethodAsync.ts, 6, 32)) yield (await Promise.resolve(42)); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) } async static *#bazBad() { yield 42; } >#bazBad : Symbol(C.#bazBad, Decl(privateNameStaticMethodAsync.ts, 9, 5)) diff --git a/tests/baselines/reference/privateNameStaticMethodAsync.types b/tests/baselines/reference/privateNameStaticMethodAsync.types index 6da52fd602f..b9250cdd046 100644 --- a/tests/baselines/reference/privateNameStaticMethodAsync.types +++ b/tests/baselines/reference/privateNameStaticMethodAsync.types @@ -7,9 +7,9 @@ const C = class { >#bar : () => Promise >await Promise.resolve(42) : number >Promise.resolve(42) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >42 : 42 static async foo() { @@ -64,9 +64,9 @@ const C = class { >(await Promise.resolve(42)) : number >await Promise.resolve(42) : number >Promise.resolve(42) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >42 : 42 } async static *#bazBad() { yield 42; } diff --git a/tests/baselines/reference/promisePermutations.errors.txt b/tests/baselines/reference/promisePermutations.errors.txt index eb6adf95308..c9862aec4ec 100644 --- a/tests/baselines/reference/promisePermutations.errors.txt +++ b/tests/baselines/reference/promisePermutations.errors.txt @@ -447,7 +447,7 @@ tests/cases/compiler/promisePermutations.ts(160,21): error TS2769: No overload m !!! error TS2769: The last overload gave the following error. !!! error TS2769: Argument of type '(x: any) => IPromise' is not assignable to parameter of type '(error: any) => Promise'. !!! error TS2769: Property 'catch' is missing in type 'IPromise' but required in type 'Promise'. -!!! related TS2728 /.ts/lib.es5.d.ts:1527:5: 'catch' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1535:5: 'catch' is declared here. !!! related TS2771 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here. var s10g = s10.then(testFunctionP, nIPromise, sIPromise).then(sPromise, sIPromise, sIPromise); // ok diff --git a/tests/baselines/reference/promisePermutations2.errors.txt b/tests/baselines/reference/promisePermutations2.errors.txt index b2f45aaec25..17ac4d4aa3c 100644 --- a/tests/baselines/reference/promisePermutations2.errors.txt +++ b/tests/baselines/reference/promisePermutations2.errors.txt @@ -351,7 +351,7 @@ tests/cases/compiler/promisePermutations2.ts(159,21): error TS2345: Argument of ~~~~~~~~~ !!! error TS2345: Argument of type '(x: any) => IPromise' is not assignable to parameter of type '(error: any) => Promise'. !!! error TS2345: Property 'catch' is missing in type 'IPromise' but required in type 'Promise'. -!!! related TS2728 /.ts/lib.es5.d.ts:1527:5: 'catch' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1535:5: 'catch' is declared here. var s10g = s10.then(testFunctionP, nIPromise, sIPromise).then(sPromise, sIPromise, sIPromise); // ok var r11: IPromise; diff --git a/tests/baselines/reference/promisePermutations3.errors.txt b/tests/baselines/reference/promisePermutations3.errors.txt index 2a871d46ef8..835c3fcb71b 100644 --- a/tests/baselines/reference/promisePermutations3.errors.txt +++ b/tests/baselines/reference/promisePermutations3.errors.txt @@ -398,7 +398,7 @@ tests/cases/compiler/promisePermutations3.ts(165,21): error TS2345: Argument of !!! error TS2769: The last overload gave the following error. !!! error TS2769: Argument of type '(x: any) => IPromise' is not assignable to parameter of type '(error: any) => Promise'. !!! error TS2769: Property 'catch' is missing in type 'IPromise' but required in type 'Promise'. -!!! related TS2728 /.ts/lib.es5.d.ts:1527:5: 'catch' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1535:5: 'catch' is declared here. !!! related TS2771 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here. var s10g = s10.then(testFunctionP, nIPromise, sIPromise).then(sPromise, sIPromise, sIPromise); // ok @@ -445,5 +445,5 @@ tests/cases/compiler/promisePermutations3.ts(165,21): error TS2345: Argument of ~~~~~~~~~~~~~~~ !!! error TS2345: Argument of type '{ (x: T): IPromise; (x: T, y: T): Promise; }' is not assignable to parameter of type '(value: (x: any) => any) => Promise'. !!! error TS2345: Property 'catch' is missing in type 'IPromise' but required in type 'Promise'. -!!! related TS2728 /.ts/lib.es5.d.ts:1527:5: 'catch' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1535:5: 'catch' is declared here. var s12c = s12.then(testFunction12P, testFunction12, testFunction12); // ok \ No newline at end of file diff --git a/tests/baselines/reference/promiseType.js b/tests/baselines/reference/promiseType.js index 84d9d713b48..457e5e93d73 100644 --- a/tests/baselines/reference/promiseType.js +++ b/tests/baselines/reference/promiseType.js @@ -217,7 +217,12 @@ const pc6 = p.then(() => Promise.reject("1"), () => {}); const pc7 = p.then(() => Promise.reject("1"), () => {throw 1}); const pc8 = p.then(() => Promise.reject("1"), () => Promise.resolve(1)); const pc9 = p.then(() => Promise.reject("1"), () => Promise.reject(1)); - + +Promise.resolve(undefined as Promise | number); +Promise.resolve(undefined as Promise>); +Promise.resolve(undefined as string | Promise>); +Promise.resolve(undefined as Promise | Promise>); +Promise.resolve(undefined as Promise>>); //// [promiseType.js] var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { @@ -440,3 +445,8 @@ const pc6 = p.then(() => Promise.reject("1"), () => { }); const pc7 = p.then(() => Promise.reject("1"), () => { throw 1; }); const pc8 = p.then(() => Promise.reject("1"), () => Promise.resolve(1)); const pc9 = p.then(() => Promise.reject("1"), () => Promise.reject(1)); +Promise.resolve(undefined); +Promise.resolve(undefined); +Promise.resolve(undefined); +Promise.resolve(undefined); +Promise.resolve(undefined); diff --git a/tests/baselines/reference/promiseType.symbols b/tests/baselines/reference/promiseType.symbols index cec81cd7d82..e1ff0a75aa0 100644 --- a/tests/baselines/reference/promiseType.symbols +++ b/tests/baselines/reference/promiseType.symbols @@ -236,9 +236,9 @@ const p19 = p.catch(() => Promise.resolve(1)); >p.catch : Symbol(Promise.catch, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseType.ts, 0, 11)) >catch : Symbol(Promise.catch, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const p20 = p.then(undefined); >p20 : Symbol(p20, Decl(promiseType.ts, 98, 5)) @@ -296,9 +296,9 @@ const p28 = p.then(() => Promise.resolve(1)); >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseType.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const p29 = p.then(() => Promise.reject(1)); >p29 : Symbol(p29, Decl(promiseType.ts, 107, 5)) @@ -374,9 +374,9 @@ const p38 = p.then(undefined, () => Promise.resolve(1)); >p : Symbol(p, Decl(promiseType.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >undefined : Symbol(undefined) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const p39 = p.then(undefined, () => Promise.reject(1)); >p39 : Symbol(p39, Decl(promiseType.ts, 118, 5)) @@ -444,9 +444,9 @@ const p48 = p.then(null, () => Promise.resolve(1)); >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseType.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const p49 = p.then(null, () => Promise.reject(1)); >p49 : Symbol(p49, Decl(promiseType.ts, 129, 5)) @@ -513,9 +513,9 @@ const p58 = p.then(() => "1", () => Promise.resolve(1)); >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseType.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const p59 = p.then(() => "1", () => Promise.reject(1)); >p59 : Symbol(p59, Decl(promiseType.ts, 140, 5)) @@ -591,9 +591,9 @@ const p68 = p.then(() => x, () => Promise.resolve(1)); >p : Symbol(p, Decl(promiseType.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >x : Symbol(x, Decl(promiseType.ts, 1, 11)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const p69 = p.then(() => x, () => Promise.reject(1)); >p69 : Symbol(p69, Decl(promiseType.ts, 151, 5)) @@ -670,9 +670,9 @@ const p78 = p.then(() => undefined, () => Promise.resolve(1)); >p : Symbol(p, Decl(promiseType.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >undefined : Symbol(undefined) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const p79 = p.then(() => undefined, () => Promise.reject(1)); >p79 : Symbol(p79, Decl(promiseType.ts, 162, 5)) @@ -740,9 +740,9 @@ const p88 = p.then(() => null, () => Promise.resolve(1)); >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseType.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const p89 = p.then(() => null, () => Promise.reject(1)); >p89 : Symbol(p89, Decl(promiseType.ts, 173, 5)) @@ -809,9 +809,9 @@ const p98 = p.then(() => {}, () => Promise.resolve(1)); >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseType.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const p99 = p.then(() => {}, () => Promise.reject(1)); >p99 : Symbol(p99, Decl(promiseType.ts, 184, 5)) @@ -878,9 +878,9 @@ const pa8 = p.then(() => {throw 1}, () => Promise.resolve(1)); >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseType.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const pa9 = p.then(() => {throw 1}, () => Promise.reject(1)); >pa9 : Symbol(pa9, Decl(promiseType.ts, 195, 5)) @@ -896,9 +896,9 @@ const pb0 = p.then(() => Promise.resolve("1"), undefined); >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseType.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >undefined : Symbol(undefined) const pb1 = p.then(() => Promise.resolve("1"), null); @@ -906,27 +906,27 @@ const pb1 = p.then(() => Promise.resolve("1"), null); >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseType.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const pb2 = p.then(() => Promise.resolve("1"), () => 1); >pb2 : Symbol(pb2, Decl(promiseType.ts, 199, 5)) >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseType.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const pb3 = p.then(() => Promise.resolve("1"), () => x); >pb3 : Symbol(pb3, Decl(promiseType.ts, 200, 5)) >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseType.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >x : Symbol(x, Decl(promiseType.ts, 1, 11)) const pb4 = p.then(() => Promise.resolve("1"), () => undefined); @@ -934,9 +934,9 @@ const pb4 = p.then(() => Promise.resolve("1"), () => undefined); >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseType.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >undefined : Symbol(undefined) const pb5 = p.then(() => Promise.resolve("1"), () => null); @@ -944,48 +944,48 @@ const pb5 = p.then(() => Promise.resolve("1"), () => null); >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseType.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const pb6 = p.then(() => Promise.resolve("1"), () => {}); >pb6 : Symbol(pb6, Decl(promiseType.ts, 203, 5)) >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseType.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const pb7 = p.then(() => Promise.resolve("1"), () => {throw 1}); >pb7 : Symbol(pb7, Decl(promiseType.ts, 204, 5)) >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseType.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const pb8 = p.then(() => Promise.resolve("1"), () => Promise.resolve(1)); >pb8 : Symbol(pb8, Decl(promiseType.ts, 205, 5)) >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseType.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const pb9 = p.then(() => Promise.resolve("1"), () => Promise.reject(1)); >pb9 : Symbol(pb9, Decl(promiseType.ts, 206, 5)) >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseType.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise.reject : Symbol(PromiseConstructor.reject, Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) >reject : Symbol(PromiseConstructor.reject, Decl(lib.es2015.promise.d.ts, --, --)) @@ -1073,9 +1073,9 @@ const pc8 = p.then(() => Promise.reject("1"), () => Promise.resolve(1)); >Promise.reject : Symbol(PromiseConstructor.reject, Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) >reject : Symbol(PromiseConstructor.reject, Decl(lib.es2015.promise.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const pc9 = p.then(() => Promise.reject("1"), () => Promise.reject(1)); >pc9 : Symbol(pc9, Decl(promiseType.ts, 217, 5)) @@ -1089,3 +1089,44 @@ const pc9 = p.then(() => Promise.reject("1"), () => Promise.reject(1)); >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) >reject : Symbol(PromiseConstructor.reject, Decl(lib.es2015.promise.d.ts, --, --)) +Promise.resolve(undefined as Promise | number); +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>undefined : Symbol(undefined) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +Promise.resolve(undefined as Promise>); +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>undefined : Symbol(undefined) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +Promise.resolve(undefined as string | Promise>); +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>undefined : Symbol(undefined) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +Promise.resolve(undefined as Promise | Promise>); +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>undefined : Symbol(undefined) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +Promise.resolve(undefined as Promise>>); +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>undefined : Symbol(undefined) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + diff --git a/tests/baselines/reference/promiseType.types b/tests/baselines/reference/promiseType.types index c459a02d36b..eee55b46129 100644 --- a/tests/baselines/reference/promiseType.types +++ b/tests/baselines/reference/promiseType.types @@ -283,9 +283,9 @@ const p19 = p.catch(() => Promise.resolve(1)); >catch : (onrejected?: (reason: any) => TResult | PromiseLike) => Promise >() => Promise.resolve(1) : () => Promise >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 const p20 = p.then(undefined); @@ -365,9 +365,9 @@ const p28 = p.then(() => Promise.resolve(1)); >then : (onfulfilled?: (value: boolean) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise >() => Promise.resolve(1) : () => Promise >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 const p29 = p.then(() => Promise.reject(1)); @@ -469,9 +469,9 @@ const p38 = p.then(undefined, () => Promise.resolve(1)); >undefined : undefined >() => Promise.resolve(1) : () => Promise >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 const p39 = p.then(undefined, () => Promise.reject(1)); @@ -574,9 +574,9 @@ const p48 = p.then(null, () => Promise.resolve(1)); >null : null >() => Promise.resolve(1) : () => Promise >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 const p49 = p.then(null, () => Promise.reject(1)); @@ -688,9 +688,9 @@ const p58 = p.then(() => "1", () => Promise.resolve(1)); >"1" : "1" >() => Promise.resolve(1) : () => Promise >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 const p59 = p.then(() => "1", () => Promise.reject(1)); @@ -803,9 +803,9 @@ const p68 = p.then(() => x, () => Promise.resolve(1)); >x : any >() => Promise.resolve(1) : () => Promise >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 const p69 = p.then(() => x, () => Promise.reject(1)); @@ -918,9 +918,9 @@ const p78 = p.then(() => undefined, () => Promise.resolve(1)); >undefined : undefined >() => Promise.resolve(1) : () => Promise >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 const p79 = p.then(() => undefined, () => Promise.reject(1)); @@ -1033,9 +1033,9 @@ const p88 = p.then(() => null, () => Promise.resolve(1)); >null : null >() => Promise.resolve(1) : () => Promise >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 const p89 = p.then(() => null, () => Promise.reject(1)); @@ -1139,9 +1139,9 @@ const p98 = p.then(() => {}, () => Promise.resolve(1)); >() => {} : () => void >() => Promise.resolve(1) : () => Promise >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 const p99 = p.then(() => {}, () => Promise.reject(1)); @@ -1253,9 +1253,9 @@ const pa8 = p.then(() => {throw 1}, () => Promise.resolve(1)); >1 : 1 >() => Promise.resolve(1) : () => Promise >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 const pa9 = p.then(() => {throw 1}, () => Promise.reject(1)); @@ -1281,9 +1281,9 @@ const pb0 = p.then(() => Promise.resolve("1"), undefined); >then : (onfulfilled?: (value: boolean) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise >() => Promise.resolve("1") : () => Promise >Promise.resolve("1") : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >"1" : "1" >undefined : undefined @@ -1295,9 +1295,9 @@ const pb1 = p.then(() => Promise.resolve("1"), null); >then : (onfulfilled?: (value: boolean) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise >() => Promise.resolve("1") : () => Promise >Promise.resolve("1") : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >"1" : "1" >null : null @@ -1309,9 +1309,9 @@ const pb2 = p.then(() => Promise.resolve("1"), () => 1); >then : (onfulfilled?: (value: boolean) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise >() => Promise.resolve("1") : () => Promise >Promise.resolve("1") : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >"1" : "1" >() => 1 : () => number >1 : 1 @@ -1324,9 +1324,9 @@ const pb3 = p.then(() => Promise.resolve("1"), () => x); >then : (onfulfilled?: (value: boolean) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise >() => Promise.resolve("1") : () => Promise >Promise.resolve("1") : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >"1" : "1" >() => x : () => any >x : any @@ -1339,9 +1339,9 @@ const pb4 = p.then(() => Promise.resolve("1"), () => undefined); >then : (onfulfilled?: (value: boolean) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise >() => Promise.resolve("1") : () => Promise >Promise.resolve("1") : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >"1" : "1" >() => undefined : () => any >undefined : undefined @@ -1354,9 +1354,9 @@ const pb5 = p.then(() => Promise.resolve("1"), () => null); >then : (onfulfilled?: (value: boolean) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise >() => Promise.resolve("1") : () => Promise >Promise.resolve("1") : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >"1" : "1" >() => null : () => any >null : null @@ -1369,9 +1369,9 @@ const pb6 = p.then(() => Promise.resolve("1"), () => {}); >then : (onfulfilled?: (value: boolean) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise >() => Promise.resolve("1") : () => Promise >Promise.resolve("1") : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >"1" : "1" >() => {} : () => void @@ -1383,9 +1383,9 @@ const pb7 = p.then(() => Promise.resolve("1"), () => {throw 1}); >then : (onfulfilled?: (value: boolean) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise >() => Promise.resolve("1") : () => Promise >Promise.resolve("1") : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >"1" : "1" >() => {throw 1} : () => never >1 : 1 @@ -1398,15 +1398,15 @@ const pb8 = p.then(() => Promise.resolve("1"), () => Promise.resolve(1)); >then : (onfulfilled?: (value: boolean) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise >() => Promise.resolve("1") : () => Promise >Promise.resolve("1") : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >"1" : "1" >() => Promise.resolve(1) : () => Promise >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 const pb9 = p.then(() => Promise.resolve("1"), () => Promise.reject(1)); @@ -1417,9 +1417,9 @@ const pb9 = p.then(() => Promise.resolve("1"), () => Promise.reject(1)); >then : (onfulfilled?: (value: boolean) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise >() => Promise.resolve("1") : () => Promise >Promise.resolve("1") : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >"1" : "1" >() => Promise.reject(1) : () => Promise >Promise.reject(1) : Promise @@ -1559,9 +1559,9 @@ const pc8 = p.then(() => Promise.reject("1"), () => Promise.resolve(1)); >"1" : "1" >() => Promise.resolve(1) : () => Promise >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 const pc9 = p.then(() => Promise.reject("1"), () => Promise.reject(1)); @@ -1583,3 +1583,43 @@ const pc9 = p.then(() => Promise.reject("1"), () => Promise.reject(1)); >reject : (reason?: any) => Promise >1 : 1 +Promise.resolve(undefined as Promise | number); +>Promise.resolve(undefined as Promise | number) : Promise +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +>Promise : PromiseConstructor +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +>undefined as Promise | number : number | Promise +>undefined : undefined + +Promise.resolve(undefined as Promise>); +>Promise.resolve(undefined as Promise>) : Promise +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +>Promise : PromiseConstructor +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +>undefined as Promise> : Promise> +>undefined : undefined + +Promise.resolve(undefined as string | Promise>); +>Promise.resolve(undefined as string | Promise>) : Promise +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +>Promise : PromiseConstructor +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +>undefined as string | Promise> : string | Promise> +>undefined : undefined + +Promise.resolve(undefined as Promise | Promise>); +>Promise.resolve(undefined as Promise | Promise>) : Promise +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +>Promise : PromiseConstructor +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +>undefined as Promise | Promise> : Promise | Promise> +>undefined : undefined + +Promise.resolve(undefined as Promise>>); +>Promise.resolve(undefined as Promise>>) : Promise +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +>Promise : PromiseConstructor +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +>undefined as Promise>> : Promise>> +>undefined : undefined + diff --git a/tests/baselines/reference/promiseTypeStrictNull.symbols b/tests/baselines/reference/promiseTypeStrictNull.symbols index 4f95974eab5..a81e0a408b2 100644 --- a/tests/baselines/reference/promiseTypeStrictNull.symbols +++ b/tests/baselines/reference/promiseTypeStrictNull.symbols @@ -236,9 +236,9 @@ const p19 = p.catch(() => Promise.resolve(1)); >p.catch : Symbol(Promise.catch, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseTypeStrictNull.ts, 0, 11)) >catch : Symbol(Promise.catch, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const p20 = p.then(undefined); >p20 : Symbol(p20, Decl(promiseTypeStrictNull.ts, 98, 5)) @@ -296,9 +296,9 @@ const p28 = p.then(() => Promise.resolve(1)); >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseTypeStrictNull.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const p29 = p.then(() => Promise.reject(1)); >p29 : Symbol(p29, Decl(promiseTypeStrictNull.ts, 107, 5)) @@ -374,9 +374,9 @@ const p38 = p.then(undefined, () => Promise.resolve(1)); >p : Symbol(p, Decl(promiseTypeStrictNull.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >undefined : Symbol(undefined) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const p39 = p.then(undefined, () => Promise.reject(1)); >p39 : Symbol(p39, Decl(promiseTypeStrictNull.ts, 118, 5)) @@ -444,9 +444,9 @@ const p48 = p.then(null, () => Promise.resolve(1)); >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseTypeStrictNull.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const p49 = p.then(null, () => Promise.reject(1)); >p49 : Symbol(p49, Decl(promiseTypeStrictNull.ts, 129, 5)) @@ -513,9 +513,9 @@ const p58 = p.then(() => "1", () => Promise.resolve(1)); >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseTypeStrictNull.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const p59 = p.then(() => "1", () => Promise.reject(1)); >p59 : Symbol(p59, Decl(promiseTypeStrictNull.ts, 140, 5)) @@ -591,9 +591,9 @@ const p68 = p.then(() => x, () => Promise.resolve(1)); >p : Symbol(p, Decl(promiseTypeStrictNull.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >x : Symbol(x, Decl(promiseTypeStrictNull.ts, 1, 11)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const p69 = p.then(() => x, () => Promise.reject(1)); >p69 : Symbol(p69, Decl(promiseTypeStrictNull.ts, 151, 5)) @@ -670,9 +670,9 @@ const p78 = p.then(() => undefined, () => Promise.resolve(1)); >p : Symbol(p, Decl(promiseTypeStrictNull.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >undefined : Symbol(undefined) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const p79 = p.then(() => undefined, () => Promise.reject(1)); >p79 : Symbol(p79, Decl(promiseTypeStrictNull.ts, 162, 5)) @@ -740,9 +740,9 @@ const p88 = p.then(() => null, () => Promise.resolve(1)); >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseTypeStrictNull.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const p89 = p.then(() => null, () => Promise.reject(1)); >p89 : Symbol(p89, Decl(promiseTypeStrictNull.ts, 173, 5)) @@ -809,9 +809,9 @@ const p98 = p.then(() => {}, () => Promise.resolve(1)); >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseTypeStrictNull.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const p99 = p.then(() => {}, () => Promise.reject(1)); >p99 : Symbol(p99, Decl(promiseTypeStrictNull.ts, 184, 5)) @@ -878,9 +878,9 @@ const pa8 = p.then(() => {throw 1}, () => Promise.resolve(1)); >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseTypeStrictNull.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const pa9 = p.then(() => {throw 1}, () => Promise.reject(1)); >pa9 : Symbol(pa9, Decl(promiseTypeStrictNull.ts, 195, 5)) @@ -896,9 +896,9 @@ const pb0 = p.then(() => Promise.resolve("1"), undefined); >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseTypeStrictNull.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >undefined : Symbol(undefined) const pb1 = p.then(() => Promise.resolve("1"), null); @@ -906,27 +906,27 @@ const pb1 = p.then(() => Promise.resolve("1"), null); >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseTypeStrictNull.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const pb2 = p.then(() => Promise.resolve("1"), () => 1); >pb2 : Symbol(pb2, Decl(promiseTypeStrictNull.ts, 199, 5)) >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseTypeStrictNull.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const pb3 = p.then(() => Promise.resolve("1"), () => x); >pb3 : Symbol(pb3, Decl(promiseTypeStrictNull.ts, 200, 5)) >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseTypeStrictNull.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >x : Symbol(x, Decl(promiseTypeStrictNull.ts, 1, 11)) const pb4 = p.then(() => Promise.resolve("1"), () => undefined); @@ -934,9 +934,9 @@ const pb4 = p.then(() => Promise.resolve("1"), () => undefined); >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseTypeStrictNull.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >undefined : Symbol(undefined) const pb5 = p.then(() => Promise.resolve("1"), () => null); @@ -944,48 +944,48 @@ const pb5 = p.then(() => Promise.resolve("1"), () => null); >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseTypeStrictNull.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const pb6 = p.then(() => Promise.resolve("1"), () => {}); >pb6 : Symbol(pb6, Decl(promiseTypeStrictNull.ts, 203, 5)) >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseTypeStrictNull.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const pb7 = p.then(() => Promise.resolve("1"), () => {throw 1}); >pb7 : Symbol(pb7, Decl(promiseTypeStrictNull.ts, 204, 5)) >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseTypeStrictNull.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const pb8 = p.then(() => Promise.resolve("1"), () => Promise.resolve(1)); >pb8 : Symbol(pb8, Decl(promiseTypeStrictNull.ts, 205, 5)) >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseTypeStrictNull.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const pb9 = p.then(() => Promise.resolve("1"), () => Promise.reject(1)); >pb9 : Symbol(pb9, Decl(promiseTypeStrictNull.ts, 206, 5)) >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >p : Symbol(p, Decl(promiseTypeStrictNull.ts, 0, 11)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise.reject : Symbol(PromiseConstructor.reject, Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) >reject : Symbol(PromiseConstructor.reject, Decl(lib.es2015.promise.d.ts, --, --)) @@ -1073,9 +1073,9 @@ const pc8 = p.then(() => Promise.reject("1"), () => Promise.resolve(1)); >Promise.reject : Symbol(PromiseConstructor.reject, Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) >reject : Symbol(PromiseConstructor.reject, Decl(lib.es2015.promise.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) const pc9 = p.then(() => Promise.reject("1"), () => Promise.reject(1)); >pc9 : Symbol(pc9, Decl(promiseTypeStrictNull.ts, 217, 5)) diff --git a/tests/baselines/reference/promiseTypeStrictNull.types b/tests/baselines/reference/promiseTypeStrictNull.types index 97038aeb4e5..44912749c0e 100644 --- a/tests/baselines/reference/promiseTypeStrictNull.types +++ b/tests/baselines/reference/promiseTypeStrictNull.types @@ -283,9 +283,9 @@ const p19 = p.catch(() => Promise.resolve(1)); >catch : (onrejected?: ((reason: any) => TResult | PromiseLike) | null | undefined) => Promise >() => Promise.resolve(1) : () => Promise >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 const p20 = p.then(undefined); @@ -365,9 +365,9 @@ const p28 = p.then(() => Promise.resolve(1)); >then : (onfulfilled?: ((value: boolean) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise >() => Promise.resolve(1) : () => Promise >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 const p29 = p.then(() => Promise.reject(1)); @@ -469,9 +469,9 @@ const p38 = p.then(undefined, () => Promise.resolve(1)); >undefined : undefined >() => Promise.resolve(1) : () => Promise >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 const p39 = p.then(undefined, () => Promise.reject(1)); @@ -574,9 +574,9 @@ const p48 = p.then(null, () => Promise.resolve(1)); >null : null >() => Promise.resolve(1) : () => Promise >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 const p49 = p.then(null, () => Promise.reject(1)); @@ -688,9 +688,9 @@ const p58 = p.then(() => "1", () => Promise.resolve(1)); >"1" : "1" >() => Promise.resolve(1) : () => Promise >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 const p59 = p.then(() => "1", () => Promise.reject(1)); @@ -803,9 +803,9 @@ const p68 = p.then(() => x, () => Promise.resolve(1)); >x : any >() => Promise.resolve(1) : () => Promise >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 const p69 = p.then(() => x, () => Promise.reject(1)); @@ -918,9 +918,9 @@ const p78 = p.then(() => undefined, () => Promise.resolve(1)); >undefined : undefined >() => Promise.resolve(1) : () => Promise >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 const p79 = p.then(() => undefined, () => Promise.reject(1)); @@ -1033,9 +1033,9 @@ const p88 = p.then(() => null, () => Promise.resolve(1)); >null : null >() => Promise.resolve(1) : () => Promise >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 const p89 = p.then(() => null, () => Promise.reject(1)); @@ -1139,9 +1139,9 @@ const p98 = p.then(() => {}, () => Promise.resolve(1)); >() => {} : () => void >() => Promise.resolve(1) : () => Promise >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 const p99 = p.then(() => {}, () => Promise.reject(1)); @@ -1253,9 +1253,9 @@ const pa8 = p.then(() => {throw 1}, () => Promise.resolve(1)); >1 : 1 >() => Promise.resolve(1) : () => Promise >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 const pa9 = p.then(() => {throw 1}, () => Promise.reject(1)); @@ -1281,9 +1281,9 @@ const pb0 = p.then(() => Promise.resolve("1"), undefined); >then : (onfulfilled?: ((value: boolean) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise >() => Promise.resolve("1") : () => Promise >Promise.resolve("1") : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >"1" : "1" >undefined : undefined @@ -1295,9 +1295,9 @@ const pb1 = p.then(() => Promise.resolve("1"), null); >then : (onfulfilled?: ((value: boolean) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise >() => Promise.resolve("1") : () => Promise >Promise.resolve("1") : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >"1" : "1" >null : null @@ -1309,9 +1309,9 @@ const pb2 = p.then(() => Promise.resolve("1"), () => 1); >then : (onfulfilled?: ((value: boolean) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise >() => Promise.resolve("1") : () => Promise >Promise.resolve("1") : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >"1" : "1" >() => 1 : () => number >1 : 1 @@ -1324,9 +1324,9 @@ const pb3 = p.then(() => Promise.resolve("1"), () => x); >then : (onfulfilled?: ((value: boolean) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise >() => Promise.resolve("1") : () => Promise >Promise.resolve("1") : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >"1" : "1" >() => x : () => any >x : any @@ -1339,9 +1339,9 @@ const pb4 = p.then(() => Promise.resolve("1"), () => undefined); >then : (onfulfilled?: ((value: boolean) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise >() => Promise.resolve("1") : () => Promise >Promise.resolve("1") : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >"1" : "1" >() => undefined : () => undefined >undefined : undefined @@ -1354,9 +1354,9 @@ const pb5 = p.then(() => Promise.resolve("1"), () => null); >then : (onfulfilled?: ((value: boolean) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise >() => Promise.resolve("1") : () => Promise >Promise.resolve("1") : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >"1" : "1" >() => null : () => null >null : null @@ -1369,9 +1369,9 @@ const pb6 = p.then(() => Promise.resolve("1"), () => {}); >then : (onfulfilled?: ((value: boolean) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise >() => Promise.resolve("1") : () => Promise >Promise.resolve("1") : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >"1" : "1" >() => {} : () => void @@ -1383,9 +1383,9 @@ const pb7 = p.then(() => Promise.resolve("1"), () => {throw 1}); >then : (onfulfilled?: ((value: boolean) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise >() => Promise.resolve("1") : () => Promise >Promise.resolve("1") : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >"1" : "1" >() => {throw 1} : () => never >1 : 1 @@ -1398,15 +1398,15 @@ const pb8 = p.then(() => Promise.resolve("1"), () => Promise.resolve(1)); >then : (onfulfilled?: ((value: boolean) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise >() => Promise.resolve("1") : () => Promise >Promise.resolve("1") : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >"1" : "1" >() => Promise.resolve(1) : () => Promise >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 const pb9 = p.then(() => Promise.resolve("1"), () => Promise.reject(1)); @@ -1417,9 +1417,9 @@ const pb9 = p.then(() => Promise.resolve("1"), () => Promise.reject(1)); >then : (onfulfilled?: ((value: boolean) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise >() => Promise.resolve("1") : () => Promise >Promise.resolve("1") : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >"1" : "1" >() => Promise.reject(1) : () => Promise >Promise.reject(1) : Promise @@ -1559,9 +1559,9 @@ const pc8 = p.then(() => Promise.reject("1"), () => Promise.resolve(1)); >"1" : "1" >() => Promise.resolve(1) : () => Promise >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 const pc9 = p.then(() => Promise.reject("1"), () => Promise.reject(1)); diff --git a/tests/baselines/reference/promiseVoidErrorCallback.symbols b/tests/baselines/reference/promiseVoidErrorCallback.symbols index e431bbd4a19..8cdee3c1d63 100644 --- a/tests/baselines/reference/promiseVoidErrorCallback.symbols +++ b/tests/baselines/reference/promiseVoidErrorCallback.symbols @@ -26,9 +26,9 @@ function f1(): Promise { >T1 : Symbol(T1, Decl(promiseVoidErrorCallback.ts, 0, 0)) return Promise.resolve({ __t1: "foo_t1" }); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >__t1 : Symbol(__t1, Decl(promiseVoidErrorCallback.ts, 13, 28)) } diff --git a/tests/baselines/reference/promiseVoidErrorCallback.types b/tests/baselines/reference/promiseVoidErrorCallback.types index b7539cdbf1d..5fadc187b92 100644 --- a/tests/baselines/reference/promiseVoidErrorCallback.types +++ b/tests/baselines/reference/promiseVoidErrorCallback.types @@ -19,9 +19,9 @@ function f1(): Promise { return Promise.resolve({ __t1: "foo_t1" }); >Promise.resolve({ __t1: "foo_t1" }) : Promise<{ __t1: string; }> ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >{ __t1: "foo_t1" } : { __t1: string; } >__t1 : string >"foo_t1" : "foo_t1" diff --git a/tests/baselines/reference/propertyOrdering.errors.txt b/tests/baselines/reference/propertyOrdering.errors.txt index 90db75f8f15..ad16ffddb61 100644 --- a/tests/baselines/reference/propertyOrdering.errors.txt +++ b/tests/baselines/reference/propertyOrdering.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/propertyOrdering.ts(6,23): error TS2304: Cannot find name 'store'. +tests/cases/compiler/propertyOrdering.ts(6,23): error TS2301: Initializer of instance member variable '_store' cannot reference identifier 'store' declared in the constructor. tests/cases/compiler/propertyOrdering.ts(9,34): error TS2551: Property 'store' does not exist on type 'Foo'. Did you mean '_store'? tests/cases/compiler/propertyOrdering.ts(16,25): error TS2339: Property '_store' does not exist on type 'Bar'. tests/cases/compiler/propertyOrdering.ts(20,14): error TS2339: Property '_store' does not exist on type 'Bar'. @@ -12,7 +12,7 @@ tests/cases/compiler/propertyOrdering.ts(20,14): error TS2339: Property '_store' } public _store = store; // no repro if this is first line in class body ~~~~~ -!!! error TS2304: Cannot find name 'store'. +!!! error TS2301: Initializer of instance member variable '_store' cannot reference identifier 'store' declared in the constructor. public bar() { return this.store; } // should be an error diff --git a/tests/baselines/reference/prototypePropertyAssignmentMergeWithInterfaceMethod.errors.txt b/tests/baselines/reference/prototypePropertyAssignmentMergeWithInterfaceMethod.errors.txt index eeb83673ab3..69e60df6ca1 100644 --- a/tests/baselines/reference/prototypePropertyAssignmentMergeWithInterfaceMethod.errors.txt +++ b/tests/baselines/reference/prototypePropertyAssignmentMergeWithInterfaceMethod.errors.txt @@ -1,7 +1,7 @@ tests/cases/conformance/salsa/lovefield-ts.d.ts(4,19): error TS2503: Cannot find namespace 'query'. tests/cases/conformance/salsa/lovefield-ts.d.ts(5,24): error TS2503: Cannot find namespace 'schema'. tests/cases/conformance/salsa/lovefield-ts.d.ts(7,25): error TS2503: Cannot find namespace 'query'. -tests/cases/conformance/salsa/lovefield-ts.d.ts(9,14): error TS2304: Cannot find name 'TransactionStats'. +tests/cases/conformance/salsa/lovefield-ts.d.ts(9,14): error TS2552: Cannot find name 'TransactionStats'. Did you mean 'Transaction'? tests/cases/conformance/salsa/lovefield.js(3,23): error TS2694: Namespace 'lf' has no exported member 'schema'. tests/cases/conformance/salsa/lovefield.js(4,14): error TS2304: Cannot find name 'IThenable'. @@ -23,7 +23,8 @@ tests/cases/conformance/salsa/lovefield.js(4,14): error TS2304: Cannot find name rollback(): Promise stats(): TransactionStats ~~~~~~~~~~~~~~~~ -!!! error TS2304: Cannot find name 'TransactionStats'. +!!! error TS2552: Cannot find name 'TransactionStats'. Did you mean 'Transaction'? +!!! related TS2728 tests/cases/conformance/salsa/lovefield.js:1:1: 'Transaction' is declared here. } } ==== tests/cases/conformance/salsa/lovefield.js (2 errors) ==== diff --git a/tests/baselines/reference/quickInfoJsDoc.baseline b/tests/baselines/reference/quickInfoJsDoc.baseline new file mode 100644 index 00000000000..5c75e40a656 --- /dev/null +++ b/tests/baselines/reference/quickInfoJsDoc.baseline @@ -0,0 +1,677 @@ +[ + { + "marker": { + "fileName": "/tests/cases/fourslash/quickInfoJsDoc.ts", + "position": 416, + "name": "0" + }, + "quickInfo": { + "kind": "property", + "kindModifiers": "deprecated", + "textSpan": { + "start": 411, + "length": 5 + }, + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "property", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "C", + "kind": "className" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "field", + "kind": "propertyName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + } + ], + "documentation": [ + { + "text": "A field", + "kind": "text" + } + ], + "tags": [ + { + "name": "deprecated" + } + ] + } + }, + { + "marker": { + "fileName": "/tests/cases/fourslash/quickInfoJsDoc.ts", + "position": 437, + "name": "1" + }, + "quickInfo": { + "kind": "property", + "kindModifiers": "deprecated", + "textSpan": { + "start": 431, + "length": 6 + }, + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "property", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "C", + "kind": "className" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "getter", + "kind": "propertyName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "void", + "kind": "keyword" + } + ], + "documentation": [ + { + "text": "A getter", + "kind": "text" + } + ], + "tags": [ + { + "name": "deprecated" + } + ] + } + }, + { + "marker": { + "fileName": "/tests/cases/fourslash/quickInfoJsDoc.ts", + "position": 453, + "name": "2" + }, + "quickInfo": { + "kind": "method", + "kindModifiers": "deprecated", + "textSpan": { + "start": 452, + "length": 1 + }, + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "method", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "C", + "kind": "className" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "m", + "kind": "methodName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "void", + "kind": "keyword" + } + ], + "documentation": [ + { + "text": "A method", + "kind": "text" + } + ], + "tags": [ + { + "name": "deprecated" + } + ] + } + }, + { + "marker": { + "fileName": "/tests/cases/fourslash/quickInfoJsDoc.ts", + "position": 466, + "name": "3" + }, + "quickInfo": { + "kind": "var", + "kindModifiers": "deprecated", + "textSpan": { + "start": 463, + "length": 3 + }, + "displayParts": [ + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "foo", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + } + ], + "documentation": [ + { + "text": "A constant", + "kind": "text" + } + ], + "tags": [ + { + "name": "deprecated" + } + ] + } + }, + { + "marker": { + "fileName": "/tests/cases/fourslash/quickInfoJsDoc.ts", + "position": 477, + "name": "4" + }, + "quickInfo": { + "kind": "class", + "kindModifiers": "deprecated", + "textSpan": { + "start": 476, + "length": 1 + }, + "displayParts": [ + { + "text": "class", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "C", + "kind": "className" + } + ], + "documentation": [ + { + "text": "A class", + "kind": "text" + } + ], + "tags": [ + { + "name": "deprecated" + } + ] + } + }, + { + "marker": { + "fileName": "/tests/cases/fourslash/quickInfoJsDoc.ts", + "position": 492, + "name": "5" + } + }, + { + "marker": { + "fileName": "/tests/cases/fourslash/quickInfoJsDoc.ts", + "position": 565, + "name": "6" + }, + "quickInfo": { + "kind": "property", + "kindModifiers": "deprecated", + "textSpan": { + "start": 560, + "length": 5 + }, + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "property", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "C", + "kind": "className" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "field", + "kind": "propertyName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + } + ], + "documentation": [ + { + "text": "A field", + "kind": "text" + } + ], + "tags": [ + { + "name": "deprecated" + } + ] + } + }, + { + "marker": { + "fileName": "/tests/cases/fourslash/quickInfoJsDoc.ts", + "position": 586, + "name": "7" + }, + "quickInfo": { + "kind": "property", + "kindModifiers": "deprecated", + "textSpan": { + "start": 580, + "length": 6 + }, + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "property", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "C", + "kind": "className" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "getter", + "kind": "propertyName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "void", + "kind": "keyword" + } + ], + "documentation": [ + { + "text": "A getter", + "kind": "text" + } + ], + "tags": [ + { + "name": "deprecated" + } + ] + } + }, + { + "marker": { + "fileName": "/tests/cases/fourslash/quickInfoJsDoc.ts", + "position": 602, + "name": "8" + }, + "quickInfo": { + "kind": "method", + "kindModifiers": "deprecated", + "textSpan": { + "start": 601, + "length": 1 + }, + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "method", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "C", + "kind": "className" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "m", + "kind": "methodName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "void", + "kind": "keyword" + } + ], + "documentation": [ + { + "text": "A method", + "kind": "text" + } + ], + "tags": [ + { + "name": "deprecated" + } + ] + } + }, + { + "marker": { + "fileName": "/tests/cases/fourslash/quickInfoJsDoc.ts", + "position": 615, + "name": "9" + }, + "quickInfo": { + "kind": "var", + "kindModifiers": "deprecated", + "textSpan": { + "start": 612, + "length": 3 + }, + "displayParts": [ + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "foo", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + } + ], + "documentation": [ + { + "text": "A constant", + "kind": "text" + } + ], + "tags": [ + { + "name": "deprecated" + } + ] + } + }, + { + "marker": { + "fileName": "/tests/cases/fourslash/quickInfoJsDoc.ts", + "position": 626, + "name": "10" + }, + "quickInfo": { + "kind": "class", + "kindModifiers": "deprecated", + "textSpan": { + "start": 625, + "length": 1 + }, + "displayParts": [ + { + "text": "class", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "C", + "kind": "className" + } + ], + "documentation": [ + { + "text": "A class", + "kind": "text" + } + ], + "tags": [ + { + "name": "deprecated" + } + ] + } + }, + { + "marker": { + "fileName": "/tests/cases/fourslash/quickInfoJsDoc.ts", + "position": 638, + "name": "11" + }, + "quickInfo": { + "kind": "function", + "kindModifiers": "deprecated", + "textSpan": { + "start": 636, + "length": 2 + }, + "displayParts": [ + { + "text": "function", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "fn", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "void", + "kind": "keyword" + } + ], + "documentation": [ + { + "text": "A function", + "kind": "text" + } + ], + "tags": [ + { + "name": "deprecated" + } + ] + } + } +] \ No newline at end of file diff --git a/tests/baselines/reference/readonlyArraysAndTuples.js b/tests/baselines/reference/readonlyArraysAndTuples.js index f293ad01b7b..26bbafe7ddf 100644 --- a/tests/baselines/reference/readonlyArraysAndTuples.js +++ b/tests/baselines/reference/readonlyArraysAndTuples.js @@ -63,15 +63,15 @@ delete v[0 + 1]; // Error //// [readonlyArraysAndTuples.d.ts] -declare type T10 = string[]; -declare type T11 = Array; -declare type T12 = readonly string[]; -declare type T13 = ReadonlyArray; -declare type T20 = [number, number]; -declare type T21 = readonly [number, number]; -declare type T30 = readonly string; -declare type T31 = readonly T; -declare type T32 = readonly readonly string[]; -declare type T33 = readonly Array; +type T10 = string[]; +type T11 = Array; +type T12 = readonly string[]; +type T13 = ReadonlyArray; +type T20 = [number, number]; +type T21 = readonly [number, number]; +type T30 = readonly string; +type T31 = readonly T; +type T32 = readonly readonly string[]; +type T33 = readonly Array; declare function f1(ma: string[], ra: readonly string[], mt: [string, string], rt: readonly [string, string]): void; declare var v: readonly [number, number, ...number[]]; diff --git a/tests/baselines/reference/readonlyArraysAndTuples2.js b/tests/baselines/reference/readonlyArraysAndTuples2.js index 77e0b1add49..c953406b863 100644 --- a/tests/baselines/reference/readonlyArraysAndTuples2.js +++ b/tests/baselines/reference/readonlyArraysAndTuples2.js @@ -48,12 +48,12 @@ var A = /** @class */ (function () { //// [readonlyArraysAndTuples2.d.ts] -declare type T10 = string[]; -declare type T11 = Array; -declare type T12 = readonly string[]; -declare type T13 = ReadonlyArray; -declare type T20 = [number, number]; -declare type T21 = readonly [number, number]; +type T10 = string[]; +type T11 = Array; +type T12 = readonly string[]; +type T13 = ReadonlyArray; +type T20 = [number, number]; +type T21 = readonly [number, number]; declare function f1(ma: string[], ra: readonly string[], mt: [string, string], rt: readonly [string, string]): readonly [string, string]; declare const someDec: any; declare class A { diff --git a/tests/baselines/reference/recursiveConditionalTypes.js b/tests/baselines/reference/recursiveConditionalTypes.js index 0c590309550..a978a0bfa2a 100644 --- a/tests/baselines/reference/recursiveConditionalTypes.js +++ b/tests/baselines/reference/recursiveConditionalTypes.js @@ -208,44 +208,44 @@ function foo2(value) { //// [recursiveConditionalTypes.d.ts] -declare type __Awaited = T extends null | undefined ? T : T extends PromiseLike ? __Awaited : T; -declare type MyPromise = { +type __Awaited = T extends null | undefined ? T : T extends PromiseLike ? __Awaited : T; +type MyPromise = { then(f: ((value: T) => U | PromiseLike) | null | undefined): MyPromise; }; -declare type InfinitePromise = Promise>; -declare type P0 = __Awaited | null> | undefined>>; -declare type P1 = __Awaited; -declare type P2 = __Awaited>; +type InfinitePromise = Promise>; +type P0 = __Awaited | null> | undefined>>; +type P1 = __Awaited; +type P2 = __Awaited>; declare function f11(tx: T, ta: __Awaited, ux: U, ua: __Awaited): void; -declare type Flatten = T extends unknown[] ? _Flatten[] : readonly _Flatten[]; -declare type _Flatten = T extends readonly (infer U)[] ? _Flatten : T; -declare type InfiniteArray = InfiniteArray[]; -declare type B0 = Flatten; -declare type B1 = Flatten; -declare type B2 = Flatten>; -declare type B3 = B2[0]; -declare type TupleOf = N extends N ? number extends N ? T[] : _TupleOf : never; -declare type _TupleOf = R['length'] extends N ? R : _TupleOf; -declare type TT0 = TupleOf; -declare type TT1 = TupleOf; -declare type TT2 = TupleOf; -declare type TT3 = TupleOf; -declare type TT4 = TupleOf; -declare type TT5 = TupleOf; +type Flatten = T extends unknown[] ? _Flatten[] : readonly _Flatten[]; +type _Flatten = T extends readonly (infer U)[] ? _Flatten : T; +type InfiniteArray = InfiniteArray[]; +type B0 = Flatten; +type B1 = Flatten; +type B2 = Flatten>; +type B3 = B2[0]; +type TupleOf = N extends N ? number extends N ? T[] : _TupleOf : never; +type _TupleOf = R['length'] extends N ? R : _TupleOf; +type TT0 = TupleOf; +type TT1 = TupleOf; +type TT2 = TupleOf; +type TT3 = TupleOf; +type TT4 = TupleOf; +type TT5 = TupleOf; declare function f22(tn: TupleOf, tm: TupleOf): void; declare function f23(t: TupleOf): T; interface Box { value: T; } -declare type RecBox = T | Box>; -declare type InfBox = Box>; +type RecBox = T | Box>; +type InfBox = Box>; declare function unbox(box: RecBox): T; -declare type T1 = Box; -declare type T2 = Box; -declare type T3 = Box; -declare type T4 = Box; -declare type T5 = Box; -declare type T6 = Box; +type T1 = Box; +type T2 = Box; +type T3 = Box; +type T4 = Box; +type T5 = Box; +type T6 = Box; declare let b1: Box>>>>>; declare let b2: T6; declare let b3: InfBox; @@ -256,37 +256,37 @@ declare let b4: { }; }; }; -declare type Box1 = { +type Box1 = { value: T; }; -declare type Box2 = { +type Box2 = { value: T; }; declare function foo(x: Box1>): T; declare let z: Box2>; -declare type Intersect = U extends [infer H, ...infer T] ? Intersect : R; -declare type QQ = Intersect<[string[], number[], 7]>; -declare type Unpack1 = T extends (infer U)[] ? Unpack1 : T; -declare type Unpack2 = T extends (infer U)[] ? Unpack2 : T; +type Intersect = U extends [infer H, ...infer T] ? Intersect : R; +type QQ = Intersect<[string[], number[], 7]>; +type Unpack1 = T extends (infer U)[] ? Unpack1 : T; +type Unpack2 = T extends (infer U)[] ? Unpack2 : T; declare function f20(x: Unpack1, y: Unpack2): void; -declare type Grow1 = T['length'] extends N ? T : Grow1<[number, ...T], N>; -declare type Grow2 = T['length'] extends N ? T : Grow2<[string, ...T], N>; +type Grow1 = T['length'] extends N ? T : Grow1<[number, ...T], N>; +type Grow2 = T['length'] extends N ? T : Grow2<[string, ...T], N>; declare function f21(x: Grow1<[], T>, y: Grow2<[], T>): void; -declare type ParseSuccess = { +type ParseSuccess = { rest: R; }; -declare type ParseManyWhitespace = S extends ` ${infer R0}` ? ParseManyWhitespace extends ParseSuccess ? ParseSuccess : null : ParseSuccess; -declare type TP1 = ParseManyWhitespace<" foo">; -declare type ParseManyWhitespace2 = S extends ` ${infer R0}` ? Helper> : ParseSuccess; -declare type Helper = T extends ParseSuccess ? ParseSuccess : null; -declare type TP2 = ParseManyWhitespace2<" foo">; -declare type NTuple = Tup['length'] extends N ? Tup : NTuple; -declare type Add = [ +type ParseManyWhitespace = S extends ` ${infer R0}` ? ParseManyWhitespace extends ParseSuccess ? ParseSuccess : null : ParseSuccess; +type TP1 = ParseManyWhitespace<" foo">; +type ParseManyWhitespace2 = S extends ` ${infer R0}` ? Helper> : ParseSuccess; +type Helper = T extends ParseSuccess ? ParseSuccess : null; +type TP2 = ParseManyWhitespace2<" foo">; +type NTuple = Tup['length'] extends N ? Tup : NTuple; +type Add = [ ...NTuple, ...NTuple ]['length']; declare let five: Add<2, 3>; -declare type _PrependNextNum> = A['length'] extends infer T ? [T, ...A] extends [...infer X] ? X : never : never; -declare type _Enumerate, N extends number> = N extends A['length'] ? A : _Enumerate<_PrependNextNum, N> & number; -declare type Enumerate = number extends N ? number : _Enumerate<[], N> extends (infer E)[] ? E : never; +type _PrependNextNum> = A['length'] extends infer T ? [T, ...A] extends [...infer X] ? X : never : never; +type _Enumerate, N extends number> = N extends A['length'] ? A : _Enumerate<_PrependNextNum, N> & number; +type Enumerate = number extends N ? number : _Enumerate<[], N> extends (infer E)[] ? E : never; declare function foo2(value: T): Enumerate; diff --git a/tests/baselines/reference/recursiveMappedTypes.js b/tests/baselines/reference/recursiveMappedTypes.js index 142ce6effb3..aaf9a23c5e8 100644 --- a/tests/baselines/reference/recursiveMappedTypes.js +++ b/tests/baselines/reference/recursiveMappedTypes.js @@ -104,13 +104,13 @@ x.type; //// [recursiveMappedTypes.d.ts] -export declare type Circular = { +export type Circular = { [P in keyof T]: Circular; }; -declare type NonOptionalKeys = { +type NonOptionalKeys = { [P in keyof T]: undefined extends T[P] ? never : P; }[keyof T]; -declare type Child = { +type Child = { [P in NonOptionalKeys]: T[P]; }; export interface ListWidget { @@ -120,10 +120,10 @@ export interface ListWidget { "collapsable"?: boolean; "each": Child; } -export declare type TV = T[K] extends Record ? E : never; -export declare type ObjectOrArray = T[] | Record | T[]>; -export declare type ThemeValue = ThemeType[K] extends TVal[] ? number : ThemeType[K] extends Record ? E : ThemeType[K] extends ObjectOrArray ? F : never; -export declare type Foo = T extends { +export type TV = T[K] extends Record ? E : never; +export type ObjectOrArray = T[] | Record | T[]>; +export type ThemeValue = ThemeType[K] extends TVal[] ? number : ThemeType[K] extends Record ? E : ThemeType[K] extends ObjectOrArray ? F : never; +export type Foo = T extends { [P in infer E]: any; } ? E : never; export {}; diff --git a/tests/baselines/reference/recursiveTypeReferences1.js b/tests/baselines/reference/recursiveTypeReferences1.js index 744c9c57b5c..e3c5f3a8485 100644 --- a/tests/baselines/reference/recursiveTypeReferences1.js +++ b/tests/baselines/reference/recursiveTypeReferences1.js @@ -217,55 +217,55 @@ function level(h) { //// [recursiveTypeReferences1.d.ts] -declare type ValueOrArray = T | Array>; +type ValueOrArray = T | Array>; declare const a0: ValueOrArray; declare const a1: ValueOrArray; -declare type HypertextNode = string | [string, { +type HypertextNode = string | [string, { [key: string]: unknown; }, ...HypertextNode[]]; declare const hypertextNode: HypertextNode; -declare type Json = string | number | boolean | null | Json[] | { +type Json = string | number | boolean | null | Json[] | { [key: string]: Json; }; declare let data: Json; interface Box { value: T; } -declare type T1 = Box; -declare type T2 = Box>; -declare type T3 = Box>>; +type T1 = Box; +type T2 = Box>; +type T3 = Box>>; declare function f1(t1: T1, t2: T2, t3: T3): void; -declare type Box1 = Box | number; +type Box1 = Box | number; declare const b10: Box1; declare const b11: Box1; declare const b12: Box1; -declare type Box2 = Box; +type Box2 = Box; declare const b20: Box2; declare const b21: Box2; declare const b22: Box2; -declare type RecArray = Array>; +type RecArray = Array>; declare function flat(a: RecArray): Array; declare function flat1(a: Array>): Array; declare function flat2(a: Array>>): Array; -declare type T10 = T10[]; -declare type T11 = readonly T11[]; -declare type T12 = (T12)[]; -declare type T13 = T13[] | string; -declare type T14 = T14[] & { +type T10 = T10[]; +type T11 = readonly T11[]; +type T12 = (T12)[]; +type T13 = T13[] | string; +type T14 = T14[] & { x: string; }; -declare type T15 = X extends string ? T15[] : never; -declare type ValueOrArray1 = T | ValueOrArray1[]; -declare type ValueOrArray2 = T | ValueOrArray2[]; +type T15 = X extends string ? T15[] : never; +type ValueOrArray1 = T | ValueOrArray1[]; +type ValueOrArray2 = T | ValueOrArray2[]; declare function foo1(a: ValueOrArray1): T; declare let ra1: ValueOrArray2; declare let x1: string; -declare type NumberOrArray1 = T | ValueOrArray1[]; -declare type NumberOrArray2 = T | ValueOrArray2[]; +type NumberOrArray1 = T | ValueOrArray1[]; +type NumberOrArray2 = T | ValueOrArray2[]; declare function foo2(a: ValueOrArray1): T; declare let ra2: ValueOrArray2; declare let x2: string; -declare type Tree = [HTMLHeadingElement, Tree][]; +type Tree = [HTMLHeadingElement, Tree][]; declare function parse(node: Tree, index?: number[]): HTMLUListElement; declare function cons(hs: HTMLHeadingElement[]): Tree; declare function level(h: HTMLHeadingElement): number; diff --git a/tests/baselines/reference/recursiveTypeRelations.errors.txt b/tests/baselines/reference/recursiveTypeRelations.errors.txt index a3d65454832..3deda3412da 100644 --- a/tests/baselines/reference/recursiveTypeRelations.errors.txt +++ b/tests/baselines/reference/recursiveTypeRelations.errors.txt @@ -1,9 +1,9 @@ tests/cases/compiler/recursiveTypeRelations.ts(8,5): error TS2391: Function implementation is missing or not immediately following the declaration. -tests/cases/compiler/recursiveTypeRelations.ts(27,38): error TS2304: Cannot find name 'ClassNameObject'. +tests/cases/compiler/recursiveTypeRelations.ts(27,38): error TS2552: Cannot find name 'ClassNameObject'. Did you mean 'ClassNameObjectMap'? tests/cases/compiler/recursiveTypeRelations.ts(27,55): error TS2345: Argument of type '(obj: ClassNameObject, key: keyof S) => ClassNameObject' is not assignable to parameter of type '(previousValue: ClassNameObject, currentValue: string, currentIndex: number, array: string[]) => ClassNameObject'. Types of parameters 'key' and 'currentValue' are incompatible. Type 'string' is not assignable to type 'keyof S'. -tests/cases/compiler/recursiveTypeRelations.ts(27,61): error TS2304: Cannot find name 'ClassNameObject'. +tests/cases/compiler/recursiveTypeRelations.ts(27,61): error TS2552: Cannot find name 'ClassNameObject'. Did you mean 'ClassNameObjectMap'? ==== tests/cases/compiler/recursiveTypeRelations.ts (4 errors) ==== @@ -37,13 +37,13 @@ tests/cases/compiler/recursiveTypeRelations.ts(27,61): error TS2304: Cannot find if (typeof arg == "object") { return Object.keys(arg).reduce((obj: ClassNameObject, key: keyof S) => { ~~~~~~~~~~~~~~~ -!!! error TS2304: Cannot find name 'ClassNameObject'. +!!! error TS2552: Cannot find name 'ClassNameObject'. Did you mean 'ClassNameObjectMap'? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS2345: Argument of type '(obj: ClassNameObject, key: keyof S) => ClassNameObject' is not assignable to parameter of type '(previousValue: ClassNameObject, currentValue: string, currentIndex: number, array: string[]) => ClassNameObject'. !!! error TS2345: Types of parameters 'key' and 'currentValue' are incompatible. !!! error TS2345: Type 'string' is not assignable to type 'keyof S'. ~~~~~~~~~~~~~~~ -!!! error TS2304: Cannot find name 'ClassNameObject'. +!!! error TS2552: Cannot find name 'ClassNameObject'. Did you mean 'ClassNameObjectMap'? const exportedClassName = styles[key]; obj[exportedClassName] = (arg as ClassNameMap)[key]; return obj; diff --git a/tests/baselines/reference/redefineArray.errors.txt b/tests/baselines/reference/redefineArray.errors.txt index be2be83fbe4..0af9576082e 100644 --- a/tests/baselines/reference/redefineArray.errors.txt +++ b/tests/baselines/reference/redefineArray.errors.txt @@ -5,4 +5,4 @@ tests/cases/compiler/redefineArray.ts(1,1): error TS2741: Property 'isArray' is Array = function (n:number, s:string) {return n;}; ~~~~~ !!! error TS2741: Property 'isArray' is missing in type '(n: number, s: string) => number' but required in type 'ArrayConstructor'. -!!! related TS2728 /.ts/lib.es5.d.ts:1478:5: 'isArray' is declared here. \ No newline at end of file +!!! related TS2728 /.ts/lib.es5.d.ts:1486:5: 'isArray' is declared here. \ No newline at end of file diff --git a/tests/baselines/reference/relatedViaDiscriminatedTypeNoError.js b/tests/baselines/reference/relatedViaDiscriminatedTypeNoError.js new file mode 100644 index 00000000000..1cc939eacbf --- /dev/null +++ b/tests/baselines/reference/relatedViaDiscriminatedTypeNoError.js @@ -0,0 +1,48 @@ +//// [relatedViaDiscriminatedTypeNoError.ts] +class Model { + constructor(public flag: boolean) {} +} + +type DiscriminatedUnion = { flag: true } | { flag: false }; +class A { + constructor(public model: T) { } +} + +class B extends A { } + + +//// [relatedViaDiscriminatedTypeNoError.js] +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var Model = /** @class */ (function () { + function Model(flag) { + this.flag = flag; + } + return Model; +}()); +var A = /** @class */ (function () { + function A(model) { + this.model = model; + } + return A; +}()); +var B = /** @class */ (function (_super) { + __extends(B, _super); + function B() { + return _super !== null && _super.apply(this, arguments) || this; + } + return B; +}(A)); diff --git a/tests/baselines/reference/relatedViaDiscriminatedTypeNoError.symbols b/tests/baselines/reference/relatedViaDiscriminatedTypeNoError.symbols new file mode 100644 index 00000000000..89b3396c284 --- /dev/null +++ b/tests/baselines/reference/relatedViaDiscriminatedTypeNoError.symbols @@ -0,0 +1,28 @@ +=== tests/cases/compiler/relatedViaDiscriminatedTypeNoError.ts === +class Model { +>Model : Symbol(Model, Decl(relatedViaDiscriminatedTypeNoError.ts, 0, 0)) + + constructor(public flag: boolean) {} +>flag : Symbol(Model.flag, Decl(relatedViaDiscriminatedTypeNoError.ts, 1, 16)) +} + +type DiscriminatedUnion = { flag: true } | { flag: false }; +>DiscriminatedUnion : Symbol(DiscriminatedUnion, Decl(relatedViaDiscriminatedTypeNoError.ts, 2, 1)) +>flag : Symbol(flag, Decl(relatedViaDiscriminatedTypeNoError.ts, 4, 27)) +>flag : Symbol(flag, Decl(relatedViaDiscriminatedTypeNoError.ts, 4, 44)) + +class A { +>A : Symbol(A, Decl(relatedViaDiscriminatedTypeNoError.ts, 4, 59)) +>T : Symbol(T, Decl(relatedViaDiscriminatedTypeNoError.ts, 5, 8)) +>DiscriminatedUnion : Symbol(DiscriminatedUnion, Decl(relatedViaDiscriminatedTypeNoError.ts, 2, 1)) + + constructor(public model: T) { } +>model : Symbol(A.model, Decl(relatedViaDiscriminatedTypeNoError.ts, 6, 16)) +>T : Symbol(T, Decl(relatedViaDiscriminatedTypeNoError.ts, 5, 8)) +} + +class B extends A { } +>B : Symbol(B, Decl(relatedViaDiscriminatedTypeNoError.ts, 7, 1)) +>A : Symbol(A, Decl(relatedViaDiscriminatedTypeNoError.ts, 4, 59)) +>Model : Symbol(Model, Decl(relatedViaDiscriminatedTypeNoError.ts, 0, 0)) + diff --git a/tests/baselines/reference/relatedViaDiscriminatedTypeNoError.types b/tests/baselines/reference/relatedViaDiscriminatedTypeNoError.types new file mode 100644 index 00000000000..8c3f0a824fb --- /dev/null +++ b/tests/baselines/reference/relatedViaDiscriminatedTypeNoError.types @@ -0,0 +1,26 @@ +=== tests/cases/compiler/relatedViaDiscriminatedTypeNoError.ts === +class Model { +>Model : Model + + constructor(public flag: boolean) {} +>flag : boolean +} + +type DiscriminatedUnion = { flag: true } | { flag: false }; +>DiscriminatedUnion : { flag: true; } | { flag: false; } +>flag : true +>true : true +>flag : false +>false : false + +class A { +>A : A + + constructor(public model: T) { } +>model : T +} + +class B extends A { } +>B : B +>A : A + diff --git a/tests/baselines/reference/renameReferenceFromLinkTag1.baseline b/tests/baselines/reference/renameReferenceFromLinkTag1.baseline new file mode 100644 index 00000000000..6a267b2d997 --- /dev/null +++ b/tests/baselines/reference/renameReferenceFromLinkTag1.baseline @@ -0,0 +1,6 @@ +/*====== /tests/cases/fourslash/renameReferenceFromLinkTag1.ts ======*/ + +enum E { + /** {@link [|RENAME|]} */ + RENAME +} diff --git a/tests/baselines/reference/renameReferenceFromLinkTag2.baseline b/tests/baselines/reference/renameReferenceFromLinkTag2.baseline new file mode 100644 index 00000000000..3da46e2bfff --- /dev/null +++ b/tests/baselines/reference/renameReferenceFromLinkTag2.baseline @@ -0,0 +1,9 @@ +/*====== /a.ts ======*/ + +enum E { + /** {@link [|RENAME|]} */ + Foo +} +interface RENAME { + foo: E.Foo; +} diff --git a/tests/baselines/reference/renameReferenceFromLinkTag3.baseline b/tests/baselines/reference/renameReferenceFromLinkTag3.baseline new file mode 100644 index 00000000000..19e3ec871e4 --- /dev/null +++ b/tests/baselines/reference/renameReferenceFromLinkTag3.baseline @@ -0,0 +1,12 @@ +/*====== /tests/cases/fourslash/a.ts ======*/ + +interface RENAME { + foo: E.Foo; +} + +/*====== /tests/cases/fourslash/b.ts ======*/ + +enum E { + /** {@link RENAME} */ + Foo +} diff --git a/tests/baselines/reference/renameReferenceFromLinkTag4.baseline b/tests/baselines/reference/renameReferenceFromLinkTag4.baseline new file mode 100644 index 00000000000..4020ebfd1df --- /dev/null +++ b/tests/baselines/reference/renameReferenceFromLinkTag4.baseline @@ -0,0 +1,7 @@ +/*====== /tests/cases/fourslash/renameReferenceFromLinkTag4.ts ======*/ + +enum E { + /** {@link [|RENAME|]} */ + A, + RENAME +} diff --git a/tests/baselines/reference/renameReferenceFromLinkTag5.baseline b/tests/baselines/reference/renameReferenceFromLinkTag5.baseline new file mode 100644 index 00000000000..605869bd5e8 --- /dev/null +++ b/tests/baselines/reference/renameReferenceFromLinkTag5.baseline @@ -0,0 +1,6 @@ +/*====== /tests/cases/fourslash/renameReferenceFromLinkTag5.ts ======*/ + +enum E { + /** {@link E.[|RENAME|]} */ + RENAME +} diff --git a/tests/baselines/reference/renamingDestructuredPropertyInFunctionType.js b/tests/baselines/reference/renamingDestructuredPropertyInFunctionType.js index ac5fe3b3c35..1dd5c5145ac 100644 --- a/tests/baselines/reference/renamingDestructuredPropertyInFunctionType.js +++ b/tests/baselines/reference/renamingDestructuredPropertyInFunctionType.js @@ -93,63 +93,63 @@ function f12({ a: string = "" }) { return "a"; } //// [renamingDestructuredPropertyInFunctionType.d.ts] -declare type O = { +type O = { a?: string; b: number; c: number; }; -declare type F1 = (arg: number) => any; -declare type F2 = ({ a }: O) => any; -declare type F3 = ({ a, b, c }: O) => any; -declare type F4 = ({ a }: O) => any; -declare type F5 = ({ a, b, c }: O) => any; -declare type F6 = ({ a: string }: { +type F1 = (arg: number) => any; +type F2 = ({ a }: O) => any; +type F3 = ({ a, b, c }: O) => any; +type F4 = ({ a }: O) => any; +type F5 = ({ a, b, c }: O) => any; +type F6 = ({ a: string }: { a: any; }) => typeof string; -declare type F7 = ({ a, b: number }: { +type F7 = ({ a, b: number }: { a: any; b: any; }) => typeof number; -declare type F8 = ({ a, b: number }: { +type F8 = ({ a, b: number }: { a: any; b: any; }) => typeof number; -declare type F9 = ([a, b, c]: [any, any, any]) => void; -declare type G1 = new (arg: number) => any; -declare type G2 = new ({ a }: O) => any; -declare type G3 = new ({ a, b, c }: O) => any; -declare type G4 = new ({ a }: O) => any; -declare type G5 = new ({ a, b, c }: O) => any; -declare type G6 = new ({ a: string }: { +type F9 = ([a, b, c]: [any, any, any]) => void; +type G1 = new (arg: number) => any; +type G2 = new ({ a }: O) => any; +type G3 = new ({ a, b, c }: O) => any; +type G4 = new ({ a }: O) => any; +type G5 = new ({ a, b, c }: O) => any; +type G6 = new ({ a: string }: { a: any; }) => typeof string; -declare type G7 = new ({ a, b: number }: { +type G7 = new ({ a, b: number }: { a: any; b: any; }) => typeof number; -declare type G8 = new ({ a, b: number }: { +type G8 = new ({ a, b: number }: { a: any; b: any; }) => typeof number; -declare type G9 = new ([a, b, c]: [any, any, any]) => void; -declare type F10 = ({ "a": string }: { +type G9 = new ([a, b, c]: [any, any, any]) => void; +type F10 = ({ "a": string }: { a: any; }) => void; -declare type F11 = ({ 2: string }: { +type F11 = ({ 2: string }: { 2: any; }) => void; -declare type F12 = ({ ["a"]: string }: O) => void; -declare type F13 = ({ [2]: string }: { +type F12 = ({ ["a"]: string }: O) => void; +type F13 = ({ [2]: string }: { 2: any; }) => void; -declare type G10 = new ({ "a": string }: { +type G10 = new ({ "a": string }: { a: any; }) => void; -declare type G11 = new ({ 2: string }: { +type G11 = new ({ 2: string }: { 2: any; }) => void; -declare type G12 = new ({ ["a"]: string }: O) => void; -declare type G13 = new ({ [2]: string }: { +type G12 = new ({ ["a"]: string }: O) => void; +type G13 = new ({ [2]: string }: { 2: any; }) => void; interface I { diff --git a/tests/baselines/reference/restTupleElements1.js b/tests/baselines/reference/restTupleElements1.js index a15c7fd4dd1..82b5ded6806 100644 --- a/tests/baselines/reference/restTupleElements1.js +++ b/tests/baselines/reference/restTupleElements1.js @@ -99,30 +99,30 @@ f2(function (x) { return x * 2; }, function (x) { return x.length; }, function ( //// [restTupleElements1.d.ts] -declare type T00 = [string?]; -declare type T01 = [string, string?]; -declare type T02 = [string?, string]; -declare type T03 = [...string[]]; -declare type T04 = [...[...string[]]]; -declare type T05 = [...[...[...string[]]]]; -declare type T06 = [string, ...string[]]; -declare type T07 = [...string[], string]; -declare type T08 = [...string]; -declare type T09 = [...?string]; -declare type T10 = [string, ...[...string[]]]; -declare type T11 = [string, ...[...[...string[]]]]; -declare type T15 = [boolean, number, ...string[]]; -declare type L15 = T15["length"]; +type T00 = [string?]; +type T01 = [string, string?]; +type T02 = [string?, string]; +type T03 = [...string[]]; +type T04 = [...[...string[]]]; +type T05 = [...[...[...string[]]]]; +type T06 = [string, ...string[]]; +type T07 = [...string[], string]; +type T08 = [...string]; +type T09 = [...?string]; +type T10 = [string, ...[...string[]]]; +type T11 = [string, ...[...[...string[]]]]; +type T15 = [boolean, number, ...string[]]; +type L15 = T15["length"]; declare function assign(): void; -declare type T20 = [number, string, ...boolean[]]; -declare type T21 = T20[0]; -declare type T22 = T20[0 | 1]; -declare type T23 = T20[0 | 1 | 2]; -declare type T24 = T20[0 | 1 | 2 | 3]; -declare type T25 = T20[1 | 2 | 3]; -declare type T26 = T20[2 | 3]; -declare type T27 = T20[3]; -declare type T28 = T20[number]; +type T20 = [number, string, ...boolean[]]; +type T21 = T20[0]; +type T22 = T20[0 | 1]; +type T23 = T20[0 | 1 | 2]; +type T24 = T20[0 | 1 | 2 | 3]; +type T25 = T20[1 | 2 | 3]; +type T26 = T20[2 | 3]; +type T27 = T20[3]; +type T28 = T20[number]; declare const t: T20; declare const x: number; declare let e0: number; diff --git a/tests/baselines/reference/restTuplesFromContextualTypes.js b/tests/baselines/reference/restTuplesFromContextualTypes.js index f22bdba39b0..be3e73e55e2 100644 --- a/tests/baselines/reference/restTuplesFromContextualTypes.js +++ b/tests/baselines/reference/restTuplesFromContextualTypes.js @@ -361,7 +361,7 @@ declare let g7: (x: any, y: any) => string; declare let g8: (x: number, y: string) => string; declare var tuple: [number, string]; declare function take(cb: (a: number, b: string) => void): void; -declare type ArgsUnion = [number, string] | [number, Error]; -declare type TupleUnionFunc = (...params: ArgsUnion) => number; +type ArgsUnion = [number, string] | [number, Error]; +type TupleUnionFunc = (...params: ArgsUnion) => number; declare const funcUnionTupleNoRest: TupleUnionFunc; declare const funcUnionTupleRest: TupleUnionFunc; diff --git a/tests/baselines/reference/reverseMappedTypeDeepDeclarationEmit.js b/tests/baselines/reference/reverseMappedTypeDeepDeclarationEmit.js index aee2773df36..74cabbe7de6 100644 --- a/tests/baselines/reference/reverseMappedTypeDeepDeclarationEmit.js +++ b/tests/baselines/reference/reverseMappedTypeDeepDeclarationEmit.js @@ -52,9 +52,9 @@ exports.outputExample = (0, exports.validatorFunc)({ //// [reverseMappedTypeDeepDeclarationEmit.d.ts] -export declare type Validator = NativeTypeValidator | ObjectValidator; -export declare type NativeTypeValidator = (n: any) => T | undefined; -export declare type ObjectValidator = { +export type Validator = NativeTypeValidator | ObjectValidator; +export type NativeTypeValidator = (n: any) => T | undefined; +export type ObjectValidator = { [K in keyof O]: Validator; }; export declare const SimpleStringValidator: NativeTypeValidator; diff --git a/tests/baselines/reference/scannerS7.2_A1.5_T2.errors.txt b/tests/baselines/reference/scannerS7.2_A1.5_T2.errors.txt index 989584c31b9..535cc4b2f97 100644 --- a/tests/baselines/reference/scannerS7.2_A1.5_T2.errors.txt +++ b/tests/baselines/reference/scannerS7.2_A1.5_T2.errors.txt @@ -19,7 +19,7 @@ tests/cases/conformance/scanner/ecmascript5/scannerS7.2_A1.5_T2.ts(20,3): error $ERROR('#1: eval("\\u00A0var x\\u00A0= 1\\u00A0"); x === 1. Actual: ' + (x)); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } //CHECK#2 @@ -28,7 +28,7 @@ tests/cases/conformance/scanner/ecmascript5/scannerS7.2_A1.5_T2.ts(20,3): error $ERROR('#2:  var x = 1 ; x === 1. Actual: ' + (x)); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } diff --git a/tests/baselines/reference/scannerS7.3_A1.1_T2.errors.txt b/tests/baselines/reference/scannerS7.3_A1.1_T2.errors.txt index 02bc647385e..40c4e573c77 100644 --- a/tests/baselines/reference/scannerS7.3_A1.1_T2.errors.txt +++ b/tests/baselines/reference/scannerS7.3_A1.1_T2.errors.txt @@ -21,7 +21,7 @@ tests/cases/conformance/scanner/ecmascript5/scannerS7.3_A1.1_T2.ts(17,3): error $ERROR('#1: var\\nx\\n=\\n1\\n; x === 1. Actual: ' + (x)); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } \ No newline at end of file diff --git a/tests/baselines/reference/scannerS7.6_A4.2_T1.errors.txt b/tests/baselines/reference/scannerS7.6_A4.2_T1.errors.txt index fb8bb580675..ba258b4f255 100644 --- a/tests/baselines/reference/scannerS7.6_A4.2_T1.errors.txt +++ b/tests/baselines/reference/scannerS7.6_A4.2_T1.errors.txt @@ -50,70 +50,70 @@ tests/cases/conformance/scanner/ecmascript5/scannerS7.6_A4.2_T1.ts(142,3): error $ERROR('#А'); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } var \u0411 = 1; if (Б !== 1) { $ERROR('#Б'); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } var \u0412 = 1; if (В !== 1) { $ERROR('#В'); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } var \u0413 = 1; if (Г !== 1) { $ERROR('#Г'); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } var \u0414 = 1; if (Д !== 1) { $ERROR('#Д'); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } var \u0415 = 1; if (Е !== 1) { $ERROR('#Е'); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } var \u0416 = 1; if (Ж !== 1) { $ERROR('#Ж'); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } var \u0417 = 1; if (З !== 1) { $ERROR('#З'); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } var \u0418 = 1; if (И !== 1) { $ERROR('#И'); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } var \u0419 = 1; if (Й !== 1) { $ERROR('#Й'); ~~~~~~ !!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'? -!!! related TS2728 /.ts/lib.es5.d.ts:1051:13: 'Error' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:1059:13: 'Error' is declared here. } var \u041A = 1; if (К !== 1) { diff --git a/tests/baselines/reference/silentNeverPropagation.js b/tests/baselines/reference/silentNeverPropagation.js index cb654863202..200fea4f28c 100644 --- a/tests/baselines/reference/silentNeverPropagation.js +++ b/tests/baselines/reference/silentNeverPropagation.js @@ -36,13 +36,13 @@ breaks.foo(); //// [silentNeverPropagation.d.ts] -declare type ModuleWithState = { +type ModuleWithState = { state: TState; }; -declare type State = { +type State = { a: number; }; -declare type MoreState = { +type MoreState = { z: string; }; declare function createModule(state: TState, actions: TActions): ModuleWithState & TActions; diff --git a/tests/baselines/reference/smartSelection_JSDocTags11.baseline b/tests/baselines/reference/smartSelection_JSDocTags11.baseline new file mode 100644 index 00000000000..65972750980 --- /dev/null +++ b/tests/baselines/reference/smartSelection_JSDocTags11.baseline @@ -0,0 +1,83 @@ +const x = 1; +type Foo = { + /** comment */ + /**/readonly status: number; +}; + + + readonly + + + readonly status + + + readonly status: number; + + + /** comment */ + readonly status: number; + + + ↲ +••/** comment */ + readonly status: number;↲ + + + { + /** comment */ + readonly status: number; +} + +type Foo = { + /** comment */ + readonly status: number; +}; + +const x = 1; +type Foo = { + /** comment */ + readonly status: number; +}; + +================================================================================ + +const x = 1; +type Foo = { + /** comment */ + readonly /**/status: number; +}; + + + status + + + readonly status + + + readonly status: number; + + + /** comment */ + readonly status: number; + + + ↲ +••/** comment */ + readonly status: number;↲ + + + { + /** comment */ + readonly status: number; +} + +type Foo = { + /** comment */ + readonly status: number; +}; + +const x = 1; +type Foo = { + /** comment */ + readonly status: number; +}; \ No newline at end of file diff --git a/tests/baselines/reference/smartSelection_JSDocTags12.baseline b/tests/baselines/reference/smartSelection_JSDocTags12.baseline new file mode 100644 index 00000000000..82acc073265 --- /dev/null +++ b/tests/baselines/reference/smartSelection_JSDocTags12.baseline @@ -0,0 +1,117 @@ +type B = {}; +type A = { + a(/** Comment */ /**/p0: number, /** Comment */ p1: number, /** Comment */ p2: number): string; +}; + + + p0 + + + p0: number + + + /** Comment */ p0: number + + + /** Comment */ p0: number, /** Comment */ p1: number, /** Comment */ p2: number + + + a(/** Comment */ p0: number, /** Comment */ p1: number, /** Comment */ p2: number): string; + + + ↲ +••••a(/** Comment */ p0: number, /** Comment */ p1: number, /** Comment */ p2: number): string;↲ + + + { + a(/** Comment */ p0: number, /** Comment */ p1: number, /** Comment */ p2: number): string; +} + +type A = { + a(/** Comment */ p0: number, /** Comment */ p1: number, /** Comment */ p2: number): string; +}; + +type B = {}; +type A = { + a(/** Comment */ p0: number, /** Comment */ p1: number, /** Comment */ p2: number): string; +}; + +================================================================================ + +type B = {}; +type A = { + a(/** Comment */ p0: number, /** Comment */ /**/p1: number, /** Comment */ p2: number): string; +}; + + + p1 + + + p1: number + + + /** Comment */ p1: number + + + /** Comment */ p0: number, /** Comment */ p1: number, /** Comment */ p2: number + + + a(/** Comment */ p0: number, /** Comment */ p1: number, /** Comment */ p2: number): string; + + + ↲ +••••a(/** Comment */ p0: number, /** Comment */ p1: number, /** Comment */ p2: number): string;↲ + + + { + a(/** Comment */ p0: number, /** Comment */ p1: number, /** Comment */ p2: number): string; +} + +type A = { + a(/** Comment */ p0: number, /** Comment */ p1: number, /** Comment */ p2: number): string; +}; + +type B = {}; +type A = { + a(/** Comment */ p0: number, /** Comment */ p1: number, /** Comment */ p2: number): string; +}; + +================================================================================ + +type B = {}; +type A = { + a(/** Comment */ p0: number, /** Comment */ p1: number, /** Comment */ /**/p2: number): string; +}; + + + p2 + + + p2: number + + + /** Comment */ p2: number + + + /** Comment */ p0: number, /** Comment */ p1: number, /** Comment */ p2: number + + + a(/** Comment */ p0: number, /** Comment */ p1: number, /** Comment */ p2: number): string; + + + ↲ +••••a(/** Comment */ p0: number, /** Comment */ p1: number, /** Comment */ p2: number): string;↲ + + + { + a(/** Comment */ p0: number, /** Comment */ p1: number, /** Comment */ p2: number): string; +} + +type A = { + a(/** Comment */ p0: number, /** Comment */ p1: number, /** Comment */ p2: number): string; +}; + +type B = {}; +type A = { + a(/** Comment */ p0: number, /** Comment */ p1: number, /** Comment */ p2: number): string; +}; \ No newline at end of file diff --git a/tests/baselines/reference/smartSelection_JSDocTags13.baseline b/tests/baselines/reference/smartSelection_JSDocTags13.baseline new file mode 100644 index 00000000000..5a68ca1e23b --- /dev/null +++ b/tests/baselines/reference/smartSelection_JSDocTags13.baseline @@ -0,0 +1,141 @@ +let a; +let b: { + /** Comment */ /**/p0: number + /** Comment */ p1: number + /** Comment */ p2: number +}; +let c; + + + p0 + + + p0: number + + + /** Comment */ p0: number + + + ↲ +••••/** Comment */ p0: number + /** Comment */ p1: number + /** Comment */ p2: number↲ + + + { + /** Comment */ p0: number + /** Comment */ p1: number + /** Comment */ p2: number +} + + +let b: { + /** Comment */ p0: number + /** Comment */ p1: number + /** Comment */ p2: number +}; + + +let a; +let b: { + /** Comment */ p0: number + /** Comment */ p1: number + /** Comment */ p2: number +}; +let c; + +================================================================================ + +let a; +let b: { + /** Comment */ p0: number + /** Comment */ /**/p1: number + /** Comment */ p2: number +}; +let c; + + + p1 + + + p1: number + + + /** Comment */ p1: number + + + ↲ +••••/** Comment */ p0: number + /** Comment */ p1: number + /** Comment */ p2: number↲ + + + { + /** Comment */ p0: number + /** Comment */ p1: number + /** Comment */ p2: number +} + + +let b: { + /** Comment */ p0: number + /** Comment */ p1: number + /** Comment */ p2: number +}; + + +let a; +let b: { + /** Comment */ p0: number + /** Comment */ p1: number + /** Comment */ p2: number +}; +let c; + +================================================================================ + +let a; +let b: { + /** Comment */ p0: number + /** Comment */ p1: number + /** Comment */ /**/p2: number +}; +let c; + + + p2 + + + p2: number + + + /** Comment */ p2: number + + + ↲ +••••/** Comment */ p0: number + /** Comment */ p1: number + /** Comment */ p2: number↲ + + + { + /** Comment */ p0: number + /** Comment */ p1: number + /** Comment */ p2: number +} + + +let b: { + /** Comment */ p0: number + /** Comment */ p1: number + /** Comment */ p2: number +}; + + +let a; +let b: { + /** Comment */ p0: number + /** Comment */ p1: number + /** Comment */ p2: number +}; +let c; \ No newline at end of file diff --git a/tests/baselines/reference/spreadExpressionContainingObjectExpressionContextualType.symbols b/tests/baselines/reference/spreadExpressionContainingObjectExpressionContextualType.symbols new file mode 100644 index 00000000000..2b95e9c2fff --- /dev/null +++ b/tests/baselines/reference/spreadExpressionContainingObjectExpressionContextualType.symbols @@ -0,0 +1,23 @@ +=== tests/cases/compiler/spreadExpressionContainingObjectExpressionContextualType.ts === +// repro #49585 + +const { value } = (() => ({ +>value : Symbol(value, Decl(spreadExpressionContainingObjectExpressionContextualType.ts, 2, 7)) + + value: "", +>value : Symbol(value, Decl(spreadExpressionContainingObjectExpressionContextualType.ts, 2, 27)) + + ...(true ? {} : {}), +}))(); + +// repro 49684#discussion_r920545763 + +const { value2 } = { +>value2 : Symbol(value2, Decl(spreadExpressionContainingObjectExpressionContextualType.ts, 9, 7)) + + value2: "", +>value2 : Symbol(value2, Decl(spreadExpressionContainingObjectExpressionContextualType.ts, 9, 20)) + + ...(() => true ? {} : {})(), +}; + diff --git a/tests/baselines/reference/spreadExpressionContainingObjectExpressionContextualType.types b/tests/baselines/reference/spreadExpressionContainingObjectExpressionContextualType.types new file mode 100644 index 00000000000..2e3765e2f69 --- /dev/null +++ b/tests/baselines/reference/spreadExpressionContainingObjectExpressionContextualType.types @@ -0,0 +1,45 @@ +=== tests/cases/compiler/spreadExpressionContainingObjectExpressionContextualType.ts === +// repro #49585 + +const { value } = (() => ({ +>value : string +>(() => ({ value: "", ...(true ? {} : {}),}))() : { value: string; } +>(() => ({ value: "", ...(true ? {} : {}),})) : () => { value: string; } +>() => ({ value: "", ...(true ? {} : {}),}) : () => { value: string; } +>({ value: "", ...(true ? {} : {}),}) : { value: string; } +>{ value: "", ...(true ? {} : {}),} : { value: string; } + + value: "", +>value : string +>"" : "" + + ...(true ? {} : {}), +>(true ? {} : {}) : {} +>true ? {} : {} : {} +>true : true +>{} : {} +>{} : {} + +}))(); + +// repro 49684#discussion_r920545763 + +const { value2 } = { +>value2 : string +>{ value2: "", ...(() => true ? {} : {})(),} : { value2: string; } + + value2: "", +>value2 : string +>"" : "" + + ...(() => true ? {} : {})(), +>(() => true ? {} : {})() : {} +>(() => true ? {} : {}) : () => {} +>() => true ? {} : {} : () => {} +>true ? {} : {} : {} +>true : true +>{} : {} +>{} : {} + +}; + diff --git a/tests/baselines/reference/strictOptionalProperties1.js b/tests/baselines/reference/strictOptionalProperties1.js index faef4708b04..00b4ec7eb3c 100644 --- a/tests/baselines/reference/strictOptionalProperties1.js +++ b/tests/baselines/reference/strictOptionalProperties1.js @@ -392,11 +392,11 @@ declare function f4(t: [string?]): void; declare function f4a(t1: [number, string?], t2: [number, string?, string?]): void; declare function f5(t: [number, string?, boolean?]): void; declare function f6(): void; -declare type Props = { +type Props = { foo: string; bar: string; }; -declare type InputProps = { +type InputProps = { foo?: string; bar: string; }; @@ -439,7 +439,7 @@ declare function f11(x: { }): T; declare function f12(x: [T?]): T; declare function f13(x: Partial): T; -declare type Undefinable = T | undefined; +type Undefinable = T | undefined; declare function expectNotUndefined(value: Undefinable): T; interface Bar { bar?: number; @@ -482,12 +482,12 @@ interface PropsFromReact { interface PropsFromMaterialUI { onClick?: (() => void) | undefined; } -declare type TheTypeFromMaterialUI = PropsFromReact & PropsFromMaterialUI; +type TheTypeFromMaterialUI = PropsFromReact & PropsFromMaterialUI; interface NavBottomListItem extends TheTypeFromMaterialUI { value: string; } -declare type UA = undefined; -declare type UB = { +type UA = undefined; +type UB = { x?: never; }['x']; -declare type UC = UA & UB; +type UC = UA & UB; diff --git a/tests/baselines/reference/strictOptionalProperties2.js b/tests/baselines/reference/strictOptionalProperties2.js index 63079175a66..db38ed83bbd 100644 --- a/tests/baselines/reference/strictOptionalProperties2.js +++ b/tests/baselines/reference/strictOptionalProperties2.js @@ -11,9 +11,9 @@ type T2 = [(string | undefined)?] extends [string?] ? true : false; // false //// [strictOptionalProperties2.d.ts] -declare type T1 = { +type T1 = { 0?: string | undefined; } extends { 0?: string; } ? true : false; -declare type T2 = [(string | undefined)?] extends [string?] ? true : false; +type T2 = [(string | undefined)?] extends [string?] ? true : false; diff --git a/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.js b/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.js index 83e65977560..c31b76ea393 100644 --- a/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.js +++ b/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.js @@ -48,7 +48,7 @@ class C implements String { indexOf(searchString: string, position?: number): number { return null; } lastIndexOf(searchString: string, position?: number): number { return null; } localeCompare(that: string): number { return null; } - match(regexp: any): string[] { return null; } + match(regexp: any): RegExpMatchArray { return null; } replace(searchValue: any, replaceValue: any): string { return null; } search(regexp: any): number { return null; } slice(start?: number, end?: number): string { return null; } @@ -64,7 +64,7 @@ class C implements String { valueOf(): string { return null; } [index: number]: string; } - + // BUG 831846 function f10(x: 'a'); function f10(x: C); @@ -98,7 +98,8 @@ function f15(x: any) { } function f16(x: 'a'); function f16(x: U); -function f16(x: any) { } +function f16(x: any) { } + //// [stringLiteralTypeIsSubtypeOfString.js] // string literal types are subtypes of string, any diff --git a/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.symbols b/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.symbols index cf735eb7042..08448089a60 100644 --- a/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.symbols +++ b/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.symbols @@ -148,12 +148,13 @@ class C implements String { >localeCompare : Symbol(C.localeCompare, Decl(stringLiteralTypeIsSubtypeOfString.ts, 47, 81)) >that : Symbol(that, Decl(stringLiteralTypeIsSubtypeOfString.ts, 48, 18)) - match(regexp: any): string[] { return null; } + match(regexp: any): RegExpMatchArray { return null; } >match : Symbol(C.match, Decl(stringLiteralTypeIsSubtypeOfString.ts, 48, 56)) >regexp : Symbol(regexp, Decl(stringLiteralTypeIsSubtypeOfString.ts, 49, 10)) +>RegExpMatchArray : Symbol(RegExpMatchArray, Decl(lib.es5.d.ts, --, --)) replace(searchValue: any, replaceValue: any): string { return null; } ->replace : Symbol(C.replace, Decl(stringLiteralTypeIsSubtypeOfString.ts, 49, 49)) +>replace : Symbol(C.replace, Decl(stringLiteralTypeIsSubtypeOfString.ts, 49, 57)) >searchValue : Symbol(searchValue, Decl(stringLiteralTypeIsSubtypeOfString.ts, 50, 12)) >replaceValue : Symbol(replaceValue, Decl(stringLiteralTypeIsSubtypeOfString.ts, 50, 29)) @@ -205,7 +206,7 @@ class C implements String { [index: number]: string; >index : Symbol(index, Decl(stringLiteralTypeIsSubtypeOfString.ts, 63, 5)) } - + // BUG 831846 function f10(x: 'a'); >f10 : Symbol(f10, Decl(stringLiteralTypeIsSubtypeOfString.ts, 64, 1), Decl(stringLiteralTypeIsSubtypeOfString.ts, 67, 21), Decl(stringLiteralTypeIsSubtypeOfString.ts, 68, 19)) diff --git a/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.types b/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.types index f5216a5b9ad..13d34078754 100644 --- a/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.types +++ b/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.types @@ -151,8 +151,8 @@ class C implements String { >that : string >null : null - match(regexp: any): string[] { return null; } ->match : (regexp: any) => string[] + match(regexp: any): RegExpMatchArray { return null; } +>match : (regexp: any) => RegExpMatchArray >regexp : any >null : null @@ -221,7 +221,7 @@ class C implements String { [index: number]: string; >index : number } - + // BUG 831846 function f10(x: 'a'); >f10 : { (x: 'a'): any; (x: C): any; } diff --git a/tests/baselines/reference/stringLiteralTypesAndTuples01.js b/tests/baselines/reference/stringLiteralTypesAndTuples01.js index 11aebfc0404..a304ebcf07e 100644 --- a/tests/baselines/reference/stringLiteralTypesAndTuples01.js +++ b/tests/baselines/reference/stringLiteralTypesAndTuples01.js @@ -36,6 +36,6 @@ function rawr(dino) { //// [stringLiteralTypesAndTuples01.d.ts] declare let hello: string, brave: string, newish: string, world: string; -declare type RexOrRaptor = "t-rex" | "raptor"; +type RexOrRaptor = "t-rex" | "raptor"; declare let im: "I'm", a: "a", dinosaur: RexOrRaptor; declare function rawr(dino: RexOrRaptor): "ROAAAAR!" | "yip yip!"; diff --git a/tests/baselines/reference/stringLiteralTypesAsTags01.js b/tests/baselines/reference/stringLiteralTypesAsTags01.js index adecab0b1b8..61bca969f4f 100644 --- a/tests/baselines/reference/stringLiteralTypesAsTags01.js +++ b/tests/baselines/reference/stringLiteralTypesAsTags01.js @@ -64,7 +64,7 @@ else { //// [stringLiteralTypesAsTags01.d.ts] -declare type Kind = "A" | "B"; +type Kind = "A" | "B"; interface Entity { kind: Kind; } diff --git a/tests/baselines/reference/stringLiteralTypesAsTags02.js b/tests/baselines/reference/stringLiteralTypesAsTags02.js index 299686b0802..dcbd374ed1a 100644 --- a/tests/baselines/reference/stringLiteralTypesAsTags02.js +++ b/tests/baselines/reference/stringLiteralTypesAsTags02.js @@ -63,7 +63,7 @@ else { //// [stringLiteralTypesAsTags02.d.ts] -declare type Kind = "A" | "B"; +type Kind = "A" | "B"; interface Entity { kind: Kind; } diff --git a/tests/baselines/reference/stringLiteralTypesAsTags03.js b/tests/baselines/reference/stringLiteralTypesAsTags03.js index 761037dda2d..6329264d91f 100644 --- a/tests/baselines/reference/stringLiteralTypesAsTags03.js +++ b/tests/baselines/reference/stringLiteralTypesAsTags03.js @@ -67,7 +67,7 @@ else { //// [stringLiteralTypesAsTags03.d.ts] -declare type Kind = "A" | "B"; +type Kind = "A" | "B"; interface Entity { kind: Kind; } diff --git a/tests/baselines/reference/stringLiteralTypesInUnionTypes01.js b/tests/baselines/reference/stringLiteralTypesInUnionTypes01.js index b8e3f620690..327840b708e 100644 --- a/tests/baselines/reference/stringLiteralTypesInUnionTypes01.js +++ b/tests/baselines/reference/stringLiteralTypesInUnionTypes01.js @@ -38,6 +38,6 @@ y = x; //// [stringLiteralTypesInUnionTypes01.d.ts] -declare type T = "foo" | "bar" | "baz"; +type T = "foo" | "bar" | "baz"; declare var x: "foo" | "bar" | "baz"; declare var y: T; diff --git a/tests/baselines/reference/stringLiteralTypesInUnionTypes02.js b/tests/baselines/reference/stringLiteralTypesInUnionTypes02.js index 8c0d5bd6fe3..aea0874aed1 100644 --- a/tests/baselines/reference/stringLiteralTypesInUnionTypes02.js +++ b/tests/baselines/reference/stringLiteralTypesInUnionTypes02.js @@ -38,6 +38,6 @@ y = x; //// [stringLiteralTypesInUnionTypes02.d.ts] -declare type T = string | "foo" | "bar" | "baz"; +type T = string | "foo" | "bar" | "baz"; declare var x: "foo" | "bar" | "baz" | string; declare var y: T; diff --git a/tests/baselines/reference/stringLiteralTypesInUnionTypes03.js b/tests/baselines/reference/stringLiteralTypesInUnionTypes03.js index c635c2df53c..afb20587c62 100644 --- a/tests/baselines/reference/stringLiteralTypesInUnionTypes03.js +++ b/tests/baselines/reference/stringLiteralTypesInUnionTypes03.js @@ -38,6 +38,6 @@ y = x; //// [stringLiteralTypesInUnionTypes03.d.ts] -declare type T = number | "foo" | "bar"; +type T = number | "foo" | "bar"; declare var x: "foo" | "bar" | number; declare var y: T; diff --git a/tests/baselines/reference/stringLiteralTypesInUnionTypes04.js b/tests/baselines/reference/stringLiteralTypesInUnionTypes04.js index 967014d58a6..f7332ffd761 100644 --- a/tests/baselines/reference/stringLiteralTypesInUnionTypes04.js +++ b/tests/baselines/reference/stringLiteralTypesInUnionTypes04.js @@ -66,6 +66,6 @@ if (!!!x) { //// [stringLiteralTypesInUnionTypes04.d.ts] -declare type T = "" | "foo"; +type T = "" | "foo"; declare let x: T; declare let y: T; diff --git a/tests/baselines/reference/stringLiteralTypesOverloads01.js b/tests/baselines/reference/stringLiteralTypesOverloads01.js index 039186e8c68..1acbfbf384e 100644 --- a/tests/baselines/reference/stringLiteralTypesOverloads01.js +++ b/tests/baselines/reference/stringLiteralTypesOverloads01.js @@ -92,7 +92,7 @@ var Consts2; //// [stringLiteralTypesOverloads01.d.ts] -declare type PrimitiveName = 'string' | 'number' | 'boolean'; +type PrimitiveName = 'string' | 'number' | 'boolean'; declare function getFalsyPrimitive(x: "string"): string; declare function getFalsyPrimitive(x: "number"): number; declare function getFalsyPrimitive(x: "boolean"): boolean; diff --git a/tests/baselines/reference/stringLiteralTypesTypePredicates01.js b/tests/baselines/reference/stringLiteralTypesTypePredicates01.js index cf22198f48d..6256ae60b50 100644 --- a/tests/baselines/reference/stringLiteralTypesTypePredicates01.js +++ b/tests/baselines/reference/stringLiteralTypesTypePredicates01.js @@ -43,7 +43,7 @@ else { //// [stringLiteralTypesTypePredicates01.d.ts] -declare type Kind = "A" | "B"; +type Kind = "A" | "B"; declare function kindIs(kind: Kind, is: "A"): kind is "A"; declare function kindIs(kind: Kind, is: "B"): kind is "B"; declare var x: Kind; diff --git a/tests/baselines/reference/superWithTypeArgument.symbols b/tests/baselines/reference/superWithTypeArgument.symbols index 50990b4817e..eeb5919958f 100644 --- a/tests/baselines/reference/superWithTypeArgument.symbols +++ b/tests/baselines/reference/superWithTypeArgument.symbols @@ -12,5 +12,6 @@ class D extends C { constructor() { super(); >super : Symbol(C, Decl(superWithTypeArgument.ts, 0, 0)) +>T : Symbol(T, Decl(superWithTypeArgument.ts, 4, 8)) } } diff --git a/tests/baselines/reference/superWithTypeArgument2.symbols b/tests/baselines/reference/superWithTypeArgument2.symbols index 35a371cde10..c42450e8723 100644 --- a/tests/baselines/reference/superWithTypeArgument2.symbols +++ b/tests/baselines/reference/superWithTypeArgument2.symbols @@ -19,6 +19,7 @@ class D extends C { super(x); >super : Symbol(C, Decl(superWithTypeArgument2.ts, 0, 0)) +>T : Symbol(T, Decl(superWithTypeArgument2.ts, 4, 8)) >x : Symbol(x, Decl(superWithTypeArgument2.ts, 5, 16)) } } diff --git a/tests/baselines/reference/superWithTypeArgument3.symbols b/tests/baselines/reference/superWithTypeArgument3.symbols index a596264aa7d..9a6ff935961 100644 --- a/tests/baselines/reference/superWithTypeArgument3.symbols +++ b/tests/baselines/reference/superWithTypeArgument3.symbols @@ -23,6 +23,7 @@ class D extends C { constructor() { super(); >super : Symbol(C, Decl(superWithTypeArgument3.ts, 0, 0)) +>T : Symbol(T, Decl(superWithTypeArgument3.ts, 5, 8)) } bar() { >bar : Symbol(D.bar, Decl(superWithTypeArgument3.ts, 8, 5)) diff --git a/tests/baselines/reference/symbolLinkDeclarationEmitModuleNames.js b/tests/baselines/reference/symbolLinkDeclarationEmitModuleNames.js index be495125ee6..ed8d9850768 100644 --- a/tests/baselines/reference/symbolLinkDeclarationEmitModuleNames.js +++ b/tests/baselines/reference/symbolLinkDeclarationEmitModuleNames.js @@ -71,7 +71,7 @@ exports.CONTROLLER_CLASS = context_1.BindingKey.create(null); // line in questio //// [value-promise.d.ts] -export declare type Constructor = (...args: any[]) => T; +export type Constructor = (...args: any[]) => T; //// [bindingkey.d.ts] import { Constructor } from "@loopback/context"; export declare class BindingKey { @@ -83,7 +83,7 @@ export * from "./src/value-promise"; export * from "./src/bindingkey"; //// [application.d.ts] import { Constructor } from "@loopback/context"; -export declare type ControllerClass = Constructor; +export type ControllerClass = Constructor; //// [usage.d.ts] import { ControllerClass } from './application'; import { BindingKey } from '@loopback/context'; diff --git a/tests/baselines/reference/symbolLinkDeclarationEmitModuleNamesRootDir.js b/tests/baselines/reference/symbolLinkDeclarationEmitModuleNamesRootDir.js index c51360496ab..21a84291f19 100644 --- a/tests/baselines/reference/symbolLinkDeclarationEmitModuleNamesRootDir.js +++ b/tests/baselines/reference/symbolLinkDeclarationEmitModuleNamesRootDir.js @@ -37,7 +37,7 @@ exports.CONTROLLER_CLASS = context_1.BindingKey.create(null); // line in questio //// [application.d.ts] import { Constructor } from "@loopback/context"; -export declare type ControllerClass = Constructor; +export type ControllerClass = Constructor; //// [usage.d.ts] import { ControllerClass } from './application'; import { BindingKey } from '@loopback/context'; diff --git a/tests/baselines/reference/symbolProperty32.errors.txt b/tests/baselines/reference/symbolProperty32.errors.txt index 9bacef82a7c..18ffae948f9 100644 --- a/tests/baselines/reference/symbolProperty32.errors.txt +++ b/tests/baselines/reference/symbolProperty32.errors.txt @@ -1,14 +1,15 @@ -tests/cases/conformance/es6/Symbols/symbolProperty32.ts(2,5): error TS2411: Property '[Symbol.toStringTag]' of type '() => { x: string; }' is not assignable to 'symbol' index type '() => { x: number; }'. +tests/cases/conformance/es6/Symbols/symbolProperty32.ts(7,5): error TS2411: Property '[Symbol.toStringTag]' of type '() => { x: string; }' is not assignable to 'symbol' index type '() => { x: number; }'. ==== tests/cases/conformance/es6/Symbols/symbolProperty32.ts (1 errors) ==== class C1 { [Symbol.toStringTag]() { - ~~~~~~~~~~~~~~~~~~~~ -!!! error TS2411: Property '[Symbol.toStringTag]' of type '() => { x: string; }' is not assignable to 'symbol' index type '() => { x: number; }'. return { x: "" }; } } class C2 extends C1 { [s: symbol]: () => { x: number }; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2411: Property '[Symbol.toStringTag]' of type '() => { x: string; }' is not assignable to 'symbol' index type '() => { x: number; }'. +!!! related TS2728 tests/cases/conformance/es6/Symbols/symbolProperty32.ts:2:5: '[Symbol.toStringTag]' is declared here. } \ No newline at end of file diff --git a/tests/baselines/reference/systemModule18.js b/tests/baselines/reference/systemModule18.js new file mode 100644 index 00000000000..66f975a90a7 --- /dev/null +++ b/tests/baselines/reference/systemModule18.js @@ -0,0 +1,43 @@ +//// [tests/cases/compiler/systemModule18.ts] //// + +//// [react.ts] +export function createElement() {} +export function lazy() {} +export function useState() {} + +//// [index.ts] +export import React = require("./react.js"); + + +//// [react.js] +System.register([], function (exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + function createElement() { } + exports_1("createElement", createElement); + function lazy() { } + exports_1("lazy", lazy); + function useState() { } + exports_1("useState", useState); + return { + setters: [], + execute: function () { + } + }; +}); +//// [index.js] +System.register(["./react.js"], function (exports_1, context_1) { + "use strict"; + var React; + var __moduleName = context_1 && context_1.id; + return { + setters: [ + function (React_1) { + React = React_1; + exports_1("React", React_1); + } + ], + execute: function () { + } + }; +}); diff --git a/tests/baselines/reference/systemModule18.symbols b/tests/baselines/reference/systemModule18.symbols new file mode 100644 index 00000000000..c7ff2277878 --- /dev/null +++ b/tests/baselines/reference/systemModule18.symbols @@ -0,0 +1,14 @@ +=== tests/cases/compiler/index.ts === +export import React = require("./react.js"); +>React : Symbol(React, Decl(index.ts, 0, 0)) + +=== tests/cases/compiler/react.ts === +export function createElement() {} +>createElement : Symbol(createElement, Decl(react.ts, 0, 0)) + +export function lazy() {} +>lazy : Symbol(lazy, Decl(react.ts, 0, 34)) + +export function useState() {} +>useState : Symbol(useState, Decl(react.ts, 1, 25)) + diff --git a/tests/baselines/reference/systemModule18.types b/tests/baselines/reference/systemModule18.types new file mode 100644 index 00000000000..7da83c25e44 --- /dev/null +++ b/tests/baselines/reference/systemModule18.types @@ -0,0 +1,14 @@ +=== tests/cases/compiler/index.ts === +export import React = require("./react.js"); +>React : typeof React + +=== tests/cases/compiler/react.ts === +export function createElement() {} +>createElement : () => void + +export function lazy() {} +>lazy : () => void + +export function useState() {} +>useState : () => void + diff --git a/tests/baselines/reference/taggedPrimitiveNarrowing.js b/tests/baselines/reference/taggedPrimitiveNarrowing.js index a87ea61ddf3..a2e7bdbb0c0 100644 --- a/tests/baselines/reference/taggedPrimitiveNarrowing.js +++ b/tests/baselines/reference/taggedPrimitiveNarrowing.js @@ -33,7 +33,7 @@ function getHashLength2(hash) { //// [taggedPrimitiveNarrowing.d.ts] -declare type Hash = string & { +type Hash = string & { __hash: true; }; declare function getHashLength(hash: Hash): number; diff --git a/tests/baselines/reference/taggedTemplateStringsWithOverloadResolution1.errors.txt b/tests/baselines/reference/taggedTemplateStringsWithOverloadResolution1.errors.txt index e275dae6dfd..a9e6e98b250 100644 --- a/tests/baselines/reference/taggedTemplateStringsWithOverloadResolution1.errors.txt +++ b/tests/baselines/reference/taggedTemplateStringsWithOverloadResolution1.errors.txt @@ -38,7 +38,7 @@ tests/cases/conformance/es6/templates/taggedTemplateStringsWithOverloadResolutio ~~ !!! error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'TemplateStringsArray'. !!! error TS2345: Property 'raw' is missing in type 'undefined[]' but required in type 'TemplateStringsArray'. -!!! related TS2728 /.ts/lib.es5.d.ts:614:14: 'raw' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:608:14: 'raw' is declared here. !!! related TS2793 tests/cases/conformance/es6/templates/taggedTemplateStringsWithOverloadResolution1.ts:5:10: The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible. var b = foo([], 1); // string ~~ diff --git a/tests/baselines/reference/taggedTemplateStringsWithOverloadResolution1_ES6.errors.txt b/tests/baselines/reference/taggedTemplateStringsWithOverloadResolution1_ES6.errors.txt index 5e9498cede1..6997efce9af 100644 --- a/tests/baselines/reference/taggedTemplateStringsWithOverloadResolution1_ES6.errors.txt +++ b/tests/baselines/reference/taggedTemplateStringsWithOverloadResolution1_ES6.errors.txt @@ -38,7 +38,7 @@ tests/cases/conformance/es6/templates/taggedTemplateStringsWithOverloadResolutio ~~ !!! error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'TemplateStringsArray'. !!! error TS2345: Property 'raw' is missing in type 'undefined[]' but required in type 'TemplateStringsArray'. -!!! related TS2728 /.ts/lib.es5.d.ts:614:14: 'raw' is declared here. +!!! related TS2728 /.ts/lib.es5.d.ts:608:14: 'raw' is declared here. !!! related TS2793 tests/cases/conformance/es6/templates/taggedTemplateStringsWithOverloadResolution1_ES6.ts:5:10: The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible. var b = foo([], 1); // string ~~ diff --git a/tests/baselines/reference/tailRecursiveConditionalTypes.js b/tests/baselines/reference/tailRecursiveConditionalTypes.js index 8ae35aad151..fd4bb8617cb 100644 --- a/tests/baselines/reference/tailRecursiveConditionalTypes.js +++ b/tests/baselines/reference/tailRecursiveConditionalTypes.js @@ -33,17 +33,17 @@ type T41 = TupleOf; //// [tailRecursiveConditionalTypes.d.ts] -declare type Trim = S extends ` ${infer T}` ? Trim : S extends `${infer T} ` ? Trim : S; -declare type T10 = Trim<' hello '>; -declare type T11 = Trim<' hello '>; -declare type GetChars = GetCharsRec; -declare type GetCharsRec = S extends `${infer Char}${infer Rest}` ? GetCharsRec : Acc; -declare type T20 = GetChars<'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'>; -declare type Reverse = any[] extends T ? T : ReverseRec; -declare type ReverseRec = T extends [infer Head, ...infer Tail] ? ReverseRec : Acc; -declare type T30 = Reverse<[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9]>; -declare type T31 = Reverse; -declare type TupleOf = number extends N ? T[] : TupleOfRec; -declare type TupleOfRec = Acc["length"] extends N ? Acc : TupleOfRec; -declare type T40 = TupleOf; -declare type T41 = TupleOf; +type Trim = S extends ` ${infer T}` ? Trim : S extends `${infer T} ` ? Trim : S; +type T10 = Trim<' hello '>; +type T11 = Trim<' hello '>; +type GetChars = GetCharsRec; +type GetCharsRec = S extends `${infer Char}${infer Rest}` ? GetCharsRec : Acc; +type T20 = GetChars<'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'>; +type Reverse = any[] extends T ? T : ReverseRec; +type ReverseRec = T extends [infer Head, ...infer Tail] ? ReverseRec : Acc; +type T30 = Reverse<[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9]>; +type T31 = Reverse; +type TupleOf = number extends N ? T[] : TupleOfRec; +type TupleOfRec = Acc["length"] extends N ? Acc : TupleOfRec; +type T40 = TupleOf; +type T41 = TupleOf; diff --git a/tests/baselines/reference/templateLiteralTypes1.js b/tests/baselines/reference/templateLiteralTypes1.js index afa410f6dc9..a05790ecafc 100644 --- a/tests/baselines/reference/templateLiteralTypes1.js +++ b/tests/baselines/reference/templateLiteralTypes1.js @@ -298,5 +298,5 @@ var test1 = "0 0 0"; //// [templateLiteralTypes1.d.ts] -export declare type Spacing = `0` | `${number}px` | `${number}rem` | `s${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20}`; -export declare type SpacingShorthand = `${Spacing} ${Spacing}` | `${Spacing} ${Spacing} ${Spacing}` | `${Spacing} ${Spacing} ${Spacing} ${Spacing}`; +export type Spacing = `0` | `${number}px` | `${number}rem` | `s${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20}`; +export type SpacingShorthand = `${Spacing} ${Spacing}` | `${Spacing} ${Spacing} ${Spacing}` | `${Spacing} ${Spacing} ${Spacing} ${Spacing}`; diff --git a/tests/baselines/reference/templateLiteralTypes2.errors.txt b/tests/baselines/reference/templateLiteralTypes2.errors.txt index 7e9308d47e6..c649962cc59 100644 --- a/tests/baselines/reference/templateLiteralTypes2.errors.txt +++ b/tests/baselines/reference/templateLiteralTypes2.errors.txt @@ -5,10 +5,10 @@ tests/cases/conformance/types/literal/templateLiteralTypes2.ts(32,11): error TS2 ==== tests/cases/conformance/types/literal/templateLiteralTypes2.ts (3 errors) ==== function ft1(s: string, n: number, u: 'foo' | 'bar' | 'baz', t: T) { - const c1 = `abc${s}`; // `abc${string}` - const c2 = `abc${n}`; // `abc${number}` - const c3 = `abc${u}`; // "abcfoo" | "abcbar" | "abcbaz" - const c4 = `abc${t}`; // `abc${T} + const c1 = `abc${s}`; + const c2 = `abc${n}`; + const c3 = `abc${u}`; + const c4 = `abc${t}`; const d1: `abc${string}` = `abc${s}`; const d2: `abc${number}` = `abc${n}`; const d3: `abc${'foo' | 'bar' | 'baz'}` = `abc${u}`; @@ -20,9 +20,9 @@ tests/cases/conformance/types/literal/templateLiteralTypes2.ts(32,11): error TS2 } function ft10(s: string) { - const c1 = `abc${s}`; // Widening type `abc${string}` + const c1 = `abc${s}`; // Type string let v1 = c1; // Type string - const c2 = c1; // Widening type `abc${string}` + const c2 = c1; // Type string let v2 = c2; // Type string const c3: `abc${string}` = `abc${s}`; let v3 = c3; // Type `abc${string}` @@ -33,18 +33,18 @@ tests/cases/conformance/types/literal/templateLiteralTypes2.ts(32,11): error TS2 } function ft11(s: string, cond: boolean) { - const c1 = cond ? `foo${s}` : `bar${s}`; // widening `foo${string}` | widening `bar${string}` + const c1 = cond ? `foo${s}` : `bar${s}`; // string const c2: `foo${string}` | `bar${string}` = c1; // `foo${string}` | `bar${string}` ~~ !!! error TS2322: Type 'string' is not assignable to type '`foo${string}` | `bar${string}`'. - const c3 = cond ? c1 : c2; // `foo${string}` | `bar${string}` - const c4 = cond ? c3 : `baz${s}`; // `foo${string}` | `bar${string}` | widening `baz${string}` + const c3 = cond ? c1 : c2; // string + const c4 = cond ? c3 : `baz${s}`; // string const c5: `foo${string}` | `bar${string}` | `baz${string}` = c4; // `foo${string}` | `bar${string}` | `baz${string}` ~~ !!! error TS2322: Type 'string' is not assignable to type '`foo${string}` | `bar${string}` | `baz${string}`'. let v1 = c1; // string let v2 = c2; // `foo${string}` | `bar${string}` - let v3 = c3; // `foo${string}` | `bar${string}` + let v3 = c3; // string let v4 = c4; // string let v5 = c5; // `foo${string}` | `bar${string}` | `baz${string}` } @@ -102,7 +102,7 @@ tests/cases/conformance/types/literal/templateLiteralTypes2.ts(32,11): error TS2 const t3 = takesLiteral(`foo.bar.${someString}`); // string const id4 = `foo.bar.${someString}`; - const t4 = takesLiteral(id4); // string + const t4 = takesLiteral(id4); // unknown declare const someUnion: 'abc' | 'def' | 'ghi'; const t5 = takesLiteral(`foo.bar.${someUnion}`); // "abc" | "def" | "ghi" diff --git a/tests/baselines/reference/templateLiteralTypes2.js b/tests/baselines/reference/templateLiteralTypes2.js index 1b31f3a00ee..ccf1fba6626 100644 --- a/tests/baselines/reference/templateLiteralTypes2.js +++ b/tests/baselines/reference/templateLiteralTypes2.js @@ -1,9 +1,9 @@ //// [templateLiteralTypes2.ts] function ft1(s: string, n: number, u: 'foo' | 'bar' | 'baz', t: T) { - const c1 = `abc${s}`; // `abc${string}` - const c2 = `abc${n}`; // `abc${number}` - const c3 = `abc${u}`; // "abcfoo" | "abcbar" | "abcbaz" - const c4 = `abc${t}`; // `abc${T} + const c1 = `abc${s}`; + const c2 = `abc${n}`; + const c3 = `abc${u}`; + const c4 = `abc${t}`; const d1: `abc${string}` = `abc${s}`; const d2: `abc${number}` = `abc${n}`; const d3: `abc${'foo' | 'bar' | 'baz'}` = `abc${u}`; @@ -15,9 +15,9 @@ function ft2(s: string) { } function ft10(s: string) { - const c1 = `abc${s}`; // Widening type `abc${string}` + const c1 = `abc${s}`; // Type string let v1 = c1; // Type string - const c2 = c1; // Widening type `abc${string}` + const c2 = c1; // Type string let v2 = c2; // Type string const c3: `abc${string}` = `abc${s}`; let v3 = c3; // Type `abc${string}` @@ -26,14 +26,14 @@ function ft10(s: string) { } function ft11(s: string, cond: boolean) { - const c1 = cond ? `foo${s}` : `bar${s}`; // widening `foo${string}` | widening `bar${string}` + const c1 = cond ? `foo${s}` : `bar${s}`; // string const c2: `foo${string}` | `bar${string}` = c1; // `foo${string}` | `bar${string}` - const c3 = cond ? c1 : c2; // `foo${string}` | `bar${string}` - const c4 = cond ? c3 : `baz${s}`; // `foo${string}` | `bar${string}` | widening `baz${string}` + const c3 = cond ? c1 : c2; // string + const c4 = cond ? c3 : `baz${s}`; // string const c5: `foo${string}` | `bar${string}` | `baz${string}` = c4; // `foo${string}` | `bar${string}` | `baz${string}` let v1 = c1; // string let v2 = c2; // `foo${string}` | `bar${string}` - let v3 = c3; // `foo${string}` | `bar${string}` + let v3 = c3; // string let v4 = c4; // string let v5 = c5; // `foo${string}` | `bar${string}` | `baz${string}` } @@ -91,7 +91,7 @@ declare const someString: string; const t3 = takesLiteral(`foo.bar.${someString}`); // string const id4 = `foo.bar.${someString}`; -const t4 = takesLiteral(id4); // string +const t4 = takesLiteral(id4); // unknown declare const someUnion: 'abc' | 'def' | 'ghi'; const t5 = takesLiteral(`foo.bar.${someUnion}`); // "abc" | "def" | "ghi" @@ -122,10 +122,10 @@ C2(`rotate(${interpolatedStyle.rotate}dig)`); //// [templateLiteralTypes2.js] "use strict"; function ft1(s, n, u, t) { - var c1 = "abc".concat(s); // `abc${string}` - var c2 = "abc".concat(n); // `abc${number}` - var c3 = "abc".concat(u); // "abcfoo" | "abcbar" | "abcbaz" - var c4 = "abc".concat(t); // `abc${T} + var c1 = "abc".concat(s); + var c2 = "abc".concat(n); + var c3 = "abc".concat(u); + var c4 = "abc".concat(t); var d1 = "abc".concat(s); var d2 = "abc".concat(n); var d3 = "abc".concat(u); @@ -135,9 +135,9 @@ function ft2(s) { return "abc".concat(s); } function ft10(s) { - var c1 = "abc".concat(s); // Widening type `abc${string}` + var c1 = "abc".concat(s); // Type string var v1 = c1; // Type string - var c2 = c1; // Widening type `abc${string}` + var c2 = c1; // Type string var v2 = c2; // Type string var c3 = "abc".concat(s); var v3 = c3; // Type `abc${string}` @@ -145,14 +145,14 @@ function ft10(s) { var v4 = c4; // Type `abc${string}` } function ft11(s, cond) { - var c1 = cond ? "foo".concat(s) : "bar".concat(s); // widening `foo${string}` | widening `bar${string}` + var c1 = cond ? "foo".concat(s) : "bar".concat(s); // string var c2 = c1; // `foo${string}` | `bar${string}` - var c3 = cond ? c1 : c2; // `foo${string}` | `bar${string}` - var c4 = cond ? c3 : "baz".concat(s); // `foo${string}` | `bar${string}` | widening `baz${string}` + var c3 = cond ? c1 : c2; // string + var c4 = cond ? c3 : "baz".concat(s); // string var c5 = c4; // `foo${string}` | `bar${string}` | `baz${string}` var v1 = c1; // string var v2 = c2; // `foo${string}` | `bar${string}` - var v3 = c3; // `foo${string}` | `bar${string}` + var v3 = c3; // string var v4 = c4; // string var v5 = c5; // `foo${string}` | `bar${string}` | `baz${string}` } @@ -190,7 +190,7 @@ var id2 = "foo.bar.baz"; var t2 = takesLiteral(id2); // "baz" var t3 = takesLiteral("foo.bar.".concat(someString)); // string var id4 = "foo.bar.".concat(someString); -var t4 = takesLiteral(id4); // string +var t4 = takesLiteral(id4); // unknown var t5 = takesLiteral("foo.bar.".concat(someUnion)); // "abc" | "def" | "ghi" // Repro from #41732 var pixelValue = 22; @@ -215,7 +215,7 @@ declare function ft12(s: string): void; declare function widening(x: T): T; declare function nonWidening(x: T): T; declare function ft13(s: string, cond: boolean): void; -declare type T0 = string | `${number}px`; +type T0 = string | `${number}px`; declare function ft14(t: `foo${number}`): void; declare function g1(x: T): T; declare function g2(x: T): T; @@ -231,7 +231,7 @@ declare const t4: unknown; declare const someUnion: 'abc' | 'def' | 'ghi'; declare const t5: "abc" | "def" | "ghi"; declare const pixelValue: number; -declare type PixelValueType = `${number}px`; +type PixelValueType = `${number}px`; declare const pixelString: PixelValueType; declare const pixelStringWithTemplate: PixelValueType; declare function getCardTitle(title: string): `test-${string}`; diff --git a/tests/baselines/reference/templateLiteralTypes2.symbols b/tests/baselines/reference/templateLiteralTypes2.symbols index 079a8520c99..8454302ed05 100644 --- a/tests/baselines/reference/templateLiteralTypes2.symbols +++ b/tests/baselines/reference/templateLiteralTypes2.symbols @@ -8,19 +8,19 @@ function ft1(s: string, n: number, u: 'foo' | 'bar' | 'baz', t >t : Symbol(t, Decl(templateLiteralTypes2.ts, 0, 78)) >T : Symbol(T, Decl(templateLiteralTypes2.ts, 0, 13)) - const c1 = `abc${s}`; // `abc${string}` + const c1 = `abc${s}`; >c1 : Symbol(c1, Decl(templateLiteralTypes2.ts, 1, 9)) >s : Symbol(s, Decl(templateLiteralTypes2.ts, 0, 31)) - const c2 = `abc${n}`; // `abc${number}` + const c2 = `abc${n}`; >c2 : Symbol(c2, Decl(templateLiteralTypes2.ts, 2, 9)) >n : Symbol(n, Decl(templateLiteralTypes2.ts, 0, 41)) - const c3 = `abc${u}`; // "abcfoo" | "abcbar" | "abcbaz" + const c3 = `abc${u}`; >c3 : Symbol(c3, Decl(templateLiteralTypes2.ts, 3, 9)) >u : Symbol(u, Decl(templateLiteralTypes2.ts, 0, 52)) - const c4 = `abc${t}`; // `abc${T} + const c4 = `abc${t}`; >c4 : Symbol(c4, Decl(templateLiteralTypes2.ts, 4, 9)) >t : Symbol(t, Decl(templateLiteralTypes2.ts, 0, 78)) @@ -54,7 +54,7 @@ function ft10(s: string) { >ft10 : Symbol(ft10, Decl(templateLiteralTypes2.ts, 13, 1)) >s : Symbol(s, Decl(templateLiteralTypes2.ts, 15, 14)) - const c1 = `abc${s}`; // Widening type `abc${string}` + const c1 = `abc${s}`; // Type string >c1 : Symbol(c1, Decl(templateLiteralTypes2.ts, 16, 9)) >s : Symbol(s, Decl(templateLiteralTypes2.ts, 15, 14)) @@ -62,7 +62,7 @@ function ft10(s: string) { >v1 : Symbol(v1, Decl(templateLiteralTypes2.ts, 17, 7)) >c1 : Symbol(c1, Decl(templateLiteralTypes2.ts, 16, 9)) - const c2 = c1; // Widening type `abc${string}` + const c2 = c1; // Type string >c2 : Symbol(c2, Decl(templateLiteralTypes2.ts, 18, 9)) >c1 : Symbol(c1, Decl(templateLiteralTypes2.ts, 16, 9)) @@ -92,7 +92,7 @@ function ft11(s: string, cond: boolean) { >s : Symbol(s, Decl(templateLiteralTypes2.ts, 26, 14)) >cond : Symbol(cond, Decl(templateLiteralTypes2.ts, 26, 24)) - const c1 = cond ? `foo${s}` : `bar${s}`; // widening `foo${string}` | widening `bar${string}` + const c1 = cond ? `foo${s}` : `bar${s}`; // string >c1 : Symbol(c1, Decl(templateLiteralTypes2.ts, 27, 9)) >cond : Symbol(cond, Decl(templateLiteralTypes2.ts, 26, 24)) >s : Symbol(s, Decl(templateLiteralTypes2.ts, 26, 14)) @@ -102,13 +102,13 @@ function ft11(s: string, cond: boolean) { >c2 : Symbol(c2, Decl(templateLiteralTypes2.ts, 28, 9)) >c1 : Symbol(c1, Decl(templateLiteralTypes2.ts, 27, 9)) - const c3 = cond ? c1 : c2; // `foo${string}` | `bar${string}` + const c3 = cond ? c1 : c2; // string >c3 : Symbol(c3, Decl(templateLiteralTypes2.ts, 29, 9)) >cond : Symbol(cond, Decl(templateLiteralTypes2.ts, 26, 24)) >c1 : Symbol(c1, Decl(templateLiteralTypes2.ts, 27, 9)) >c2 : Symbol(c2, Decl(templateLiteralTypes2.ts, 28, 9)) - const c4 = cond ? c3 : `baz${s}`; // `foo${string}` | `bar${string}` | widening `baz${string}` + const c4 = cond ? c3 : `baz${s}`; // string >c4 : Symbol(c4, Decl(templateLiteralTypes2.ts, 30, 9)) >cond : Symbol(cond, Decl(templateLiteralTypes2.ts, 26, 24)) >c3 : Symbol(c3, Decl(templateLiteralTypes2.ts, 29, 9)) @@ -126,7 +126,7 @@ function ft11(s: string, cond: boolean) { >v2 : Symbol(v2, Decl(templateLiteralTypes2.ts, 33, 7)) >c2 : Symbol(c2, Decl(templateLiteralTypes2.ts, 28, 9)) - let v3 = c3; // `foo${string}` | `bar${string}` + let v3 = c3; // string >v3 : Symbol(v3, Decl(templateLiteralTypes2.ts, 34, 7)) >c3 : Symbol(c3, Decl(templateLiteralTypes2.ts, 29, 9)) @@ -322,7 +322,7 @@ const id4 = `foo.bar.${someString}`; >id4 : Symbol(id4, Decl(templateLiteralTypes2.ts, 91, 5)) >someString : Symbol(someString, Decl(templateLiteralTypes2.ts, 88, 13)) -const t4 = takesLiteral(id4); // string +const t4 = takesLiteral(id4); // unknown >t4 : Symbol(t4, Decl(templateLiteralTypes2.ts, 92, 5)) >takesLiteral : Symbol(takesLiteral, Decl(templateLiteralTypes2.ts, 78, 1)) >id4 : Symbol(id4, Decl(templateLiteralTypes2.ts, 91, 5)) diff --git a/tests/baselines/reference/templateLiteralTypes2.types b/tests/baselines/reference/templateLiteralTypes2.types index e771c63c535..129a5255343 100644 --- a/tests/baselines/reference/templateLiteralTypes2.types +++ b/tests/baselines/reference/templateLiteralTypes2.types @@ -6,22 +6,22 @@ function ft1(s: string, n: number, u: 'foo' | 'bar' | 'baz', t >u : "foo" | "bar" | "baz" >t : T - const c1 = `abc${s}`; // `abc${string}` + const c1 = `abc${s}`; >c1 : string >`abc${s}` : string >s : string - const c2 = `abc${n}`; // `abc${number}` + const c2 = `abc${n}`; >c2 : string >`abc${n}` : string >n : number - const c3 = `abc${u}`; // "abcfoo" | "abcbar" | "abcbaz" + const c3 = `abc${u}`; >c3 : string >`abc${u}` : string >u : "foo" | "bar" | "baz" - const c4 = `abc${t}`; // `abc${T} + const c4 = `abc${t}`; >c4 : string >`abc${t}` : string >t : T @@ -60,7 +60,7 @@ function ft10(s: string) { >ft10 : (s: string) => void >s : string - const c1 = `abc${s}`; // Widening type `abc${string}` + const c1 = `abc${s}`; // Type string >c1 : string >`abc${s}` : string >s : string @@ -69,7 +69,7 @@ function ft10(s: string) { >v1 : string >c1 : string - const c2 = c1; // Widening type `abc${string}` + const c2 = c1; // Type string >c2 : string >c1 : string @@ -100,7 +100,7 @@ function ft11(s: string, cond: boolean) { >s : string >cond : boolean - const c1 = cond ? `foo${s}` : `bar${s}`; // widening `foo${string}` | widening `bar${string}` + const c1 = cond ? `foo${s}` : `bar${s}`; // string >c1 : string >cond ? `foo${s}` : `bar${s}` : string >cond : boolean @@ -113,14 +113,14 @@ function ft11(s: string, cond: boolean) { >c2 : `foo${string}` | `bar${string}` >c1 : string - const c3 = cond ? c1 : c2; // `foo${string}` | `bar${string}` + const c3 = cond ? c1 : c2; // string >c3 : string >cond ? c1 : c2 : string >cond : boolean >c1 : string >c2 : `foo${string}` | `bar${string}` - const c4 = cond ? c3 : `baz${s}`; // `foo${string}` | `bar${string}` | widening `baz${string}` + const c4 = cond ? c3 : `baz${s}`; // string >c4 : string >cond ? c3 : `baz${s}` : string >cond : boolean @@ -140,7 +140,7 @@ function ft11(s: string, cond: boolean) { >v2 : `foo${string}` | `bar${string}` >c2 : `foo${string}` | `bar${string}` - let v3 = c3; // `foo${string}` | `bar${string}` + let v3 = c3; // string >v3 : string >c3 : string @@ -347,7 +347,7 @@ const id4 = `foo.bar.${someString}`; >`foo.bar.${someString}` : string >someString : string -const t4 = takesLiteral(id4); // string +const t4 = takesLiteral(id4); // unknown >t4 : unknown >takesLiteral(id4) : unknown >takesLiteral : (literal: T) => T extends `foo.bar.${infer R}` ? R : unknown diff --git a/tests/baselines/reference/templateLiteralTypes3.js b/tests/baselines/reference/templateLiteralTypes3.js index 2a6056a2b3f..f25296c0aef 100644 --- a/tests/baselines/reference/templateLiteralTypes3.js +++ b/tests/baselines/reference/templateLiteralTypes3.js @@ -288,52 +288,52 @@ function ft1(t, u, u1, u2) { //// [templateLiteralTypes3.d.ts] -declare type Foo1 = T extends `*${infer U}*` ? U : never; -declare type T01 = Foo1<'hello'>; -declare type T02 = Foo1<'*hello*'>; -declare type T03 = Foo1<'**hello**'>; -declare type T04 = Foo1<`*${string}*`>; -declare type T05 = Foo1<`*${number}*`>; -declare type T06 = Foo1<`*${bigint}*`>; -declare type T07 = Foo1<`*${any}*`>; -declare type T08 = Foo1<`**${string}**`>; -declare type T09 = Foo1<`**${string}**${string}**`>; -declare type T10 = Foo1<`**${'a' | 'b' | 'c'}**`>; -declare type T11 = Foo1<`**${boolean}**${boolean}**`>; +type Foo1 = T extends `*${infer U}*` ? U : never; +type T01 = Foo1<'hello'>; +type T02 = Foo1<'*hello*'>; +type T03 = Foo1<'**hello**'>; +type T04 = Foo1<`*${string}*`>; +type T05 = Foo1<`*${number}*`>; +type T06 = Foo1<`*${bigint}*`>; +type T07 = Foo1<`*${any}*`>; +type T08 = Foo1<`**${string}**`>; +type T09 = Foo1<`**${string}**${string}**`>; +type T10 = Foo1<`**${'a' | 'b' | 'c'}**`>; +type T11 = Foo1<`**${boolean}**${boolean}**`>; declare function foo1(arg: `*${V}*`): V; declare function f1(s: string, n: number, b: boolean, t: T): void; -declare type Parts = T extends '' ? [] : T extends `${infer Head}${infer Tail}` ? [Head, ...Parts] : never; -declare type T20 = Parts<`abc`>; -declare type T21 = Parts<`*${string}*`>; -declare type T22 = Parts<`*${number}*`>; -declare type T23 = Parts<`*${number}*${string}*${bigint}*`>; +type Parts = T extends '' ? [] : T extends `${infer Head}${infer Tail}` ? [Head, ...Parts] : never; +type T20 = Parts<`abc`>; +type T21 = Parts<`*${string}*`>; +type T22 = Parts<`*${number}*`>; +type T23 = Parts<`*${number}*${string}*${bigint}*`>; declare function f2(): void; declare function f3(s: string, n: number, b: boolean, t: T): void; declare function f4(s: string, n: number, b: boolean, t: T): void; -declare type A = T extends `${infer U}.${infer V}` ? U | V : never; -declare type B = A<`test.1024`>; -declare type C = A<`test.${number}`>; -declare type D = T extends `${infer U}.${number}` ? U : never; -declare type E = D<`test.1024`>; -declare type F = D<`test.${number}`>; -declare type G = T extends `${infer U}.${infer V}` ? U | V : never; -declare type H = G<`test.hoge`>; -declare type I = G<`test.${string}`>; -declare type J = T extends `${infer U}.${string}` ? U : never; -declare type K = J<`test.hoge`>; -declare type L = J<`test.${string}`>; -declare type Templated = `${string} ${string}`; +type A = T extends `${infer U}.${infer V}` ? U | V : never; +type B = A<`test.1024`>; +type C = A<`test.${number}`>; +type D = T extends `${infer U}.${number}` ? U : never; +type E = D<`test.1024`>; +type F = D<`test.${number}`>; +type G = T extends `${infer U}.${infer V}` ? U | V : never; +type H = G<`test.hoge`>; +type I = G<`test.${string}`>; +type J = T extends `${infer U}.${string}` ? U : never; +type K = J<`test.hoge`>; +type L = J<`test.${string}`>; +type Templated = `${string} ${string}`; declare const value1: string; declare const templated1: Templated; declare const value2 = "abc"; declare const templated2: Templated; -declare type Prefixes = "foo" | "bar"; -declare type AllPrefixData = "foo:baz" | "bar:baz"; -declare type PrefixData

= `${P}:baz`; +type Prefixes = "foo" | "bar"; +type AllPrefixData = "foo:baz" | "bar:baz"; +type PrefixData

= `${P}:baz`; interface ITest

> { blah: string; } -declare type Schema = { +type Schema = { a: { b: { c: number; @@ -345,14 +345,14 @@ declare function ff1(x: `foo-${string}`, y: `${string}-bar`, z: `baz-${string}`) declare function ff2(x: `foo-${T}`, y: `${T}-bar`, z: `baz-${T}`): void; declare function ff3(x: string, y: `foo-${string}` | 'bar'): void; declare function ff4(x: string, y: `foo-${string}`): void; -declare type Action = { +type Action = { type: `${string}_REQUEST`; } | { type: `${string}_SUCCESS`; response: string; }; declare function reducer(action: Action): void; -declare type DotString = `${string}.${string}.${string}`; +type DotString = `${string}.${string}.${string}`; declare function noSpread

(args: P[]): P; declare function spread

(...args: P[]): P; declare function ft1(t: T, u: Uppercase, u1: Uppercase<`1.${T}.3`>, u2: Uppercase<`1.${T}.4`>): void; diff --git a/tests/baselines/reference/templateLiteralTypes4.js b/tests/baselines/reference/templateLiteralTypes4.js index 00ef80ae379..b8ba7e6ba86 100644 --- a/tests/baselines/reference/templateLiteralTypes4.js +++ b/tests/baselines/reference/templateLiteralTypes4.js @@ -320,30 +320,30 @@ f4("**false**"); // false | "false" //// [templateLiteralTypes4.d.ts] -declare type TNumber0 = "100" extends `${infer N extends number}` ? N : never; -declare type TNumber1 = "-100" extends `${infer N extends number}` ? N : never; -declare type TNumber2 = "1.1" extends `${infer N extends number}` ? N : never; -declare type TNumber3 = "8e-11" extends `${infer N extends number}` ? N : never; -declare type TNumber4 = "0x10" extends `${infer N extends number}` ? N : never; -declare type TNumber5 = "0o10" extends `${infer N extends number}` ? N : never; -declare type TNumber6 = "0b10" extends `${infer N extends number}` ? N : never; -declare type TNumber7 = "10e2" extends `${infer N extends number}` ? N : never; -declare type TNumber8 = "abcd" extends `${infer N extends number}` ? N : never; -declare type TBigInt0 = "100" extends `${infer N extends bigint}` ? N : never; -declare type TBigInt1 = "-100" extends `${infer N extends bigint}` ? N : never; -declare type TBigInt2 = "0x10" extends `${infer N extends bigint}` ? N : never; -declare type TBigInt3 = "0o10" extends `${infer N extends bigint}` ? N : never; -declare type TBigInt4 = "0b10" extends `${infer N extends bigint}` ? N : never; -declare type TBigInt5 = "1.1" extends `${infer N extends bigint}` ? N : never; -declare type TBigInt6 = "10e2" extends `${infer N extends bigint}` ? N : never; -declare type TBigInt7 = "abcd" extends `${infer N extends bigint}` ? N : never; -declare type TBoolean0 = "true" extends `${infer T extends boolean}` ? T : never; -declare type TBoolean1 = "false" extends `${infer T extends boolean}` ? T : never; -declare type TBoolean2 = "abcd" extends `${infer T extends boolean}` ? T : never; -declare type TNull0 = "null" extends `${infer T extends null}` ? T : never; -declare type TNull1 = "abcd" extends `${infer T extends null}` ? T : never; -declare type TUndefined0 = "undefined" extends `${infer T extends undefined}` ? T : never; -declare type TUndefined1 = "abcd" extends `${infer T extends undefined}` ? T : never; +type TNumber0 = "100" extends `${infer N extends number}` ? N : never; +type TNumber1 = "-100" extends `${infer N extends number}` ? N : never; +type TNumber2 = "1.1" extends `${infer N extends number}` ? N : never; +type TNumber3 = "8e-11" extends `${infer N extends number}` ? N : never; +type TNumber4 = "0x10" extends `${infer N extends number}` ? N : never; +type TNumber5 = "0o10" extends `${infer N extends number}` ? N : never; +type TNumber6 = "0b10" extends `${infer N extends number}` ? N : never; +type TNumber7 = "10e2" extends `${infer N extends number}` ? N : never; +type TNumber8 = "abcd" extends `${infer N extends number}` ? N : never; +type TBigInt0 = "100" extends `${infer N extends bigint}` ? N : never; +type TBigInt1 = "-100" extends `${infer N extends bigint}` ? N : never; +type TBigInt2 = "0x10" extends `${infer N extends bigint}` ? N : never; +type TBigInt3 = "0o10" extends `${infer N extends bigint}` ? N : never; +type TBigInt4 = "0b10" extends `${infer N extends bigint}` ? N : never; +type TBigInt5 = "1.1" extends `${infer N extends bigint}` ? N : never; +type TBigInt6 = "10e2" extends `${infer N extends bigint}` ? N : never; +type TBigInt7 = "abcd" extends `${infer N extends bigint}` ? N : never; +type TBoolean0 = "true" extends `${infer T extends boolean}` ? T : never; +type TBoolean1 = "false" extends `${infer T extends boolean}` ? T : never; +type TBoolean2 = "abcd" extends `${infer T extends boolean}` ? T : never; +type TNull0 = "null" extends `${infer T extends null}` ? T : never; +type TNull1 = "abcd" extends `${infer T extends null}` ? T : never; +type TUndefined0 = "undefined" extends `${infer T extends undefined}` ? T : never; +type TUndefined1 = "abcd" extends `${infer T extends undefined}` ? T : never; declare const enum StringLiteralEnum { Zero = "0", True = "true", @@ -351,102 +351,102 @@ declare const enum StringLiteralEnum { Undefined = "undefined", Null = "null" } -declare type TStringLiteralEnum0 = "0" extends `${infer T extends StringLiteralEnum}` ? T : never; +type TStringLiteralEnum0 = "0" extends `${infer T extends StringLiteralEnum}` ? T : never; declare const enum NumberLiteralEnum { Zero = 0, One = 1 } -declare type TNumberLiteralEnum0 = "0" extends `${infer T extends NumberLiteralEnum}` ? T : never; +type TNumberLiteralEnum0 = "0" extends `${infer T extends NumberLiteralEnum}` ? T : never; declare const enum NonLiteralEnum { Zero = 0, One = 1 } -declare type TNonLiteralEnum0 = "0" extends `${infer T extends NonLiteralEnum}` ? T : never; -declare type PString00 = "0" extends `${infer T extends string | StringLiteralEnum}` ? T : never; -declare type PString01 = "0" extends `${infer T extends string | number}` ? T : never; -declare type PString02 = "0" extends `${infer T extends string | NonLiteralEnum}` ? T : never; -declare type PString03 = "0" extends `${infer T extends string | 0}` ? T : never; -declare type PString04 = "0" extends `${infer T extends string | NumberLiteralEnum}` ? T : never; -declare type PString05 = "0" extends `${infer T extends string | bigint}` ? T : never; -declare type PString06 = "0" extends `${infer T extends string | 0n}` ? T : never; -declare type PString07 = "true" extends `${infer T extends string | boolean}` ? T : never; -declare type PString08 = "false" extends `${infer T extends string | boolean}` ? T : never; -declare type PString09 = "true" extends `${infer T extends string | true}` ? T : never; -declare type PString10 = "false" extends `${infer T extends string | false}` ? T : never; -declare type PString11 = "undefined" extends `${infer T extends string | undefined}` ? T : never; -declare type PString12 = "null" extends `${infer T extends string | null}` ? T : never; -declare type PTemplate00 = "10" extends `${infer T extends `1${string}` | number}` ? T : never; -declare type PTemplate01 = "10" extends `${infer T extends `1${string}` | NonLiteralEnum}` ? T : never; -declare type PTemplate02 = "10" extends `${infer T extends `1${string}` | 10}` ? T : never; -declare type PTemplate03 = "10" extends `${infer T extends `1${string}` | NumberLiteralEnum}` ? T : never; -declare type PTemplate04 = "10" extends `${infer T extends `1${string}` | bigint}` ? T : never; -declare type PTemplate05 = "10" extends `${infer T extends `1${string}` | 10n}` ? T : never; -declare type PTemplate06 = "true" extends `${infer T extends `${string}e` | boolean}` ? T : never; -declare type PTemplate07 = "false" extends `${infer T extends `${string}e` | boolean}` ? T : never; -declare type PTemplate08 = "true" extends `${infer T extends `${"t"}${string}` | true}` ? T : never; -declare type PTemplate09 = "false" extends `${infer T extends `${"f"}${string}` | false}` ? T : never; -declare type PTemplate10 = "undefined" extends `${infer T extends `${"u"}${string}` | undefined}` ? T : never; -declare type PTemplate11 = "null" extends `${infer T extends `${"n"}${string}` | null}` ? T : never; -declare type PStringLiteral00 = "0" extends `${infer T extends "0" | number}` ? T : never; -declare type PStringLiteral01 = "0" extends `${infer T extends "0" | NonLiteralEnum}` ? T : never; -declare type PStringLiteral02 = "0" extends `${infer T extends "0" | 0}` ? T : never; -declare type PStringLiteral03 = "0" extends `${infer T extends "0" | NumberLiteralEnum}` ? T : never; -declare type PStringLiteral04 = "0" extends `${infer T extends "0" | bigint}` ? T : never; -declare type PStringLiteral05 = "0" extends `${infer T extends "0" | 0n}` ? T : never; -declare type PStringLiteral06 = "true" extends `${infer T extends "true" | "false" | boolean}` ? T : never; -declare type PStringLiteral07 = "false" extends `${infer T extends "true" | "false" | boolean}` ? T : never; -declare type PStringLiteral08 = "true" extends `${infer T extends "true" | true}` ? T : never; -declare type PStringLiteral09 = "false" extends `${infer T extends "false" | false}` ? T : never; -declare type PStringLiteral10 = "undefined" extends `${infer T extends "undefined" | undefined}` ? T : never; -declare type PStringLiteral11 = "null" extends `${infer T extends "null" | null}` ? T : never; -declare type PStringLiteralEnum00 = "0" extends `${infer T extends StringLiteralEnum | number}` ? T : never; -declare type PStringLiteralEnum01 = "0" extends `${infer T extends StringLiteralEnum | NonLiteralEnum}` ? T : never; -declare type PStringLiteralEnum02 = "0" extends `${infer T extends StringLiteralEnum | 0}` ? T : never; -declare type PStringLiteralEnum03 = "0" extends `${infer T extends StringLiteralEnum | NumberLiteralEnum}` ? T : never; -declare type PStringLiteralEnum04 = "0" extends `${infer T extends StringLiteralEnum | bigint}` ? T : never; -declare type PStringLiteralEnum05 = "0" extends `${infer T extends StringLiteralEnum | 0n}` ? T : never; -declare type PStringLiteralEnum06 = "true" extends `${infer T extends StringLiteralEnum | boolean}` ? T : never; -declare type PStringLiteralEnum07 = "false" extends `${infer T extends StringLiteralEnum | boolean}` ? T : never; -declare type PStringLiteralEnum08 = "true" extends `${infer T extends StringLiteralEnum | true}` ? T : never; -declare type PStringLiteralEnum09 = "false" extends `${infer T extends StringLiteralEnum | false}` ? T : never; -declare type PStringLiteralEnum10 = "undefined" extends `${infer T extends StringLiteralEnum | undefined}` ? T : never; -declare type PStringLiteralEnum11 = "null" extends `${infer T extends StringLiteralEnum | null}` ? T : never; -declare type PNumber0 = "0" extends `${infer T extends number | NonLiteralEnum}` ? T : never; -declare type PNumber1 = "0" extends `${infer T extends number | NumberLiteralEnum}` ? T : never; -declare type PNumber2 = "0" extends `${infer T extends number | bigint}` ? T : never; -declare type PNumber3 = "0" extends `${infer T extends number | 0n}` ? T : never; -declare type PEnum0 = "0" extends `${infer T extends NonLiteralEnum | NumberLiteralEnum}` ? T : never; -declare type PEnum1 = "0" extends `${infer T extends NonLiteralEnum | bigint}` ? T : never; -declare type PEnum2 = "0" extends `${infer T extends NonLiteralEnum | 0n}` ? T : never; -declare type PNumberLiteral0 = "0" extends `${infer T extends 0 | bigint}` ? T : never; -declare type PNumberLiteral1 = "0" extends `${infer T extends 0 | 0n}` ? T : never; -declare type PNumberLiteralEnum0 = "0" extends `${infer T extends NumberLiteralEnum | bigint}` ? T : never; -declare type PNumberLiteralEnum1 = "0" extends `${infer T extends NumberLiteralEnum | 0n}` ? T : never; -declare type PExclude0 = "0" extends `${infer T extends "1" | number}` ? T : never; -declare type PExclude1 = "0" extends `${infer T extends `1${string}` | number}` ? T : never; -declare type PExclude2 = "0" extends `${infer T extends 1 | bigint}` ? T : never; -declare type PExclude3 = "0" extends `${infer T extends NumberLiteralEnum.One | bigint}` ? T : never; -declare type PExclude4 = "100000000000000000000000" extends `${infer T extends number | bigint}` ? T : never; -declare type TPrefix0 = "100" extends `${infer T extends number}${string}` ? T : never; -declare type TPrefix1 = "trueabc" extends `${infer T extends boolean}${string}` ? T : never; -declare type TPrefix2 = `100:${string}` extends `${infer T extends number}:${string}` ? T : never; -declare type ExtractPrimitives = T | (T extends `${infer U extends number}` ? U : never) | (T extends `${infer U extends bigint}` ? U : never) | (T extends `${infer U extends boolean | null | undefined}` ? U : never); -declare type TExtract0 = ExtractPrimitives<"100">; -declare type TExtract1 = ExtractPrimitives<"1.1">; -declare type TExtract2 = ExtractPrimitives<"true">; -declare type IndexFor = S extends `${infer N extends number}` ? N : never; -declare type IndicesOf = IndexFor>; +type TNonLiteralEnum0 = "0" extends `${infer T extends NonLiteralEnum}` ? T : never; +type PString00 = "0" extends `${infer T extends string | StringLiteralEnum}` ? T : never; +type PString01 = "0" extends `${infer T extends string | number}` ? T : never; +type PString02 = "0" extends `${infer T extends string | NonLiteralEnum}` ? T : never; +type PString03 = "0" extends `${infer T extends string | 0}` ? T : never; +type PString04 = "0" extends `${infer T extends string | NumberLiteralEnum}` ? T : never; +type PString05 = "0" extends `${infer T extends string | bigint}` ? T : never; +type PString06 = "0" extends `${infer T extends string | 0n}` ? T : never; +type PString07 = "true" extends `${infer T extends string | boolean}` ? T : never; +type PString08 = "false" extends `${infer T extends string | boolean}` ? T : never; +type PString09 = "true" extends `${infer T extends string | true}` ? T : never; +type PString10 = "false" extends `${infer T extends string | false}` ? T : never; +type PString11 = "undefined" extends `${infer T extends string | undefined}` ? T : never; +type PString12 = "null" extends `${infer T extends string | null}` ? T : never; +type PTemplate00 = "10" extends `${infer T extends `1${string}` | number}` ? T : never; +type PTemplate01 = "10" extends `${infer T extends `1${string}` | NonLiteralEnum}` ? T : never; +type PTemplate02 = "10" extends `${infer T extends `1${string}` | 10}` ? T : never; +type PTemplate03 = "10" extends `${infer T extends `1${string}` | NumberLiteralEnum}` ? T : never; +type PTemplate04 = "10" extends `${infer T extends `1${string}` | bigint}` ? T : never; +type PTemplate05 = "10" extends `${infer T extends `1${string}` | 10n}` ? T : never; +type PTemplate06 = "true" extends `${infer T extends `${string}e` | boolean}` ? T : never; +type PTemplate07 = "false" extends `${infer T extends `${string}e` | boolean}` ? T : never; +type PTemplate08 = "true" extends `${infer T extends `${"t"}${string}` | true}` ? T : never; +type PTemplate09 = "false" extends `${infer T extends `${"f"}${string}` | false}` ? T : never; +type PTemplate10 = "undefined" extends `${infer T extends `${"u"}${string}` | undefined}` ? T : never; +type PTemplate11 = "null" extends `${infer T extends `${"n"}${string}` | null}` ? T : never; +type PStringLiteral00 = "0" extends `${infer T extends "0" | number}` ? T : never; +type PStringLiteral01 = "0" extends `${infer T extends "0" | NonLiteralEnum}` ? T : never; +type PStringLiteral02 = "0" extends `${infer T extends "0" | 0}` ? T : never; +type PStringLiteral03 = "0" extends `${infer T extends "0" | NumberLiteralEnum}` ? T : never; +type PStringLiteral04 = "0" extends `${infer T extends "0" | bigint}` ? T : never; +type PStringLiteral05 = "0" extends `${infer T extends "0" | 0n}` ? T : never; +type PStringLiteral06 = "true" extends `${infer T extends "true" | "false" | boolean}` ? T : never; +type PStringLiteral07 = "false" extends `${infer T extends "true" | "false" | boolean}` ? T : never; +type PStringLiteral08 = "true" extends `${infer T extends "true" | true}` ? T : never; +type PStringLiteral09 = "false" extends `${infer T extends "false" | false}` ? T : never; +type PStringLiteral10 = "undefined" extends `${infer T extends "undefined" | undefined}` ? T : never; +type PStringLiteral11 = "null" extends `${infer T extends "null" | null}` ? T : never; +type PStringLiteralEnum00 = "0" extends `${infer T extends StringLiteralEnum | number}` ? T : never; +type PStringLiteralEnum01 = "0" extends `${infer T extends StringLiteralEnum | NonLiteralEnum}` ? T : never; +type PStringLiteralEnum02 = "0" extends `${infer T extends StringLiteralEnum | 0}` ? T : never; +type PStringLiteralEnum03 = "0" extends `${infer T extends StringLiteralEnum | NumberLiteralEnum}` ? T : never; +type PStringLiteralEnum04 = "0" extends `${infer T extends StringLiteralEnum | bigint}` ? T : never; +type PStringLiteralEnum05 = "0" extends `${infer T extends StringLiteralEnum | 0n}` ? T : never; +type PStringLiteralEnum06 = "true" extends `${infer T extends StringLiteralEnum | boolean}` ? T : never; +type PStringLiteralEnum07 = "false" extends `${infer T extends StringLiteralEnum | boolean}` ? T : never; +type PStringLiteralEnum08 = "true" extends `${infer T extends StringLiteralEnum | true}` ? T : never; +type PStringLiteralEnum09 = "false" extends `${infer T extends StringLiteralEnum | false}` ? T : never; +type PStringLiteralEnum10 = "undefined" extends `${infer T extends StringLiteralEnum | undefined}` ? T : never; +type PStringLiteralEnum11 = "null" extends `${infer T extends StringLiteralEnum | null}` ? T : never; +type PNumber0 = "0" extends `${infer T extends number | NonLiteralEnum}` ? T : never; +type PNumber1 = "0" extends `${infer T extends number | NumberLiteralEnum}` ? T : never; +type PNumber2 = "0" extends `${infer T extends number | bigint}` ? T : never; +type PNumber3 = "0" extends `${infer T extends number | 0n}` ? T : never; +type PEnum0 = "0" extends `${infer T extends NonLiteralEnum | NumberLiteralEnum}` ? T : never; +type PEnum1 = "0" extends `${infer T extends NonLiteralEnum | bigint}` ? T : never; +type PEnum2 = "0" extends `${infer T extends NonLiteralEnum | 0n}` ? T : never; +type PNumberLiteral0 = "0" extends `${infer T extends 0 | bigint}` ? T : never; +type PNumberLiteral1 = "0" extends `${infer T extends 0 | 0n}` ? T : never; +type PNumberLiteralEnum0 = "0" extends `${infer T extends NumberLiteralEnum | bigint}` ? T : never; +type PNumberLiteralEnum1 = "0" extends `${infer T extends NumberLiteralEnum | 0n}` ? T : never; +type PExclude0 = "0" extends `${infer T extends "1" | number}` ? T : never; +type PExclude1 = "0" extends `${infer T extends `1${string}` | number}` ? T : never; +type PExclude2 = "0" extends `${infer T extends 1 | bigint}` ? T : never; +type PExclude3 = "0" extends `${infer T extends NumberLiteralEnum.One | bigint}` ? T : never; +type PExclude4 = "100000000000000000000000" extends `${infer T extends number | bigint}` ? T : never; +type TPrefix0 = "100" extends `${infer T extends number}${string}` ? T : never; +type TPrefix1 = "trueabc" extends `${infer T extends boolean}${string}` ? T : never; +type TPrefix2 = `100:${string}` extends `${infer T extends number}:${string}` ? T : never; +type ExtractPrimitives = T | (T extends `${infer U extends number}` ? U : never) | (T extends `${infer U extends bigint}` ? U : never) | (T extends `${infer U extends boolean | null | undefined}` ? U : never); +type TExtract0 = ExtractPrimitives<"100">; +type TExtract1 = ExtractPrimitives<"1.1">; +type TExtract2 = ExtractPrimitives<"true">; +type IndexFor = S extends `${infer N extends number}` ? N : never; +type IndicesOf = IndexFor>; interface FieldDefinition { readonly name: string; readonly type: "i8" | "i16" | "i32" | "i64" | "u8" | "u16" | "u32" | "u64" | "f32" | "f64"; } -declare type FieldType = T extends "i8" | "i16" | "i32" | "u8" | "u16" | "u32" | "f32" | "f64" ? number : T extends "f32" | "f64" ? bigint : never; -declare type TypedObjectNamedMembers = { +type FieldType = T extends "i8" | "i16" | "i32" | "u8" | "u16" | "u32" | "f32" | "f64" ? number : T extends "f32" | "f64" ? bigint : never; +type TypedObjectNamedMembers = { [P in TDef[number]["name"]]: FieldType["type"]>; }; -declare type TypedObjectOrdinalMembers = { +type TypedObjectOrdinalMembers = { [I in Extract]: FieldType["type"]>; }; interface TypedObjectMembers { @@ -459,8 +459,8 @@ interface TypedObjectMembers { getIndex>(index: I): FieldType["type"]>; setIndex>(index: I, value: FieldType["type"]>): void; } -declare type TypedObject = TypedObjectMembers & TypedObjectNamedMembers & TypedObjectOrdinalMembers; -declare type Point = TypedObject<[ +type TypedObject = TypedObjectMembers & TypedObjectNamedMembers & TypedObjectOrdinalMembers; +type Point = TypedObject<[ { name: "x"; type: "f64"; diff --git a/tests/baselines/reference/thisInObjectJs.js b/tests/baselines/reference/thisInObjectJs.js new file mode 100644 index 00000000000..e70e3c8eb6c --- /dev/null +++ b/tests/baselines/reference/thisInObjectJs.js @@ -0,0 +1,39 @@ +//// [index.js] +export { } +let obj = { + x: 10, + y: [1], + fun: function() { + this.x = 1 + this/*1*/ + }, + f2: function() { + this.x + this/*2*/ + }, + f3: (function() { + this.x = 1 + this/*3*/ + }), +} + + +//// [index.js] +"use strict"; +exports.__esModule = true; +var obj = { + x: 10, + y: [1], + fun: function () { + this.x = 1; + this; /*1*/ + }, + f2: function () { + this.x; + this; /*2*/ + }, + f3: (function () { + this.x = 1; + this; /*3*/ + }) +}; diff --git a/tests/baselines/reference/thisInObjectJs.symbols b/tests/baselines/reference/thisInObjectJs.symbols new file mode 100644 index 00000000000..f0ed418f6a6 --- /dev/null +++ b/tests/baselines/reference/thisInObjectJs.symbols @@ -0,0 +1,45 @@ +=== tests/cases/compiler/index.js === +export { } +let obj = { +>obj : Symbol(obj, Decl(index.js, 1, 3)) + + x: 10, +>x : Symbol(x, Decl(index.js, 1, 11)) + + y: [1], +>y : Symbol(y, Decl(index.js, 2, 8)) + + fun: function() { +>fun : Symbol(fun, Decl(index.js, 3, 9)) + + this.x = 1 +>this.x : Symbol(x, Decl(index.js, 1, 11)) +>this : Symbol(obj, Decl(index.js, 1, 9)) +>x : Symbol(fun.x, Decl(index.js, 4, 19)) + + this/*1*/ +>this : Symbol(obj, Decl(index.js, 1, 9)) + + }, + f2: function() { +>f2 : Symbol(f2, Decl(index.js, 7, 4)) + + this.x +>this.x : Symbol(x, Decl(index.js, 1, 11)) +>this : Symbol(obj, Decl(index.js, 1, 9)) +>x : Symbol(x, Decl(index.js, 1, 11)) + + this/*2*/ +>this : Symbol(obj, Decl(index.js, 1, 9)) + + }, + f3: (function() { +>f3 : Symbol(f3, Decl(index.js, 11, 4)) + + this.x = 1 +>x : Symbol((Anonymous function).x, Decl(index.js, 12, 19)) + + this/*3*/ + }), +} + diff --git a/tests/baselines/reference/thisInObjectJs.types b/tests/baselines/reference/thisInObjectJs.types new file mode 100644 index 00000000000..3752241f537 --- /dev/null +++ b/tests/baselines/reference/thisInObjectJs.types @@ -0,0 +1,61 @@ +=== tests/cases/compiler/index.js === +export { } +let obj = { +>obj : { x: number; y: number[]; fun: typeof fun; f2: () => void; f3: typeof (Anonymous function); } +>{ x: 10, y: [1], fun: function() { this.x = 1 this/*1*/ }, f2: function() { this.x this/*2*/ }, f3: (function() { this.x = 1 this/*3*/ }),} : { x: number; y: number[]; fun: typeof fun; f2: () => void; f3: typeof (Anonymous function); } + + x: 10, +>x : number +>10 : 10 + + y: [1], +>y : number[] +>[1] : number[] +>1 : 1 + + fun: function() { +>fun : typeof fun +>function() { this.x = 1 this/*1*/ } : typeof fun + + this.x = 1 +>this.x = 1 : 1 +>this.x : number +>this : { x: number; y: number[]; fun: typeof fun; f2: () => void; f3: typeof (Anonymous function); } +>x : number +>1 : 1 + + this/*1*/ +>this : { x: number; y: number[]; fun: typeof fun; f2: () => void; f3: typeof (Anonymous function); } + + }, + f2: function() { +>f2 : () => void +>function() { this.x this/*2*/ } : () => void + + this.x +>this.x : number +>this : { x: number; y: number[]; fun: typeof fun; f2: () => void; f3: typeof (Anonymous function); } +>x : number + + this/*2*/ +>this : { x: number; y: number[]; fun: typeof fun; f2: () => void; f3: typeof (Anonymous function); } + + }, + f3: (function() { +>f3 : typeof (Anonymous function) +>(function() { this.x = 1 this/*3*/ }) : typeof (Anonymous function) +>function() { this.x = 1 this/*3*/ } : typeof (Anonymous function) + + this.x = 1 +>this.x = 1 : 1 +>this.x : any +>this : any +>x : any +>1 : 1 + + this/*3*/ +>this : any + + }), +} + diff --git a/tests/baselines/reference/thisTypeInObjectLiterals2.js b/tests/baselines/reference/thisTypeInObjectLiterals2.js index ca62ee37665..320edfc61c3 100644 --- a/tests/baselines/reference/thisTypeInObjectLiterals2.js +++ b/tests/baselines/reference/thisTypeInObjectLiterals2.js @@ -415,7 +415,7 @@ declare let obj1: { readonly d: number; e: string; }; -declare type Point = { +type Point = { x: number; y: number; z?: number; @@ -427,7 +427,7 @@ declare let p3: Point | undefined; declare let p4: Point | null | undefined; declare function f1(p: Point): void; declare function f2(p: Point | null | undefined): void; -declare type ObjectDescriptor = { +type ObjectDescriptor = { data?: D; methods?: M & ThisType; }; @@ -438,7 +438,7 @@ declare let x1: { } & { moveBy(dx: number, dy: number): void; }; -declare type ObjectDescriptor2 = ThisType & { +type ObjectDescriptor2 = ThisType & { data?: D; methods?: M; }; @@ -449,12 +449,12 @@ declare let x2: { } & { moveBy(dx: number, dy: number): void; }; -declare type PropDesc = { +type PropDesc = { value?: T; get?(): T; set?(value: T): void; }; -declare type PropDescMap = { +type PropDescMap = { [K in keyof T]: PropDesc; }; declare function defineProp(obj: T, name: K, desc: PropDesc & ThisType): T & Record; @@ -465,17 +465,17 @@ declare let p12: Point & { foo: number; bar: number; }; -declare type Accessors = { +type Accessors = { [K in keyof T]: (() => T[K]) | Computed; }; -declare type Dictionary = { +type Dictionary = { [x: string]: T; }; -declare type Computed = { +type Computed = { get?(): T; set?(value: T): void; }; -declare type VueOptions = ThisType & { +type VueOptions = ThisType & { data?: D | (() => D); methods?: M; computed?: Accessors

; diff --git a/tests/baselines/reference/topLevelAwait.1(module=es2022,target=es2015).symbols b/tests/baselines/reference/topLevelAwait.1(module=es2022,target=es2015).symbols index 29020fceb3a..1f089db0d04 100644 --- a/tests/baselines/reference/topLevelAwait.1(module=es2022,target=es2015).symbols +++ b/tests/baselines/reference/topLevelAwait.1(module=es2022,target=es2015).symbols @@ -129,9 +129,9 @@ export { _await as await }; // for-await-of const arr = [Promise.resolve()]; >arr : Symbol(arr, Decl(other.ts, 6, 5)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) for await (const item of arr) { >item : Symbol(item, Decl(other.ts, 8, 16)) diff --git a/tests/baselines/reference/topLevelAwait.1(module=es2022,target=es2015).types b/tests/baselines/reference/topLevelAwait.1(module=es2022,target=es2015).types index c3d2a0c0a9b..6501c2788bf 100644 --- a/tests/baselines/reference/topLevelAwait.1(module=es2022,target=es2015).types +++ b/tests/baselines/reference/topLevelAwait.1(module=es2022,target=es2015).types @@ -181,9 +181,9 @@ const arr = [Promise.resolve()]; >arr : Promise[] >[Promise.resolve()] : Promise[] >Promise.resolve() : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } for await (const item of arr) { >item : void diff --git a/tests/baselines/reference/topLevelAwait.1(module=es2022,target=es2017).symbols b/tests/baselines/reference/topLevelAwait.1(module=es2022,target=es2017).symbols index 29020fceb3a..1f089db0d04 100644 --- a/tests/baselines/reference/topLevelAwait.1(module=es2022,target=es2017).symbols +++ b/tests/baselines/reference/topLevelAwait.1(module=es2022,target=es2017).symbols @@ -129,9 +129,9 @@ export { _await as await }; // for-await-of const arr = [Promise.resolve()]; >arr : Symbol(arr, Decl(other.ts, 6, 5)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) for await (const item of arr) { >item : Symbol(item, Decl(other.ts, 8, 16)) diff --git a/tests/baselines/reference/topLevelAwait.1(module=es2022,target=es2017).types b/tests/baselines/reference/topLevelAwait.1(module=es2022,target=es2017).types index c3d2a0c0a9b..6501c2788bf 100644 --- a/tests/baselines/reference/topLevelAwait.1(module=es2022,target=es2017).types +++ b/tests/baselines/reference/topLevelAwait.1(module=es2022,target=es2017).types @@ -181,9 +181,9 @@ const arr = [Promise.resolve()]; >arr : Promise[] >[Promise.resolve()] : Promise[] >Promise.resolve() : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } for await (const item of arr) { >item : void diff --git a/tests/baselines/reference/topLevelAwait.1(module=esnext,target=es2015).symbols b/tests/baselines/reference/topLevelAwait.1(module=esnext,target=es2015).symbols index 29020fceb3a..1f089db0d04 100644 --- a/tests/baselines/reference/topLevelAwait.1(module=esnext,target=es2015).symbols +++ b/tests/baselines/reference/topLevelAwait.1(module=esnext,target=es2015).symbols @@ -129,9 +129,9 @@ export { _await as await }; // for-await-of const arr = [Promise.resolve()]; >arr : Symbol(arr, Decl(other.ts, 6, 5)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) for await (const item of arr) { >item : Symbol(item, Decl(other.ts, 8, 16)) diff --git a/tests/baselines/reference/topLevelAwait.1(module=esnext,target=es2015).types b/tests/baselines/reference/topLevelAwait.1(module=esnext,target=es2015).types index c3d2a0c0a9b..6501c2788bf 100644 --- a/tests/baselines/reference/topLevelAwait.1(module=esnext,target=es2015).types +++ b/tests/baselines/reference/topLevelAwait.1(module=esnext,target=es2015).types @@ -181,9 +181,9 @@ const arr = [Promise.resolve()]; >arr : Promise[] >[Promise.resolve()] : Promise[] >Promise.resolve() : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } for await (const item of arr) { >item : void diff --git a/tests/baselines/reference/topLevelAwait.1(module=esnext,target=es2017).symbols b/tests/baselines/reference/topLevelAwait.1(module=esnext,target=es2017).symbols index 29020fceb3a..1f089db0d04 100644 --- a/tests/baselines/reference/topLevelAwait.1(module=esnext,target=es2017).symbols +++ b/tests/baselines/reference/topLevelAwait.1(module=esnext,target=es2017).symbols @@ -129,9 +129,9 @@ export { _await as await }; // for-await-of const arr = [Promise.resolve()]; >arr : Symbol(arr, Decl(other.ts, 6, 5)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) for await (const item of arr) { >item : Symbol(item, Decl(other.ts, 8, 16)) diff --git a/tests/baselines/reference/topLevelAwait.1(module=esnext,target=es2017).types b/tests/baselines/reference/topLevelAwait.1(module=esnext,target=es2017).types index c3d2a0c0a9b..6501c2788bf 100644 --- a/tests/baselines/reference/topLevelAwait.1(module=esnext,target=es2017).types +++ b/tests/baselines/reference/topLevelAwait.1(module=esnext,target=es2017).types @@ -181,9 +181,9 @@ const arr = [Promise.resolve()]; >arr : Promise[] >[Promise.resolve()] : Promise[] >Promise.resolve() : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } for await (const item of arr) { >item : void diff --git a/tests/baselines/reference/topLevelAwait.1(module=system,target=es2015).symbols b/tests/baselines/reference/topLevelAwait.1(module=system,target=es2015).symbols index 29020fceb3a..1f089db0d04 100644 --- a/tests/baselines/reference/topLevelAwait.1(module=system,target=es2015).symbols +++ b/tests/baselines/reference/topLevelAwait.1(module=system,target=es2015).symbols @@ -129,9 +129,9 @@ export { _await as await }; // for-await-of const arr = [Promise.resolve()]; >arr : Symbol(arr, Decl(other.ts, 6, 5)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) for await (const item of arr) { >item : Symbol(item, Decl(other.ts, 8, 16)) diff --git a/tests/baselines/reference/topLevelAwait.1(module=system,target=es2015).types b/tests/baselines/reference/topLevelAwait.1(module=system,target=es2015).types index c3d2a0c0a9b..6501c2788bf 100644 --- a/tests/baselines/reference/topLevelAwait.1(module=system,target=es2015).types +++ b/tests/baselines/reference/topLevelAwait.1(module=system,target=es2015).types @@ -181,9 +181,9 @@ const arr = [Promise.resolve()]; >arr : Promise[] >[Promise.resolve()] : Promise[] >Promise.resolve() : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } for await (const item of arr) { >item : void diff --git a/tests/baselines/reference/topLevelAwait.1(module=system,target=es2017).symbols b/tests/baselines/reference/topLevelAwait.1(module=system,target=es2017).symbols index 29020fceb3a..1f089db0d04 100644 --- a/tests/baselines/reference/topLevelAwait.1(module=system,target=es2017).symbols +++ b/tests/baselines/reference/topLevelAwait.1(module=system,target=es2017).symbols @@ -129,9 +129,9 @@ export { _await as await }; // for-await-of const arr = [Promise.resolve()]; >arr : Symbol(arr, Decl(other.ts, 6, 5)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) for await (const item of arr) { >item : Symbol(item, Decl(other.ts, 8, 16)) diff --git a/tests/baselines/reference/topLevelAwait.1(module=system,target=es2017).types b/tests/baselines/reference/topLevelAwait.1(module=system,target=es2017).types index c3d2a0c0a9b..6501c2788bf 100644 --- a/tests/baselines/reference/topLevelAwait.1(module=system,target=es2017).types +++ b/tests/baselines/reference/topLevelAwait.1(module=system,target=es2017).types @@ -181,9 +181,9 @@ const arr = [Promise.resolve()]; >arr : Promise[] >[Promise.resolve()] : Promise[] >Promise.resolve() : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } for await (const item of arr) { >item : void diff --git a/tests/baselines/reference/topLevelAwaitNonModule(module=es2022).symbols b/tests/baselines/reference/topLevelAwaitNonModule(module=es2022).symbols index 2e6a266f51a..0983572ac45 100644 --- a/tests/baselines/reference/topLevelAwaitNonModule(module=es2022).symbols +++ b/tests/baselines/reference/topLevelAwaitNonModule(module=es2022).symbols @@ -3,9 +3,9 @@ await x; const arr = [Promise.resolve()]; >arr : Symbol(arr, Decl(topLevelAwaitNonModule.ts, 2, 5)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) for await (const item of arr) { >item : Symbol(item, Decl(topLevelAwaitNonModule.ts, 4, 16)) diff --git a/tests/baselines/reference/topLevelAwaitNonModule(module=es2022).types b/tests/baselines/reference/topLevelAwaitNonModule(module=es2022).types index a6d2b7ed32c..5c9951cd16f 100644 --- a/tests/baselines/reference/topLevelAwaitNonModule(module=es2022).types +++ b/tests/baselines/reference/topLevelAwaitNonModule(module=es2022).types @@ -7,9 +7,9 @@ const arr = [Promise.resolve()]; >arr : Promise[] >[Promise.resolve()] : Promise[] >Promise.resolve() : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } for await (const item of arr) { >item : void diff --git a/tests/baselines/reference/topLevelAwaitNonModule(module=esnext).symbols b/tests/baselines/reference/topLevelAwaitNonModule(module=esnext).symbols index 2e6a266f51a..0983572ac45 100644 --- a/tests/baselines/reference/topLevelAwaitNonModule(module=esnext).symbols +++ b/tests/baselines/reference/topLevelAwaitNonModule(module=esnext).symbols @@ -3,9 +3,9 @@ await x; const arr = [Promise.resolve()]; >arr : Symbol(arr, Decl(topLevelAwaitNonModule.ts, 2, 5)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) for await (const item of arr) { >item : Symbol(item, Decl(topLevelAwaitNonModule.ts, 4, 16)) diff --git a/tests/baselines/reference/topLevelAwaitNonModule(module=esnext).types b/tests/baselines/reference/topLevelAwaitNonModule(module=esnext).types index a6d2b7ed32c..5c9951cd16f 100644 --- a/tests/baselines/reference/topLevelAwaitNonModule(module=esnext).types +++ b/tests/baselines/reference/topLevelAwaitNonModule(module=esnext).types @@ -7,9 +7,9 @@ const arr = [Promise.resolve()]; >arr : Promise[] >[Promise.resolve()] : Promise[] >Promise.resolve() : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } for await (const item of arr) { >item : void diff --git a/tests/baselines/reference/transformNestedGeneratorsWithTry.symbols b/tests/baselines/reference/transformNestedGeneratorsWithTry.symbols index e13cce398ab..6afc1b15bad 100644 --- a/tests/baselines/reference/transformNestedGeneratorsWithTry.symbols +++ b/tests/baselines/reference/transformNestedGeneratorsWithTry.symbols @@ -15,9 +15,9 @@ async function a(): Bluebird { try { await Bluebird.resolve(); // -- remove this and it compiles ->Bluebird.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Bluebird.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Bluebird : Symbol(Bluebird, Decl(main.ts, 1, 6)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) } catch (error) { } >error : Symbol(error, Decl(main.ts, 7, 15)) diff --git a/tests/baselines/reference/transformNestedGeneratorsWithTry.types b/tests/baselines/reference/transformNestedGeneratorsWithTry.types index cc6b2288391..f3b214d81f1 100644 --- a/tests/baselines/reference/transformNestedGeneratorsWithTry.types +++ b/tests/baselines/reference/transformNestedGeneratorsWithTry.types @@ -16,9 +16,9 @@ async function a(): Bluebird { await Bluebird.resolve(); // -- remove this and it compiles >await Bluebird.resolve() : void >Bluebird.resolve() : Promise ->Bluebird.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Bluebird.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Bluebird : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } } catch (error) { } >error : any diff --git a/tests/baselines/reference/transpile/Elides import equals referenced only by export type.js b/tests/baselines/reference/transpile/Elides import equals referenced only by export type.js new file mode 100644 index 00000000000..e9493d9d591 --- /dev/null +++ b/tests/baselines/reference/transpile/Elides import equals referenced only by export type.js @@ -0,0 +1,3 @@ +"use strict"; +exports.__esModule = true; +//# sourceMappingURL=file.js.map \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Elides import equals referenced only by export type.oldTranspile.js b/tests/baselines/reference/transpile/Elides import equals referenced only by export type.oldTranspile.js new file mode 100644 index 00000000000..e9493d9d591 --- /dev/null +++ b/tests/baselines/reference/transpile/Elides import equals referenced only by export type.oldTranspile.js @@ -0,0 +1,3 @@ +"use strict"; +exports.__esModule = true; +//# sourceMappingURL=file.js.map \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Elides import equals referenced only by type only export specifier.js b/tests/baselines/reference/transpile/Elides import equals referenced only by type only export specifier.js new file mode 100644 index 00000000000..e9493d9d591 --- /dev/null +++ b/tests/baselines/reference/transpile/Elides import equals referenced only by type only export specifier.js @@ -0,0 +1,3 @@ +"use strict"; +exports.__esModule = true; +//# sourceMappingURL=file.js.map \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Elides import equals referenced only by type only export specifier.oldTranspile.js b/tests/baselines/reference/transpile/Elides import equals referenced only by type only export specifier.oldTranspile.js new file mode 100644 index 00000000000..e9493d9d591 --- /dev/null +++ b/tests/baselines/reference/transpile/Elides import equals referenced only by type only export specifier.oldTranspile.js @@ -0,0 +1,3 @@ +"use strict"; +exports.__esModule = true; +//# sourceMappingURL=file.js.map \ No newline at end of file diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/modules-and-globals-mixed-in-amd.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/modules-and-globals-mixed-in-amd.js index 929880f5843..734f1f178e5 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/modules-and-globals-mixed-in-amd.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/modules-and-globals-mixed-in-amd.js @@ -77,9 +77,9 @@ Output:: [12:00:08 AM] Building project '/src/lib/tsconfig.json'... -[12:00:18 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:17 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:19 AM] Building project '/src/app/tsconfig.json'... +[12:00:18 AM] Building project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -470,7 +470,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":459,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":459,"kind":"text"}]},{"pos":459,"end":685,"kind":"text"}],"mapHash":"5108062215-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-13733503289-var myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":171,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":171,"kind":"text"}]},{"pos":171,"end":253,"kind":"text"}],"mapHash":"-41254439122-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-2339330908-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"10242181693-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n","dtsChangeTime":20000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":459,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":459,"kind":"text"}]},{"pos":459,"end":685,"kind":"text"}],"mapHash":"5108062215-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-13733503289-var myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":171,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":171,"kind":"text"}]},{"pos":171,"end":253,"kind":"text"}],"mapHash":"-41254439122-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-2339330908-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"10242181693-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -600,10 +600,10 @@ declare const myVar = 30; "outFile": "./module.js" }, "outSignature": "10242181693-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n", - "dtsChangeTime": 20000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 3018 + "size": 3035 } //// [/src/lib/module.d.ts] @@ -874,7 +874,7 @@ sourceFile:global.ts >>>//# sourceMappingURL=module.js.map //// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":459,"kind":"text"}],"mapHash":"15919942799-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"10339383505-var myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":171,"kind":"text"}],"mapHash":"-14214505027-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"10884851940-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["3587416848-const myGlob = 20;","-10726455937-export const x = 10;","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"15835278973-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","dtsChangeTime":9000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":459,"kind":"text"}],"mapHash":"15919942799-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"10339383505-var myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":171,"kind":"text"}],"mapHash":"-14214505027-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"10884851940-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["3587416848-const myGlob = 20;","-10726455937-export const x = 10;","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"15835278973-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -963,10 +963,10 @@ declare const globalConst = 10; "outFile": "./module.js" }, "outSignature": "15835278973-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n", - "dtsChangeTime": 9000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 2217 + "size": 2235 } @@ -980,17 +980,17 @@ export const x = 10;console.log(x); Output:: /lib/tsc --b /src/app --verbose -[12:00:34 AM] Projects in this build: +[12:00:32 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:35 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:00:33 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:00:36 AM] Building project '/src/lib/tsconfig.json'... +[12:00:34 AM] Building project '/src/lib/tsconfig.json'... -[12:00:45 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:00:42 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:00:46 AM] Updating output of project '/src/app/tsconfig.json'... +[12:00:43 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -1222,7 +1222,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":488,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":488,"kind":"text"}]},{"pos":488,"end":714,"kind":"text"}],"mapHash":"-3706363920-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-22321753400-var myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":171,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":171,"kind":"text"}]},{"pos":171,"end":253,"kind":"text"}],"mapHash":"-41254439122-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-2339330908-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"10242181693-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n","dtsChangeTime":20000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":488,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":488,"kind":"text"}]},{"pos":488,"end":714,"kind":"text"}],"mapHash":"-3706363920-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-22321753400-var myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":171,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":171,"kind":"text"}]},{"pos":171,"end":253,"kind":"text"}],"mapHash":"-41254439122-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-2339330908-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"10242181693-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -1353,13 +1353,12 @@ declare const myVar = 30; "outFile": "./module.js" }, "outSignature": "10242181693-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n", - "dtsChangeTime": 20000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 3091 + "size": 3108 } -//// [/src/lib/module.d.ts] file written with same contents //// [/src/lib/module.d.ts.map] file written with same contents //// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents //// [/src/lib/module.js] @@ -1528,7 +1527,7 @@ sourceFile:global.ts >>>//# sourceMappingURL=module.js.map //// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":488,"kind":"text"}],"mapHash":"32224580248-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"-12742173550-var myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":171,"kind":"text"}],"mapHash":"-14214505027-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"10884851940-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["3587416848-const myGlob = 20;","-4405159098-export const x = 10;console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"15835278973-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","dtsChangeTime":9000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":488,"kind":"text"}],"mapHash":"32224580248-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"-12742173550-var myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":171,"kind":"text"}],"mapHash":"-14214505027-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"10884851940-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["3587416848-const myGlob = 20;","-4405159098-export const x = 10;console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"15835278973-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -1618,9 +1617,9 @@ declare const globalConst = 10; "outFile": "./module.js" }, "outSignature": "15835278973-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n", - "dtsChangeTime": 9000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 2304 + "size": 2322 } diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-emitHelpers-in-all-projects.js index bcb665f20d2..d8ac4640505 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-emitHelpers-in-all-projects.js @@ -89,9 +89,9 @@ Output:: [12:00:14 AM] Building project '/src/lib/tsconfig.json'... -[12:00:24 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:23 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:25 AM] Building project '/src/app/tsconfig.json'... +[12:00:24 AM] Building project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -1118,7 +1118,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1396,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1398,"end":2228,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":1398,"end":2228,"kind":"text"}]},{"pos":2228,"end":2825,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"25532738663-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}","hash":"51079295629-var __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar myGlob = 20;\r\nfunction libfile0Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar libfile0_ar = [20, 30];\r\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n function forlibfile1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n }\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n function forappfile3Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n }\r\n});\r\nvar myVar = 30;\r\nfunction appfile4Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar appfile4_ar = [20, 30];\r\nappfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false));\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":265,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":265,"kind":"text"}]},{"pos":265,"end":441,"kind":"text"}],"mapHash":"-58032587340-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC;AACjB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC\"}","hash":"39753545022-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\ndeclare function appfile4Spread(...b: number[]): void;\r\ndeclare const appfile4_ar: number[];\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["-291826420-export const z = 30;\r\nimport { x } from \"file1\";function forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-3487084949-const myVar = 30;\nfunction appfile4Spread(...b: number[]) { }\nconst appfile4_ar = [20, 30];\nappfile4Spread(10, ...appfile4_ar);"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"40772662743-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\ndeclare function appfile4Spread(...b: number[]): void;\r\ndeclare const appfile4_ar: number[];\r\n","dtsChangeTime":26000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1396,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1398,"end":2228,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":1398,"end":2228,"kind":"text"}]},{"pos":2228,"end":2825,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"25532738663-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}","hash":"51079295629-var __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar myGlob = 20;\r\nfunction libfile0Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar libfile0_ar = [20, 30];\r\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n function forlibfile1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n }\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n function forappfile3Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n }\r\n});\r\nvar myVar = 30;\r\nfunction appfile4Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar appfile4_ar = [20, 30];\r\nappfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false));\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":265,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":265,"kind":"text"}]},{"pos":265,"end":441,"kind":"text"}],"mapHash":"-58032587340-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC;AACjB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC\"}","hash":"39753545022-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\ndeclare function appfile4Spread(...b: number[]): void;\r\ndeclare const appfile4_ar: number[];\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["-291826420-export const z = 30;\r\nimport { x } from \"file1\";function forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-3487084949-const myVar = 30;\nfunction appfile4Spread(...b: number[]) { }\nconst appfile4_ar = [20, 30];\nappfile4Spread(10, ...appfile4_ar);"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"40772662743-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\ndeclare function appfile4Spread(...b: number[]): void;\r\ndeclare const appfile4_ar: number[];\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -1341,10 +1341,10 @@ declare const appfile4_ar: number[]; "outFile": "./module.js" }, "outSignature": "40772662743-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\ndeclare function appfile4Spread(...b: number[]): void;\r\ndeclare const appfile4_ar: number[];\r\n", - "dtsChangeTime": 26000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 7011 + "size": 7028 } //// [/src/lib/module.d.ts] @@ -1969,7 +1969,7 @@ sourceFile:global.ts >>>//# sourceMappingURL=module.js.map //// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1396,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1398,"end":2228,"kind":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray","typescript:rest"]},"mapHash":"8627584870-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"23752253622-var __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar myGlob = 20;\r\nfunction libfile0Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar libfile0_ar = [20, 30];\r\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n function forlibfile1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n }\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":265,"kind":"text"}],"mapHash":"-34036075879-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"13747623731-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);","186113334-export const x = 10;function forlibfile1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"25704616268-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","dtsChangeTime":15000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1396,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1398,"end":2228,"kind":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray","typescript:rest"]},"mapHash":"8627584870-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"23752253622-var __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar myGlob = 20;\r\nfunction libfile0Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar libfile0_ar = [20, 30];\r\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n function forlibfile1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n }\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":265,"kind":"text"}],"mapHash":"-34036075879-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"13747623731-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);","186113334-export const x = 10;function forlibfile1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"25704616268-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -2138,10 +2138,10 @@ declare const globalConst = 10; "outFile": "./module.js" }, "outSignature": "25704616268-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n", - "dtsChangeTime": 15000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 5211 + "size": 5228 } @@ -2157,17 +2157,17 @@ const { b, ...rest } = { a: 10, b: 30, yy: 30 }; Output:: /lib/tsc --b /src/app --verbose -[12:00:40 AM] Projects in this build: +[12:00:38 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:41 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:00:39 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:00:42 AM] Building project '/src/lib/tsconfig.json'... +[12:00:40 AM] Building project '/src/lib/tsconfig.json'... -[12:00:51 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:00:48 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:00:52 AM] Updating output of project '/src/app/tsconfig.json'... +[12:00:49 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -2928,7 +2928,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1396,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1398,"end":2257,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":1398,"end":2257,"kind":"text"}]},{"pos":2257,"end":2854,"kind":"text"}],"mapHash":"18634709081-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}","hash":"-22304593138-var __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar myGlob = 20;\r\nfunction libfile0Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar libfile0_ar = [20, 30];\r\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n function forlibfile1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n }\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n function forappfile3Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n }\r\n});\r\nvar myVar = 30;\r\nfunction appfile4Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar appfile4_ar = [20, 30];\r\nappfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false));\r\n//# sourceMappingURL=module.js.map","sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":265,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":265,"kind":"text"}]},{"pos":265,"end":441,"kind":"text"}],"mapHash":"-58032587340-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC;AACjB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC\"}","hash":"39753545022-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\ndeclare function appfile4Spread(...b: number[]): void;\r\ndeclare const appfile4_ar: number[];\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["-291826420-export const z = 30;\r\nimport { x } from \"file1\";function forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-3487084949-const myVar = 30;\nfunction appfile4Spread(...b: number[]) { }\nconst appfile4_ar = [20, 30];\nappfile4Spread(10, ...appfile4_ar);"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"40772662743-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\ndeclare function appfile4Spread(...b: number[]): void;\r\ndeclare const appfile4_ar: number[];\r\n","dtsChangeTime":26000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1396,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1398,"end":2257,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":1398,"end":2257,"kind":"text"}]},{"pos":2257,"end":2854,"kind":"text"}],"mapHash":"18634709081-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}","hash":"-22304593138-var __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar myGlob = 20;\r\nfunction libfile0Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar libfile0_ar = [20, 30];\r\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n function forlibfile1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n }\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n function forappfile3Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n }\r\n});\r\nvar myVar = 30;\r\nfunction appfile4Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar appfile4_ar = [20, 30];\r\nappfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false));\r\n//# sourceMappingURL=module.js.map","sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":265,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":265,"kind":"text"}]},{"pos":265,"end":441,"kind":"text"}],"mapHash":"-58032587340-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC;AACjB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC\"}","hash":"39753545022-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\ndeclare function appfile4Spread(...b: number[]): void;\r\ndeclare const appfile4_ar: number[];\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["-291826420-export const z = 30;\r\nimport { x } from \"file1\";function forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-3487084949-const myVar = 30;\nfunction appfile4Spread(...b: number[]) { }\nconst appfile4_ar = [20, 30];\nappfile4Spread(10, ...appfile4_ar);"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"40772662743-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\ndeclare function appfile4Spread(...b: number[]): void;\r\ndeclare const appfile4_ar: number[];\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -3152,13 +3152,12 @@ declare const appfile4_ar: number[]; "outFile": "./module.js" }, "outSignature": "40772662743-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\ndeclare function appfile4Spread(...b: number[]): void;\r\ndeclare const appfile4_ar: number[];\r\n", - "dtsChangeTime": 26000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 7083 + "size": 7100 } -//// [/src/lib/module.d.ts] file written with same contents //// [/src/lib/module.d.ts.map] file written with same contents //// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents //// [/src/lib/module.js] @@ -3627,7 +3626,7 @@ sourceFile:global.ts >>>//# sourceMappingURL=module.js.map //// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1396,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1398,"end":2257,"kind":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray","typescript:rest"]},"mapHash":"13391497112-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"26811980439-var __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar myGlob = 20;\r\nfunction libfile0Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar libfile0_ar = [20, 30];\r\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n function forlibfile1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n }\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":265,"kind":"text"}],"mapHash":"-34036075879-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"13747623731-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);","12502459933-export const x = 10;function forlibfile1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"25704616268-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","dtsChangeTime":15000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1396,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1398,"end":2257,"kind":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray","typescript:rest"]},"mapHash":"13391497112-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"26811980439-var __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar myGlob = 20;\r\nfunction libfile0Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar libfile0_ar = [20, 30];\r\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n function forlibfile1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n }\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":265,"kind":"text"}],"mapHash":"-34036075879-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"13747623731-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);","12502459933-export const x = 10;function forlibfile1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"25704616268-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -3797,10 +3796,10 @@ declare const globalConst = 10; "outFile": "./module.js" }, "outSignature": "25704616268-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n", - "dtsChangeTime": 15000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 5300 + "size": 5317 } @@ -3814,17 +3813,17 @@ export const x = 10;function forlibfile1Rest() { }console.log(x); Output:: /lib/tsc --b /src/app --verbose -[12:01:03 AM] Projects in this build: +[12:01:00 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:01:04 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:01:01 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:01:05 AM] Building project '/src/lib/tsconfig.json'... +[12:01:02 AM] Building project '/src/lib/tsconfig.json'... -[12:01:14 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:01:10 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:01:15 AM] Updating output of project '/src/app/tsconfig.json'... +[12:01:11 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -4500,7 +4499,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1396,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1398,"end":2172,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":1398,"end":2172,"kind":"text"}]},{"pos":2172,"end":2769,"kind":"text"}],"mapHash":"10800515764-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICApD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}","hash":"-17799548340-var __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar myGlob = 20;\r\nfunction libfile0Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar libfile0_ar = [20, 30];\r\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n function forlibfile1Rest() { }\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n function forappfile3Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n }\r\n});\r\nvar myVar = 30;\r\nfunction appfile4Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar appfile4_ar = [20, 30];\r\nappfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false));\r\n//# sourceMappingURL=module.js.map","sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":265,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":265,"kind":"text"}]},{"pos":265,"end":441,"kind":"text"}],"mapHash":"-58032587340-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC;AACjB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC\"}","hash":"39753545022-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\ndeclare function appfile4Spread(...b: number[]): void;\r\ndeclare const appfile4_ar: number[];\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["-291826420-export const z = 30;\r\nimport { x } from \"file1\";function forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-3487084949-const myVar = 30;\nfunction appfile4Spread(...b: number[]) { }\nconst appfile4_ar = [20, 30];\nappfile4Spread(10, ...appfile4_ar);"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"40772662743-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\ndeclare function appfile4Spread(...b: number[]): void;\r\ndeclare const appfile4_ar: number[];\r\n","dtsChangeTime":26000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1396,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1398,"end":2172,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":1398,"end":2172,"kind":"text"}]},{"pos":2172,"end":2769,"kind":"text"}],"mapHash":"10800515764-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICApD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}","hash":"-17799548340-var __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar myGlob = 20;\r\nfunction libfile0Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar libfile0_ar = [20, 30];\r\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n function forlibfile1Rest() { }\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n function forappfile3Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n }\r\n});\r\nvar myVar = 30;\r\nfunction appfile4Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar appfile4_ar = [20, 30];\r\nappfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false));\r\n//# sourceMappingURL=module.js.map","sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":265,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":265,"kind":"text"}]},{"pos":265,"end":441,"kind":"text"}],"mapHash":"-58032587340-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC;AACjB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC\"}","hash":"39753545022-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\ndeclare function appfile4Spread(...b: number[]): void;\r\ndeclare const appfile4_ar: number[];\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["-291826420-export const z = 30;\r\nimport { x } from \"file1\";function forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-3487084949-const myVar = 30;\nfunction appfile4Spread(...b: number[]) { }\nconst appfile4_ar = [20, 30];\nappfile4Spread(10, ...appfile4_ar);"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"40772662743-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\ndeclare function appfile4Spread(...b: number[]): void;\r\ndeclare const appfile4_ar: number[];\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -4722,13 +4721,12 @@ declare const appfile4_ar: number[]; "outFile": "./module.js" }, "outSignature": "40772662743-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\ndeclare function appfile4Spread(...b: number[]): void;\r\ndeclare const appfile4_ar: number[];\r\n", - "dtsChangeTime": 26000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 6863 + "size": 6880 } -//// [/src/lib/module.d.ts] file written with same contents //// [/src/lib/module.d.ts.map] file written with same contents //// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents //// [/src/lib/module.js] @@ -5090,7 +5088,7 @@ sourceFile:global.ts >>>//# sourceMappingURL=module.js.map //// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1670,"kind":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray"]},"mapHash":"34350533098-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICApD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"-9077950738-var __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar myGlob = 20;\r\nfunction libfile0Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar libfile0_ar = [20, 30];\r\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n function forlibfile1Rest() { }\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":265,"kind":"text"}],"mapHash":"-34036075879-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"13747623731-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);","-2014796510-export const x = 10;function forlibfile1Rest() { }console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"25704616268-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","dtsChangeTime":15000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1670,"kind":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray"]},"mapHash":"34350533098-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICApD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"-9077950738-var __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar myGlob = 20;\r\nfunction libfile0Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar libfile0_ar = [20, 30];\r\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n function forlibfile1Rest() { }\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":265,"kind":"text"}],"mapHash":"-34036075879-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"13747623731-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);","-2014796510-export const x = 10;function forlibfile1Rest() { }console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"25704616268-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -5238,9 +5236,9 @@ declare const globalConst = 10; "outFile": "./module.js" }, "outSignature": "25704616268-declare const myGlob = 20;\r\ndeclare function libfile0Spread(...b: number[]): void;\r\ndeclare const libfile0_ar: number[];\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n", - "dtsChangeTime": 15000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 4404 + "size": 4421 } diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-prologues-in-all-projects.js index 72746a89d99..ae2684d5b69 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-prologues-in-all-projects.js @@ -82,9 +82,9 @@ Output:: [12:00:15 AM] Building project '/src/lib/tsconfig.json'... -[12:00:25 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:24 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:26 AM] Building project '/src/app/tsconfig.json'... +[12:00:25 AM] Building project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -564,7 +564,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue3"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue2"},{"pos":62,"end":544,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":62,"end":544,"kind":"text"}]},{"pos":544,"end":789,"kind":"text"}],"sources":{"prologues":[{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]},"mapHash":"43697297756-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/global.ts\",\"file4.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"file3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IGDL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;ICApB,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,YAAY,CAAA;;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"10364809621-\"use strict\";\r\n\"myPrologue\";\r\n\"myPrologue3\";\r\n\"myPrologue2\";\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n \"myPrologueFile\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n \"myPrologue\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":171,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":171,"kind":"text"}]},{"pos":171,"end":253,"kind":"text"}],"mapHash":"-26680300331-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICDlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICCpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-2339330908-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["14566593738-\"myPrologue\"\nexport const z = 30;\r\nimport { x } from \"file1\";","8812798660-\"myPrologue2\";\nconst myVar = 30;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"10242181693-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n","dtsChangeTime":27000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue3"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue2"},{"pos":62,"end":544,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":62,"end":544,"kind":"text"}]},{"pos":544,"end":789,"kind":"text"}],"sources":{"prologues":[{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]},"mapHash":"43697297756-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/global.ts\",\"file4.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"file3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IGDL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;ICApB,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,YAAY,CAAA;;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"10364809621-\"use strict\";\r\n\"myPrologue\";\r\n\"myPrologue3\";\r\n\"myPrologue2\";\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n \"myPrologueFile\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n \"myPrologue\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":171,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":171,"kind":"text"}]},{"pos":171,"end":253,"kind":"text"}],"mapHash":"-26680300331-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICDlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICCpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-2339330908-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["14566593738-\"myPrologue\"\nexport const z = 30;\r\nimport { x } from \"file1\";","8812798660-\"myPrologue2\";\nconst myVar = 30;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"10242181693-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -760,10 +760,10 @@ declare const myVar = 30; "outFile": "./module.js" }, "outSignature": "10242181693-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n", - "dtsChangeTime": 27000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 3718 + "size": 3735 } //// [/src/lib/module.d.ts] @@ -1089,7 +1089,7 @@ sourceFile:global.ts >>>//# sourceMappingURL=module.js.map //// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue3"},{"pos":46,"end":528,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]},{"file":3,"text":"\"myPrologue3\"","directives":[{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue3"}}]}]},"mapHash":"10375222825-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"global.ts\",\"file1.ts\",\"file2.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ADCb,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IEDL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;ICApB,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AFApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"574486843-\"use strict\";\r\n\"myPrologue\";\r\n\"myPrologue3\";\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n \"myPrologueFile\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":171,"kind":"text"}],"mapHash":"-38214306044-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICDlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICCpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"10884851940-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["9536729713-\"myPrologue\"\nconst myGlob = 20;","-10726455937-export const x = 10;","16047001250-\"myPrologueFile\"\nexport const y = 20;","7757520337-\"myPrologue3\"\nconst globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"15835278973-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","dtsChangeTime":16000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue3"},{"pos":46,"end":528,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]},{"file":3,"text":"\"myPrologue3\"","directives":[{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue3"}}]}]},"mapHash":"10375222825-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"global.ts\",\"file1.ts\",\"file2.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ADCb,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IEDL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;ICApB,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AFApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"574486843-\"use strict\";\r\n\"myPrologue\";\r\n\"myPrologue3\";\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n \"myPrologueFile\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":171,"kind":"text"}],"mapHash":"-38214306044-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICDlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICCpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"10884851940-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["9536729713-\"myPrologue\"\nconst myGlob = 20;","-10726455937-export const x = 10;","16047001250-\"myPrologueFile\"\nexport const y = 20;","7757520337-\"myPrologue3\"\nconst globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"15835278973-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -1249,10 +1249,10 @@ declare const globalConst = 10; "outFile": "./module.js" }, "outSignature": "15835278973-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n", - "dtsChangeTime": 16000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 2920 + "size": 2937 } @@ -1266,17 +1266,17 @@ export const x = 10;console.log(x); Output:: /lib/tsc --b /src/app --verbose -[12:00:41 AM] Projects in this build: +[12:00:39 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:42 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:00:40 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:00:43 AM] Building project '/src/lib/tsconfig.json'... +[12:00:41 AM] Building project '/src/lib/tsconfig.json'... -[12:00:52 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:00:49 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:00:53 AM] Updating output of project '/src/app/tsconfig.json'... +[12:00:50 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -1592,7 +1592,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue3"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue2"},{"pos":62,"end":573,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":62,"end":573,"kind":"text"}]},{"pos":573,"end":818,"kind":"text"}],"mapHash":"3847555902-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/global.ts\",\"file4.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"file3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IGDL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICAnC,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,YAAY,CAAA;;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-54929435562-\"use strict\";\r\n\"myPrologue\";\r\n\"myPrologue3\";\r\n\"myPrologue2\";\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n \"myPrologueFile\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n \"myPrologue\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map","sources":{"prologues":[{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]}},"dts":{"sections":[{"pos":0,"end":171,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":171,"kind":"text"}]},{"pos":171,"end":253,"kind":"text"}],"mapHash":"-26680300331-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICDlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICCpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-2339330908-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["14566593738-\"myPrologue\"\nexport const z = 30;\r\nimport { x } from \"file1\";","8812798660-\"myPrologue2\";\nconst myVar = 30;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"10242181693-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n","dtsChangeTime":27000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue3"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue2"},{"pos":62,"end":573,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":62,"end":573,"kind":"text"}]},{"pos":573,"end":818,"kind":"text"}],"mapHash":"3847555902-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/global.ts\",\"file4.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"file3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IGDL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICAnC,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,YAAY,CAAA;;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-54929435562-\"use strict\";\r\n\"myPrologue\";\r\n\"myPrologue3\";\r\n\"myPrologue2\";\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n \"myPrologueFile\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n \"myPrologue\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map","sources":{"prologues":[{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]}},"dts":{"sections":[{"pos":0,"end":171,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":171,"kind":"text"}]},{"pos":171,"end":253,"kind":"text"}],"mapHash":"-26680300331-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICDlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICCpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-2339330908-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["14566593738-\"myPrologue\"\nexport const z = 30;\r\nimport { x } from \"file1\";","8812798660-\"myPrologue2\";\nconst myVar = 30;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"10242181693-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -1789,13 +1789,12 @@ declare const myVar = 30; "outFile": "./module.js" }, "outSignature": "10242181693-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n", - "dtsChangeTime": 27000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 3789 + "size": 3806 } -//// [/src/lib/module.d.ts] file written with same contents //// [/src/lib/module.d.ts.map] file written with same contents //// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents //// [/src/lib/module.js] @@ -2016,7 +2015,7 @@ sourceFile:global.ts >>>//# sourceMappingURL=module.js.map //// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue3"},{"pos":46,"end":557,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]},{"file":3,"text":"\"myPrologue3\"","directives":[{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue3"}}]}]},"mapHash":"-8068071797-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"global.ts\",\"file1.ts\",\"file2.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ADCb,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IEDL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICAnC,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AFApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"6749123452-\"use strict\";\r\n\"myPrologue\";\r\n\"myPrologue3\";\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n \"myPrologueFile\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":171,"kind":"text"}],"mapHash":"-38214306044-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICDlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICCpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"10884851940-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["9536729713-\"myPrologue\"\nconst myGlob = 20;","-4405159098-export const x = 10;console.log(x);","16047001250-\"myPrologueFile\"\nexport const y = 20;","7757520337-\"myPrologue3\"\nconst globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"15835278973-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","dtsChangeTime":16000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue3"},{"pos":46,"end":557,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]},{"file":3,"text":"\"myPrologue3\"","directives":[{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue3"}}]}]},"mapHash":"-8068071797-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"global.ts\",\"file1.ts\",\"file2.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ADCb,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IEDL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICAnC,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AFApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"6749123452-\"use strict\";\r\n\"myPrologue\";\r\n\"myPrologue3\";\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n \"myPrologueFile\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":171,"kind":"text"}],"mapHash":"-38214306044-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICDlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICCpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"10884851940-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["9536729713-\"myPrologue\"\nconst myGlob = 20;","-4405159098-export const x = 10;console.log(x);","16047001250-\"myPrologueFile\"\nexport const y = 20;","7757520337-\"myPrologue3\"\nconst globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"15835278973-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -2177,10 +2176,10 @@ declare const globalConst = 10; "outFile": "./module.js" }, "outSignature": "15835278973-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n", - "dtsChangeTime": 16000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 3006 + "size": 3023 } @@ -2195,17 +2194,17 @@ export const x = 10;console.log(x); Output:: /lib/tsc --b /src/app --verbose -[12:01:04 AM] Projects in this build: +[12:01:01 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:01:05 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:01:02 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:01:06 AM] Building project '/src/lib/tsconfig.json'... +[12:01:03 AM] Building project '/src/lib/tsconfig.json'... -[12:01:15 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:01:11 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:01:16 AM] Updating output of project '/src/app/tsconfig.json'... +[12:01:12 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -2713,7 +2712,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue3"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue2"},{"pos":62,"end":593,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":62,"end":593,"kind":"text"}]},{"pos":593,"end":838,"kind":"text"}],"mapHash":"16708366-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/global.ts\",\"file4.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"file3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;IGDlB,aAAa,CAAA;;;IACA,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICDnC,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,YAAY,CAAA;;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"1949994516-\"use strict\";\r\n\"myPrologue\";\r\n\"myPrologue3\";\r\n\"myPrologue2\";\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n \"myPrologue5\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n \"myPrologueFile\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n \"myPrologue\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map","sources":{"prologues":[{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]}},"dts":{"sections":[{"pos":0,"end":171,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":171,"kind":"text"}]},{"pos":171,"end":253,"kind":"text"}],"mapHash":"-19636782544-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-2339330908-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["14566593738-\"myPrologue\"\nexport const z = 30;\r\nimport { x } from \"file1\";","8812798660-\"myPrologue2\";\nconst myVar = 30;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"10242181693-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n","dtsChangeTime":27000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue3"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue2"},{"pos":62,"end":593,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":62,"end":593,"kind":"text"}]},{"pos":593,"end":838,"kind":"text"}],"mapHash":"16708366-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/global.ts\",\"file4.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"file3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;IGDlB,aAAa,CAAA;;;IACA,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICDnC,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,YAAY,CAAA;;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"1949994516-\"use strict\";\r\n\"myPrologue\";\r\n\"myPrologue3\";\r\n\"myPrologue2\";\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n \"myPrologue5\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n \"myPrologueFile\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n \"myPrologue\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map","sources":{"prologues":[{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]}},"dts":{"sections":[{"pos":0,"end":171,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":171,"kind":"text"}]},{"pos":171,"end":253,"kind":"text"}],"mapHash":"-19636782544-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-2339330908-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["14566593738-\"myPrologue\"\nexport const z = 30;\r\nimport { x } from \"file1\";","8812798660-\"myPrologue2\";\nconst myVar = 30;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"10242181693-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -2911,13 +2910,12 @@ declare const myVar = 30; "outFile": "./module.js" }, "outSignature": "10242181693-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n", - "dtsChangeTime": 27000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 3825 + "size": 3842 } -//// [/src/lib/module.d.ts] file written with same contents //// [/src/lib/module.d.ts.map] {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} @@ -3273,7 +3271,7 @@ sourceFile:global.ts >>>//# sourceMappingURL=module.js.map //// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue3"},{"pos":46,"end":577,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]},{"file":3,"text":"\"myPrologue3\"","directives":[{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue3"}}]}]},"mapHash":"-19459258405-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"global.ts\",\"file1.ts\",\"file2.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ADCb,IAAM,MAAM,GAAG,EAAE,CAAC;;;IEDlB,aAAa,CAAA;;;IACA,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICDnC,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AFApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"-11464610054-\"use strict\";\r\n\"myPrologue\";\r\n\"myPrologue3\";\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n \"myPrologue5\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n \"myPrologueFile\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":171,"kind":"text"}],"mapHash":"-36563998849-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"10884851940-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["9536729713-\"myPrologue\"\nconst myGlob = 20;","-4813675172-\"myPrologue5\"\nexport const x = 10;console.log(x);","16047001250-\"myPrologueFile\"\nexport const y = 20;","7757520337-\"myPrologue3\"\nconst globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"15835278973-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","dtsChangeTime":16000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue3"},{"pos":46,"end":577,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]},{"file":3,"text":"\"myPrologue3\"","directives":[{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue3"}}]}]},"mapHash":"-19459258405-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"global.ts\",\"file1.ts\",\"file2.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ADCb,IAAM,MAAM,GAAG,EAAE,CAAC;;;IEDlB,aAAa,CAAA;;;IACA,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICDnC,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AFApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"-11464610054-\"use strict\";\r\n\"myPrologue\";\r\n\"myPrologue3\";\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n \"myPrologue5\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n \"myPrologueFile\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":171,"kind":"text"}],"mapHash":"-36563998849-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"10884851940-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["9536729713-\"myPrologue\"\nconst myGlob = 20;","-4813675172-\"myPrologue5\"\nexport const x = 10;console.log(x);","16047001250-\"myPrologueFile\"\nexport const y = 20;","7757520337-\"myPrologue3\"\nconst globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"15835278973-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -3435,9 +3433,9 @@ declare const globalConst = 10; "outFile": "./module.js" }, "outSignature": "15835278973-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n", - "dtsChangeTime": 16000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 3066 + "size": 3083 } diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/shebang-in-all-projects.js index 3b1dd12e1a6..5da0b643019 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/shebang-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/shebang-in-all-projects.js @@ -80,9 +80,9 @@ Output:: [12:00:11 AM] Building project '/src/lib/tsconfig.json'... -[12:00:21 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:22 AM] Building project '/src/app/tsconfig.json'... +[12:00:21 AM] Building project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -483,7 +483,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":25,"end":484,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":25,"end":484,"kind":"text"}]},{"pos":484,"end":710,"kind":"text"}],"mapHash":"-9078462836-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICDP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICCV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACDpB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"18621375477-#!someshebang lib file0\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":25,"end":196,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":25,"end":196,"kind":"text"}]},{"pos":196,"end":278,"kind":"text"}],"mapHash":"-32924248397-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICDpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICCvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACDpB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-6019253934-#!someshebang lib file0\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["7745078967-#!someshebang app file3\nexport const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"1766703083-#!someshebang lib file0\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n","dtsChangeTime":23000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":25,"end":484,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":25,"end":484,"kind":"text"}]},{"pos":484,"end":710,"kind":"text"}],"mapHash":"-9078462836-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICDP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICCV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACDpB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"18621375477-#!someshebang lib file0\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":25,"end":196,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":25,"end":196,"kind":"text"}]},{"pos":196,"end":278,"kind":"text"}],"mapHash":"-32924248397-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICDpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICCvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACDpB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-6019253934-#!someshebang lib file0\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["7745078967-#!someshebang app file3\nexport const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"1766703083-#!someshebang lib file0\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -613,10 +613,10 @@ declare const myVar = 30; "outFile": "./module.js" }, "outSignature": "1766703083-#!someshebang lib file0\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n", - "dtsChangeTime": 23000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 3128 + "size": 3145 } //// [/src/lib/module.d.ts] @@ -895,7 +895,7 @@ sourceFile:global.ts >>>//# sourceMappingURL=module.js.map //// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":25,"end":484,"kind":"text"}],"mapHash":"36962111119-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICDP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"29113258623-#!someshebang lib file0\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":25,"end":196,"kind":"text"}],"mapHash":"-5431151811-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICDpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"-11899867630-#!someshebang lib file0\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["7942086417-#!someshebang lib file0\nconst myGlob = 20;","378638433-#!someshebang lib file1\nexport const x = 10;","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"-3021253461-#!someshebang lib file0\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","dtsChangeTime":12000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":25,"end":484,"kind":"text"}],"mapHash":"36962111119-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICDP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"29113258623-#!someshebang lib file0\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":25,"end":196,"kind":"text"}],"mapHash":"-5431151811-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICDpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"-11899867630-#!someshebang lib file0\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["7942086417-#!someshebang lib file0\nconst myGlob = 20;","378638433-#!someshebang lib file1\nexport const x = 10;","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"-3021253461-#!someshebang lib file0\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -984,10 +984,10 @@ declare const globalConst = 10; "outFile": "./module.js" }, "outSignature": "-3021253461-#!someshebang lib file0\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n", - "dtsChangeTime": 12000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 2350 + "size": 2367 } @@ -1002,17 +1002,17 @@ export const x = 10;console.log(x); Output:: /lib/tsc --b /src/app --verbose -[12:00:37 AM] Projects in this build: +[12:00:35 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:38 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:00:36 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:00:39 AM] Building project '/src/lib/tsconfig.json'... +[12:00:37 AM] Building project '/src/lib/tsconfig.json'... -[12:00:48 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:00:45 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:00:49 AM] Updating output of project '/src/app/tsconfig.json'... +[12:00:46 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -1249,7 +1249,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":25,"end":513,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":25,"end":513,"kind":"text"}]},{"pos":513,"end":739,"kind":"text"}],"mapHash":"-22024543371-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICDtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICCV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACDpB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-25412899146-#!someshebang lib file0\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":25,"end":196,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":25,"end":196,"kind":"text"}]},{"pos":196,"end":278,"kind":"text"}],"mapHash":"-32924248397-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICDpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICCvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACDpB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-6019253934-#!someshebang lib file0\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["7745078967-#!someshebang app file3\nexport const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"1766703083-#!someshebang lib file0\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n","dtsChangeTime":23000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":25,"end":513,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":25,"end":513,"kind":"text"}]},{"pos":513,"end":739,"kind":"text"}],"mapHash":"-22024543371-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICDtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICCV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACDpB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-25412899146-#!someshebang lib file0\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":25,"end":196,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":25,"end":196,"kind":"text"}]},{"pos":196,"end":278,"kind":"text"}],"mapHash":"-32924248397-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICDpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICCvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACDpB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-6019253934-#!someshebang lib file0\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["7745078967-#!someshebang app file3\nexport const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"1766703083-#!someshebang lib file0\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -1380,13 +1380,12 @@ declare const myVar = 30; "outFile": "./module.js" }, "outSignature": "1766703083-#!someshebang lib file0\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n", - "dtsChangeTime": 23000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 3202 + "size": 3219 } -//// [/src/lib/module.d.ts] file written with same contents //// [/src/lib/module.d.ts.map] file written with same contents //// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents //// [/src/lib/module.js] @@ -1559,7 +1558,7 @@ sourceFile:global.ts >>>//# sourceMappingURL=module.js.map //// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":25,"end":513,"kind":"text"}],"mapHash":"15343768984-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICDtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"-14818255616-#!someshebang lib file0\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":25,"end":196,"kind":"text"}],"mapHash":"-5431151811-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICDpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"-11899867630-#!someshebang lib file0\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["7942086417-#!someshebang lib file0\nconst myGlob = 20;","7280727528-#!someshebang lib file1\nexport const x = 10;console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"-3021253461-#!someshebang lib file0\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","dtsChangeTime":12000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":25,"end":513,"kind":"text"}],"mapHash":"15343768984-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICDtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"-14818255616-#!someshebang lib file0\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":25,"end":196,"kind":"text"}],"mapHash":"-5431151811-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICDpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"-11899867630-#!someshebang lib file0\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["7942086417-#!someshebang lib file0\nconst myGlob = 20;","7280727528-#!someshebang lib file1\nexport const x = 10;console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"-3021253461-#!someshebang lib file0\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -1649,9 +1648,9 @@ declare const globalConst = 10; "outFile": "./module.js" }, "outSignature": "-3021253461-#!someshebang lib file0\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n", - "dtsChangeTime": 12000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 2439 + "size": 2456 } diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/stripInternal.js index be7fa420277..3b3cab2256a 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/stripInternal.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/stripInternal.js @@ -103,9 +103,9 @@ Output:: [12:00:11 AM] Building project '/src/lib/tsconfig.json'... -[12:00:21 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:22 AM] Building project '/src/app/tsconfig.json'... +[12:00:21 AM] Building project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -1979,7 +1979,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":4382,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":4382,"kind":"text"}]},{"pos":4382,"end":4608,"kind":"text"}],"mapHash":"16771957534-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;;;;;;ICzBrC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-90621758844-/*@internal*/ var myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0;\r\n exports.x = 10;\r\n var normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n }());\r\n exports.normalC = normalC;\r\n var normalN;\r\n (function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n })(normalN = exports.normalN || (exports.normalN = {}));\r\n /*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n }());\r\n exports.internalC = internalC;\r\n /*@internal*/ function internalfoo() { }\r\n exports.internalfoo = internalfoo;\r\n /*@internal*/ var internalNamespace;\r\n (function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {}));\r\n /*@internal*/ var internalOther;\r\n (function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n })(internalOther = exports.internalOther || (exports.internalOther = {}));\r\n /*@internal*/ exports.internalImport = internalNamespace.someClass;\r\n /*@internal*/ exports.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = exports.internalEnum || (exports.internalEnum = {}));\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":217,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":217,"kind":"text"}]},{"pos":217,"end":299,"kind":"text"}],"mapHash":"12507664209-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;KAMnB;IACD,MAAM,WAAW,OAAO,CAAC;KASxB;;;ICjBD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"17014126216-declare module \"file1\" {\r\n export const x = 10;\r\n export class normalC {\r\n }\r\n export namespace normalN {\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"21439035937-declare module \"file1\" {\r\n export const x = 10;\r\n export class normalC {\r\n }\r\n export namespace normalN {\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n","dtsChangeTime":23000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":4382,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":4382,"kind":"text"}]},{"pos":4382,"end":4608,"kind":"text"}],"mapHash":"16771957534-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;;;;;;ICzBrC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-90621758844-/*@internal*/ var myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0;\r\n exports.x = 10;\r\n var normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n }());\r\n exports.normalC = normalC;\r\n var normalN;\r\n (function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n })(normalN = exports.normalN || (exports.normalN = {}));\r\n /*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n }());\r\n exports.internalC = internalC;\r\n /*@internal*/ function internalfoo() { }\r\n exports.internalfoo = internalfoo;\r\n /*@internal*/ var internalNamespace;\r\n (function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {}));\r\n /*@internal*/ var internalOther;\r\n (function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n })(internalOther = exports.internalOther || (exports.internalOther = {}));\r\n /*@internal*/ exports.internalImport = internalNamespace.someClass;\r\n /*@internal*/ exports.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = exports.internalEnum || (exports.internalEnum = {}));\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":217,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":217,"kind":"text"}]},{"pos":217,"end":299,"kind":"text"}],"mapHash":"12507664209-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;KAMnB;IACD,MAAM,WAAW,OAAO,CAAC;KASxB;;;ICjBD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"17014126216-declare module \"file1\" {\r\n export const x = 10;\r\n export class normalC {\r\n }\r\n export namespace normalN {\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"21439035937-declare module \"file1\" {\r\n export const x = 10;\r\n export class normalC {\r\n }\r\n export namespace normalN {\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -2202,10 +2202,10 @@ declare const myVar = 30; "outFile": "./module.js" }, "outSignature": "21439035937-declare module \"file1\" {\r\n export const x = 10;\r\n export class normalC {\r\n }\r\n export namespace normalN {\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n", - "dtsChangeTime": 23000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 9189 + "size": 9206 } //// [/src/lib/module.d.ts] @@ -4587,7 +4587,7 @@ sourceFile:global.ts >>>//# sourceMappingURL=module.js.map //// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":4382,"kind":"text"}],"mapHash":"9404225414-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;;;;;;ICzBrC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"-103876932274-/*@internal*/ var myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0;\r\n exports.x = 10;\r\n var normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n }());\r\n exports.normalC = normalC;\r\n var normalN;\r\n (function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n })(normalN = exports.normalN || (exports.normalN = {}));\r\n /*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n }());\r\n exports.internalC = internalC;\r\n /*@internal*/ function internalfoo() { }\r\n exports.internalfoo = internalfoo;\r\n /*@internal*/ var internalNamespace;\r\n (function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {}));\r\n /*@internal*/ var internalOther;\r\n (function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n })(internalOther = exports.internalOther || (exports.internalOther = {}));\r\n /*@internal*/ exports.internalImport = internalNamespace.someClass;\r\n /*@internal*/ exports.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = exports.internalEnum || (exports.internalEnum = {}));\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":26,"kind":"internal"},{"pos":28,"end":108,"kind":"text"},{"pos":108,"end":233,"kind":"internal"},{"pos":235,"end":274,"kind":"text"},{"pos":274,"end":742,"kind":"internal"},{"pos":744,"end":751,"kind":"text"},{"pos":751,"end":1240,"kind":"internal"},{"pos":1242,"end":1333,"kind":"text"}],"mapHash":"-20111650778-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAc,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAhC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;;QAEF,IAAI,EAAE,MAAM,CAAC;QACb,MAAM;QACN,IAAI,CAAC,IACM,MAAM,CADK;QACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;KACvC;IACD,MAAM,WAAW,OAAO,CAAC;QACP,MAAa,CAAC;SAAI;QAClB,SAAgB,GAAG,SAAK;QACxB,UAAiB,aAAa,CAAC;YAAE,MAAa,CAAC;aAAG;SAAE;QACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;YAAE,MAAa,SAAS;aAAG;SAAE;QAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;QAC9B,MAAM,aAAa,KAAK,CAAC;QAChC,KAAY,YAAY;YAAG,CAAC,IAAA;YAAE,CAAC,IAAA;YAAE,CAAC,IAAA;SAAE;KACrD;IACa,MAAM,OAAO,SAAS;KAAG;IACzB,MAAM,UAAU,WAAW,SAAK;IAChC,MAAM,WAAW,iBAAiB,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAChE,MAAM,WAAW,aAAa,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACtE,MAAM,QAAQ,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAC3D,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,MAAM,aAAa,KAAK,CAAC;IAChC,MAAM,MAAM,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;;;ICzBlD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"6923704418-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n export class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n }\r\n export namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n }\r\n export class internalC {\r\n }\r\n export function internalfoo(): void;\r\n export namespace internalNamespace {\r\n class someClass {\r\n }\r\n }\r\n export namespace internalOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import internalImport = internalNamespace.someClass;\r\n export type internalType = internalC;\r\n export const internalConst = 10;\r\n export enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["4331635807-/*@internal*/ const myGlob = 20;","21054576574-export const x = 10;\nexport class normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nexport namespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ export class internalC {}\n/*@internal*/ export function internalfoo() {}\n/*@internal*/ export namespace internalNamespace { export class someClass {} }\n/*@internal*/ export namespace internalOther.something { export class someClass {} }\n/*@internal*/ export import internalImport = internalNamespace.someClass;\n/*@internal*/ export type internalType = internalC;\n/*@internal*/ export const internalConst = 10;\n/*@internal*/ export enum internalEnum { a, b, c }","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"16122271483-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n export class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n }\r\n export namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n }\r\n export class internalC {\r\n }\r\n export function internalfoo(): void;\r\n export namespace internalNamespace {\r\n class someClass {\r\n }\r\n }\r\n export namespace internalOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import internalImport = internalNamespace.someClass;\r\n export type internalType = internalC;\r\n export const internalConst = 10;\r\n export enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","dtsChangeTime":12000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":4382,"kind":"text"}],"mapHash":"9404225414-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;;;;;;ICzBrC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"-103876932274-/*@internal*/ var myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0;\r\n exports.x = 10;\r\n var normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n }());\r\n exports.normalC = normalC;\r\n var normalN;\r\n (function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n })(normalN = exports.normalN || (exports.normalN = {}));\r\n /*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n }());\r\n exports.internalC = internalC;\r\n /*@internal*/ function internalfoo() { }\r\n exports.internalfoo = internalfoo;\r\n /*@internal*/ var internalNamespace;\r\n (function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {}));\r\n /*@internal*/ var internalOther;\r\n (function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n })(internalOther = exports.internalOther || (exports.internalOther = {}));\r\n /*@internal*/ exports.internalImport = internalNamespace.someClass;\r\n /*@internal*/ exports.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = exports.internalEnum || (exports.internalEnum = {}));\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":26,"kind":"internal"},{"pos":28,"end":108,"kind":"text"},{"pos":108,"end":233,"kind":"internal"},{"pos":235,"end":274,"kind":"text"},{"pos":274,"end":742,"kind":"internal"},{"pos":744,"end":751,"kind":"text"},{"pos":751,"end":1240,"kind":"internal"},{"pos":1242,"end":1333,"kind":"text"}],"mapHash":"-20111650778-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAc,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAhC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;;QAEF,IAAI,EAAE,MAAM,CAAC;QACb,MAAM;QACN,IAAI,CAAC,IACM,MAAM,CADK;QACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;KACvC;IACD,MAAM,WAAW,OAAO,CAAC;QACP,MAAa,CAAC;SAAI;QAClB,SAAgB,GAAG,SAAK;QACxB,UAAiB,aAAa,CAAC;YAAE,MAAa,CAAC;aAAG;SAAE;QACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;YAAE,MAAa,SAAS;aAAG;SAAE;QAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;QAC9B,MAAM,aAAa,KAAK,CAAC;QAChC,KAAY,YAAY;YAAG,CAAC,IAAA;YAAE,CAAC,IAAA;YAAE,CAAC,IAAA;SAAE;KACrD;IACa,MAAM,OAAO,SAAS;KAAG;IACzB,MAAM,UAAU,WAAW,SAAK;IAChC,MAAM,WAAW,iBAAiB,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAChE,MAAM,WAAW,aAAa,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACtE,MAAM,QAAQ,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAC3D,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,MAAM,aAAa,KAAK,CAAC;IAChC,MAAM,MAAM,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;;;ICzBlD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"6923704418-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n export class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n }\r\n export namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n }\r\n export class internalC {\r\n }\r\n export function internalfoo(): void;\r\n export namespace internalNamespace {\r\n class someClass {\r\n }\r\n }\r\n export namespace internalOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import internalImport = internalNamespace.someClass;\r\n export type internalType = internalC;\r\n export const internalConst = 10;\r\n export enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["4331635807-/*@internal*/ const myGlob = 20;","21054576574-export const x = 10;\nexport class normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nexport namespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ export class internalC {}\n/*@internal*/ export function internalfoo() {}\n/*@internal*/ export namespace internalNamespace { export class someClass {} }\n/*@internal*/ export namespace internalOther.something { export class someClass {} }\n/*@internal*/ export import internalImport = internalNamespace.someClass;\n/*@internal*/ export type internalType = internalC;\n/*@internal*/ export const internalConst = 10;\n/*@internal*/ export enum internalEnum { a, b, c }","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"16122271483-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n export class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n }\r\n export namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n }\r\n export class internalC {\r\n }\r\n export function internalfoo(): void;\r\n export namespace internalNamespace {\r\n class someClass {\r\n }\r\n }\r\n export namespace internalOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import internalImport = internalNamespace.someClass;\r\n export type internalType = internalC;\r\n export const internalConst = 10;\r\n export enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -4865,10 +4865,10 @@ declare const globalConst = 10; "outFile": "./module.js" }, "outSignature": "16122271483-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n export class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n }\r\n export namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n }\r\n export class internalC {\r\n }\r\n export function internalfoo(): void;\r\n export namespace internalNamespace {\r\n class someClass {\r\n }\r\n }\r\n export namespace internalOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import internalImport = internalNamespace.someClass;\r\n export type internalType = internalC;\r\n export const internalConst = 10;\r\n export enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n", - "dtsChangeTime": 12000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 13096 + "size": 13113 } @@ -4907,17 +4907,17 @@ export namespace normalN { Output:: /lib/tsc --b /src/app --verbose -[12:00:37 AM] Projects in this build: +[12:00:35 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:38 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:00:36 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:00:39 AM] Building project '/src/lib/tsconfig.json'... +[12:00:37 AM] Building project '/src/lib/tsconfig.json'... -[12:00:48 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:00:45 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:00:49 AM] Updating output of project '/src/app/tsconfig.json'... +[12:00:46 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -6592,7 +6592,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":4411,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":4411,"kind":"text"}]},{"pos":4411,"end":4637,"kind":"text"}],"mapHash":"-21544975008-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICzBpD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-25974477915-/*@internal*/ var myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0;\r\n exports.x = 10;\r\n var normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n }());\r\n exports.normalC = normalC;\r\n var normalN;\r\n (function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n })(normalN = exports.normalN || (exports.normalN = {}));\r\n /*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n }());\r\n exports.internalC = internalC;\r\n /*@internal*/ function internalfoo() { }\r\n exports.internalfoo = internalfoo;\r\n /*@internal*/ var internalNamespace;\r\n (function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {}));\r\n /*@internal*/ var internalOther;\r\n (function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n })(internalOther = exports.internalOther || (exports.internalOther = {}));\r\n /*@internal*/ exports.internalImport = internalNamespace.someClass;\r\n /*@internal*/ exports.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = exports.internalEnum || (exports.internalEnum = {}));\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":217,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":217,"kind":"text"}]},{"pos":217,"end":299,"kind":"text"}],"mapHash":"12507664209-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;KAMnB;IACD,MAAM,WAAW,OAAO,CAAC;KASxB;;;ICjBD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"17014126216-declare module \"file1\" {\r\n export const x = 10;\r\n export class normalC {\r\n }\r\n export namespace normalN {\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"21439035937-declare module \"file1\" {\r\n export const x = 10;\r\n export class normalC {\r\n }\r\n export namespace normalN {\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n","dtsChangeTime":23000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":4411,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":4411,"kind":"text"}]},{"pos":4411,"end":4637,"kind":"text"}],"mapHash":"-21544975008-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICzBpD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-25974477915-/*@internal*/ var myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0;\r\n exports.x = 10;\r\n var normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n }());\r\n exports.normalC = normalC;\r\n var normalN;\r\n (function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n })(normalN = exports.normalN || (exports.normalN = {}));\r\n /*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n }());\r\n exports.internalC = internalC;\r\n /*@internal*/ function internalfoo() { }\r\n exports.internalfoo = internalfoo;\r\n /*@internal*/ var internalNamespace;\r\n (function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {}));\r\n /*@internal*/ var internalOther;\r\n (function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n })(internalOther = exports.internalOther || (exports.internalOther = {}));\r\n /*@internal*/ exports.internalImport = internalNamespace.someClass;\r\n /*@internal*/ exports.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = exports.internalEnum || (exports.internalEnum = {}));\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":217,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":217,"kind":"text"}]},{"pos":217,"end":299,"kind":"text"}],"mapHash":"12507664209-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;KAMnB;IACD,MAAM,WAAW,OAAO,CAAC;KASxB;;;ICjBD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"17014126216-declare module \"file1\" {\r\n export const x = 10;\r\n export class normalC {\r\n }\r\n export namespace normalN {\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"21439035937-declare module \"file1\" {\r\n export const x = 10;\r\n export class normalC {\r\n }\r\n export namespace normalN {\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -6816,13 +6816,12 @@ declare const myVar = 30; "outFile": "./module.js" }, "outSignature": "21439035937-declare module \"file1\" {\r\n export const x = 10;\r\n export class normalC {\r\n }\r\n export namespace normalN {\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n", - "dtsChangeTime": 23000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 9261 + "size": 9278 } -//// [/src/lib/module.d.ts] file written with same contents //// [/src/lib/module.d.ts.map] file written with same contents //// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents //// [/src/lib/module.js] @@ -8434,7 +8433,7 @@ sourceFile:global.ts >>>//# sourceMappingURL=module.js.map //// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":4411,"kind":"text"}],"mapHash":"13458659400-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICzBpD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"-60704068049-/*@internal*/ var myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0;\r\n exports.x = 10;\r\n var normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n }());\r\n exports.normalC = normalC;\r\n var normalN;\r\n (function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n })(normalN = exports.normalN || (exports.normalN = {}));\r\n /*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n }());\r\n exports.internalC = internalC;\r\n /*@internal*/ function internalfoo() { }\r\n exports.internalfoo = internalfoo;\r\n /*@internal*/ var internalNamespace;\r\n (function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {}));\r\n /*@internal*/ var internalOther;\r\n (function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n })(internalOther = exports.internalOther || (exports.internalOther = {}));\r\n /*@internal*/ exports.internalImport = internalNamespace.someClass;\r\n /*@internal*/ exports.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = exports.internalEnum || (exports.internalEnum = {}));\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":26,"kind":"internal"},{"pos":28,"end":108,"kind":"text"},{"pos":108,"end":233,"kind":"internal"},{"pos":235,"end":274,"kind":"text"},{"pos":274,"end":742,"kind":"internal"},{"pos":744,"end":751,"kind":"text"},{"pos":751,"end":1240,"kind":"internal"},{"pos":1242,"end":1333,"kind":"text"}],"mapHash":"-20111650778-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAc,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAhC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;;QAEF,IAAI,EAAE,MAAM,CAAC;QACb,MAAM;QACN,IAAI,CAAC,IACM,MAAM,CADK;QACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;KACvC;IACD,MAAM,WAAW,OAAO,CAAC;QACP,MAAa,CAAC;SAAI;QAClB,SAAgB,GAAG,SAAK;QACxB,UAAiB,aAAa,CAAC;YAAE,MAAa,CAAC;aAAG;SAAE;QACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;YAAE,MAAa,SAAS;aAAG;SAAE;QAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;QAC9B,MAAM,aAAa,KAAK,CAAC;QAChC,KAAY,YAAY;YAAG,CAAC,IAAA;YAAE,CAAC,IAAA;YAAE,CAAC,IAAA;SAAE;KACrD;IACa,MAAM,OAAO,SAAS;KAAG;IACzB,MAAM,UAAU,WAAW,SAAK;IAChC,MAAM,WAAW,iBAAiB,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAChE,MAAM,WAAW,aAAa,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACtE,MAAM,QAAQ,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAC3D,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,MAAM,aAAa,KAAK,CAAC;IAChC,MAAM,MAAM,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;;;ICzBlD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"6923704418-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n export class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n }\r\n export namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n }\r\n export class internalC {\r\n }\r\n export function internalfoo(): void;\r\n export namespace internalNamespace {\r\n class someClass {\r\n }\r\n }\r\n export namespace internalOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import internalImport = internalNamespace.someClass;\r\n export type internalType = internalC;\r\n export const internalConst = 10;\r\n export enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["4331635807-/*@internal*/ const myGlob = 20;","15501672357-export const x = 10;\nexport class normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nexport namespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ export class internalC {}\n/*@internal*/ export function internalfoo() {}\n/*@internal*/ export namespace internalNamespace { export class someClass {} }\n/*@internal*/ export namespace internalOther.something { export class someClass {} }\n/*@internal*/ export import internalImport = internalNamespace.someClass;\n/*@internal*/ export type internalType = internalC;\n/*@internal*/ export const internalConst = 10;\n/*@internal*/ export enum internalEnum { a, b, c }console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"16122271483-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n export class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n }\r\n export namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n }\r\n export class internalC {\r\n }\r\n export function internalfoo(): void;\r\n export namespace internalNamespace {\r\n class someClass {\r\n }\r\n }\r\n export namespace internalOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import internalImport = internalNamespace.someClass;\r\n export type internalType = internalC;\r\n export const internalConst = 10;\r\n export enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","dtsChangeTime":12000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":4411,"kind":"text"}],"mapHash":"13458659400-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICzBpD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"-60704068049-/*@internal*/ var myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0;\r\n exports.x = 10;\r\n var normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n }());\r\n exports.normalC = normalC;\r\n var normalN;\r\n (function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n })(normalN = exports.normalN || (exports.normalN = {}));\r\n /*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n }());\r\n exports.internalC = internalC;\r\n /*@internal*/ function internalfoo() { }\r\n exports.internalfoo = internalfoo;\r\n /*@internal*/ var internalNamespace;\r\n (function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {}));\r\n /*@internal*/ var internalOther;\r\n (function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n })(internalOther = exports.internalOther || (exports.internalOther = {}));\r\n /*@internal*/ exports.internalImport = internalNamespace.someClass;\r\n /*@internal*/ exports.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = exports.internalEnum || (exports.internalEnum = {}));\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":26,"kind":"internal"},{"pos":28,"end":108,"kind":"text"},{"pos":108,"end":233,"kind":"internal"},{"pos":235,"end":274,"kind":"text"},{"pos":274,"end":742,"kind":"internal"},{"pos":744,"end":751,"kind":"text"},{"pos":751,"end":1240,"kind":"internal"},{"pos":1242,"end":1333,"kind":"text"}],"mapHash":"-20111650778-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAc,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAhC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;;QAEF,IAAI,EAAE,MAAM,CAAC;QACb,MAAM;QACN,IAAI,CAAC,IACM,MAAM,CADK;QACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;KACvC;IACD,MAAM,WAAW,OAAO,CAAC;QACP,MAAa,CAAC;SAAI;QAClB,SAAgB,GAAG,SAAK;QACxB,UAAiB,aAAa,CAAC;YAAE,MAAa,CAAC;aAAG;SAAE;QACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;YAAE,MAAa,SAAS;aAAG;SAAE;QAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;QAC9B,MAAM,aAAa,KAAK,CAAC;QAChC,KAAY,YAAY;YAAG,CAAC,IAAA;YAAE,CAAC,IAAA;YAAE,CAAC,IAAA;SAAE;KACrD;IACa,MAAM,OAAO,SAAS;KAAG;IACzB,MAAM,UAAU,WAAW,SAAK;IAChC,MAAM,WAAW,iBAAiB,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAChE,MAAM,WAAW,aAAa,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACtE,MAAM,QAAQ,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAC3D,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,MAAM,aAAa,KAAK,CAAC;IAChC,MAAM,MAAM,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;;;ICzBlD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"6923704418-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n export class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n }\r\n export namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n }\r\n export class internalC {\r\n }\r\n export function internalfoo(): void;\r\n export namespace internalNamespace {\r\n class someClass {\r\n }\r\n }\r\n export namespace internalOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import internalImport = internalNamespace.someClass;\r\n export type internalType = internalC;\r\n export const internalConst = 10;\r\n export enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["4331635807-/*@internal*/ const myGlob = 20;","15501672357-export const x = 10;\nexport class normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nexport namespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ export class internalC {}\n/*@internal*/ export function internalfoo() {}\n/*@internal*/ export namespace internalNamespace { export class someClass {} }\n/*@internal*/ export namespace internalOther.something { export class someClass {} }\n/*@internal*/ export import internalImport = internalNamespace.someClass;\n/*@internal*/ export type internalType = internalC;\n/*@internal*/ export const internalConst = 10;\n/*@internal*/ export enum internalEnum { a, b, c }console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"16122271483-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n export class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n }\r\n export namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n }\r\n export class internalC {\r\n }\r\n export function internalfoo(): void;\r\n export namespace internalNamespace {\r\n class someClass {\r\n }\r\n }\r\n export namespace internalOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import internalImport = internalNamespace.someClass;\r\n export type internalType = internalC;\r\n export const internalConst = 10;\r\n export enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -8713,10 +8712,10 @@ declare const globalConst = 10; "outFile": "./module.js" }, "outSignature": "16122271483-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n export class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n }\r\n export namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n }\r\n export class internalC {\r\n }\r\n export function internalfoo(): void;\r\n export namespace internalNamespace {\r\n class someClass {\r\n }\r\n }\r\n export namespace internalOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import internalImport = internalNamespace.someClass;\r\n export type internalType = internalC;\r\n export const internalConst = 10;\r\n export enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n", - "dtsChangeTime": 12000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 13182 + "size": 13199 } @@ -8755,17 +8754,17 @@ export namespace normalN { Output:: /lib/tsc --b /src/app --verbose -[12:01:00 AM] Projects in this build: +[12:00:57 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:01:01 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:00:58 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:01:02 AM] Building project '/src/lib/tsconfig.json'... +[12:00:59 AM] Building project '/src/lib/tsconfig.json'... -[12:01:11 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:01:07 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:01:12 AM] Updating output of project '/src/app/tsconfig.json'... +[12:01:08 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -10647,7 +10646,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":4425,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":4425,"kind":"text"}]},{"pos":4425,"end":4651,"kind":"text"}],"mapHash":"59653473212-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAhC,aAAa,CAAc,QAAA,CAAC,GAAG,EAAE,CAAC;IAClC;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICzBpD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-28060741068-/*@internal*/ var myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0;\r\n /*@internal*/ exports.x = 10;\r\n var normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n }());\r\n exports.normalC = normalC;\r\n var normalN;\r\n (function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n })(normalN = exports.normalN || (exports.normalN = {}));\r\n /*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n }());\r\n exports.internalC = internalC;\r\n /*@internal*/ function internalfoo() { }\r\n exports.internalfoo = internalfoo;\r\n /*@internal*/ var internalNamespace;\r\n (function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {}));\r\n /*@internal*/ var internalOther;\r\n (function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n })(internalOther = exports.internalOther || (exports.internalOther = {}));\r\n /*@internal*/ exports.internalImport = internalNamespace.someClass;\r\n /*@internal*/ exports.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = exports.internalEnum || (exports.internalEnum = {}));\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":191,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":191,"kind":"text"}]},{"pos":191,"end":273,"kind":"text"}],"mapHash":"-49236694807-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";IACA,MAAM,OAAO,OAAO;KAMnB;IACD,MAAM,WAAW,OAAO,CAAC;KASxB;;;ICjBD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"20887384567-declare module \"file1\" {\r\n export class normalC {\r\n }\r\n export namespace normalN {\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"22164052496-declare module \"file1\" {\r\n export class normalC {\r\n }\r\n export namespace normalN {\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n","dtsChangeTime":73000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":4425,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":4425,"kind":"text"}]},{"pos":4425,"end":4651,"kind":"text"}],"mapHash":"59653473212-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAhC,aAAa,CAAc,QAAA,CAAC,GAAG,EAAE,CAAC;IAClC;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICzBpD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-28060741068-/*@internal*/ var myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0;\r\n /*@internal*/ exports.x = 10;\r\n var normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n }());\r\n exports.normalC = normalC;\r\n var normalN;\r\n (function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n })(normalN = exports.normalN || (exports.normalN = {}));\r\n /*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n }());\r\n exports.internalC = internalC;\r\n /*@internal*/ function internalfoo() { }\r\n exports.internalfoo = internalfoo;\r\n /*@internal*/ var internalNamespace;\r\n (function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {}));\r\n /*@internal*/ var internalOther;\r\n (function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n })(internalOther = exports.internalOther || (exports.internalOther = {}));\r\n /*@internal*/ exports.internalImport = internalNamespace.someClass;\r\n /*@internal*/ exports.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = exports.internalEnum || (exports.internalEnum = {}));\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":191,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":191,"kind":"text"}]},{"pos":191,"end":273,"kind":"text"}],"mapHash":"-49236694807-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";IACA,MAAM,OAAO,OAAO;KAMnB;IACD,MAAM,WAAW,OAAO,CAAC;KASxB;;;ICjBD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"20887384567-declare module \"file1\" {\r\n export class normalC {\r\n }\r\n export namespace normalN {\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"22164052496-declare module \"file1\" {\r\n export class normalC {\r\n }\r\n export namespace normalN {\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -10870,13 +10869,12 @@ declare const myVar = 30; "outFile": "./module.js" }, "outSignature": "22164052496-declare module \"file1\" {\r\n export class normalC {\r\n }\r\n export namespace normalN {\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n", - "dtsChangeTime": 73000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 9193 + "size": 9210 } -//// [/src/lib/module.d.ts] file written with same contents //// [/src/lib/module.d.ts.map] {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAc,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IAClC,MAAM,OAAO,OAAO;;QAEF,IAAI,EAAE,MAAM,CAAC;QACb,MAAM;QACN,IAAI,CAAC,IACM,MAAM,CADK;QACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;KACvC;IACD,MAAM,WAAW,OAAO,CAAC;QACP,MAAa,CAAC;SAAI;QAClB,SAAgB,GAAG,SAAK;QACxB,UAAiB,aAAa,CAAC;YAAE,MAAa,CAAC;aAAG;SAAE;QACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;YAAE,MAAa,SAAS;aAAG;SAAE;QAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;QAC9B,MAAM,aAAa,KAAK,CAAC;QAChC,KAAY,YAAY;YAAG,CAAC,IAAA;YAAE,CAAC,IAAA;YAAE,CAAC,IAAA;SAAE;KACrD;IACa,MAAM,OAAO,SAAS;KAAG;IACzB,MAAM,UAAU,WAAW,SAAK;IAChC,MAAM,WAAW,iBAAiB,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAChE,MAAM,WAAW,aAAa,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACtE,MAAM,QAAQ,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAC3D,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,MAAM,aAAa,KAAK,CAAC;IAChC,MAAM,MAAM,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;;;ICzBlD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} @@ -13231,7 +13229,7 @@ sourceFile:global.ts >>>//# sourceMappingURL=module.js.map //// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":4425,"kind":"text"}],"mapHash":"-54033237660-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAhC,aAAa,CAAc,QAAA,CAAC,GAAG,EAAE,CAAC;IAClC;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICzBpD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"-22692085506-/*@internal*/ var myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0;\r\n /*@internal*/ exports.x = 10;\r\n var normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n }());\r\n exports.normalC = normalC;\r\n var normalN;\r\n (function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n })(normalN = exports.normalN || (exports.normalN = {}));\r\n /*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n }());\r\n exports.internalC = internalC;\r\n /*@internal*/ function internalfoo() { }\r\n exports.internalfoo = internalfoo;\r\n /*@internal*/ var internalNamespace;\r\n (function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {}));\r\n /*@internal*/ var internalOther;\r\n (function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n })(internalOther = exports.internalOther || (exports.internalOther = {}));\r\n /*@internal*/ exports.internalImport = internalNamespace.someClass;\r\n /*@internal*/ exports.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = exports.internalEnum || (exports.internalEnum = {}));\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":26,"kind":"internal"},{"pos":28,"end":54,"kind":"text"},{"pos":54,"end":78,"kind":"internal"},{"pos":80,"end":108,"kind":"text"},{"pos":108,"end":233,"kind":"internal"},{"pos":235,"end":274,"kind":"text"},{"pos":274,"end":742,"kind":"internal"},{"pos":744,"end":751,"kind":"text"},{"pos":751,"end":1240,"kind":"internal"},{"pos":1242,"end":1333,"kind":"text"}],"mapHash":"58024379814-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAc,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IAClC,MAAM,OAAO,OAAO;;QAEF,IAAI,EAAE,MAAM,CAAC;QACb,MAAM;QACN,IAAI,CAAC,IACM,MAAM,CADK;QACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;KACvC;IACD,MAAM,WAAW,OAAO,CAAC;QACP,MAAa,CAAC;SAAI;QAClB,SAAgB,GAAG,SAAK;QACxB,UAAiB,aAAa,CAAC;YAAE,MAAa,CAAC;aAAG;SAAE;QACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;YAAE,MAAa,SAAS;aAAG;SAAE;QAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;QAC9B,MAAM,aAAa,KAAK,CAAC;QAChC,KAAY,YAAY;YAAG,CAAC,IAAA;YAAE,CAAC,IAAA;YAAE,CAAC,IAAA;SAAE;KACrD;IACa,MAAM,OAAO,SAAS;KAAG;IACzB,MAAM,UAAU,WAAW,SAAK;IAChC,MAAM,WAAW,iBAAiB,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAChE,MAAM,WAAW,aAAa,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACtE,MAAM,QAAQ,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAC3D,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,MAAM,aAAa,KAAK,CAAC;IAChC,MAAM,MAAM,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;;;ICzBlD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"6923704418-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n export class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n }\r\n export namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n }\r\n export class internalC {\r\n }\r\n export function internalfoo(): void;\r\n export namespace internalNamespace {\r\n class someClass {\r\n }\r\n }\r\n export namespace internalOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import internalImport = internalNamespace.someClass;\r\n export type internalType = internalC;\r\n export const internalConst = 10;\r\n export enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["4331635807-/*@internal*/ const myGlob = 20;","40359149204-/*@internal*/ export const x = 10;\nexport class normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nexport namespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ export class internalC {}\n/*@internal*/ export function internalfoo() {}\n/*@internal*/ export namespace internalNamespace { export class someClass {} }\n/*@internal*/ export namespace internalOther.something { export class someClass {} }\n/*@internal*/ export import internalImport = internalNamespace.someClass;\n/*@internal*/ export type internalType = internalC;\n/*@internal*/ export const internalConst = 10;\n/*@internal*/ export enum internalEnum { a, b, c }console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"16122271483-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n export class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n }\r\n export namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n }\r\n export class internalC {\r\n }\r\n export function internalfoo(): void;\r\n export namespace internalNamespace {\r\n class someClass {\r\n }\r\n }\r\n export namespace internalOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import internalImport = internalNamespace.someClass;\r\n export type internalType = internalC;\r\n export const internalConst = 10;\r\n export enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","dtsChangeTime":12000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":4425,"kind":"text"}],"mapHash":"-54033237660-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAhC,aAAa,CAAc,QAAA,CAAC,GAAG,EAAE,CAAC;IAClC;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICzBpD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"-22692085506-/*@internal*/ var myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0;\r\n /*@internal*/ exports.x = 10;\r\n var normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n }());\r\n exports.normalC = normalC;\r\n var normalN;\r\n (function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n })(normalN = exports.normalN || (exports.normalN = {}));\r\n /*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n }());\r\n exports.internalC = internalC;\r\n /*@internal*/ function internalfoo() { }\r\n exports.internalfoo = internalfoo;\r\n /*@internal*/ var internalNamespace;\r\n (function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {}));\r\n /*@internal*/ var internalOther;\r\n (function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n })(internalOther = exports.internalOther || (exports.internalOther = {}));\r\n /*@internal*/ exports.internalImport = internalNamespace.someClass;\r\n /*@internal*/ exports.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = exports.internalEnum || (exports.internalEnum = {}));\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":26,"kind":"internal"},{"pos":28,"end":54,"kind":"text"},{"pos":54,"end":78,"kind":"internal"},{"pos":80,"end":108,"kind":"text"},{"pos":108,"end":233,"kind":"internal"},{"pos":235,"end":274,"kind":"text"},{"pos":274,"end":742,"kind":"internal"},{"pos":744,"end":751,"kind":"text"},{"pos":751,"end":1240,"kind":"internal"},{"pos":1242,"end":1333,"kind":"text"}],"mapHash":"58024379814-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAc,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IAClC,MAAM,OAAO,OAAO;;QAEF,IAAI,EAAE,MAAM,CAAC;QACb,MAAM;QACN,IAAI,CAAC,IACM,MAAM,CADK;QACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;KACvC;IACD,MAAM,WAAW,OAAO,CAAC;QACP,MAAa,CAAC;SAAI;QAClB,SAAgB,GAAG,SAAK;QACxB,UAAiB,aAAa,CAAC;YAAE,MAAa,CAAC;aAAG;SAAE;QACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;YAAE,MAAa,SAAS;aAAG;SAAE;QAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;QAC9B,MAAM,aAAa,KAAK,CAAC;QAChC,KAAY,YAAY;YAAG,CAAC,IAAA;YAAE,CAAC,IAAA;YAAE,CAAC,IAAA;SAAE;KACrD;IACa,MAAM,OAAO,SAAS;KAAG;IACzB,MAAM,UAAU,WAAW,SAAK;IAChC,MAAM,WAAW,iBAAiB,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAChE,MAAM,WAAW,aAAa,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACtE,MAAM,QAAQ,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAC3D,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,MAAM,aAAa,KAAK,CAAC;IAChC,MAAM,MAAM,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;;;ICzBlD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"6923704418-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n export class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n }\r\n export namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n }\r\n export class internalC {\r\n }\r\n export function internalfoo(): void;\r\n export namespace internalNamespace {\r\n class someClass {\r\n }\r\n }\r\n export namespace internalOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import internalImport = internalNamespace.someClass;\r\n export type internalType = internalC;\r\n export const internalConst = 10;\r\n export enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["4331635807-/*@internal*/ const myGlob = 20;","40359149204-/*@internal*/ export const x = 10;\nexport class normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nexport namespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ export class internalC {}\n/*@internal*/ export function internalfoo() {}\n/*@internal*/ export namespace internalNamespace { export class someClass {} }\n/*@internal*/ export namespace internalOther.something { export class someClass {} }\n/*@internal*/ export import internalImport = internalNamespace.someClass;\n/*@internal*/ export type internalType = internalC;\n/*@internal*/ export const internalConst = 10;\n/*@internal*/ export enum internalEnum { a, b, c }console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"16122271483-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n export class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n }\r\n export namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n }\r\n export class internalC {\r\n }\r\n export function internalfoo(): void;\r\n export namespace internalNamespace {\r\n class someClass {\r\n }\r\n }\r\n export namespace internalOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import internalImport = internalNamespace.someClass;\r\n export type internalType = internalC;\r\n export const internalConst = 10;\r\n export enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -13525,9 +13523,9 @@ declare const globalConst = 10; "outFile": "./module.js" }, "outSignature": "16122271483-declare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n export class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n }\r\n export namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n }\r\n export class internalC {\r\n }\r\n export function internalfoo(): void;\r\n export namespace internalNamespace {\r\n class someClass {\r\n }\r\n }\r\n export namespace internalOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import internalImport = internalNamespace.someClass;\r\n export type internalType = internalC;\r\n export const internalConst = 10;\r\n export enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n", - "dtsChangeTime": 12000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 13292 + "size": 13309 } diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/triple-slash-refs-in-all-projects.js index eeffeb86d67..da27bd36a7c 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/triple-slash-refs-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/triple-slash-refs-in-all-projects.js @@ -87,9 +87,9 @@ Output:: [12:00:12 AM] Building project '/src/lib/tsconfig.json'... -[12:00:22 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:21 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:23 AM] Building project '/src/app/tsconfig.json'... +[12:00:22 AM] Building project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -606,7 +606,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":534,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":534,"kind":"text"}]},{"pos":534,"end":835,"kind":"text"}],"mapHash":"-46462971872-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-27448163087-///\r\nvar file0Const = new libfile0();\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\n///\r\nvar file4Const = new appfile4();\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"reference","data":"tripleRef.d.ts"},{"pos":41,"end":87,"kind":"reference","data":"../lib/tripleRef.d.ts"},{"pos":89,"end":297,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":89,"end":297,"kind":"text"}]},{"pos":297,"end":416,"kind":"text"}],"mapHash":"-41692709617-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;AACA,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,MAAM,KAAK,CAAC;;ICFlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACCpB,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-15518908315-/// \r\n/// \r\ndeclare const file0Const: libfile0;\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const file4Const: appfile4;\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts","./tripleref.d.ts"],"fileInfos":["-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","15433167512-///\nconst file4Const = new appfile4();\nconst myVar = 30;","-3347356200-declare class appfile4 { }"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"-8754271874-/// \r\n/// \r\ndeclare const file0Const: libfile0;\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const file4Const: appfile4;\r\ndeclare const myVar = 30;\r\n","dtsChangeTime":24000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":534,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":534,"kind":"text"}]},{"pos":534,"end":835,"kind":"text"}],"mapHash":"-46462971872-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-27448163087-///\r\nvar file0Const = new libfile0();\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\n///\r\nvar file4Const = new appfile4();\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"reference","data":"tripleRef.d.ts"},{"pos":41,"end":87,"kind":"reference","data":"../lib/tripleRef.d.ts"},{"pos":89,"end":297,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":89,"end":297,"kind":"text"}]},{"pos":297,"end":416,"kind":"text"}],"mapHash":"-41692709617-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;AACA,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,MAAM,KAAK,CAAC;;ICFlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACCpB,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-15518908315-/// \r\n/// \r\ndeclare const file0Const: libfile0;\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const file4Const: appfile4;\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts","./tripleref.d.ts"],"fileInfos":["-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","15433167512-///\nconst file4Const = new appfile4();\nconst myVar = 30;","-3347356200-declare class appfile4 { }"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"-8754271874-/// \r\n/// \r\ndeclare const file0Const: libfile0;\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const file4Const: appfile4;\r\ndeclare const myVar = 30;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -762,10 +762,10 @@ declare const myVar = 30; "outFile": "./module.js" }, "outSignature": "-8754271874-/// \r\n/// \r\ndeclare const file0Const: libfile0;\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const file4Const: appfile4;\r\ndeclare const myVar = 30;\r\n", - "dtsChangeTime": 24000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 3981 + "size": 3998 } //// [/src/lib/module.d.ts] @@ -1099,7 +1099,7 @@ sourceFile:global.ts >>>//# sourceMappingURL=module.js.map //// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":534,"kind":"text"}],"mapHash":"31519598606-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"-20825957251-///\r\nvar file0Const = new libfile0();\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"reference","data":"tripleRef.d.ts"},{"pos":41,"end":249,"kind":"text"}],"mapHash":"9669155184-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,MAAM,KAAK,CAAC;;ICFlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"31314402083-/// \r\ndeclare const file0Const: libfile0;\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts","./tripleref.d.ts"],"fileInfos":["11210734432-///\nconst file0Const = new libfile0();\nconst myGlob = 20;","-10726455937-export const x = 10;","-13729954175-export const y = 20;","1028229885-const globalConst = 10;","-2339691926-declare class libfile0 { }"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"31940992316-/// \r\ndeclare const file0Const: libfile0;\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","dtsChangeTime":13000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":534,"kind":"text"}],"mapHash":"31519598606-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"-20825957251-///\r\nvar file0Const = new libfile0();\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"reference","data":"tripleRef.d.ts"},{"pos":41,"end":249,"kind":"text"}],"mapHash":"9669155184-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,MAAM,KAAK,CAAC;;ICFlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"31314402083-/// \r\ndeclare const file0Const: libfile0;\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts","./tripleref.d.ts"],"fileInfos":["11210734432-///\nconst file0Const = new libfile0();\nconst myGlob = 20;","-10726455937-export const x = 10;","-13729954175-export const y = 20;","1028229885-const globalConst = 10;","-2339691926-declare class libfile0 { }"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"31940992316-/// \r\ndeclare const file0Const: libfile0;\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -1202,10 +1202,10 @@ declare const globalConst = 10; "outFile": "./module.js" }, "outSignature": "31940992316-/// \r\ndeclare const file0Const: libfile0;\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n", - "dtsChangeTime": 13000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 2756 + "size": 2773 } @@ -1219,17 +1219,17 @@ export const x = 10;console.log(x); Output:: /lib/tsc --b /src/app --verbose -[12:00:38 AM] Projects in this build: +[12:00:36 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:39 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:00:37 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:00:40 AM] Building project '/src/lib/tsconfig.json'... +[12:00:38 AM] Building project '/src/lib/tsconfig.json'... -[12:00:49 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:00:46 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:00:50 AM] Updating output of project '/src/app/tsconfig.json'... +[12:00:47 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -1537,7 +1537,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":563,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":563,"kind":"text"}]},{"pos":563,"end":864,"kind":"text"}],"mapHash":"-8132351063-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-9056748078-///\r\nvar file0Const = new libfile0();\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\n///\r\nvar file4Const = new appfile4();\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"reference","data":"tripleRef.d.ts"},{"pos":41,"end":87,"kind":"reference","data":"../lib/tripleRef.d.ts"},{"pos":89,"end":297,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":89,"end":297,"kind":"text"}]},{"pos":297,"end":416,"kind":"text"}],"mapHash":"-41692709617-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;AACA,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,MAAM,KAAK,CAAC;;ICFlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACCpB,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-15518908315-/// \r\n/// \r\ndeclare const file0Const: libfile0;\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const file4Const: appfile4;\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts","./tripleref.d.ts"],"fileInfos":["-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","15433167512-///\nconst file4Const = new appfile4();\nconst myVar = 30;","-3347356200-declare class appfile4 { }"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"-8754271874-/// \r\n/// \r\ndeclare const file0Const: libfile0;\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const file4Const: appfile4;\r\ndeclare const myVar = 30;\r\n","dtsChangeTime":24000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":563,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":563,"kind":"text"}]},{"pos":563,"end":864,"kind":"text"}],"mapHash":"-8132351063-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-9056748078-///\r\nvar file0Const = new libfile0();\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\n///\r\nvar file4Const = new appfile4();\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"reference","data":"tripleRef.d.ts"},{"pos":41,"end":87,"kind":"reference","data":"../lib/tripleRef.d.ts"},{"pos":89,"end":297,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":89,"end":297,"kind":"text"}]},{"pos":297,"end":416,"kind":"text"}],"mapHash":"-41692709617-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;AACA,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,MAAM,KAAK,CAAC;;ICFlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACCpB,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-15518908315-/// \r\n/// \r\ndeclare const file0Const: libfile0;\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const file4Const: appfile4;\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts","./tripleref.d.ts"],"fileInfos":["-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","15433167512-///\nconst file4Const = new appfile4();\nconst myVar = 30;","-3347356200-declare class appfile4 { }"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"-8754271874-/// \r\n/// \r\ndeclare const file0Const: libfile0;\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const file4Const: appfile4;\r\ndeclare const myVar = 30;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -1694,13 +1694,12 @@ declare const myVar = 30; "outFile": "./module.js" }, "outSignature": "-8754271874-/// \r\n/// \r\ndeclare const file0Const: libfile0;\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const file4Const: appfile4;\r\ndeclare const myVar = 30;\r\n", - "dtsChangeTime": 24000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 4051 + "size": 4068 } -//// [/src/lib/module.d.ts] file written with same contents //// [/src/lib/module.d.ts.map] file written with same contents //// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents //// [/src/lib/module.js] @@ -1907,7 +1906,7 @@ sourceFile:global.ts >>>//# sourceMappingURL=module.js.map //// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":563,"kind":"text"}],"mapHash":"25718032631-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"-4814475330-///\r\nvar file0Const = new libfile0();\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"reference","data":"tripleRef.d.ts"},{"pos":41,"end":249,"kind":"text"}],"mapHash":"9669155184-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,MAAM,KAAK,CAAC;;ICFlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"31314402083-/// \r\ndeclare const file0Const: libfile0;\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts","./tripleref.d.ts"],"fileInfos":["11210734432-///\nconst file0Const = new libfile0();\nconst myGlob = 20;","-4405159098-export const x = 10;console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;","-2339691926-declare class libfile0 { }"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"31940992316-/// \r\ndeclare const file0Const: libfile0;\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","dtsChangeTime":13000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":563,"kind":"text"}],"mapHash":"25718032631-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"-4814475330-///\r\nvar file0Const = new libfile0();\r\nvar myGlob = 20;\r\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n console.log(exports.x);\r\n});\r\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"reference","data":"tripleRef.d.ts"},{"pos":41,"end":249,"kind":"text"}],"mapHash":"9669155184-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,MAAM,KAAK,CAAC;;ICFlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"31314402083-/// \r\ndeclare const file0Const: libfile0;\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file0.ts","./file1.ts","./file2.ts","./global.ts","./tripleref.d.ts"],"fileInfos":["11210734432-///\nconst file0Const = new libfile0();\nconst myGlob = 20;","-4405159098-export const x = 10;console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;","-2339691926-declare class libfile0 { }"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"31940992316-/// \r\ndeclare const file0Const: libfile0;\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -2011,9 +2010,9 @@ declare const globalConst = 10; "outFile": "./module.js" }, "outSignature": "31940992316-/// \r\ndeclare const file0Const: libfile0;\r\ndeclare const myGlob = 20;\r\ndeclare module \"file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n", - "dtsChangeTime": 13000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 2841 + "size": 2858 } diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/when-the-module-resolution-finds-original-source-file.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/when-the-module-resolution-finds-original-source-file.js index dfd14f76c03..65711b9b708 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/when-the-module-resolution-finds-original-source-file.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/when-the-module-resolution-finds-original-source-file.js @@ -77,9 +77,9 @@ Output:: [12:00:10 AM] Building project '/src/lib/tsconfig.json'... -[12:00:20 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:19 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/app/tsconfig.json'... +[12:00:20 AM] Building project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -471,7 +471,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":467,"kind":"prepend","data":"../module.js","texts":[{"pos":0,"end":467,"kind":"text"}]},{"pos":467,"end":693,"kind":"text"}],"mapHash":"5108062215-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-17566287533-var myGlob = 20;\r\ndefine(\"lib/file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n});\r\ndefine(\"lib/file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":179,"kind":"prepend","data":"../module.d.ts","texts":[{"pos":0,"end":179,"kind":"text"}]},{"pos":179,"end":261,"kind":"text"}],"mapHash":"-41254439122-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"24304607920-declare const myGlob = 20;\r\ndeclare module \"lib/file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"lib/file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["3263932623-export const z = 30;\r\nimport { x } from \"lib/file1\";","1463681686-const myVar = 30;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"22493213257-declare const myGlob = 20;\r\ndeclare module \"lib/file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"lib/file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n","dtsChangeTime":22000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":467,"kind":"prepend","data":"../module.js","texts":[{"pos":0,"end":467,"kind":"text"}]},{"pos":467,"end":693,"kind":"text"}],"mapHash":"5108062215-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-17566287533-var myGlob = 20;\r\ndefine(\"lib/file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n});\r\ndefine(\"lib/file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.z = void 0;\r\n exports.z = 30;\r\n});\r\nvar myVar = 30;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":179,"kind":"prepend","data":"../module.d.ts","texts":[{"pos":0,"end":179,"kind":"text"}]},{"pos":179,"end":261,"kind":"text"}],"mapHash":"-41254439122-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"24304607920-declare const myGlob = 20;\r\ndeclare module \"lib/file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"lib/file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./file3.ts","./file4.ts"],"fileInfos":["3263932623-export const z = 30;\r\nimport { x } from \"lib/file1\";","1463681686-const myVar = 30;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"22493213257-declare const myGlob = 20;\r\ndeclare module \"lib/file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"lib/file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -601,10 +601,10 @@ declare const myVar = 30; "outFile": "./module.js" }, "outSignature": "22493213257-declare const myGlob = 20;\r\ndeclare module \"lib/file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"lib/file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\ndeclare module \"file3\" {\r\n export const z = 30;\r\n}\r\ndeclare const myVar = 30;\r\n", - "dtsChangeTime": 22000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 3037 + "size": 3054 } //// [/src/module.d.ts] @@ -876,7 +876,7 @@ sourceFile:lib/global.ts >>>//# sourceMappingURL=module.js.map //// [/src/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./lib/file0.ts","./lib/file1.ts","./lib/file2.ts","./lib/global.ts"],"js":{"sections":[{"pos":0,"end":467,"kind":"text"}],"mapHash":"-9312331865-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"lib/file0.ts\",\"lib/file1.ts\",\"lib/file2.ts\",\"lib/global.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"-27587743651-var myGlob = 20;\r\ndefine(\"lib/file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n});\r\ndefine(\"lib/file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":179,"kind":"text"}],"mapHash":"34877575893-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"lib/file0.ts\",\"lib/file1.ts\",\"lib/file2.ts\",\"lib/global.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"34671557616-declare const myGlob = 20;\r\ndeclare module \"lib/file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"lib/file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./lib/file0.ts","./lib/file1.ts","./lib/file2.ts","./lib/global.ts"],"fileInfos":["3587416848-const myGlob = 20;","-10726455937-export const x = 10;","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"29375769481-declare const myGlob = 20;\r\ndeclare module \"lib/file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"lib/file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","dtsChangeTime":11000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./lib/file0.ts","./lib/file1.ts","./lib/file2.ts","./lib/global.ts"],"js":{"sections":[{"pos":0,"end":467,"kind":"text"}],"mapHash":"-9312331865-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"lib/file0.ts\",\"lib/file1.ts\",\"lib/file2.ts\",\"lib/global.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"-27587743651-var myGlob = 20;\r\ndefine(\"lib/file1\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.x = void 0;\r\n exports.x = 10;\r\n});\r\ndefine(\"lib/file2\", [\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.y = void 0;\r\n exports.y = 20;\r\n});\r\nvar globalConst = 10;\r\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":179,"kind":"text"}],"mapHash":"34877575893-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"lib/file0.ts\",\"lib/file1.ts\",\"lib/file2.ts\",\"lib/global.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"34671557616-declare const myGlob = 20;\r\ndeclare module \"lib/file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"lib/file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["./lib/file0.ts","./lib/file1.ts","./lib/file2.ts","./lib/global.ts"],"fileInfos":["3587416848-const myGlob = 20;","-10726455937-export const x = 10;","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"options":{"composite":true,"outFile":"./module.js"},"outSignature":"29375769481-declare const myGlob = 20;\r\ndeclare module \"lib/file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"lib/file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -965,9 +965,9 @@ declare const globalConst = 10; "outFile": "./module.js" }, "outSignature": "29375769481-declare const myGlob = 20;\r\ndeclare module \"lib/file1\" {\r\n export const x = 10;\r\n}\r\ndeclare module \"lib/file2\" {\r\n export const y = 20;\r\n}\r\ndeclare const globalConst = 10;\r\n", - "dtsChangeTime": 11000 + "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 2306 + "size": 2323 } diff --git a/tests/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js b/tests/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js index f820ea9cc21..c76b8bc2f3f 100644 --- a/tests/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js +++ b/tests/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js @@ -198,7 +198,7 @@ exports.bar = bar; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"9819159940-export function foo() { }export function fooBar() { }","signature":"-827728784-export declare function foo(): void;\r\nexport declare function fooBar(): void;\r\n"},{"version":"1045484683-export function bar() { }","signature":"-1357953631-export declare function bar(): void;\r\n"}],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":15000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"9819159940-export function foo() { }export function fooBar() { }","signature":"-827728784-export declare function foo(): void;\r\nexport declare function fooBar(): void;\r\n"},{"version":"1045484683-export function bar() { }","signature":"-1357953631-export declare function bar(): void;\r\n"}],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -234,9 +234,9 @@ exports.bar = bar; "./a.ts", "./b.ts" ], - "dtsChangeTime": 15000 + "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 1038 + "size": 1050 } diff --git a/tests/baselines/reference/tsbuild/configFileExtends/when-building-project-uses-reference-and-both-extend-config-with-include.js b/tests/baselines/reference/tsbuild/configFileExtends/when-building-project-uses-reference-and-both-extend-config-with-include.js index 11cc57b86d0..9e64d8abf47 100644 --- a/tests/baselines/reference/tsbuild/configFileExtends/when-building-project-uses-reference-and-both-extend-config-with-include.js +++ b/tests/baselines/reference/tsbuild/configFileExtends/when-building-project-uses-reference-and-both-extend-config-with-include.js @@ -50,9 +50,9 @@ Output:: /lib/lib.d.ts /src/shared/index.ts /src/shared/typings-base/globals.d.ts -[12:00:27 AM] Project 'src/webpack/tsconfig.json' is out of date because output file 'src/target-tsc-build/webpack/tsconfig.tsbuildinfo' does not exist +[12:00:26 AM] Project 'src/webpack/tsconfig.json' is out of date because output file 'src/target-tsc-build/webpack/tsconfig.tsbuildinfo' does not exist -[12:00:28 AM] Building project '/src/webpack/tsconfig.json'... +[12:00:27 AM] Building project '/src/webpack/tsconfig.json'... /lib/lib.d.ts /src/webpack/index.ts @@ -72,7 +72,7 @@ exports.a = 1; //// [/src/target-tsc-build/shared/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../shared/index.ts","../../shared/typings-base/globals.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-22125360210-export const a: Unrestricted = 1;","signature":"-478734393-export declare const a: Unrestricted;\r\n"},{"version":"4725476611-type Unrestricted = any;","affectsGlobalScope":true}],"options":{"composite":true,"outDir":"..","rootDir":"../.."},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":19000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../../shared/index.ts","../../shared/typings-base/globals.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-22125360210-export const a: Unrestricted = 1;","signature":"-478734393-export declare const a: Unrestricted;\r\n"},{"version":"4725476611-type Unrestricted = any;","affectsGlobalScope":true}],"options":{"composite":true,"outDir":"..","rootDir":"../.."},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/target-tsc-build/shared/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -110,10 +110,10 @@ exports.a = 1; "../../shared/index.ts", "../../shared/typings-base/globals.d.ts" ], - "dtsChangeTime": 19000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1002 + "size": 1018 } //// [/src/target-tsc-build/webpack/index.d.ts] @@ -128,7 +128,7 @@ exports.b = 1; //// [/src/target-tsc-build/webpack/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../webpack/index.ts","../../shared/typings-base/globals.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14405273073-export const b: Unrestricted = 1;","signature":"-5074241048-export declare const b: Unrestricted;\r\n"},{"version":"4725476611-type Unrestricted = any;","affectsGlobalScope":true}],"options":{"composite":true,"outDir":"..","rootDir":"../.."},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"dtsChangeTime":29000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../../webpack/index.ts","../../shared/typings-base/globals.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14405273073-export const b: Unrestricted = 1;","signature":"-5074241048-export declare const b: Unrestricted;\r\n"},{"version":"4725476611-type Unrestricted = any;","affectsGlobalScope":true}],"options":{"composite":true,"outDir":"..","rootDir":"../.."},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/target-tsc-build/webpack/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -166,9 +166,9 @@ exports.b = 1; "../../shared/typings-base/globals.d.ts", "../../webpack/index.ts" ], - "dtsChangeTime": 29000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1004 + "size": 1020 } diff --git a/tests/baselines/reference/tsbuild/configFileExtends/when-building-solution-with-projects-extends-config-with-include.js b/tests/baselines/reference/tsbuild/configFileExtends/when-building-solution-with-projects-extends-config-with-include.js index 1113563b29c..57ebac64b38 100644 --- a/tests/baselines/reference/tsbuild/configFileExtends/when-building-solution-with-projects-extends-config-with-include.js +++ b/tests/baselines/reference/tsbuild/configFileExtends/when-building-solution-with-projects-extends-config-with-include.js @@ -51,9 +51,9 @@ Output:: /lib/lib.d.ts /src/shared/index.ts /src/shared/typings-base/globals.d.ts -[12:00:27 AM] Project 'src/webpack/tsconfig.json' is out of date because output file 'src/target-tsc-build/webpack/tsconfig.tsbuildinfo' does not exist +[12:00:26 AM] Project 'src/webpack/tsconfig.json' is out of date because output file 'src/target-tsc-build/webpack/tsconfig.tsbuildinfo' does not exist -[12:00:28 AM] Building project '/src/webpack/tsconfig.json'... +[12:00:27 AM] Building project '/src/webpack/tsconfig.json'... /lib/lib.d.ts /src/webpack/index.ts @@ -73,7 +73,7 @@ exports.a = 1; //// [/src/target-tsc-build/shared/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../shared/index.ts","../../shared/typings-base/globals.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-22125360210-export const a: Unrestricted = 1;","signature":"-478734393-export declare const a: Unrestricted;\r\n"},{"version":"4725476611-type Unrestricted = any;","affectsGlobalScope":true}],"options":{"composite":true,"outDir":"..","rootDir":"../.."},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":19000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../../shared/index.ts","../../shared/typings-base/globals.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-22125360210-export const a: Unrestricted = 1;","signature":"-478734393-export declare const a: Unrestricted;\r\n"},{"version":"4725476611-type Unrestricted = any;","affectsGlobalScope":true}],"options":{"composite":true,"outDir":"..","rootDir":"../.."},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/target-tsc-build/shared/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -111,10 +111,10 @@ exports.a = 1; "../../shared/index.ts", "../../shared/typings-base/globals.d.ts" ], - "dtsChangeTime": 19000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1002 + "size": 1018 } //// [/src/target-tsc-build/webpack/index.d.ts] @@ -129,7 +129,7 @@ exports.b = 1; //// [/src/target-tsc-build/webpack/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../webpack/index.ts","../../shared/typings-base/globals.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14405273073-export const b: Unrestricted = 1;","signature":"-5074241048-export declare const b: Unrestricted;\r\n"},{"version":"4725476611-type Unrestricted = any;","affectsGlobalScope":true}],"options":{"composite":true,"outDir":"..","rootDir":"../.."},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"dtsChangeTime":29000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../../webpack/index.ts","../../shared/typings-base/globals.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14405273073-export const b: Unrestricted = 1;","signature":"-5074241048-export declare const b: Unrestricted;\r\n"},{"version":"4725476611-type Unrestricted = any;","affectsGlobalScope":true}],"options":{"composite":true,"outDir":"..","rootDir":"../.."},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/target-tsc-build/webpack/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -167,9 +167,9 @@ exports.b = 1; "../../shared/typings-base/globals.d.ts", "../../webpack/index.ts" ], - "dtsChangeTime": 29000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1004 + "size": 1020 } diff --git a/tests/baselines/reference/tsbuild/containerOnlyReferenced/verify-that-subsequent-builds-after-initial-build-doesnt-build-anything.js b/tests/baselines/reference/tsbuild/containerOnlyReferenced/verify-that-subsequent-builds-after-initial-build-doesnt-build-anything.js index 49e7a0c317c..adf1f384b80 100644 --- a/tests/baselines/reference/tsbuild/containerOnlyReferenced/verify-that-subsequent-builds-after-initial-build-doesnt-build-anything.js +++ b/tests/baselines/reference/tsbuild/containerOnlyReferenced/verify-that-subsequent-builds-after-initial-build-doesnt-build-anything.js @@ -89,13 +89,13 @@ Output:: [12:00:08 AM] Building project '/src/src/folder/tsconfig.json'... -[12:00:15 AM] Project 'src/src/folder2/tsconfig.json' is out of date because output file 'src/src/folder2/tsconfig.tsbuildinfo' does not exist +[12:00:14 AM] Project 'src/src/folder2/tsconfig.json' is out of date because output file 'src/src/folder2/tsconfig.tsbuildinfo' does not exist -[12:00:16 AM] Building project '/src/src/folder2/tsconfig.json'... +[12:00:15 AM] Building project '/src/src/folder2/tsconfig.json'... -[12:00:23 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist +[12:00:21 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist -[12:00:24 AM] Building project '/src/tests/tsconfig.json'... +[12:00:22 AM] Building project '/src/tests/tsconfig.json'... exitCode:: ExitStatus.Success @@ -112,7 +112,7 @@ exports.x = 10; //// [/src/src/folder/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":9000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/src/folder/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -141,10 +141,10 @@ exports.x = 10; "../../../lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 9000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 818 + "size": 835 } //// [/src/src/folder2/index.d.ts] @@ -159,7 +159,7 @@ exports.x = 10; //// [/src/src/folder2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":17000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/src/folder2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -188,10 +188,10 @@ exports.x = 10; "../../../lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 17000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 819 + "size": 835 } //// [/src/tests/index.d.ts] @@ -206,7 +206,7 @@ exports.x = 10; //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":25000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -235,10 +235,10 @@ exports.x = 10; "../../lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 25000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 816 + "size": 832 } @@ -249,18 +249,18 @@ Input:: Output:: /lib/tsc --b /src --verbose -[12:00:31 AM] Projects in this build: +[12:00:28 AM] Projects in this build: * src/src/folder/tsconfig.json * src/src/folder2/tsconfig.json * src/src/tsconfig.json * src/tests/tsconfig.json * src/tsconfig.json -[12:00:32 AM] Project 'src/src/folder/tsconfig.json' is up to date because newest input 'src/src/folder/index.ts' is older than output 'src/src/folder/tsconfig.tsbuildinfo' +[12:00:29 AM] Project 'src/src/folder/tsconfig.json' is up to date because newest input 'src/src/folder/index.ts' is older than output 'src/src/folder/tsconfig.tsbuildinfo' -[12:00:33 AM] Project 'src/src/folder2/tsconfig.json' is up to date because newest input 'src/src/folder2/index.ts' is older than output 'src/src/folder2/tsconfig.tsbuildinfo' +[12:00:30 AM] Project 'src/src/folder2/tsconfig.json' is up to date because newest input 'src/src/folder2/index.ts' is older than output 'src/src/folder2/tsconfig.tsbuildinfo' -[12:00:34 AM] Project 'src/tests/tsconfig.json' is up to date because newest input 'src/tests/index.ts' is older than output 'src/tests/tsconfig.tsbuildinfo' +[12:00:31 AM] Project 'src/tests/tsconfig.json' is up to date because newest input 'src/tests/index.ts' is older than output 'src/tests/tsconfig.tsbuildinfo' exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js index 094499ec906..87dbec1d83f 100644 --- a/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js +++ b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js @@ -81,7 +81,7 @@ exports.__esModule = true; //// [/src/solution/lib/src/subProject/index.d.ts] import { Nominal } from '../common/nominal'; -export declare type MyNominal = Nominal; +export type MyNominal = Nominal; //// [/src/solution/lib/src/subProject/index.js] @@ -112,7 +112,7 @@ exports.getVar = getVar; //// [/src/solution/lib/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../src/common/types.d.ts","../src/common/nominal.ts","../src/subproject/index.ts","../src/subproject2/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};","affectsGlobalScope":true},{"version":"4107369137-/// \nexport declare type Nominal = MyNominal;","signature":"-18894149496-/// \r\nexport declare type Nominal = MyNominal;\r\n"},{"version":"-25117049605-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;","signature":"-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal;\r\n"},{"version":"2747033208-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}","signature":"-5370006151-import { MyNominal } from '../subProject/index';\r\ndeclare const variable: {\r\n key: MyNominal;\r\n};\r\nexport declare function getVar(): keyof typeof variable;\r\nexport {};\r\n"}],"options":{"composite":true,"outDir":"./","rootDir":".."},"fileIdsList":[[2],[3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"exportedModulesMap":[[4,2],[5,3]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":24000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../src/common/types.d.ts","../src/common/nominal.ts","../src/subproject/index.ts","../src/subproject2/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};","affectsGlobalScope":true},{"version":"4107369137-/// \nexport declare type Nominal = MyNominal;","signature":"-18894149496-/// \r\nexport declare type Nominal = MyNominal;\r\n"},{"version":"-25117049605-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;","signature":"-27144836353-import { Nominal } from '../common/nominal';\r\nexport type MyNominal = Nominal;\r\n"},{"version":"2747033208-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}","signature":"-5370006151-import { MyNominal } from '../subProject/index';\r\ndeclare const variable: {\r\n key: MyNominal;\r\n};\r\nexport declare function getVar(): keyof typeof variable;\r\nexport {};\r\n"}],"options":{"composite":true,"outDir":"./","rootDir":".."},"fileIdsList":[[2],[3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"exportedModulesMap":[[4,2],[5,3]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./src/subProject2/index.d.ts"},"version":"FakeTSVersion"} //// [/src/solution/lib/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -152,7 +152,7 @@ exports.getVar = getVar; }, "../src/subproject/index.ts": { "version": "-25117049605-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;", - "signature": "-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal;\r\n" + "signature": "-27144836353-import { Nominal } from '../common/nominal';\r\nexport type MyNominal = Nominal;\r\n" }, "../src/subproject2/index.ts": { "version": "2747033208-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}", @@ -190,9 +190,9 @@ exports.getVar = getVar; "../src/subproject/index.ts", "../src/subproject2/index.ts" ], - "dtsChangeTime": 24000 + "latestChangedDtsFile": "./src/subProject2/index.d.ts" }, "version": "FakeTSVersion", - "size": 2025 + "size": 2049 } diff --git a/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js index f4af1468d0f..ea255b0b376 100644 --- a/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js +++ b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js @@ -69,13 +69,13 @@ Output:: [12:00:23 AM] Building project '/src/solution/src/common/tsconfig.json'... -[12:00:33 AM] Project 'src/solution/src/subProject/tsconfig.json' is out of date because output file 'src/solution/lib/src/subProject/tsconfig.tsbuildinfo' does not exist +[12:00:32 AM] Project 'src/solution/src/subProject/tsconfig.json' is out of date because output file 'src/solution/lib/src/subProject/tsconfig.tsbuildinfo' does not exist -[12:00:34 AM] Building project '/src/solution/src/subProject/tsconfig.json'... +[12:00:33 AM] Building project '/src/solution/src/subProject/tsconfig.json'... -[12:00:42 AM] Project 'src/solution/src/subProject2/tsconfig.json' is out of date because output file 'src/solution/lib/src/subProject2/tsconfig.tsbuildinfo' does not exist +[12:00:40 AM] Project 'src/solution/src/subProject2/tsconfig.json' is out of date because output file 'src/solution/lib/src/subProject2/tsconfig.tsbuildinfo' does not exist -[12:00:43 AM] Building project '/src/solution/src/subProject2/tsconfig.json'... +[12:00:41 AM] Building project '/src/solution/src/subProject2/tsconfig.json'... exitCode:: ExitStatus.Success @@ -92,7 +92,7 @@ exports.__esModule = true; //// [/src/solution/lib/src/common/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../lib/lib.d.ts","../../../src/common/types.d.ts","../../../src/common/nominal.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};","affectsGlobalScope":true},{"version":"4107369137-/// \nexport declare type Nominal = MyNominal;","signature":"-18894149496-/// \r\nexport declare type Nominal = MyNominal;\r\n"}],"options":{"composite":true,"outDir":"../..","rootDir":"../../.."},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"dtsChangeTime":24000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../lib/lib.d.ts","../../../src/common/types.d.ts","../../../src/common/nominal.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};","affectsGlobalScope":true},{"version":"4107369137-/// \nexport declare type Nominal = MyNominal;","signature":"-18894149496-/// \r\nexport declare type Nominal = MyNominal;\r\n"}],"options":{"composite":true,"outDir":"../..","rootDir":"../../.."},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./nominal.d.ts"},"version":"FakeTSVersion"} //// [/src/solution/lib/src/common/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -139,15 +139,15 @@ exports.__esModule = true; "../../../src/common/nominal.ts", "../../../src/common/types.d.ts" ], - "dtsChangeTime": 24000 + "latestChangedDtsFile": "./nominal.d.ts" }, "version": "FakeTSVersion", - "size": 1276 + "size": 1294 } //// [/src/solution/lib/src/subProject/index.d.ts] import { Nominal } from '../common/nominal'; -export declare type MyNominal = Nominal; +export type MyNominal = Nominal; //// [/src/solution/lib/src/subProject/index.js] @@ -156,7 +156,7 @@ exports.__esModule = true; //// [/src/solution/lib/src/subProject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../lib/lib.d.ts","../../../src/common/types.d.ts","../common/nominal.d.ts","../../../src/subproject/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};","affectsGlobalScope":true},"-18894149496-/// \r\nexport declare type Nominal = MyNominal;\r\n",{"version":"-25117049605-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;","signature":"-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal;\r\n"}],"options":{"composite":true,"outDir":"../..","rootDir":"../../.."},"fileIdsList":[[2],[3]],"referencedMap":[[3,1],[4,2]],"exportedModulesMap":[[3,1],[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":35000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../lib/lib.d.ts","../../../src/common/types.d.ts","../common/nominal.d.ts","../../../src/subproject/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};","affectsGlobalScope":true},"-18894149496-/// \r\nexport declare type Nominal = MyNominal;\r\n",{"version":"-25117049605-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;","signature":"-27144836353-import { Nominal } from '../common/nominal';\r\nexport type MyNominal = Nominal;\r\n"}],"options":{"composite":true,"outDir":"../..","rootDir":"../../.."},"fileIdsList":[[2],[3]],"referencedMap":[[3,1],[4,2]],"exportedModulesMap":[[3,1],[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/solution/lib/src/subProject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -192,7 +192,7 @@ exports.__esModule = true; }, "../../../src/subproject/index.ts": { "version": "-25117049605-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;", - "signature": "-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal;\r\n" + "signature": "-27144836353-import { Nominal } from '../common/nominal';\r\nexport type MyNominal = Nominal;\r\n" } }, "options": { @@ -222,10 +222,10 @@ exports.__esModule = true; "../../../src/common/types.d.ts", "../../../src/subproject/index.ts" ], - "dtsChangeTime": 35000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1442 + "size": 1450 } //// [/src/solution/lib/src/subProject2/index.d.ts] @@ -251,7 +251,7 @@ exports.getVar = getVar; //// [/src/solution/lib/src/subProject2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../lib/lib.d.ts","../../../src/common/types.d.ts","../common/nominal.d.ts","../subproject/index.d.ts","../../../src/subproject2/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};","affectsGlobalScope":true},"-18894149496-/// \r\nexport declare type Nominal = MyNominal;\r\n","-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal;\r\n",{"version":"2747033208-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}","signature":"-5370006151-import { MyNominal } from '../subProject/index';\r\ndeclare const variable: {\r\n key: MyNominal;\r\n};\r\nexport declare function getVar(): keyof typeof variable;\r\nexport {};\r\n"}],"options":{"composite":true,"outDir":"../..","rootDir":"../../.."},"fileIdsList":[[2],[3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"exportedModulesMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[1,3,4,2,5],"dtsChangeTime":44000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../lib/lib.d.ts","../../../src/common/types.d.ts","../common/nominal.d.ts","../subproject/index.d.ts","../../../src/subproject2/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};","affectsGlobalScope":true},"-18894149496-/// \r\nexport declare type Nominal = MyNominal;\r\n","-27144836353-import { Nominal } from '../common/nominal';\r\nexport type MyNominal = Nominal;\r\n",{"version":"2747033208-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}","signature":"-5370006151-import { MyNominal } from '../subProject/index';\r\ndeclare const variable: {\r\n key: MyNominal;\r\n};\r\nexport declare function getVar(): keyof typeof variable;\r\nexport {};\r\n"}],"options":{"composite":true,"outDir":"../..","rootDir":"../../.."},"fileIdsList":[[2],[3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"exportedModulesMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[1,3,4,2,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/solution/lib/src/subProject2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -290,8 +290,8 @@ exports.getVar = getVar; "signature": "-18894149496-/// \r\nexport declare type Nominal = MyNominal;\r\n" }, "../subproject/index.d.ts": { - "version": "-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal;\r\n", - "signature": "-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal;\r\n" + "version": "-27144836353-import { Nominal } from '../common/nominal';\r\nexport type MyNominal = Nominal;\r\n", + "signature": "-27144836353-import { Nominal } from '../common/nominal';\r\nexport type MyNominal = Nominal;\r\n" }, "../../../src/subproject2/index.ts": { "version": "2747033208-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}", @@ -332,9 +332,9 @@ exports.getVar = getVar; "../../../src/common/types.d.ts", "../../../src/subproject2/index.ts" ], - "dtsChangeTime": 44000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1763 + "size": 1771 } diff --git a/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js index 455e914bd78..3b7701b381c 100644 --- a/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js +++ b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js @@ -50,9 +50,9 @@ Output:: [12:00:18 AM] Building project '/src/packages/pkg1/tsconfig.json'... -[12:00:27 AM] Project 'src/packages/pkg2/tsconfig.json' is out of date because output file 'src/packages/pkg2/lib/tsconfig.tsbuildinfo' does not exist +[12:00:26 AM] Project 'src/packages/pkg2/tsconfig.json' is out of date because output file 'src/packages/pkg2/lib/tsconfig.tsbuildinfo' does not exist -[12:00:28 AM] Building project '/src/packages/pkg2/tsconfig.json'... +[12:00:27 AM] Building project '/src/packages/pkg2/tsconfig.json'... exitCode:: ExitStatus.Success @@ -72,7 +72,7 @@ exports.__esModule = true; //// [/src/packages/pkg1/lib/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../lib/lib.d.ts","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2072077482-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}","signature":"-5386205042-export interface IThing {\r\n a: string;\r\n}\r\nexport interface IThings {\r\n thing1: IThing;\r\n}\r\n"}],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":19000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../lib/lib.d.ts","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2072077482-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}","signature":"-5386205042-export interface IThing {\r\n a: string;\r\n}\r\nexport interface IThings {\r\n thing1: IThing;\r\n}\r\n"}],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/packages/pkg1/lib/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -102,10 +102,10 @@ exports.__esModule = true; "../../../../lib/lib.d.ts", "../src/index.ts" ], - "dtsChangeTime": 19000 + "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 990 + "size": 1010 } //// [/src/packages/pkg2/lib/src/index.d.ts] @@ -124,7 +124,7 @@ exports.fn4 = fn4; //// [/src/packages/pkg2/lib/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../lib/lib.d.ts","../../pkg1/lib/src/index.d.ts","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5386205042-export interface IThing {\r\n a: string;\r\n}\r\nexport interface IThings {\r\n thing1: IThing;\r\n}\r\n",{"version":"8515046367-import { IThings } from '@fluentui/pkg1';\nexport function fn4() {\n const a: IThings = { thing1: { a: 'b' } };\n return a.thing1;\n}","signature":"-9447422063-export declare function fn4(): import(\"@fluentui/pkg1\").IThing;\r\n"}],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":29000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../lib/lib.d.ts","../../pkg1/lib/src/index.d.ts","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5386205042-export interface IThing {\r\n a: string;\r\n}\r\nexport interface IThings {\r\n thing1: IThing;\r\n}\r\n",{"version":"8515046367-import { IThings } from '@fluentui/pkg1';\nexport function fn4() {\n const a: IThings = { thing1: { a: 'b' } };\n return a.thing1;\n}","signature":"-9447422063-export declare function fn4(): import(\"@fluentui/pkg1\").IThing;\r\n"}],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/packages/pkg2/lib/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -173,9 +173,9 @@ exports.fn4 = fn4; "../../pkg1/lib/src/index.d.ts", "../src/index.ts" ], - "dtsChangeTime": 29000 + "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1180 + "size": 1200 } diff --git a/tests/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js b/tests/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js index 44b96df5f2f..a4c0ca38c4d 100644 --- a/tests/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js +++ b/tests/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js @@ -155,19 +155,19 @@ Output:: [12:00:08 AM] Building project '/src/core/tsconfig.json'... -[12:00:17 AM] Project 'src/animals/tsconfig.json' is out of date because output file 'src/lib/animals/tsconfig.tsbuildinfo' does not exist +[12:00:16 AM] Project 'src/animals/tsconfig.json' is out of date because output file 'src/lib/animals/tsconfig.tsbuildinfo' does not exist -[12:00:18 AM] Building project '/src/animals/tsconfig.json'... +[12:00:17 AM] Building project '/src/animals/tsconfig.json'... -[12:00:30 AM] Project 'src/zoo/tsconfig.json' is out of date because output file 'src/lib/zoo/tsconfig.tsbuildinfo' does not exist +[12:00:28 AM] Project 'src/zoo/tsconfig.json' is out of date because output file 'src/lib/zoo/tsconfig.tsbuildinfo' does not exist -[12:00:31 AM] Building project '/src/zoo/tsconfig.json'... +[12:00:29 AM] Building project '/src/zoo/tsconfig.json'... exitCode:: ExitStatus.Success //// [/src/lib/animals/animal.d.ts] -export declare type Size = "small" | "medium" | "large"; +export type Size = "small" | "medium" | "large"; export default interface Animal { size: Size; } @@ -220,7 +220,7 @@ Object.defineProperty(exports, "createDog", { enumerable: true, get: function () //// [/src/lib/animals/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n","signature":"13427676350-export declare type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n"},{"version":"-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n","signature":"4477582546-import Animal from './animal';\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n"},"-8177343116-export declare function makeRandomName(): string;\r\nexport declare function lastElementOf(arr: T[]): T | undefined;\r\n",{"version":"-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","signature":"10854678623-import Animal from '.';\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\nexport declare function createDog(): Dog;\r\n"}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"dtsChangeTime":19000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n",{"version":"-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n","signature":"4477582546-import Animal from './animal';\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n"},"-8177343116-export declare function makeRandomName(): string;\r\nexport declare function lastElementOf(arr: T[]): T | undefined;\r\n",{"version":"-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","signature":"10854678623-import Animal from '.';\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\nexport declare function createDog(): Dog;\r\n"}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -253,7 +253,7 @@ Object.defineProperty(exports, "createDog", { enumerable: true, get: function () }, "../../animals/animal.ts": { "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", - "signature": "13427676350-export declare type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n" + "signature": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n" }, "../../animals/index.ts": { "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", @@ -307,14 +307,14 @@ Object.defineProperty(exports, "createDog", { enumerable: true, get: function () "../../animals/index.ts", "../core/utilities.d.ts" ], - "dtsChangeTime": 19000 + "latestChangedDtsFile": "./dog.d.ts" }, "version": "FakeTSVersion", - "size": 2465 + "size": 2313 } //// [/src/lib/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n","signature":"-8177343116-export declare function makeRandomName(): string;\r\nexport declare function lastElementOf(arr: T[]): T | undefined;\r\n"}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":9000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n","signature":"-8177343116-export declare function makeRandomName(): string;\r\nexport declare function lastElementOf(arr: T[]): T | undefined;\r\n"}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./utilities.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -353,10 +353,10 @@ Object.defineProperty(exports, "createDog", { enumerable: true, get: function () "../../../lib/lib.d.ts", "../../core/utilities.ts" ], - "dtsChangeTime": 9000 + "latestChangedDtsFile": "./utilities.d.ts" }, "version": "FakeTSVersion", - "size": 1332 + "size": 1353 } //// [/src/lib/core/utilities.d.ts] @@ -381,7 +381,7 @@ exports.lastElementOf = lastElementOf; //// [/src/lib/zoo/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"13427676350-export declare type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n","10854678623-import Animal from '.';\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\nexport declare function createDog(): Dog;\r\n","4477582546-import Animal from './animal';\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n",{"version":"8797123924-import { Dog, createDog } from '../animals/index';\r\n\r\nexport function createZoo(): Array {\r\n return [\r\n createDog()\r\n ];\r\n}\r\n\r\n","signature":"-17433436879-import { Dog } from '../animals/index';\r\nexport declare function createZoo(): Array;\r\n"}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"fileIdsList":[[4],[2,3]],"referencedMap":[[3,1],[4,2],[5,1]],"exportedModulesMap":[[3,1],[4,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"dtsChangeTime":32000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n","10854678623-import Animal from '.';\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\nexport declare function createDog(): Dog;\r\n","4477582546-import Animal from './animal';\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n",{"version":"8797123924-import { Dog, createDog } from '../animals/index';\r\n\r\nexport function createZoo(): Array {\r\n return [\r\n createDog()\r\n ];\r\n}\r\n\r\n","signature":"-17433436879-import { Dog } from '../animals/index';\r\nexport declare function createZoo(): Array;\r\n"}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"fileIdsList":[[4],[2,3]],"referencedMap":[[3,1],[4,2],[5,1]],"exportedModulesMap":[[3,1],[4,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./zoo.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/zoo/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -409,8 +409,8 @@ exports.lastElementOf = lastElementOf; "affectsGlobalScope": true }, "../animals/animal.d.ts": { - "version": "13427676350-export declare type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", - "signature": "13427676350-export declare type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n" + "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", + "signature": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n" }, "../animals/dog.d.ts": { "version": "10854678623-import Animal from '.';\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\nexport declare function createDog(): Dog;\r\n", @@ -469,10 +469,10 @@ exports.lastElementOf = lastElementOf; "../animals/index.d.ts", "../../zoo/zoo.ts" ], - "dtsChangeTime": 32000 + "latestChangedDtsFile": "./zoo.d.ts" }, "version": "FakeTSVersion", - "size": 1827 + "size": 1834 } //// [/src/lib/zoo/zoo.d.ts] diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js index faffc43606b..0c552f641c4 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js @@ -120,7 +120,7 @@ export { C } from "./c"; {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC"} //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-2697851509-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"20298635505-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n"},{"version":"-15463561693-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n","signature":"-4206296467-import { B } from \"./b\";\r\nexport interface A {\r\n b: B;\r\n}\r\n"},{"version":"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n","signature":"-6009477228-export { A } from \"./a\";\r\nexport { B } from \"./b\";\r\nexport { C } from \"./c\";\r\n"}],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"exportedModulesMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"dtsChangeTime":9000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-2697851509-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"20298635505-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n"},{"version":"-15463561693-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n","signature":"-4206296467-import { B } from \"./b\";\r\nexport interface A {\r\n b: B;\r\n}\r\n"},{"version":"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n","signature":"-6009477228-export { A } from \"./a\";\r\nexport { B } from \"./b\";\r\nexport { C } from \"./c\";\r\n"}],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"exportedModulesMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -224,10 +224,10 @@ export { C } from "./c"; "./src/c.ts", "./src/index.ts" ], - "dtsChangeTime": 9000 + "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 1831 + "size": 1852 } @@ -246,12 +246,12 @@ export interface A { Output:: /lib/tsc --b /src --verbose -[12:00:23 AM] Projects in this build: +[12:00:22 AM] Projects in this build: * src/tsconfig.json -[12:00:24 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/a.ts' +[12:00:23 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/a.ts' -[12:00:25 AM] Building project '/src/tsconfig.json'... +[12:00:24 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -267,14 +267,11 @@ export interface A { //// [/src/lib/a.d.ts.map] {"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;CAChB"} -//// [/src/lib/b.d.ts] file written with same contents //// [/src/lib/b.d.ts.map] file written with same contents -//// [/src/lib/c.d.ts] file written with same contents //// [/src/lib/c.d.ts.map] file written with same contents -//// [/src/lib/index.d.ts] file written with same contents //// [/src/lib/index.d.ts.map] file written with same contents //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-2697851509-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"20298635505-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n"},{"version":"-14761736732-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n","signature":"-7639584379-import { B } from \"./b\";\r\nexport interface A {\r\n b: B;\r\n foo: any;\r\n}\r\n"},{"version":"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n","signature":"-6009477228-export { A } from \"./a\";\r\nexport { B } from \"./b\";\r\nexport { C } from \"./c\";\r\n"}],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"exportedModulesMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"dtsChangeTime":26000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-2697851509-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"20298635505-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n"},{"version":"-14761736732-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n","signature":"-7639584379-import { B } from \"./b\";\r\nexport interface A {\r\n b: B;\r\n foo: any;\r\n}\r\n"},{"version":"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n","signature":"-6009477228-export { A } from \"./a\";\r\nexport { B } from \"./b\";\r\nexport { C } from \"./c\";\r\n"}],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"exportedModulesMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/a.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -378,9 +375,9 @@ export interface A { "./src/c.ts", "./src/index.ts" ], - "dtsChangeTime": 26000 + "latestChangedDtsFile": "./lib/a.d.ts" }, "version": "FakeTSVersion", - "size": 1859 + "size": 1875 } diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js index 5e804ee09c8..b5598656e56 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js @@ -108,7 +108,7 @@ export { C } from "./c"; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-2697851509-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"20298635505-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n"},{"version":"-15463561693-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n","signature":"-4206296467-import { B } from \"./b\";\r\nexport interface A {\r\n b: B;\r\n}\r\n"},{"version":"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n","signature":"-6009477228-export { A } from \"./a\";\r\nexport { B } from \"./b\";\r\nexport { C } from \"./c\";\r\n"}],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"exportedModulesMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"dtsChangeTime":10000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-2697851509-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"20298635505-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n"},{"version":"-15463561693-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n","signature":"-4206296467-import { B } from \"./b\";\r\nexport interface A {\r\n b: B;\r\n}\r\n"},{"version":"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n","signature":"-6009477228-export { A } from \"./a\";\r\nexport { B } from \"./b\";\r\nexport { C } from \"./c\";\r\n"}],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"exportedModulesMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -211,10 +211,10 @@ export { C } from "./c"; "./src/c.ts", "./src/index.ts" ], - "dtsChangeTime": 10000 + "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 1810 + "size": 1830 } @@ -233,12 +233,12 @@ export interface A { Output:: /lib/tsc --b /src --verbose -[12:00:20 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/tsconfig.json -[12:00:21 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/a.ts' +[12:00:20 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/a.ts' -[12:00:22 AM] Building project '/src/tsconfig.json'... +[12:00:21 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -251,11 +251,8 @@ export interface A { } -//// [/src/lib/b.d.ts] file written with same contents -//// [/src/lib/c.d.ts] file written with same contents -//// [/src/lib/index.d.ts] file written with same contents //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-2697851509-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"20298635505-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n"},{"version":"-14761736732-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n","signature":"-7639584379-import { B } from \"./b\";\r\nexport interface A {\r\n b: B;\r\n foo: any;\r\n}\r\n"},{"version":"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n","signature":"-6009477228-export { A } from \"./a\";\r\nexport { B } from \"./b\";\r\nexport { C } from \"./c\";\r\n"}],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"exportedModulesMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"dtsChangeTime":23000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-2697851509-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"20298635505-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n"},{"version":"-14761736732-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n","signature":"-7639584379-import { B } from \"./b\";\r\nexport interface A {\r\n b: B;\r\n foo: any;\r\n}\r\n"},{"version":"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n","signature":"-6009477228-export { A } from \"./a\";\r\nexport { B } from \"./b\";\r\nexport { C } from \"./c\";\r\n"}],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"exportedModulesMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/a.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -358,9 +355,9 @@ export interface A { "./src/c.ts", "./src/index.ts" ], - "dtsChangeTime": 23000 + "latestChangedDtsFile": "./lib/a.d.ts" }, "version": "FakeTSVersion", - "size": 1837 + "size": 1853 } diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js index 14693380e82..2c4235e6b11 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js @@ -107,7 +107,7 @@ export interface C { {"version":3,"file":"c.d.ts","sourceRoot":"","sources":["../src/c.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11179224639-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}\n","signature":"-4181862109-export declare class B {\r\n prop: string;\r\n}\r\nexport interface A {\r\n b: B;\r\n}\r\n"},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-2697851509-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"20298635505-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n"}],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"exportedModulesMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3],"dtsChangeTime":11000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11179224639-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}\n","signature":"-4181862109-export declare class B {\r\n prop: string;\r\n}\r\nexport interface A {\r\n b: B;\r\n}\r\n"},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-2697851509-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"20298635505-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n"}],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"exportedModulesMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./lib/b.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,10 +181,10 @@ export interface C { "./src/b.ts", "./src/c.ts" ], - "dtsChangeTime": 11000 + "latestChangedDtsFile": "./lib/b.d.ts" }, "version": "FakeTSVersion", - "size": 1583 + "size": 1599 } @@ -204,22 +204,21 @@ export interface A { Output:: /lib/tsc --b /src --verbose -[12:00:23 AM] Projects in this build: +[12:00:22 AM] Projects in this build: * src/tsconfig.json -[12:00:24 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/a.ts' +[12:00:23 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/a.ts' -[12:00:25 AM] Building project '/src/tsconfig.json'... +[12:00:24 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/lib/a.d.ts] file written with same contents //// [/src/lib/a.d.ts.map] {"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAGlC,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"6651905050-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}\n","signature":"-4181862109-export declare class B {\r\n prop: string;\r\n}\r\nexport interface A {\r\n b: B;\r\n}\r\n"},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-2697851509-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"20298635505-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n"}],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"exportedModulesMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3],"dtsChangeTime":11000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"6651905050-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}\n","signature":"-4181862109-export declare class B {\r\n prop: string;\r\n}\r\nexport interface A {\r\n b: B;\r\n}\r\n"},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-2697851509-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"20298635505-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n"}],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"exportedModulesMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./lib/b.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -293,10 +292,10 @@ exitCode:: ExitStatus.Success "./src/b.ts", "./src/c.ts" ], - "dtsChangeTime": 11000 + "latestChangedDtsFile": "./lib/b.d.ts" }, "version": "FakeTSVersion", - "size": 1595 + "size": 1611 } @@ -316,12 +315,12 @@ export interface A { Output:: /lib/tsc --b /src --verbose -[12:00:32 AM] Projects in this build: +[12:00:30 AM] Projects in this build: * src/tsconfig.json -[12:00:33 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/a.ts' +[12:00:31 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/a.ts' -[12:00:34 AM] Building project '/src/tsconfig.json'... +[12:00:32 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -339,12 +338,10 @@ export interface A { //// [/src/lib/a.d.ts.map] {"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAGlC,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;CAChB"} -//// [/src/lib/b.d.ts] file written with same contents //// [/src/lib/b.d.ts.map] file written with same contents -//// [/src/lib/c.d.ts] file written with same contents //// [/src/lib/c.d.ts.map] file written with same contents //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5380514971-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B; foo: any;\n}\n","signature":"-6995298949-export declare class B {\r\n prop: string;\r\n}\r\nexport interface A {\r\n b: B;\r\n foo: any;\r\n}\r\n"},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-2697851509-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"20298635505-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n"}],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"exportedModulesMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3],"dtsChangeTime":35000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5380514971-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B; foo: any;\n}\n","signature":"-6995298949-export declare class B {\r\n prop: string;\r\n}\r\nexport interface A {\r\n b: B;\r\n foo: any;\r\n}\r\n"},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-2697851509-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"20298635505-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n"}],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"exportedModulesMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./lib/a.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -418,9 +415,9 @@ export interface A { "./src/b.ts", "./src/c.ts" ], - "dtsChangeTime": 35000 + "latestChangedDtsFile": "./lib/a.d.ts" }, "version": "FakeTSVersion", - "size": 1622 + "size": 1638 } diff --git a/tests/baselines/reference/tsbuild/emptyFiles/does-not-have-empty-files-diagnostic-when-files-is-empty-and-references-are-provided.js b/tests/baselines/reference/tsbuild/emptyFiles/does-not-have-empty-files-diagnostic-when-files-is-empty-and-references-are-provided.js index 9ee24ae7f83..8af7b0a2ebb 100644 --- a/tests/baselines/reference/tsbuild/emptyFiles/does-not-have-empty-files-diagnostic-when-files-is-empty-and-references-are-provided.js +++ b/tests/baselines/reference/tsbuild/emptyFiles/does-not-have-empty-files-diagnostic-when-files-is-empty-and-references-are-provided.js @@ -80,7 +80,7 @@ exports.multiply = multiply; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5112841898-export function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7111849992-export declare function multiply(a: number, b: number): number;\r\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":6000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5112841898-export function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7111849992-export declare function multiply(a: number, b: number): number;\r\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -112,9 +112,9 @@ exports.multiply = multiply; "../../lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 6000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 964 + "size": 981 } diff --git a/tests/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-and-emits-them-correctly.js b/tests/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-and-emits-them-correctly.js index 893e45b271e..364f28333fb 100644 --- a/tests/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-and-emits-them-correctly.js +++ b/tests/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-and-emits-them-correctly.js @@ -141,7 +141,7 @@ module.exports = {}; //// [/lib/common/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib.d.ts","../../src/common/nominal.js"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true},{"version":"-9003723607-/**\n * @template T, Name\n * @typedef {T & {[Symbol.species]: Name}} Nominal\n */\nmodule.exports = {};\n","signature":"-15964609857-export type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n"}],"options":{"composite":true,"declaration":true,"outDir":"..","rootDir":"../../src","skipLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":17000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib.d.ts","../../src/common/nominal.js"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true},{"version":"-9003723607-/**\n * @template T, Name\n * @typedef {T & {[Symbol.species]: Name}} Nominal\n */\nmodule.exports = {};\n","signature":"-15964609857-export type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n"}],"options":{"composite":true,"declaration":true,"outDir":"..","rootDir":"../../src","skipLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./nominal.d.ts"},"version":"FakeTSVersion"} //// [/lib/common/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -174,10 +174,10 @@ module.exports = {}; "../lib.d.ts", "../../src/common/nominal.js" ], - "dtsChangeTime": 17000 + "latestChangedDtsFile": "./nominal.d.ts" }, "version": "FakeTSVersion", - "size": 1243 + "size": 1261 } //// [/lib/sub-project/tsconfig.tsbuildinfo] diff --git a/tests/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-with-non-moved-json-files-and-emits-them-correctly.js b/tests/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-with-non-moved-json-files-and-emits-them-correctly.js index 84972de56d3..9a7923be7da 100644 --- a/tests/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-with-non-moved-json-files-and-emits-them-correctly.js +++ b/tests/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-with-non-moved-json-files-and-emits-them-correctly.js @@ -136,7 +136,7 @@ exports.m = common_1["default"]; //// [/out/sub-project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../../src/common/obj.json","../../src/common/index.d.ts","../../src/sub-project/index.js"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true},"2151907832-{\n \"val\": 42\n}","-4085459678-import x = require(\"./obj.json\");\r\nexport = x;\r\n",{"version":"-14684157955-import mod from '../common';\n\nexport const m = mod;\n","signature":"-15768184370-export const m: {\r\n val: number;\r\n};\r\n"}],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"outDir":"..","rootDir":"../../src","skipLibCheck":true},"fileIdsList":[[2],[3]],"referencedMap":[[3,1],[4,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":24000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../../src/common/obj.json","../../src/common/index.d.ts","../../src/sub-project/index.js"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true},"2151907832-{\n \"val\": 42\n}","-4085459678-import x = require(\"./obj.json\");\r\nexport = x;\r\n",{"version":"-14684157955-import mod from '../common';\n\nexport const m = mod;\n","signature":"-15768184370-export const m: {\r\n val: number;\r\n};\r\n"}],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"outDir":"..","rootDir":"../../src","skipLibCheck":true},"fileIdsList":[[2],[3]],"referencedMap":[[3,1],[4,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/out/sub-project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -201,10 +201,10 @@ exports.m = common_1["default"]; "../../src/common/obj.json", "../../src/sub-project/index.js" ], - "dtsChangeTime": 24000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1402 + "size": 1418 } //// [/out/sub-project-2/index.d.ts] @@ -230,7 +230,7 @@ exports.getVar = getVar; //// [/out/sub-project-2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../sub-project/index.d.ts","../../src/sub-project-2/index.js"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true},"-15768184370-export const m: {\r\n val: number;\r\n};\r\n",{"version":"13545386800-import { m } from '../sub-project/index';\n\nconst variable = {\n key: m,\n};\n\nexport function getVar() {\n return variable;\n}\n","signature":"-2686589794-export function getVar(): {\r\n key: {\r\n val: number;\r\n };\r\n};\r\n"}],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"outDir":"..","rootDir":"../../src","skipLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":32000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../sub-project/index.d.ts","../../src/sub-project-2/index.js"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true},"-15768184370-export const m: {\r\n val: number;\r\n};\r\n",{"version":"13545386800-import { m } from '../sub-project/index';\n\nconst variable = {\n key: m,\n};\n\nexport function getVar() {\n return variable;\n}\n","signature":"-2686589794-export function getVar(): {\r\n key: {\r\n val: number;\r\n };\r\n};\r\n"}],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"outDir":"..","rootDir":"../../src","skipLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/out/sub-project-2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -279,10 +279,10 @@ exports.getVar = getVar; "../sub-project/index.d.ts", "../../src/sub-project-2/index.js" ], - "dtsChangeTime": 32000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1434 + "size": 1450 } //// [/src/common/index.d.ts] @@ -297,7 +297,7 @@ module.exports = x; //// [/src/common/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./obj.json","./index.ts"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true},"2151907832-{\n \"val\": 42\n}",{"version":"-5032674136-import x = require(\"./obj.json\");\nexport = x;\n","signature":"-4085459678-import x = require(\"./obj.json\");\r\nexport = x;\r\n"}],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"outDir":"../..","rootDir":"..","skipLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"dtsChangeTime":18000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./obj.json","./index.ts"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true},"2151907832-{\n \"val\": 42\n}",{"version":"-5032674136-import x = require(\"./obj.json\");\nexport = x;\n","signature":"-4085459678-import x = require(\"./obj.json\");\r\nexport = x;\r\n"}],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"outDir":"../..","rootDir":"..","skipLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/common/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -350,9 +350,9 @@ module.exports = x; "./index.ts", "./obj.json" ], - "dtsChangeTime": 18000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1252 + "size": 1268 } diff --git a/tests/baselines/reference/tsbuild/javascriptProjectEmit/modifies-outfile-js-projects-and-concatenates-them-correctly.js b/tests/baselines/reference/tsbuild/javascriptProjectEmit/modifies-outfile-js-projects-and-concatenates-them-correctly.js index 91eabdd0aed..eb606bd21c5 100644 --- a/tests/baselines/reference/tsbuild/javascriptProjectEmit/modifies-outfile-js-projects-and-concatenates-them-correctly.js +++ b/tests/baselines/reference/tsbuild/javascriptProjectEmit/modifies-outfile-js-projects-and-concatenates-them-correctly.js @@ -134,7 +134,7 @@ type Nominal = T & { //// [/src/common/common.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["./nominal.js"],"js":{"sections":[{"pos":0,"end":84,"kind":"text"}],"hash":"4974280634-/**\r\n * @template T, Name\r\n * @typedef {T & {[Symbol.species]: Name}} Nominal\r\n */\r\n"},"dts":{"sections":[{"pos":0,"end":64,"kind":"text"}],"hash":"9654123581-type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n"}},"program":{"fileNames":["./nominal.js"],"fileInfos":["-1932521178-/**\n * @template T, Name\n * @typedef {T & {[Symbol.species]: Name}} Nominal\n */\n"],"options":{"composite":true,"outFile":"./common.js"},"outSignature":"9654123581-type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n","dtsChangeTime":17000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["./nominal.js"],"js":{"sections":[{"pos":0,"end":84,"kind":"text"}],"hash":"4974280634-/**\r\n * @template T, Name\r\n * @typedef {T & {[Symbol.species]: Name}} Nominal\r\n */\r\n"},"dts":{"sections":[{"pos":0,"end":64,"kind":"text"}],"hash":"9654123581-type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n"}},"program":{"fileNames":["./nominal.js"],"fileInfos":["-1932521178-/**\n * @template T, Name\n * @typedef {T & {[Symbol.species]: Name}} Nominal\n */\n"],"options":{"composite":true,"outFile":"./common.js"},"outSignature":"9654123581-type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n","latestChangedDtsFile":"./common.d.ts"},"version":"FakeTSVersion"} //// [/src/common/common.tsbuildinfo.baseline.txt] ====================================================================== @@ -197,10 +197,10 @@ type Nominal = T & { "outFile": "./common.js" }, "outSignature": "9654123581-type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n", - "dtsChangeTime": 17000 + "latestChangedDtsFile": "./common.d.ts" }, "version": "FakeTSVersion", - "size": 737 + "size": 754 } //// [/src/sub-project/sub-project.d.ts] @@ -226,7 +226,7 @@ var c = /** @type {*} */ (null); //// [/src/sub-project/sub-project.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["./index.js"],"js":{"sections":[{"pos":0,"end":84,"kind":"prepend","data":"../common/common.js","texts":[{"pos":0,"end":84,"kind":"text"}]},{"pos":84,"end":182,"kind":"text"}],"hash":"10912344054-/**\r\n * @template T, Name\r\n * @typedef {T & {[Symbol.species]: Name}} Nominal\r\n */\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\nvar c = /** @type {*} */ (null);\r\n"},"dts":{"sections":[{"pos":0,"end":64,"kind":"prepend","data":"../common/common.d.ts","texts":[{"pos":0,"end":64,"kind":"text"}]},{"pos":64,"end":199,"kind":"text"}],"hash":"21135699026-type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\ndeclare const c: any;\r\ntype MyNominal = Nominal;\r\n"}},"program":{"fileNames":["./index.js"],"fileInfos":["2691219051-/**\n * @typedef {Nominal} MyNominal\n */\nconst c = /** @type {*} */(null);\n"],"options":{"composite":true,"outFile":"./sub-project.js"},"outSignature":"21135699026-type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\ndeclare const c: any;\r\ntype MyNominal = Nominal;\r\n","dtsChangeTime":24000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["./index.js"],"js":{"sections":[{"pos":0,"end":84,"kind":"prepend","data":"../common/common.js","texts":[{"pos":0,"end":84,"kind":"text"}]},{"pos":84,"end":182,"kind":"text"}],"hash":"10912344054-/**\r\n * @template T, Name\r\n * @typedef {T & {[Symbol.species]: Name}} Nominal\r\n */\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\nvar c = /** @type {*} */ (null);\r\n"},"dts":{"sections":[{"pos":0,"end":64,"kind":"prepend","data":"../common/common.d.ts","texts":[{"pos":0,"end":64,"kind":"text"}]},{"pos":64,"end":199,"kind":"text"}],"hash":"21135699026-type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\ndeclare const c: any;\r\ntype MyNominal = Nominal;\r\n"}},"program":{"fileNames":["./index.js"],"fileInfos":["2691219051-/**\n * @typedef {Nominal} MyNominal\n */\nconst c = /** @type {*} */(null);\n"],"options":{"composite":true,"outFile":"./sub-project.js"},"outSignature":"21135699026-type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\ndeclare const c: any;\r\ntype MyNominal = Nominal;\r\n","latestChangedDtsFile":"./sub-project.d.ts"},"version":"FakeTSVersion"} //// [/src/sub-project/sub-project.tsbuildinfo.baseline.txt] ====================================================================== @@ -334,10 +334,10 @@ type MyNominal = Nominal; "outFile": "./sub-project.js" }, "outSignature": "21135699026-type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\ndeclare const c: any;\r\ntype MyNominal = Nominal;\r\n", - "dtsChangeTime": 24000 + "latestChangedDtsFile": "./sub-project.d.ts" }, "version": "FakeTSVersion", - "size": 1373 + "size": 1395 } //// [/src/sub-project-2/sub-project-2.d.ts] @@ -379,7 +379,7 @@ function getVar() { //// [/src/sub-project-2/sub-project-2.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["./index.js"],"js":{"sections":[{"pos":0,"end":182,"kind":"prepend","data":"../sub-project/sub-project.js","texts":[{"pos":0,"end":182,"kind":"text"}]},{"pos":182,"end":338,"kind":"text"}],"hash":"13097871248-/**\r\n * @template T, Name\r\n * @typedef {T & {[Symbol.species]: Name}} Nominal\r\n */\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\nvar c = /** @type {*} */ (null);\r\nvar variable = {\r\n key: /** @type {MyNominal} */ ('value')\r\n};\r\n/**\r\n * @return {keyof typeof variable}\r\n */\r\nfunction getVar() {\r\n return 'key';\r\n}\r\n"},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../sub-project/sub-project.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":356,"kind":"text"}],"hash":"1925232864-type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\ndeclare const c: any;\r\ntype MyNominal = Nominal;\r\n/**\r\n * @return {keyof typeof variable}\r\n */\r\ndeclare function getVar(): keyof typeof variable;\r\ndeclare namespace variable {\r\n const key: MyNominal;\r\n}\r\n"}},"program":{"fileNames":["./index.js"],"fileInfos":["2078909278-const variable = {\n key: /** @type {MyNominal} */('value'),\n};\n\n/**\n * @return {keyof typeof variable}\n */\nfunction getVar() {\n return 'key';\n}\n"],"options":{"composite":true,"outFile":"./sub-project-2.js"},"outSignature":"1925232864-type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\ndeclare const c: any;\r\ntype MyNominal = Nominal;\r\n/**\r\n * @return {keyof typeof variable}\r\n */\r\ndeclare function getVar(): keyof typeof variable;\r\ndeclare namespace variable {\r\n const key: MyNominal;\r\n}\r\n","dtsChangeTime":31000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["./index.js"],"js":{"sections":[{"pos":0,"end":182,"kind":"prepend","data":"../sub-project/sub-project.js","texts":[{"pos":0,"end":182,"kind":"text"}]},{"pos":182,"end":338,"kind":"text"}],"hash":"13097871248-/**\r\n * @template T, Name\r\n * @typedef {T & {[Symbol.species]: Name}} Nominal\r\n */\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\nvar c = /** @type {*} */ (null);\r\nvar variable = {\r\n key: /** @type {MyNominal} */ ('value')\r\n};\r\n/**\r\n * @return {keyof typeof variable}\r\n */\r\nfunction getVar() {\r\n return 'key';\r\n}\r\n"},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../sub-project/sub-project.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":356,"kind":"text"}],"hash":"1925232864-type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\ndeclare const c: any;\r\ntype MyNominal = Nominal;\r\n/**\r\n * @return {keyof typeof variable}\r\n */\r\ndeclare function getVar(): keyof typeof variable;\r\ndeclare namespace variable {\r\n const key: MyNominal;\r\n}\r\n"}},"program":{"fileNames":["./index.js"],"fileInfos":["2078909278-const variable = {\n key: /** @type {MyNominal} */('value'),\n};\n\n/**\n * @return {keyof typeof variable}\n */\nfunction getVar() {\n return 'key';\n}\n"],"options":{"composite":true,"outFile":"./sub-project-2.js"},"outSignature":"1925232864-type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\ndeclare const c: any;\r\ntype MyNominal = Nominal;\r\n/**\r\n * @return {keyof typeof variable}\r\n */\r\ndeclare function getVar(): keyof typeof variable;\r\ndeclare namespace variable {\r\n const key: MyNominal;\r\n}\r\n","latestChangedDtsFile":"./sub-project-2.d.ts"},"version":"FakeTSVersion"} //// [/src/sub-project-2/sub-project-2.tsbuildinfo.baseline.txt] ====================================================================== @@ -503,10 +503,10 @@ declare namespace variable { "outFile": "./sub-project-2.js" }, "outSignature": "1925232864-type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\ndeclare const c: any;\r\ntype MyNominal = Nominal;\r\n/**\r\n * @return {keyof typeof variable}\r\n */\r\ndeclare function getVar(): keyof typeof variable;\r\ndeclare namespace variable {\r\n const key: MyNominal;\r\n}\r\n", - "dtsChangeTime": 31000 + "latestChangedDtsFile": "./sub-project-2.d.ts" }, "version": "FakeTSVersion", - "size": 1976 + "size": 2000 } @@ -527,7 +527,6 @@ Output:: exitCode:: ExitStatus.Success -//// [/src/sub-project/sub-project.d.ts] file written with same contents //// [/src/sub-project/sub-project.js] /** * @template T, Name @@ -540,7 +539,7 @@ var c = /** @type {*} */ (undefined); //// [/src/sub-project/sub-project.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["./index.js"],"js":{"sections":[{"pos":0,"end":84,"kind":"prepend","data":"../common/common.js","texts":[{"pos":0,"end":84,"kind":"text"}]},{"pos":84,"end":187,"kind":"text"}],"hash":"8976814925-/**\r\n * @template T, Name\r\n * @typedef {T & {[Symbol.species]: Name}} Nominal\r\n */\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\nvar c = /** @type {*} */ (undefined);\r\n"},"dts":{"sections":[{"pos":0,"end":64,"kind":"prepend","data":"../common/common.d.ts","texts":[{"pos":0,"end":64,"kind":"text"}]},{"pos":64,"end":199,"kind":"text"}],"hash":"21135699026-type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\ndeclare const c: any;\r\ntype MyNominal = Nominal;\r\n"}},"program":{"fileNames":["./index.js"],"fileInfos":["7546612770-/**\n * @typedef {Nominal} MyNominal\n */\nconst c = /** @type {*} */(undefined);\n"],"options":{"composite":true,"outFile":"./sub-project.js"},"outSignature":"21135699026-type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\ndeclare const c: any;\r\ntype MyNominal = Nominal;\r\n","dtsChangeTime":24000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["./index.js"],"js":{"sections":[{"pos":0,"end":84,"kind":"prepend","data":"../common/common.js","texts":[{"pos":0,"end":84,"kind":"text"}]},{"pos":84,"end":187,"kind":"text"}],"hash":"8976814925-/**\r\n * @template T, Name\r\n * @typedef {T & {[Symbol.species]: Name}} Nominal\r\n */\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\nvar c = /** @type {*} */ (undefined);\r\n"},"dts":{"sections":[{"pos":0,"end":64,"kind":"prepend","data":"../common/common.d.ts","texts":[{"pos":0,"end":64,"kind":"text"}]},{"pos":64,"end":199,"kind":"text"}],"hash":"21135699026-type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\ndeclare const c: any;\r\ntype MyNominal = Nominal;\r\n"}},"program":{"fileNames":["./index.js"],"fileInfos":["7546612770-/**\n * @typedef {Nominal} MyNominal\n */\nconst c = /** @type {*} */(undefined);\n"],"options":{"composite":true,"outFile":"./sub-project.js"},"outSignature":"21135699026-type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\ndeclare const c: any;\r\ntype MyNominal = Nominal;\r\n","latestChangedDtsFile":"./sub-project.d.ts"},"version":"FakeTSVersion"} //// [/src/sub-project/sub-project.tsbuildinfo.baseline.txt] ====================================================================== @@ -648,10 +647,10 @@ type MyNominal = Nominal; "outFile": "./sub-project.js" }, "outSignature": "21135699026-type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\ndeclare const c: any;\r\ntype MyNominal = Nominal;\r\n", - "dtsChangeTime": 24000 + "latestChangedDtsFile": "./sub-project.d.ts" }, "version": "FakeTSVersion", - "size": 1382 + "size": 1404 } //// [/src/sub-project-2/sub-project-2.js] @@ -675,7 +674,7 @@ function getVar() { //// [/src/sub-project-2/sub-project-2.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["./index.js"],"js":{"sections":[{"pos":0,"end":187,"kind":"prepend","data":"../sub-project/sub-project.js","texts":[{"pos":0,"end":187,"kind":"text"}]},{"pos":187,"end":343,"kind":"text"}],"hash":"-7775859865-/**\r\n * @template T, Name\r\n * @typedef {T & {[Symbol.species]: Name}} Nominal\r\n */\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\nvar c = /** @type {*} */ (undefined);\r\nvar variable = {\r\n key: /** @type {MyNominal} */ ('value')\r\n};\r\n/**\r\n * @return {keyof typeof variable}\r\n */\r\nfunction getVar() {\r\n return 'key';\r\n}\r\n"},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../sub-project/sub-project.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":356,"kind":"text"}],"hash":"1925232864-type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\ndeclare const c: any;\r\ntype MyNominal = Nominal;\r\n/**\r\n * @return {keyof typeof variable}\r\n */\r\ndeclare function getVar(): keyof typeof variable;\r\ndeclare namespace variable {\r\n const key: MyNominal;\r\n}\r\n"}},"program":{"fileNames":["./index.js"],"fileInfos":["2078909278-const variable = {\n key: /** @type {MyNominal} */('value'),\n};\n\n/**\n * @return {keyof typeof variable}\n */\nfunction getVar() {\n return 'key';\n}\n"],"options":{"composite":true,"outFile":"./sub-project-2.js"},"outSignature":"1925232864-type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\ndeclare const c: any;\r\ntype MyNominal = Nominal;\r\n/**\r\n * @return {keyof typeof variable}\r\n */\r\ndeclare function getVar(): keyof typeof variable;\r\ndeclare namespace variable {\r\n const key: MyNominal;\r\n}\r\n","dtsChangeTime":31000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["./index.js"],"js":{"sections":[{"pos":0,"end":187,"kind":"prepend","data":"../sub-project/sub-project.js","texts":[{"pos":0,"end":187,"kind":"text"}]},{"pos":187,"end":343,"kind":"text"}],"hash":"-7775859865-/**\r\n * @template T, Name\r\n * @typedef {T & {[Symbol.species]: Name}} Nominal\r\n */\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\nvar c = /** @type {*} */ (undefined);\r\nvar variable = {\r\n key: /** @type {MyNominal} */ ('value')\r\n};\r\n/**\r\n * @return {keyof typeof variable}\r\n */\r\nfunction getVar() {\r\n return 'key';\r\n}\r\n"},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../sub-project/sub-project.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":356,"kind":"text"}],"hash":"1925232864-type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\ndeclare const c: any;\r\ntype MyNominal = Nominal;\r\n/**\r\n * @return {keyof typeof variable}\r\n */\r\ndeclare function getVar(): keyof typeof variable;\r\ndeclare namespace variable {\r\n const key: MyNominal;\r\n}\r\n"}},"program":{"fileNames":["./index.js"],"fileInfos":["2078909278-const variable = {\n key: /** @type {MyNominal} */('value'),\n};\n\n/**\n * @return {keyof typeof variable}\n */\nfunction getVar() {\n return 'key';\n}\n"],"options":{"composite":true,"outFile":"./sub-project-2.js"},"outSignature":"1925232864-type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\ndeclare const c: any;\r\ntype MyNominal = Nominal;\r\n/**\r\n * @return {keyof typeof variable}\r\n */\r\ndeclare function getVar(): keyof typeof variable;\r\ndeclare namespace variable {\r\n const key: MyNominal;\r\n}\r\n","latestChangedDtsFile":"./sub-project-2.d.ts"},"version":"FakeTSVersion"} //// [/src/sub-project-2/sub-project-2.tsbuildinfo.baseline.txt] ====================================================================== @@ -799,9 +798,9 @@ declare namespace variable { "outFile": "./sub-project-2.js" }, "outSignature": "1925232864-type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n/**\r\n * @typedef {Nominal} MyNominal\r\n */\r\ndeclare const c: any;\r\ntype MyNominal = Nominal;\r\n/**\r\n * @return {keyof typeof variable}\r\n */\r\ndeclare function getVar(): keyof typeof variable;\r\ndeclare namespace variable {\r\n const key: MyNominal;\r\n}\r\n", - "dtsChangeTime": 31000 + "latestChangedDtsFile": "./sub-project-2.d.ts" }, "version": "FakeTSVersion", - "size": 1981 + "size": 2005 } diff --git a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js index e79f1defd1a..cbb89a7116a 100644 --- a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js @@ -50,9 +50,9 @@ Resolving module name 'const' relative to base url '/user/username/projects/mypr Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const', target file type 'TypeScript'. File '/user/username/projects/myproject/packages/pkg2/const.ts' exist - use it as a name resolution result. ======== Module name 'const' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/const.ts'. ======== -[12:00:59 AM] Project 'packages/pkg1/tsconfig.json' is out of date because output file 'packages/pkg1/build/index.js' does not exist +[12:00:58 AM] Project 'packages/pkg1/tsconfig.json' is out of date because output file 'packages/pkg1/build/index.js' does not exist -[12:01:00 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... +[12:00:59 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== Module resolution kind is not specified, using 'NodeJs'. @@ -141,7 +141,7 @@ exports.__esModule = true; //// [/user/username/projects/myproject/packages/pkg2/build/const.d.ts] -export declare type TheNum = 42; +export type TheNum = 42; //// [/user/username/projects/myproject/packages/pkg2/build/index.js] @@ -154,7 +154,7 @@ export type { TheNum } from 'const'; //// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../../a/lib/lib.d.ts","../const.ts","../index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-11202312776-export type TheNum = 42;","signature":"-9649133742-export declare type TheNum = 42;\n"},{"version":"-10837689162-export type { TheNum } from 'const';","signature":"-9751391360-export type { TheNum } from 'const';\n"}],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":42000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../../a/lib/lib.d.ts","../const.ts","../index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-11202312776-export type TheNum = 42;","signature":"-13194036030-export type TheNum = 42;\n"},{"version":"-10837689162-export type { TheNum } from 'const';","signature":"-9751391360-export type { TheNum } from 'const';\n"}],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -177,7 +177,7 @@ export type { TheNum } from 'const'; }, "../const.ts": { "version": "-11202312776-export type TheNum = 42;", - "signature": "-9649133742-export declare type TheNum = 42;\n" + "signature": "-13194036030-export type TheNum = 42;\n" }, "../index.ts": { "version": "-10837689162-export type { TheNum } from 'const';", @@ -203,10 +203,10 @@ export type { TheNum } from 'const'; "../const.ts", "../index.ts" ], - "dtsChangeTime": 42000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 949 + "size": 958 } //// [/user/username/projects/myproject/packages/pkg1/build/index.js] diff --git a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js index 4daac7e1bb4..0ba0d575b8c 100644 --- a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js +++ b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js @@ -50,9 +50,9 @@ Resolving module name 'const' relative to base url '/user/username/projects/mypr Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const', target file type 'TypeScript'. File '/user/username/projects/myproject/packages/pkg2/const.ts' exist - use it as a name resolution result. ======== Module name 'const' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/const.ts'. ======== -[12:00:59 AM] Project 'packages/pkg1/tsconfig.json' is out of date because output file 'packages/pkg1/build/index.js' does not exist +[12:00:58 AM] Project 'packages/pkg1/tsconfig.json' is out of date because output file 'packages/pkg1/build/index.js' does not exist -[12:01:00 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... +[12:00:59 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== Module resolution kind is not specified, using 'NodeJs'. @@ -142,7 +142,7 @@ exports.__esModule = true; //// [/user/username/projects/myproject/packages/pkg2/build/const.d.ts] -export declare type TheNum = 42; +export type TheNum = 42; //// [/user/username/projects/myproject/packages/pkg2/build/index.js] @@ -155,7 +155,7 @@ export type { TheNum } from 'const'; //// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../../a/lib/lib.d.ts","../const.ts","../index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-11202312776-export type TheNum = 42;","signature":"-9649133742-export declare type TheNum = 42;\n"},{"version":"-10837689162-export type { TheNum } from 'const';","signature":"-9751391360-export type { TheNum } from 'const';\n"}],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":42000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../../a/lib/lib.d.ts","../const.ts","../index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-11202312776-export type TheNum = 42;","signature":"-13194036030-export type TheNum = 42;\n"},{"version":"-10837689162-export type { TheNum } from 'const';","signature":"-9751391360-export type { TheNum } from 'const';\n"}],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -178,7 +178,7 @@ export type { TheNum } from 'const'; }, "../const.ts": { "version": "-11202312776-export type TheNum = 42;", - "signature": "-9649133742-export declare type TheNum = 42;\n" + "signature": "-13194036030-export type TheNum = 42;\n" }, "../index.ts": { "version": "-10837689162-export type { TheNum } from 'const';", @@ -204,10 +204,10 @@ export type { TheNum } from 'const'; "../const.ts", "../index.ts" ], - "dtsChangeTime": 42000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 949 + "size": 958 } //// [/user/username/projects/myproject/packages/pkg1/build/index.js] diff --git a/tests/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js b/tests/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js index ac85a489e93..899dc312aac 100644 --- a/tests/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js +++ b/tests/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js @@ -50,9 +50,9 @@ File '/src/packages/typeroot1/sometype/package.json' does not exist. File '/src/packages/typeroot1/sometype/index.d.ts' exist - use it as a name resolution result. Resolving real path for '/src/packages/typeroot1/sometype/index.d.ts', result '/src/packages/typeroot1/sometype/index.d.ts'. ======== Type reference directive 'sometype' was successfully resolved to '/src/packages/typeroot1/sometype/index.d.ts', primary: true. ======== -[12:00:26 AM] Project 'src/packages/pkg2.tsconfig.json' is out of date because output file 'src/packages/pkg2.tsconfig.tsbuildinfo' does not exist +[12:00:25 AM] Project 'src/packages/pkg2.tsconfig.json' is out of date because output file 'src/packages/pkg2.tsconfig.tsbuildinfo' does not exist -[12:00:27 AM] Building project '/src/packages/pkg2.tsconfig.json'... +[12:00:26 AM] Building project '/src/packages/pkg2.tsconfig.json'... ======== Resolving type reference directive 'sometype', containing file '/src/packages/__inferred type names__.ts', root directory '/src/packages/typeroot2'. ======== Resolving with primary search path '/src/packages/typeroot2'. @@ -64,7 +64,7 @@ exitCode:: ExitStatus.Success //// [/src/packages/pkg1.tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./pkg1_index.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9601687719-export const theNum: TheNum = \"type1\";","signature":"-5685633868-/// \r\nexport declare const theNum: TheNum;\r\n"},{"version":"-4557394441-declare type TheNum = \"type1\";","affectsGlobalScope":true}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":20000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./pkg1_index.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9601687719-export const theNum: TheNum = \"type1\";","signature":"-5685633868-/// \r\nexport declare const theNum: TheNum;\r\n"},{"version":"-4557394441-declare type TheNum = \"type1\";","affectsGlobalScope":true}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./pkg1_index.d.ts"},"version":"FakeTSVersion"} //// [/src/packages/pkg1.tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -100,10 +100,10 @@ exitCode:: ExitStatus.Success "./pkg1_index.ts", "./typeroot1/sometype/index.d.ts" ], - "dtsChangeTime": 20000 + "latestChangedDtsFile": "./pkg1_index.d.ts" }, "version": "FakeTSVersion", - "size": 1009 + "size": 1030 } //// [/src/packages/pkg1_index.d.ts] @@ -119,7 +119,7 @@ exports.theNum = "type1"; //// [/src/packages/pkg2.tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./pkg2_index.ts","./typeroot2/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12823281204-export const theNum: TheNum2 = \"type2\";","signature":"-7237564442-/// \r\nexport declare const theNum: TheNum2;\r\n"},{"version":"-980425686-declare type TheNum2 = \"type2\";","affectsGlobalScope":true}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":28000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./pkg2_index.ts","./typeroot2/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12823281204-export const theNum: TheNum2 = \"type2\";","signature":"-7237564442-/// \r\nexport declare const theNum: TheNum2;\r\n"},{"version":"-980425686-declare type TheNum2 = \"type2\";","affectsGlobalScope":true}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./pkg2_index.d.ts"},"version":"FakeTSVersion"} //// [/src/packages/pkg2.tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -155,10 +155,10 @@ exports.theNum = "type1"; "./pkg2_index.ts", "./typeroot2/sometype/index.d.ts" ], - "dtsChangeTime": 28000 + "latestChangedDtsFile": "./pkg2_index.d.ts" }, "version": "FakeTSVersion", - "size": 1012 + "size": 1033 } //// [/src/packages/pkg2_index.d.ts] diff --git a/tests/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-across-projects-resolve-correctly.js b/tests/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-across-projects-resolve-correctly.js index d9df2530a9b..cec8a6de306 100644 --- a/tests/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-across-projects-resolve-correctly.js +++ b/tests/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-across-projects-resolve-correctly.js @@ -134,9 +134,9 @@ Output:: [12:00:26 AM] Building project '/src/src-types/tsconfig.json'... -[12:00:35 AM] Project 'src/src-dogs/tsconfig.json' is out of date because output file 'src/src-dogs/tsconfig.tsbuildinfo' does not exist +[12:00:34 AM] Project 'src/src-dogs/tsconfig.json' is out of date because output file 'src/src-dogs/tsconfig.tsbuildinfo' does not exist -[12:00:36 AM] Building project '/src/src-dogs/tsconfig.json'... +[12:00:35 AM] Building project '/src/src-dogs/tsconfig.json'... exitCode:: ExitStatus.Success @@ -203,7 +203,7 @@ export class LassieDog extends Dog { //// [/src/src-dogs/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.es2022.full.d.ts","../src-types/dogconfig.d.ts","../src-types/index.d.ts","./dogconfig.ts","./dog.ts","./lassie/lassieconfig.ts","./lassie/lassiedog.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-2632060142-export interface DogConfig {\r\n name: string;\r\n}\r\n","impliedFormat":99},{"version":"-5608794531-export * from './dogconfig.js';\r\n","impliedFormat":99},{"version":"1966273863-import { DogConfig } from 'src-types';\n\nexport const DOG_CONFIG: DogConfig = {\n name: 'Default dog',\n};\n","signature":"17588480778-import { DogConfig } from 'src-types';\r\nexport declare const DOG_CONFIG: DogConfig;\r\n","impliedFormat":99},{"version":"6091345804-import { DogConfig } from 'src-types';\nimport { DOG_CONFIG } from './dogconfig.js';\n\nexport abstract class Dog {\n\n public static getCapabilities(): DogConfig {\n return DOG_CONFIG;\n }\n}\n","signature":"22128633249-import { DogConfig } from 'src-types';\r\nexport declare abstract class Dog {\r\n static getCapabilities(): DogConfig;\r\n}\r\n","impliedFormat":99},{"version":"4440579024-import { DogConfig } from 'src-types';\n\nexport const LASSIE_CONFIG: DogConfig = { name: 'Lassie' };\n","signature":"8131483665-import { DogConfig } from 'src-types';\r\nexport declare const LASSIE_CONFIG: DogConfig;\r\n","impliedFormat":99},{"version":"-32303727812-import { Dog } from '../dog.js';\nimport { LASSIE_CONFIG } from './lassieconfig.js';\n\nexport class LassieDog extends Dog {\n protected static getDogConfig = () => LASSIE_CONFIG;\n}\n","signature":"-20244062422-import { Dog } from '../dog.js';\r\nexport declare class LassieDog extends Dog {\r\n protected static getDogConfig: () => import(\"../index.js\").DogConfig;\r\n}\r\n","impliedFormat":99},{"version":"-15974991320-export * from 'src-types';\nexport * from './lassie/lassiedog.js';\n","signature":"-16783836862-export * from 'src-types';\r\nexport * from './lassie/lassiedog.js';\r\n","impliedFormat":99}],"options":{"composite":true,"declaration":true,"module":100},"fileIdsList":[[3,4],[3],[3,7],[5,6],[2],[5,8]],"referencedMap":[[5,1],[4,2],[8,3],[6,2],[7,4],[3,5]],"exportedModulesMap":[[5,2],[4,2],[8,3],[6,2],[7,6],[3,5]],"semanticDiagnosticsPerFile":[1,5,4,8,6,7,2,3],"dtsChangeTime":37000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.es2022.full.d.ts","../src-types/dogconfig.d.ts","../src-types/index.d.ts","./dogconfig.ts","./dog.ts","./lassie/lassieconfig.ts","./lassie/lassiedog.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-2632060142-export interface DogConfig {\r\n name: string;\r\n}\r\n","impliedFormat":99},{"version":"-5608794531-export * from './dogconfig.js';\r\n","impliedFormat":99},{"version":"1966273863-import { DogConfig } from 'src-types';\n\nexport const DOG_CONFIG: DogConfig = {\n name: 'Default dog',\n};\n","signature":"17588480778-import { DogConfig } from 'src-types';\r\nexport declare const DOG_CONFIG: DogConfig;\r\n","impliedFormat":99},{"version":"6091345804-import { DogConfig } from 'src-types';\nimport { DOG_CONFIG } from './dogconfig.js';\n\nexport abstract class Dog {\n\n public static getCapabilities(): DogConfig {\n return DOG_CONFIG;\n }\n}\n","signature":"22128633249-import { DogConfig } from 'src-types';\r\nexport declare abstract class Dog {\r\n static getCapabilities(): DogConfig;\r\n}\r\n","impliedFormat":99},{"version":"4440579024-import { DogConfig } from 'src-types';\n\nexport const LASSIE_CONFIG: DogConfig = { name: 'Lassie' };\n","signature":"8131483665-import { DogConfig } from 'src-types';\r\nexport declare const LASSIE_CONFIG: DogConfig;\r\n","impliedFormat":99},{"version":"-32303727812-import { Dog } from '../dog.js';\nimport { LASSIE_CONFIG } from './lassieconfig.js';\n\nexport class LassieDog extends Dog {\n protected static getDogConfig = () => LASSIE_CONFIG;\n}\n","signature":"-20244062422-import { Dog } from '../dog.js';\r\nexport declare class LassieDog extends Dog {\r\n protected static getDogConfig: () => import(\"../index.js\").DogConfig;\r\n}\r\n","impliedFormat":99},{"version":"-15974991320-export * from 'src-types';\nexport * from './lassie/lassiedog.js';\n","signature":"-16783836862-export * from 'src-types';\r\nexport * from './lassie/lassiedog.js';\r\n","impliedFormat":99}],"options":{"composite":true,"declaration":true,"module":100},"fileIdsList":[[3,4],[3],[3,7],[5,6],[2],[5,8]],"referencedMap":[[5,1],[4,2],[8,3],[6,2],[7,4],[3,5]],"exportedModulesMap":[[5,2],[4,2],[8,3],[6,2],[7,6],[3,5]],"semanticDiagnosticsPerFile":[1,5,4,8,6,7,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/src-dogs/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -345,10 +345,10 @@ export class LassieDog extends Dog { "../src-types/dogconfig.d.ts", "../src-types/index.d.ts" ], - "dtsChangeTime": 37000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 2734 + "size": 2750 } //// [/src/src-types/dogconfig.d.ts] @@ -370,7 +370,7 @@ export * from './dogconfig.js'; //// [/src/src-types/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.es2022.full.d.ts","./dogconfig.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5575793279-export interface DogConfig {\n name: string;\n}","signature":"-2632060142-export interface DogConfig {\r\n name: string;\r\n}\r\n","impliedFormat":99},{"version":"-6189272282-export * from './dogconfig.js';","signature":"-5608794531-export * from './dogconfig.js';\r\n","impliedFormat":99}],"options":{"composite":true,"declaration":true,"module":100},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":27000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.es2022.full.d.ts","./dogconfig.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5575793279-export interface DogConfig {\n name: string;\n}","signature":"-2632060142-export interface DogConfig {\r\n name: string;\r\n}\r\n","impliedFormat":99},{"version":"-6189272282-export * from './dogconfig.js';","signature":"-5608794531-export * from './dogconfig.js';\r\n","impliedFormat":99}],"options":{"composite":true,"declaration":true,"module":100},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/src-types/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -423,9 +423,9 @@ export * from './dogconfig.js'; "./dogconfig.ts", "./index.ts" ], - "dtsChangeTime": 27000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1060 + "size": 1076 } diff --git a/tests/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-resolve-correctly.js b/tests/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-resolve-correctly.js index cbb7372ffad..4ecab4bc558 100644 --- a/tests/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-resolve-correctly.js +++ b/tests/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-resolve-correctly.js @@ -127,13 +127,13 @@ Output:: [12:00:21 AM] Building project '/src/solution/common/tsconfig.json'... -[12:00:31 AM] Project 'src/solution/sub-project/tsconfig.json' is out of date because output file 'src/lib/solution/sub-project/tsconfig.tsbuildinfo' does not exist +[12:00:30 AM] Project 'src/solution/sub-project/tsconfig.json' is out of date because output file 'src/lib/solution/sub-project/tsconfig.tsbuildinfo' does not exist -[12:00:32 AM] Building project '/src/solution/sub-project/tsconfig.json'... +[12:00:31 AM] Building project '/src/solution/sub-project/tsconfig.json'... -[12:00:40 AM] Project 'src/solution/sub-project-2/tsconfig.json' is out of date because output file 'src/lib/solution/sub-project-2/tsconfig.tsbuildinfo' does not exist +[12:00:38 AM] Project 'src/solution/sub-project-2/tsconfig.json' is out of date because output file 'src/lib/solution/sub-project-2/tsconfig.tsbuildinfo' does not exist -[12:00:41 AM] Building project '/src/solution/sub-project-2/tsconfig.json'... +[12:00:39 AM] Building project '/src/solution/sub-project-2/tsconfig.json'... exitCode:: ExitStatus.Success @@ -150,7 +150,7 @@ exports.__esModule = true; //// [/src/lib/solution/common/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../lib/lib.d.ts","../../../solution/common/nominal.ts"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true},{"version":"-24498031910-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n","signature":"-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n"}],"options":{"composite":true,"outDir":"../..","rootDir":"../../..","skipLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":22000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../lib/lib.d.ts","../../../solution/common/nominal.ts"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true},{"version":"-24498031910-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n","signature":"-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n"}],"options":{"composite":true,"outDir":"../..","rootDir":"../../..","skipLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./nominal.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/solution/common/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,15 +182,15 @@ exports.__esModule = true; "../../../../lib/lib.d.ts", "../../../solution/common/nominal.ts" ], - "dtsChangeTime": 22000 + "latestChangedDtsFile": "./nominal.d.ts" }, "version": "FakeTSVersion", - "size": 1258 + "size": 1276 } //// [/src/lib/solution/sub-project/index.d.ts] import { Nominal } from '../common/nominal'; -export declare type MyNominal = Nominal; +export type MyNominal = Nominal; //// [/src/lib/solution/sub-project/index.js] @@ -199,7 +199,7 @@ exports.__esModule = true; //// [/src/lib/solution/sub-project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../lib/lib.d.ts","../common/nominal.d.ts","../../../solution/sub-project/index.ts"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true},"-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n",{"version":"-22894055505-import { Nominal } from '../common/nominal';\n\nexport type MyNominal = Nominal;\n","signature":"-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal;\r\n"}],"options":{"composite":true,"outDir":"../..","rootDir":"../../..","skipLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":33000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../lib/lib.d.ts","../common/nominal.d.ts","../../../solution/sub-project/index.ts"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true},"-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n",{"version":"-22894055505-import { Nominal } from '../common/nominal';\n\nexport type MyNominal = Nominal;\n","signature":"-27144836353-import { Nominal } from '../common/nominal';\r\nexport type MyNominal = Nominal;\r\n"}],"options":{"composite":true,"outDir":"../..","rootDir":"../../..","skipLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/solution/sub-project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -226,7 +226,7 @@ exports.__esModule = true; }, "../../../solution/sub-project/index.ts": { "version": "-22894055505-import { Nominal } from '../common/nominal';\n\nexport type MyNominal = Nominal;\n", - "signature": "-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal;\r\n" + "signature": "-27144836353-import { Nominal } from '../common/nominal';\r\nexport type MyNominal = Nominal;\r\n" } }, "options": { @@ -250,10 +250,10 @@ exports.__esModule = true; "../common/nominal.d.ts", "../../../solution/sub-project/index.ts" ], - "dtsChangeTime": 33000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1456 + "size": 1464 } //// [/src/lib/solution/sub-project-2/index.d.ts] @@ -279,7 +279,7 @@ exports.getVar = getVar; //// [/src/lib/solution/sub-project-2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../lib/lib.d.ts","../common/nominal.d.ts","../sub-project/index.d.ts","../../../solution/sub-project-2/index.ts"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true},"-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n","-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal;\r\n",{"version":"-13939373533-import { MyNominal } from '../sub-project/index';\n\nconst variable = {\n key: 'value' as MyNominal,\n};\n\nexport function getVar(): keyof typeof variable {\n return 'key';\n}\n","signature":"881159974-import { MyNominal } from '../sub-project/index';\r\ndeclare const variable: {\r\n key: MyNominal;\r\n};\r\nexport declare function getVar(): keyof typeof variable;\r\nexport {};\r\n"}],"options":{"composite":true,"outDir":"../..","rootDir":"../../..","skipLibCheck":true},"fileIdsList":[[2],[3]],"referencedMap":[[3,1],[4,2]],"exportedModulesMap":[[3,1],[4,2]],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":42000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../lib/lib.d.ts","../common/nominal.d.ts","../sub-project/index.d.ts","../../../solution/sub-project-2/index.ts"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true},"-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n","-27144836353-import { Nominal } from '../common/nominal';\r\nexport type MyNominal = Nominal;\r\n",{"version":"-13939373533-import { MyNominal } from '../sub-project/index';\n\nconst variable = {\n key: 'value' as MyNominal,\n};\n\nexport function getVar(): keyof typeof variable {\n return 'key';\n}\n","signature":"881159974-import { MyNominal } from '../sub-project/index';\r\ndeclare const variable: {\r\n key: MyNominal;\r\n};\r\nexport declare function getVar(): keyof typeof variable;\r\nexport {};\r\n"}],"options":{"composite":true,"outDir":"../..","rootDir":"../../..","skipLibCheck":true},"fileIdsList":[[2],[3]],"referencedMap":[[3,1],[4,2]],"exportedModulesMap":[[3,1],[4,2]],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/solution/sub-project-2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -309,8 +309,8 @@ exports.getVar = getVar; "signature": "-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n" }, "../sub-project/index.d.ts": { - "version": "-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal;\r\n", - "signature": "-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal;\r\n" + "version": "-27144836353-import { Nominal } from '../common/nominal';\r\nexport type MyNominal = Nominal;\r\n", + "signature": "-27144836353-import { Nominal } from '../common/nominal';\r\nexport type MyNominal = Nominal;\r\n" }, "../../../solution/sub-project-2/index.ts": { "version": "-13939373533-import { MyNominal } from '../sub-project/index';\n\nconst variable = {\n key: 'value' as MyNominal,\n};\n\nexport function getVar(): keyof typeof variable {\n return 'key';\n}\n", @@ -345,9 +345,9 @@ exports.getVar = getVar; "../sub-project/index.d.ts", "../../../solution/sub-project-2/index.ts" ], - "dtsChangeTime": 42000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1783 + "size": 1791 } diff --git a/tests/baselines/reference/tsbuild/outFile/builds-till-project-specified.js b/tests/baselines/reference/tsbuild/outFile/builds-till-project-specified.js index 23ea2d18cd5..0131f761dc7 100644 --- a/tests/baselines/reference/tsbuild/outFile/builds-till-project-specified.js +++ b/tests/baselines/reference/tsbuild/outFile/builds-till-project-specified.js @@ -169,7 +169,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":6000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -252,9 +252,9 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 6000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2160 + "size": 2185 } diff --git a/tests/baselines/reference/tsbuild/outFile/clean-projects.js b/tests/baselines/reference/tsbuild/outFile/clean-projects.js index 9330715ed07..4d8b3c07599 100644 --- a/tests/baselines/reference/tsbuild/outFile/clean-projects.js +++ b/tests/baselines/reference/tsbuild/outFile/clean-projects.js @@ -49,7 +49,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":21000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -132,10 +132,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 21000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2161 + "size": 2185 } //// [/src/first/bin/first-output.d.ts] @@ -165,7 +165,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":9000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -243,10 +243,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 9000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2062 + "size": 2086 } //// [/src/first/first_PART1.ts] @@ -386,7 +386,7 @@ c.doSomething(); {"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":395,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":395,"kind":"text"}]},{"pos":395,"end":431,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"20832180013-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":33000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":395,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":395,"kind":"text"}]},{"pos":395,"end":431,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"20832180013-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -555,10 +555,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 33000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3582 + "size": 3605 } //// [/src/third/third_part1.ts] diff --git a/tests/baselines/reference/tsbuild/outFile/cleans-till-project-specified.js b/tests/baselines/reference/tsbuild/outFile/cleans-till-project-specified.js index 9f33b555d03..eab89bb89d5 100644 --- a/tests/baselines/reference/tsbuild/outFile/cleans-till-project-specified.js +++ b/tests/baselines/reference/tsbuild/outFile/cleans-till-project-specified.js @@ -49,7 +49,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":21000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -132,10 +132,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 21000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2161 + "size": 2185 } //// [/src/first/bin/first-output.d.ts] @@ -165,7 +165,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":9000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -243,10 +243,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 9000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2062 + "size": 2086 } //// [/src/first/first_PART1.ts] @@ -386,7 +386,7 @@ c.doSomething(); {"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":395,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":395,"kind":"text"}]},{"pos":395,"end":431,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"20832180013-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":33000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":395,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":395,"kind":"text"}]},{"pos":395,"end":431,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"20832180013-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -555,10 +555,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 33000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3582 + "size": 3605 } //// [/src/third/third_part1.ts] diff --git a/tests/baselines/reference/tsbuild/outFile/non-module-projects-without-prepend.js b/tests/baselines/reference/tsbuild/outFile/non-module-projects-without-prepend.js index 7ba75dfa369..8bcf92efee3 100644 --- a/tests/baselines/reference/tsbuild/outFile/non-module-projects-without-prepend.js +++ b/tests/baselines/reference/tsbuild/outFile/non-module-projects-without-prepend.js @@ -140,13 +140,13 @@ Output:: [12:00:16 AM] Building project '/src/first/tsconfig.json'... -[12:00:33 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/second/tsconfig.tsbuildinfo' does not exist +[12:00:32 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/second/tsconfig.tsbuildinfo' does not exist -[12:00:34 AM] Building project '/src/second/tsconfig.json'... +[12:00:33 AM] Building project '/src/second/tsconfig.json'... -[12:00:47 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/tsconfig.tsbuildinfo' does not exist +[12:00:45 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/tsconfig.tsbuildinfo' does not exist -[12:00:48 AM] Building project '/src/third/tsconfig.json'... +[12:00:46 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -202,7 +202,7 @@ function f() { {"version":3,"file":"first_part3.js","sourceRoot":"","sources":["first_part3.ts"],"names":[],"mappings":"AAAA,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./first_part1.ts","./first_part2.ts","./first_part3.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","signature":"-12382020913-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n","affectsGlobalScope":true},{"version":"4973778178-console.log(f());\r\n","signature":"5381-","affectsGlobalScope":true},{"version":"6202806249-function f() {\r\n return \"JS does hoists\";\r\n}","signature":"-5732730923-declare function f(): string;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":17000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./first_part1.ts","./first_part2.ts","./first_part3.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","signature":"-12382020913-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n","affectsGlobalScope":true},{"version":"4973778178-console.log(f());\r\n","signature":"5381-","affectsGlobalScope":true},{"version":"6202806249-function f() {\r\n return \"JS does hoists\";\r\n}","signature":"-5732730923-declare function f(): string;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./first_part3.d.ts"},"version":"FakeTSVersion"} //// [/src/first/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -251,10 +251,10 @@ function f() { "./first_part2.ts", "./first_part3.ts" ], - "dtsChangeTime": 17000 + "latestChangedDtsFile": "./first_part3.d.ts" }, "version": "FakeTSVersion", - "size": 1486 + "size": 1508 } //// [/src/second/second_part1.d.ts] @@ -304,7 +304,7 @@ var C = (function () { {"version":3,"file":"second_part2.js","sourceRoot":"","sources":["second_part2.ts"],"names":[],"mappings":"AAAA;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/second/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./second_part1.ts","./second_part2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","signature":"-4200194009-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\n","affectsGlobalScope":true},{"version":"9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n","signature":"1950347108-declare class C {\r\n doSomething(): void;\r\n}\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":35000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./second_part1.ts","./second_part2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","signature":"-4200194009-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\n","affectsGlobalScope":true},{"version":"9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n","signature":"1950347108-declare class C {\r\n doSomething(): void;\r\n}\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./second_part2.d.ts"},"version":"FakeTSVersion"} //// [/src/second/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -347,10 +347,10 @@ var C = (function () { "./second_part1.ts", "./second_part2.ts" ], - "dtsChangeTime": 35000 + "latestChangedDtsFile": "./second_part2.d.ts" }, "version": "FakeTSVersion", - "size": 1363 + "size": 1386 } //// [/src/third/third_part1.d.ts] @@ -369,7 +369,7 @@ c.doSomething(); {"version":3,"file":"third_part1.js","sourceRoot":"","sources":["third_part1.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../first/first_part1.d.ts","../first/first_part2.d.ts","../first/first_part3.d.ts","../second/second_part1.d.ts","../second/second_part2.d.ts","./third_part1.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17939996161-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n//# sourceMappingURL=first_PART1.d.ts.map","affectsGlobalScope":true},"-2054710634-//# sourceMappingURL=first_part2.d.ts.map",{"version":"-4577888121-declare function f(): string;\r\n//# sourceMappingURL=first_part3.d.ts.map","affectsGlobalScope":true},{"version":"-3134340341-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\n//# sourceMappingURL=second_part1.d.ts.map","affectsGlobalScope":true},{"version":"6579734441-declare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second_part2.d.ts.map","affectsGlobalScope":true},{"version":"10470273651-var c = new C();\r\nc.doSomething();\r\n","signature":"2394638288-declare var c: C;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"dtsChangeTime":49000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../first/first_part1.d.ts","../first/first_part2.d.ts","../first/first_part3.d.ts","../second/second_part1.d.ts","../second/second_part2.d.ts","./third_part1.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17939996161-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n//# sourceMappingURL=first_PART1.d.ts.map","affectsGlobalScope":true},"-2054710634-//# sourceMappingURL=first_part2.d.ts.map",{"version":"-4577888121-declare function f(): string;\r\n//# sourceMappingURL=first_part3.d.ts.map","affectsGlobalScope":true},{"version":"-3134340341-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\n//# sourceMappingURL=second_part1.d.ts.map","affectsGlobalScope":true},{"version":"6579734441-declare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second_part2.d.ts.map","affectsGlobalScope":true},{"version":"10470273651-var c = new C();\r\nc.doSomething();\r\n","signature":"2394638288-declare var c: C;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"latestChangedDtsFile":"./third_part1.d.ts"},"version":"FakeTSVersion"} //// [/src/third/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -439,9 +439,9 @@ c.doSomething(); "../second/second_part2.d.ts", "./third_part1.ts" ], - "dtsChangeTime": 49000 + "latestChangedDtsFile": "./third_part1.d.ts" }, "version": "FakeTSVersion", - "size": 1833 + "size": 1855 } diff --git a/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-command-line-incremental-flag-changes-between-non-dts-changes.js b/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-command-line-incremental-flag-changes-between-non-dts-changes.js index 2b28b9604ae..96b04817da6 100644 --- a/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-command-line-incremental-flag-changes-between-non-dts-changes.js +++ b/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-command-line-incremental-flag-changes-between-non-dts-changes.js @@ -140,13 +140,13 @@ Output:: [12:00:09 AM] Building project '/src/first/tsconfig.json'... -[12:00:20 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/second/tsconfig.json'... +[12:00:20 AM] Building project '/src/second/tsconfig.json'... -[12:00:32 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:30 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:33 AM] Building project '/src/third/tsconfig.json'... +[12:00:31 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -186,7 +186,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":22000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -269,10 +269,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 22000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2161 + "size": 2185 } //// [/src/first/bin/first-output.d.ts] @@ -302,7 +302,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":10000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -380,10 +380,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 10000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2063 + "size": 2086 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -621,25 +621,24 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:45 AM] Projects in this build: +[12:00:43 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:46 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:44 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:47 AM] Building project '/src/first/tsconfig.json'... +[12:00:45 AM] Building project '/src/first/tsconfig.json'... -[12:00:56 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:00:53 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:00:57 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:00:54 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:00:58 AM] Building project '/src/third/tsconfig.json'... +[12:00:55 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.js] var s = "Hello, world"; @@ -655,7 +654,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":10000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -734,10 +733,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 10000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2136 + "size": 2159 } //// [/src/third/thirdjs/output/third-output.d.ts] file written with same contents @@ -794,29 +793,28 @@ console.log(s);console.log(s); Output:: /lib/tsc --b /src/third --verbose --incremental -[12:01:04 AM] Projects in this build: +[12:01:01 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:05 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:02 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:06 AM] Building project '/src/first/tsconfig.json'... +[12:01:03 AM] Building project '/src/first/tsconfig.json'... -[12:01:15 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:11 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:16 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:12 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:17 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:13 AM] Updating output of project '/src/third/tsconfig.json'... -[12:01:18 AM] Cannot update output of project '/src/third/tsconfig.json' because there was error reading file 'src/third/thirdjs/output/third-output.js' +[12:01:14 AM] Cannot update output of project '/src/third/tsconfig.json' because there was error reading file 'src/third/thirdjs/output/third-output.js' -[12:01:19 AM] Building project '/src/third/tsconfig.json'... +[12:01:15 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.js] var s = "Hello, world"; @@ -833,7 +831,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACX9B,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":144,"kind":"text"}],"mapHash":"-13910258475-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACX9B,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"6824274954-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-14181918815-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":10000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":144,"kind":"text"}],"mapHash":"-13910258475-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACX9B,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"6824274954-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-14181918815-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -913,10 +911,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 10000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2211 + "size": 2234 } //// [/src/third/thirdjs/output/third-output.d.ts] file written with same contents diff --git a/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js b/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js index 662df53c3ba..06aa3d9716c 100644 --- a/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js +++ b/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js @@ -49,7 +49,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":21000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -132,10 +132,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 21000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2161 + "size": 2185 } //// [/src/first/bin/first-output.d.ts] @@ -165,7 +165,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":9000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -243,10 +243,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 9000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2062 + "size": 2086 } //// [/src/first/first_PART1.ts] @@ -386,7 +386,7 @@ c.doSomething(); {"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":395,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":395,"kind":"text"}]},{"pos":395,"end":431,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"20832180013-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":33000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":395,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":395,"kind":"text"}]},{"pos":395,"end":431,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"20832180013-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -555,10 +555,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 33000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3582 + "size": 3605 } //// [/src/third/third_part1.ts] @@ -593,22 +593,22 @@ c.doSomething(); Output:: /lib/tsc --b /src/third --verbose -[12:00:44 AM] Projects in this build: +[12:00:41 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:45 AM] Project 'src/first/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' +[12:00:42 AM] Project 'src/first/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' -[12:00:46 AM] Building project '/src/first/tsconfig.json'... +[12:00:43 AM] Building project '/src/first/tsconfig.json'... -[12:00:56 AM] Project 'src/second/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' +[12:00:52 AM] Project 'src/second/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' -[12:00:57 AM] Building project '/src/second/tsconfig.json'... +[12:00:53 AM] Building project '/src/second/tsconfig.json'... -[12:01:07 AM] Project 'src/third/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' +[12:01:02 AM] Project 'src/third/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' -[12:01:08 AM] Building project '/src/third/tsconfig.json'... +[12:01:03 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -618,7 +618,7 @@ exitCode:: ExitStatus.Success //// [/src/2/second-output.js] file written with same contents //// [/src/2/second-output.js.map] file written with same contents //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":58000},"version":"FakeTSCurrentVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSCurrentVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] file written with same contents //// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] @@ -666,10 +666,10 @@ exitCode:: ExitStatus.Success "outFile": "./second-output.js" }, "outSignature": "7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 58000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 2168 + "size": 2192 } //// [/src/first/bin/first-output.d.ts] file written with same contents @@ -677,7 +677,7 @@ exitCode:: ExitStatus.Success //// [/src/first/bin/first-output.js] file written with same contents //// [/src/first/bin/first-output.js.map] file written with same contents //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":47000},"version":"FakeTSCurrentVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSCurrentVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] file written with same contents //// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] @@ -728,10 +728,10 @@ exitCode:: ExitStatus.Success "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 47000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 2070 + "size": 2093 } //// [/src/third/thirdjs/output/third-output.d.ts] file written with same contents @@ -739,7 +739,7 @@ exitCode:: ExitStatus.Success //// [/src/third/thirdjs/output/third-output.js] file written with same contents //// [/src/third/thirdjs/output/third-output.js.map] file written with same contents //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":395,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":395,"kind":"text"}]},{"pos":395,"end":431,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"20832180013-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":69000},"version":"FakeTSCurrentVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":395,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":395,"kind":"text"}]},{"pos":395,"end":431,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"20832180013-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSCurrentVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] file written with same contents //// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] @@ -836,9 +836,9 @@ exitCode:: ExitStatus.Success "outFile": "./third-output.js" }, "outSignature": "-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 69000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 3589 + "size": 3612 } diff --git a/tests/baselines/reference/tsbuild/outFile/tsbuildinfo-is-not-generated-when-incremental-is-set-to-false.js b/tests/baselines/reference/tsbuild/outFile/tsbuildinfo-is-not-generated-when-incremental-is-set-to-false.js index 9c955f7f6d9..4ba9212ceae 100644 --- a/tests/baselines/reference/tsbuild/outFile/tsbuildinfo-is-not-generated-when-incremental-is-set-to-false.js +++ b/tests/baselines/reference/tsbuild/outFile/tsbuildinfo-is-not-generated-when-incremental-is-set-to-false.js @@ -140,13 +140,13 @@ Output:: [12:00:09 AM] Building project '/src/first/tsconfig.json'... -[12:00:20 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/second/tsconfig.json'... +[12:00:20 AM] Building project '/src/second/tsconfig.json'... -[12:00:32 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +[12:00:30 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -[12:00:33 AM] Building project '/src/third/tsconfig.json'... +[12:00:31 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -186,7 +186,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":22000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -269,10 +269,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 22000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2161 + "size": 2185 } //// [/src/first/bin/first-output.d.ts] @@ -302,7 +302,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":10000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -380,10 +380,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 10000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2063 + "size": 2086 } //// [/src/third/thirdjs/output/third-output.d.ts] diff --git a/tests/baselines/reference/tsbuild/outFile/verify-buildInfo-absence-results-in-new-build.js b/tests/baselines/reference/tsbuild/outFile/verify-buildInfo-absence-results-in-new-build.js index fcffd31aa2a..3e22c13a54a 100644 --- a/tests/baselines/reference/tsbuild/outFile/verify-buildInfo-absence-results-in-new-build.js +++ b/tests/baselines/reference/tsbuild/outFile/verify-buildInfo-absence-results-in-new-build.js @@ -49,7 +49,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":21000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -132,10 +132,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 21000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2161 + "size": 2185 } //// [/src/first/bin/first-output.d.ts] @@ -240,10 +240,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 9000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2062 + "size": 2086 } //// [/src/first/first_PART1.ts] @@ -383,7 +383,7 @@ c.doSomething(); {"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":395,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":395,"kind":"text"}]},{"pos":395,"end":431,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"20832180013-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":33000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":395,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":395,"kind":"text"}]},{"pos":395,"end":431,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"20832180013-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -552,10 +552,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 33000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3582 + "size": 3605 } //// [/src/third/third_part1.ts] @@ -590,20 +590,20 @@ c.doSomething(); Output:: /lib/tsc --b /src/third --verbose -[12:00:45 AM] Projects in this build: +[12:00:42 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:46 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:43 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:47 AM] Building project '/src/first/tsconfig.json'... +[12:00:44 AM] Building project '/src/first/tsconfig.json'... -[12:00:57 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:00:53 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:00:58 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:00:54 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:00:59 AM] Building project '/src/third/tsconfig.json'... +[12:00:55 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -613,64 +613,10 @@ exitCode:: ExitStatus.Success //// [/src/first/bin/first-output.js] file written with same contents //// [/src/first/bin/first-output.js.map] file written with same contents //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":48000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ], - "hash": "-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map", - "mapHash": "-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ], - "hash": "-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map", - "mapHash": "28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}" - } - }, - "program": { - "fileNames": [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "fileInfos": { - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" - }, - "options": { - "composite": true, - "outFile": "./first-output.js" - }, - "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 48000 - }, - "version": "FakeTSVersion", - "size": 2063 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] file written with same contents //// [/src/third/thirdjs/output/third-output.d.ts.map] file written with same contents //// [/src/third/thirdjs/output/third-output.js] file written with same contents //// [/src/third/thirdjs/output/third-output.js.map] file written with same contents diff --git a/tests/baselines/reference/tsbuild/outFile/when-input-file-text-does-not-change-but-its-modified-time-changes.js b/tests/baselines/reference/tsbuild/outFile/when-input-file-text-does-not-change-but-its-modified-time-changes.js index 756aa77875d..eb83355373a 100644 --- a/tests/baselines/reference/tsbuild/outFile/when-input-file-text-does-not-change-but-its-modified-time-changes.js +++ b/tests/baselines/reference/tsbuild/outFile/when-input-file-text-does-not-change-but-its-modified-time-changes.js @@ -140,13 +140,13 @@ Output:: [12:00:08 AM] Building project '/src/first/tsconfig.json'... -[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:18 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/second/tsconfig.json'... +[12:00:19 AM] Building project '/src/second/tsconfig.json'... -[12:00:31 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:29 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:32 AM] Building project '/src/third/tsconfig.json'... +[12:00:30 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -186,7 +186,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":21000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -269,10 +269,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 21000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2161 + "size": 2185 } //// [/src/first/bin/first-output.d.ts] @@ -302,7 +302,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":9000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -380,10 +380,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 9000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2062 + "size": 2086 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -438,7 +438,7 @@ c.doSomething(); {"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":395,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":395,"kind":"text"}]},{"pos":395,"end":431,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"20832180013-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":33000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":395,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":395,"kind":"text"}]},{"pos":395,"end":431,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"20832180013-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -607,10 +607,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 33000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3582 + "size": 3605 } @@ -622,20 +622,20 @@ Input:: Output:: /lib/tsc --b /src/third --verbose -[12:00:46 AM] Projects in this build: +[12:00:43 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:47 AM] Project 'src/first/tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files +[12:00:44 AM] Project 'src/first/tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files -[12:00:48 AM] Updating output timestamps of project '/src/first/tsconfig.json'... +[12:00:45 AM] Updating output timestamps of project '/src/first/tsconfig.json'... -[12:00:51 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:00:48 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:00:52 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:00:49 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:00:53 AM] Updating output of project '/src/third/tsconfig.json'... +[12:00:50 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/outfile-concat/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/baseline-sectioned-sourcemaps.js index aa64a7026c7..a502619cfbf 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/baseline-sectioned-sourcemaps.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/baseline-sectioned-sourcemaps.js @@ -140,13 +140,13 @@ Output:: [12:00:08 AM] Building project '/src/first/tsconfig.json'... -[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:18 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/second/tsconfig.json'... +[12:00:19 AM] Building project '/src/second/tsconfig.json'... -[12:00:31 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:29 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:32 AM] Building project '/src/third/tsconfig.json'... +[12:00:30 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -557,7 +557,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":21000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -640,10 +640,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 21000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2161 + "size": 2185 } //// [/src/first/bin/first-output.d.ts] @@ -947,7 +947,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":9000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1025,10 +1025,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 9000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2062 + "size": 2086 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1767,7 +1767,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":395,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":395,"kind":"text"}]},{"pos":395,"end":431,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"20832180013-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":33000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":395,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":395,"kind":"text"}]},{"pos":395,"end":431,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"20832180013-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1936,10 +1936,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 33000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3582 + "size": 3605 } @@ -1964,20 +1964,20 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:51 AM] Projects in this build: +[12:00:48 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:52 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:49 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:53 AM] Building project '/src/first/tsconfig.json'... +[12:00:50 AM] Building project '/src/first/tsconfig.json'... -[12:01:03 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:00:59 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:04 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:00 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:01:05 AM] Building project '/src/third/tsconfig.json'... +[12:01:01 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -2302,7 +2302,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"text"}],"mapHash":"-23743024037-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-17751605528-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-2594963283-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":54000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"text"}],"mapHash":"-23743024037-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-17751605528-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-2594963283-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2380,10 +2380,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 54000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2059 + "size": 2082 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -3122,7 +3122,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":109,"kind":"text"}]},{"pos":109,"end":394,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":109,"end":394,"kind":"text"}]},{"pos":394,"end":430,"kind":"text"}],"mapHash":"-26819990576-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"3234262685-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22149225483-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":66000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":109,"kind":"text"}]},{"pos":109,"end":394,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":109,"end":394,"kind":"text"}]},{"pos":394,"end":430,"kind":"text"}],"mapHash":"-26819990576-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"3234262685-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22149225483-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3291,10 +3291,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 66000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3578 + "size": 3601 } @@ -3319,20 +3319,20 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:20 AM] Projects in this build: +[12:01:15 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:21 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:16 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:22 AM] Building project '/src/first/tsconfig.json'... +[12:01:17 AM] Building project '/src/first/tsconfig.json'... -[12:01:31 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:25 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:32 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:26 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:33 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:27 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -3359,7 +3359,6 @@ readFiles:: { "/src/2/second-output.d.ts.map": 1 } -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] @@ -3548,7 +3547,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"8404444065-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":54000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"8404444065-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3627,10 +3626,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 54000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2130 + "size": 2153 } //// [/src/third/thirdjs/output/third-output.js] @@ -4134,7 +4133,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":126,"kind":"text"}]},{"pos":126,"end":411,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":126,"end":411,"kind":"text"}]},{"pos":411,"end":447,"kind":"text"}],"mapHash":"24739356036-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"22971978358-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22149225483-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":66000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":126,"kind":"text"}]},{"pos":126,"end":411,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":126,"end":411,"kind":"text"}]},{"pos":411,"end":447,"kind":"text"}],"mapHash":"24739356036-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"22971978358-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22149225483-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4304,9 +4303,9 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 66000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3637 + "size": 3660 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/declarationMap-and-sourceMap-disabled.js b/tests/baselines/reference/tsbuild/outfile-concat/declarationMap-and-sourceMap-disabled.js index 991e2ea5d1c..40c3cd62d3a 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/declarationMap-and-sourceMap-disabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/declarationMap-and-sourceMap-disabled.js @@ -138,13 +138,13 @@ Output:: [12:00:12 AM] Building project '/src/first/tsconfig.json'... -[12:00:23 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:22 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:24 AM] Building project '/src/second/tsconfig.json'... +[12:00:23 AM] Building project '/src/second/tsconfig.json'... -[12:00:35 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +[12:00:33 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -[12:00:36 AM] Building project '/src/third/tsconfig.json'... +[12:00:34 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -535,7 +535,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":25000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -618,10 +618,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 25000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2161 + "size": 2185 } //// [/src/first/bin/first-output.d.ts] @@ -925,7 +925,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":13000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1003,10 +1003,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 13000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2063 + "size": 2086 } //// [/src/third/thirdjs/output/third-output.d.ts] diff --git a/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-all-projects.js index 0e5eebbe00d..b1a934e296b 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-all-projects.js @@ -146,13 +146,13 @@ Output:: [12:00:11 AM] Building project '/src/first/tsconfig.json'... -[12:00:22 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:21 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:23 AM] Building project '/src/second/tsconfig.json'... +[12:00:22 AM] Building project '/src/second/tsconfig.json'... -[12:00:34 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:32 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:35 AM] Building project '/src/third/tsconfig.json'... +[12:00:33 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -707,7 +707,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":906,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-21017865726-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-42811698101-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":153,"kind":"text"}],"mapHash":"-13719015667-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-21852951798-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-12564528434-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-23919740017-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":24000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":906,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-21017865726-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-42811698101-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":153,"kind":"text"}],"mapHash":"-13719015667-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-21852951798-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-12564528434-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-23919740017-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -818,10 +818,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "-23919740017-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 24000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 3325 + "size": 3349 } //// [/src/first/bin/first-output.d.ts] @@ -1271,7 +1271,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":729,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-19791845071-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"15167709187-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":208,"kind":"text"}],"mapHash":"22543277725-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-27595933529-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-2071921725-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-27894059104-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n","dtsChangeTime":12000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":729,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-19791845071-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"15167709187-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":208,"kind":"text"}],"mapHash":"22543277725-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-27595933529-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-2071921725-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-27894059104-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1377,10 +1377,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-27894059104-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 12000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3210 + "size": 3233 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -2510,7 +2510,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":729,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":502,"end":729,"kind":"text"}]},{"pos":729,"end":1133,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":729,"end":1133,"kind":"text"}]},{"pos":1133,"end":1286,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"13581617434-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-23129477522-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":208,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":208,"kind":"text"}]},{"pos":208,"end":361,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":208,"end":361,"kind":"text"}]},{"pos":361,"end":431,"kind":"text"}],"mapHash":"54171448521-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-33223961194-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-32112437412-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n","dtsChangeTime":36000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":729,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":502,"end":729,"kind":"text"}]},{"pos":729,"end":1133,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":729,"end":1133,"kind":"text"}]},{"pos":1133,"end":1286,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"13581617434-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-23129477522-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":208,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":208,"kind":"text"}]},{"pos":208,"end":361,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":208,"end":361,"kind":"text"}]},{"pos":361,"end":431,"kind":"text"}],"mapHash":"54171448521-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-33223961194-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-32112437412-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2715,10 +2715,10 @@ declare function forthirdthird_part1Rest(): void; "outFile": "./third-output.js" }, "outSignature": "-32112437412-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n", - "dtsChangeTime": 36000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5568 + "size": 5591 } @@ -2745,20 +2745,20 @@ const { b, ...rest } = { a: 10, b: 30, yy: 30 }; Output:: /lib/tsc --b /src/third --verbose -[12:00:54 AM] Projects in this build: +[12:00:51 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:55 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:52 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:56 AM] Building project '/src/first/tsconfig.json'... +[12:00:53 AM] Building project '/src/first/tsconfig.json'... -[12:01:06 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:02 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:07 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:03 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:01:08 AM] Building project '/src/third/tsconfig.json'... +[12:01:04 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -3229,7 +3229,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":728,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-13521552725-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"26588342931-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":207,"kind":"text"}],"mapHash":"34379070423-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-9224545833-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["2612047891-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-7262792496-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n","dtsChangeTime":57000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":728,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-13521552725-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"26588342931-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":207,"kind":"text"}],"mapHash":"34379070423-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-9224545833-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["2612047891-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-7262792496-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3335,10 +3335,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-7262792496-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 57000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3203 + "size": 3226 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -4468,7 +4468,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":728,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":502,"end":728,"kind":"text"}]},{"pos":728,"end":1132,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":728,"end":1132,"kind":"text"}]},{"pos":1132,"end":1285,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"40950852308-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"41425838846-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":207,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":207,"kind":"text"}]},{"pos":207,"end":360,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":207,"end":360,"kind":"text"}]},{"pos":360,"end":430,"kind":"text"}],"mapHash":"13317128515-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-8147070778-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-2844223860-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n","dtsChangeTime":69000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":728,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":502,"end":728,"kind":"text"}]},{"pos":728,"end":1132,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":728,"end":1132,"kind":"text"}]},{"pos":1132,"end":1285,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"40950852308-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"41425838846-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":207,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":207,"kind":"text"}]},{"pos":207,"end":360,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":207,"end":360,"kind":"text"}]},{"pos":360,"end":430,"kind":"text"}],"mapHash":"13317128515-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-8147070778-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-2844223860-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4673,10 +4673,10 @@ declare function forthirdthird_part1Rest(): void; "outFile": "./third-output.js" }, "outSignature": "-2844223860-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n", - "dtsChangeTime": 69000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5562 + "size": 5585 } @@ -4703,20 +4703,20 @@ const { b, ...rest } = { a: 10, b: 30, yy: 30 }; Output:: /lib/tsc --b /src/third --verbose -[12:01:23 AM] Projects in this build: +[12:01:18 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:24 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:19 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:25 AM] Building project '/src/first/tsconfig.json'... +[12:01:20 AM] Building project '/src/first/tsconfig.json'... -[12:01:34 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:28 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:35 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:29 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:36 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:30 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -4743,7 +4743,6 @@ readFiles:: { "/src/2/second-output.d.ts.map": 1 } -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] @@ -5057,7 +5056,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":745,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-28759009220-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"1468775084-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":207,"kind":"text"}],"mapHash":"34379070423-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-9224545833-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["4727019029-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-7262792496-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n","dtsChangeTime":57000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":745,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-28759009220-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"1468775084-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":207,"kind":"text"}],"mapHash":"34379070423-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-9224545833-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["4727019029-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-7262792496-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5164,10 +5163,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-7262792496-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 57000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3277 + "size": 3300 } //// [/src/third/thirdjs/output/third-output.js] @@ -6004,7 +6003,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":745,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":502,"end":745,"kind":"text"}]},{"pos":745,"end":1149,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":745,"end":1149,"kind":"text"}]},{"pos":1149,"end":1302,"kind":"text"}],"mapHash":"-62137762555-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"18085607351-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":207,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":207,"kind":"text"}]},{"pos":207,"end":360,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":207,"end":360,"kind":"text"}]},{"pos":360,"end":430,"kind":"text"}],"mapHash":"13317128515-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-8147070778-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-2844223860-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n","dtsChangeTime":69000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":745,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":502,"end":745,"kind":"text"}]},{"pos":745,"end":1149,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":745,"end":1149,"kind":"text"}]},{"pos":1149,"end":1302,"kind":"text"}],"mapHash":"-62137762555-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"18085607351-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":207,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":207,"kind":"text"}]},{"pos":207,"end":360,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":207,"end":360,"kind":"text"}]},{"pos":360,"end":430,"kind":"text"}],"mapHash":"13317128515-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-8147070778-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-2844223860-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -6210,10 +6209,10 @@ declare function forthirdthird_part1Rest(): void; "outFile": "./third-output.js" }, "outSignature": "-2844223860-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n", - "dtsChangeTime": 69000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5623 + "size": 5646 } @@ -6238,20 +6237,20 @@ function forfirstfirst_PART1Rest() { }console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:47 AM] Projects in this build: +[12:01:41 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:48 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:42 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:49 AM] Building project '/src/first/tsconfig.json'... +[12:01:43 AM] Building project '/src/first/tsconfig.json'... -[12:01:58 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:51 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:59 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:52 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:02:00 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:53 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -6278,7 +6277,6 @@ readFiles:: { "/src/2/second-output.d.ts.map": 1 } -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET"} @@ -6633,7 +6631,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":166,"kind":"text"}],"mapHash":"-18585329978-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3069979133-var s = \"Hola, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":207,"kind":"text"}],"mapHash":"34106245240-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET\"}","hash":"-9224545833-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-2616863878-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-7262792496-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n","dtsChangeTime":57000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":166,"kind":"text"}],"mapHash":"-18585329978-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3069979133-var s = \"Hola, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":207,"kind":"text"}],"mapHash":"34106245240-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET\"}","hash":"-9224545833-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-2616863878-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-7262792496-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -6714,10 +6712,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-7262792496-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 57000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2368 + "size": 2391 } //// [/src/third/thirdjs/output/third-output.d.ts.map] @@ -7766,7 +7764,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":668,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":502,"end":668,"kind":"text"}]},{"pos":668,"end":1072,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":668,"end":1072,"kind":"text"}]},{"pos":1072,"end":1225,"kind":"text"}],"mapHash":"-23181551528-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-38842838411-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":207,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":207,"kind":"text"}]},{"pos":207,"end":360,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":207,"end":360,"kind":"text"}]},{"pos":360,"end":430,"kind":"text"}],"mapHash":"-7466973756-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-8147070778-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-2844223860-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n","dtsChangeTime":69000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":668,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":502,"end":668,"kind":"text"}]},{"pos":668,"end":1072,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":668,"end":1072,"kind":"text"}]},{"pos":1072,"end":1225,"kind":"text"}],"mapHash":"-23181551528-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-38842838411-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":207,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":207,"kind":"text"}]},{"pos":207,"end":360,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":207,"end":360,"kind":"text"}]},{"pos":360,"end":430,"kind":"text"}],"mapHash":"-7466973756-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-8147070778-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-2844223860-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -7970,9 +7968,9 @@ declare function forthirdthird_part1Rest(): void; "outFile": "./third-output.js" }, "outSignature": "-2844223860-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n", - "dtsChangeTime": 69000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5411 + "size": 5434 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-only-one-dependency-project.js index 15e8754524c..dd9b783b540 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-only-one-dependency-project.js @@ -142,13 +142,13 @@ Output:: [12:00:10 AM] Building project '/src/first/tsconfig.json'... -[12:00:21 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:22 AM] Building project '/src/second/tsconfig.json'... +[12:00:21 AM] Building project '/src/second/tsconfig.json'... -[12:00:33 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:31 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:34 AM] Building project '/src/third/tsconfig.json'... +[12:00:32 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -683,7 +683,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":906,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-21017865726-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-42811698101-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":153,"kind":"text"}],"mapHash":"-13719015667-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-21852951798-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-12564528434-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-23919740017-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":23000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":906,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-21017865726-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-42811698101-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":153,"kind":"text"}],"mapHash":"-13719015667-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-21852951798-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-12564528434-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-23919740017-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -794,10 +794,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "-23919740017-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 23000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 3325 + "size": 3349 } //// [/src/first/bin/first-output.d.ts] @@ -1138,7 +1138,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":150,"kind":"text"}],"mapHash":"-25671855582-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"32906530714-var s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":208,"kind":"text"}],"mapHash":"22270452542-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET\"}","hash":"-27595933529-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-4194720312-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-27894059104-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n","dtsChangeTime":11000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":150,"kind":"text"}],"mapHash":"-25671855582-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"32906530714-var s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":208,"kind":"text"}],"mapHash":"22270452542-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET\"}","hash":"-27595933529-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-4194720312-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-27894059104-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1218,10 +1218,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-27894059104-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 11000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2300 + "size": 2323 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -2141,7 +2141,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":652,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":502,"end":652,"kind":"text"}]},{"pos":652,"end":1056,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":652,"end":1056,"kind":"text"}]},{"pos":1056,"end":1092,"kind":"text"}],"mapHash":"-21009818477-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"5285022082-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":208,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":208,"kind":"text"}]},{"pos":208,"end":361,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":208,"end":361,"kind":"text"}]},{"pos":361,"end":380,"kind":"text"}],"mapHash":"5301495744-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30369240401-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-35165395659-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":35000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":652,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":502,"end":652,"kind":"text"}]},{"pos":652,"end":1056,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":652,"end":1056,"kind":"text"}]},{"pos":1056,"end":1092,"kind":"text"}],"mapHash":"-21009818477-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"5285022082-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":208,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":208,"kind":"text"}]},{"pos":208,"end":361,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":208,"end":361,"kind":"text"}]},{"pos":361,"end":380,"kind":"text"}],"mapHash":"5301495744-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30369240401-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-35165395659-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2335,10 +2335,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-35165395659-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 35000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4810 + "size": 4833 } @@ -2363,25 +2363,24 @@ function forfirstfirst_PART1Rest() { }console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:53 AM] Projects in this build: +[12:00:50 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:54 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:51 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:55 AM] Building project '/src/first/tsconfig.json'... +[12:00:52 AM] Building project '/src/first/tsconfig.json'... -[12:01:04 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:05 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:01 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:06 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:02 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] @@ -2588,7 +2587,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":167,"kind":"text"}],"mapHash":"-28547337588-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"26845982355-var s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":208,"kind":"text"}],"mapHash":"22270452542-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET\"}","hash":"-27595933529-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["1776071466-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-27894059104-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n","dtsChangeTime":11000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":167,"kind":"text"}],"mapHash":"-28547337588-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"26845982355-var s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":208,"kind":"text"}],"mapHash":"22270452542-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET\"}","hash":"-27595933529-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["1776071466-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-27894059104-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2669,10 +2668,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-27894059104-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 11000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2373 + "size": 2396 } //// [/src/third/thirdjs/output/third-output.js] @@ -3320,7 +3319,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":669,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":502,"end":669,"kind":"text"}]},{"pos":669,"end":1073,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":669,"end":1073,"kind":"text"}]},{"pos":1073,"end":1109,"kind":"text"}],"mapHash":"36423822013-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-8653612453-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":208,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":208,"kind":"text"}]},{"pos":208,"end":361,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":208,"end":361,"kind":"text"}]},{"pos":361,"end":380,"kind":"text"}],"mapHash":"5301495744-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30369240401-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-35165395659-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":35000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":669,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":502,"end":669,"kind":"text"}]},{"pos":669,"end":1073,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":669,"end":1073,"kind":"text"}]},{"pos":1073,"end":1109,"kind":"text"}],"mapHash":"36423822013-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-8653612453-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":208,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":208,"kind":"text"}]},{"pos":208,"end":361,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":208,"end":361,"kind":"text"}]},{"pos":361,"end":380,"kind":"text"}],"mapHash":"5301495744-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30369240401-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-35165395659-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3515,10 +3514,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-35165395659-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 35000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4869 + "size": 4892 } @@ -3545,25 +3544,24 @@ const { b, ...rest } = { a: 10, b: 30, yy: 30 }; Output:: /lib/tsc --b /src/third --verbose -[12:01:17 AM] Projects in this build: +[12:01:13 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:18 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:14 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:19 AM] Building project '/src/first/tsconfig.json'... +[12:01:15 AM] Building project '/src/first/tsconfig.json'... -[12:01:28 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:23 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:29 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:24 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:30 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:25 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET"} @@ -4027,7 +4025,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":746,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-28162747006-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-7584727524-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":208,"kind":"text"}],"mapHash":"22543277725-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-27595933529-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-5382108219-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-27894059104-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n","dtsChangeTime":11000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":746,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-28162747006-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-7584727524-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":208,"kind":"text"}],"mapHash":"22543277725-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-27595933529-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-5382108219-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-27894059104-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4134,10 +4132,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-27894059104-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 11000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3285 + "size": 3308 } //// [/src/third/thirdjs/output/third-output.d.ts.map] @@ -5151,7 +5149,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":746,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":502,"end":746,"kind":"text"}]},{"pos":746,"end":1150,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":746,"end":1150,"kind":"text"}]},{"pos":1150,"end":1186,"kind":"text"}],"mapHash":"13211411498-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-35222837155-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":208,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":208,"kind":"text"}]},{"pos":208,"end":361,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":208,"end":361,"kind":"text"}]},{"pos":361,"end":380,"kind":"text"}],"mapHash":"51589947999-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30369240401-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-35165395659-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":35000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":746,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":502,"end":746,"kind":"text"}]},{"pos":746,"end":1150,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":746,"end":1150,"kind":"text"}]},{"pos":1150,"end":1186,"kind":"text"}],"mapHash":"13211411498-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-35222837155-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":208,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":208,"kind":"text"}]},{"pos":208,"end":361,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":208,"end":361,"kind":"text"}]},{"pos":361,"end":380,"kind":"text"}],"mapHash":"51589947999-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30369240401-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-35165395659-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5348,9 +5346,9 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-35165395659-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 35000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5084 + "size": 5107 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/explainFiles.js b/tests/baselines/reference/tsbuild/outfile-concat/explainFiles.js index a084e10b11e..0107882aa65 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/explainFiles.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/explainFiles.js @@ -148,9 +148,9 @@ src/first/first_part2.ts Part of 'files' list in tsconfig.json src/first/first_part3.ts Part of 'files' list in tsconfig.json -[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:18 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/second/tsconfig.json'... +[12:00:19 AM] Building project '/src/second/tsconfig.json'... lib/lib.d.ts Default library for target 'es5' @@ -158,9 +158,9 @@ src/second/second_part1.ts Matched by default include pattern '**/*' src/second/second_part2.ts Matched by default include pattern '**/*' -[12:00:31 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:29 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:32 AM] Building project '/src/third/tsconfig.json'... +[12:00:30 AM] Building project '/src/third/tsconfig.json'... lib/lib.d.ts Default library for target 'es5' @@ -559,7 +559,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":21000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -642,10 +642,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 21000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2161 + "size": 2185 } //// [/src/first/bin/first-output.d.ts] @@ -949,7 +949,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":9000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1027,10 +1027,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 9000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2062 + "size": 2086 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1769,7 +1769,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":395,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":395,"kind":"text"}]},{"pos":395,"end":431,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"20832180013-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":33000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":395,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":395,"kind":"text"}]},{"pos":395,"end":431,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"20832180013-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1938,10 +1938,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 33000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3582 + "size": 3605 } @@ -1966,14 +1966,14 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose --explainFiles -[12:00:51 AM] Projects in this build: +[12:00:48 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:52 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:49 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:53 AM] Building project '/src/first/tsconfig.json'... +[12:00:50 AM] Building project '/src/first/tsconfig.json'... lib/lib.d.ts Default library for target 'es5' @@ -1983,11 +1983,11 @@ src/first/first_part2.ts Part of 'files' list in tsconfig.json src/first/first_part3.ts Part of 'files' list in tsconfig.json -[12:01:03 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:00:59 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:04 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:00 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:01:05 AM] Building project '/src/third/tsconfig.json'... +[12:01:01 AM] Building project '/src/third/tsconfig.json'... lib/lib.d.ts Default library for target 'es5' @@ -2301,7 +2301,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"text"}],"mapHash":"-23743024037-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-17751605528-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-2594963283-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":54000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"text"}],"mapHash":"-23743024037-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-17751605528-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-2594963283-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2379,10 +2379,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 54000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2059 + "size": 2082 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -3121,7 +3121,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":109,"kind":"text"}]},{"pos":109,"end":394,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":109,"end":394,"kind":"text"}]},{"pos":394,"end":430,"kind":"text"}],"mapHash":"-26819990576-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"3234262685-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22149225483-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":66000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":109,"kind":"text"}]},{"pos":109,"end":394,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":109,"end":394,"kind":"text"}]},{"pos":394,"end":430,"kind":"text"}],"mapHash":"-26819990576-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"3234262685-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22149225483-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3290,10 +3290,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 66000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3578 + "size": 3601 } @@ -3318,14 +3318,14 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose --explainFiles -[12:01:20 AM] Projects in this build: +[12:01:15 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:21 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:16 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:22 AM] Building project '/src/first/tsconfig.json'... +[12:01:17 AM] Building project '/src/first/tsconfig.json'... lib/lib.d.ts Default library for target 'es5' @@ -3335,16 +3335,15 @@ src/first/first_part2.ts Part of 'files' list in tsconfig.json src/first/first_part3.ts Part of 'files' list in tsconfig.json -[12:01:31 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:25 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:32 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:26 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:33 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:27 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] @@ -3533,7 +3532,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"8404444065-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":54000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"8404444065-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3612,10 +3611,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 54000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2130 + "size": 2153 } //// [/src/third/thirdjs/output/third-output.js] @@ -4119,7 +4118,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":126,"kind":"text"}]},{"pos":126,"end":411,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":126,"end":411,"kind":"text"}]},{"pos":411,"end":447,"kind":"text"}],"mapHash":"24739356036-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"22971978358-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22149225483-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":66000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":126,"kind":"text"}]},{"pos":126,"end":411,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":126,"end":411,"kind":"text"}]},{"pos":411,"end":447,"kind":"text"}],"mapHash":"24739356036-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"22971978358-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22149225483-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4289,9 +4288,9 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 66000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3637 + "size": 3660 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-all-projects.js index 22ee8f8aacf..f1bafcc4b1c 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-all-projects.js @@ -158,13 +158,13 @@ Output:: [12:00:17 AM] Building project '/src/first/tsconfig.json'... -[12:00:28 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:27 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:29 AM] Building project '/src/second/tsconfig.json'... +[12:00:28 AM] Building project '/src/second/tsconfig.json'... -[12:00:40 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:38 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:41 AM] Building project '/src/third/tsconfig.json'... +[12:00:39 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -929,7 +929,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":1006,"kind":"emitHelpers","data":"typescript:read"},{"pos":1008,"end":1396,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1398,"end":2092,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"-30083835302-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE\"}","hash":"10392077080-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nfunction secondsecond_part2Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar secondsecond_part2_ar = [20, 30];\r\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":267,"kind":"text"}],"mapHash":"-6793954603-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC\"}","hash":"-6006784725-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare function secondsecond_part2Spread(...b: number[]): void;\r\ndeclare const secondsecond_part2_ar: number[];\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-12564528434-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-17653520187-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n\nfunction secondsecond_part2Spread(...b: number[]) { }\nconst secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread(10, ...secondsecond_part2_ar);"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-13151345584-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare function secondsecond_part2Spread(...b: number[]): void;\r\ndeclare const secondsecond_part2_ar: number[];\r\n","dtsChangeTime":30000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":1006,"kind":"emitHelpers","data":"typescript:read"},{"pos":1008,"end":1396,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1398,"end":2092,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"-30083835302-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE\"}","hash":"10392077080-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nfunction secondsecond_part2Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar secondsecond_part2_ar = [20, 30];\r\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":267,"kind":"text"}],"mapHash":"-6793954603-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC\"}","hash":"-6006784725-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare function secondsecond_part2Spread(...b: number[]): void;\r\ndeclare const secondsecond_part2_ar: number[];\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-12564528434-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-17653520187-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n\nfunction secondsecond_part2Spread(...b: number[]) { }\nconst secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread(10, ...secondsecond_part2_ar);"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-13151345584-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare function secondsecond_part2Spread(...b: number[]): void;\r\ndeclare const secondsecond_part2_ar: number[];\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1093,10 +1093,10 @@ declare const secondsecond_part2_ar: number[]; "outFile": "./second-output.js" }, "outSignature": "-13151345584-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare function secondsecond_part2Spread(...b: number[]): void;\r\ndeclare const secondsecond_part2_ar: number[];\r\n", - "dtsChangeTime": 30000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 5440 + "size": 5464 } //// [/src/first/bin/first-output.d.ts] @@ -1774,7 +1774,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":1006,"kind":"emitHelpers","data":"typescript:read"},{"pos":1008,"end":1396,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1398,"end":1907,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"-35433619521-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-57982334156-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nfunction firstfirst_part3Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar firstfirst_part3_ar = [20, 30];\r\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":318,"kind":"text"}],"mapHash":"32680275599-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-53733421126-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-2071921725-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","4973778178-console.log(f());\r\n","998368782-function f() {\r\n return \"JS does hoists\";\r\n}\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-42349562125-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\n","dtsChangeTime":18000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":1006,"kind":"emitHelpers","data":"typescript:read"},{"pos":1008,"end":1396,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1398,"end":1907,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"-35433619521-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-57982334156-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nfunction firstfirst_part3Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar firstfirst_part3_ar = [20, 30];\r\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":318,"kind":"text"}],"mapHash":"32680275599-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-53733421126-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-2071921725-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","4973778178-console.log(f());\r\n","998368782-function f() {\r\n return \"JS does hoists\";\r\n}\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-42349562125-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1933,10 +1933,10 @@ declare const firstfirst_part3_ar: number[]; "outFile": "./first-output.js" }, "outSignature": "-42349562125-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\n", - "dtsChangeTime": 18000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 5302 + "size": 5325 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -3654,7 +3654,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":1006,"kind":"emitHelpers","data":"typescript:read"},{"pos":1008,"end":1396,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1398,"end":1907,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1398,"end":1907,"kind":"text"}]},{"pos":1907,"end":2601,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1907,"end":2601,"kind":"text"}]},{"pos":2601,"end":3036,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"-62895833357-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-90037683317-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nfunction firstfirst_part3Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar firstfirst_part3_ar = [20, 30];\r\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nfunction secondsecond_part2Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar secondsecond_part2_ar = [20, 30];\r\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\r\nvar c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nfunction thirdthird_part1Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar thirdthird_part1_ar = [20, 30];\r\nthirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false));\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":318,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":318,"kind":"text"}]},{"pos":318,"end":585,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":318,"end":585,"kind":"text"}]},{"pos":585,"end":765,"kind":"text"}],"mapHash":"25118173797-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-60677636699-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare function secondsecond_part2Spread(...b: number[]): void;\r\ndeclare const secondsecond_part2_ar: number[];\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\ndeclare function thirdthird_part1Spread(...b: number[]): void;\r\ndeclare const thirdthird_part1_ar: number[];\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-1627128876-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-71164455765-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare function secondsecond_part2Spread(...b: number[]): void;\r\ndeclare const secondsecond_part2_ar: number[];\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\ndeclare function thirdthird_part1Spread(...b: number[]): void;\r\ndeclare const thirdthird_part1_ar: number[];\r\n","dtsChangeTime":42000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":1006,"kind":"emitHelpers","data":"typescript:read"},{"pos":1008,"end":1396,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1398,"end":1907,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1398,"end":1907,"kind":"text"}]},{"pos":1907,"end":2601,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1907,"end":2601,"kind":"text"}]},{"pos":2601,"end":3036,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"-62895833357-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-90037683317-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nfunction firstfirst_part3Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar firstfirst_part3_ar = [20, 30];\r\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nfunction secondsecond_part2Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar secondsecond_part2_ar = [20, 30];\r\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\r\nvar c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nfunction thirdthird_part1Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar thirdthird_part1_ar = [20, 30];\r\nthirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false));\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":318,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":318,"kind":"text"}]},{"pos":318,"end":585,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":318,"end":585,"kind":"text"}]},{"pos":585,"end":765,"kind":"text"}],"mapHash":"25118173797-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-60677636699-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare function secondsecond_part2Spread(...b: number[]): void;\r\ndeclare const secondsecond_part2_ar: number[];\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\ndeclare function thirdthird_part1Spread(...b: number[]): void;\r\ndeclare const thirdthird_part1_ar: number[];\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-1627128876-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-71164455765-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare function secondsecond_part2Spread(...b: number[]): void;\r\ndeclare const secondsecond_part2_ar: number[];\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\ndeclare function thirdthird_part1Spread(...b: number[]): void;\r\ndeclare const thirdthird_part1_ar: number[];\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3932,10 +3932,10 @@ declare const thirdthird_part1_ar: number[]; "outFile": "./third-output.js" }, "outSignature": "-71164455765-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare function secondsecond_part2Spread(...b: number[]): void;\r\ndeclare const secondsecond_part2_ar: number[];\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\ndeclare function thirdthird_part1Spread(...b: number[]): void;\r\ndeclare const thirdthird_part1_ar: number[];\r\n", - "dtsChangeTime": 42000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9248 + "size": 9271 } @@ -3962,25 +3962,24 @@ const { b, ...rest } = { a: 10, b: 30, yy: 30 }; Output:: /lib/tsc --b /src/third --verbose -[12:01:00 AM] Projects in this build: +[12:00:57 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:01 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:58 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:02 AM] Building project '/src/first/tsconfig.json'... +[12:00:59 AM] Building project '/src/first/tsconfig.json'... -[12:01:11 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:07 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:12 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:08 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:13 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:09 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] @@ -4469,7 +4468,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":1006,"kind":"emitHelpers","data":"typescript:read"},{"pos":1008,"end":1396,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1398,"end":1924,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"-30182735568-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-29577924435-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nfunction firstfirst_part3Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar firstfirst_part3_ar = [20, 30];\r\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":318,"kind":"text"}],"mapHash":"32680275599-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-53733421126-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-5382108219-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);","4973778178-console.log(f());\r\n","998368782-function f() {\r\n return \"JS does hoists\";\r\n}\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-42349562125-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\n","dtsChangeTime":18000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":1006,"kind":"emitHelpers","data":"typescript:read"},{"pos":1008,"end":1396,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1398,"end":1924,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"-30182735568-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-29577924435-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nfunction firstfirst_part3Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar firstfirst_part3_ar = [20, 30];\r\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":318,"kind":"text"}],"mapHash":"32680275599-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-53733421126-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-5382108219-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);","4973778178-console.log(f());\r\n","998368782-function f() {\r\n return \"JS does hoists\";\r\n}\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-42349562125-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4629,10 +4628,10 @@ declare const firstfirst_part3_ar: number[]; "outFile": "./first-output.js" }, "outSignature": "-42349562125-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\n", - "dtsChangeTime": 18000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 5377 + "size": 5400 } //// [/src/third/thirdjs/output/third-output.js] @@ -5895,7 +5894,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":1006,"kind":"emitHelpers","data":"typescript:read"},{"pos":1008,"end":1396,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1398,"end":1924,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1398,"end":1924,"kind":"text"}]},{"pos":1924,"end":2618,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1924,"end":2618,"kind":"text"}]},{"pos":2618,"end":3053,"kind":"text"}],"mapHash":"5963265220-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-25778453212-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nfunction firstfirst_part3Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar firstfirst_part3_ar = [20, 30];\r\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nfunction secondsecond_part2Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar secondsecond_part2_ar = [20, 30];\r\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\r\nvar c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nfunction thirdthird_part1Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar thirdthird_part1_ar = [20, 30];\r\nthirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false));\r\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":318,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":318,"kind":"text"}]},{"pos":318,"end":585,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":318,"end":585,"kind":"text"}]},{"pos":585,"end":765,"kind":"text"}],"mapHash":"25118173797-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-60677636699-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare function secondsecond_part2Spread(...b: number[]): void;\r\ndeclare const secondsecond_part2_ar: number[];\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\ndeclare function thirdthird_part1Spread(...b: number[]): void;\r\ndeclare const thirdthird_part1_ar: number[];\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-1627128876-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-71164455765-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare function secondsecond_part2Spread(...b: number[]): void;\r\ndeclare const secondsecond_part2_ar: number[];\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\ndeclare function thirdthird_part1Spread(...b: number[]): void;\r\ndeclare const thirdthird_part1_ar: number[];\r\n","dtsChangeTime":42000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":1006,"kind":"emitHelpers","data":"typescript:read"},{"pos":1008,"end":1396,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1398,"end":1924,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1398,"end":1924,"kind":"text"}]},{"pos":1924,"end":2618,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1924,"end":2618,"kind":"text"}]},{"pos":2618,"end":3053,"kind":"text"}],"mapHash":"5963265220-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-25778453212-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nfunction firstfirst_part3Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar firstfirst_part3_ar = [20, 30];\r\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nfunction secondsecond_part2Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar secondsecond_part2_ar = [20, 30];\r\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\r\nvar c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nfunction thirdthird_part1Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar thirdthird_part1_ar = [20, 30];\r\nthirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false));\r\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":318,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":318,"kind":"text"}]},{"pos":318,"end":585,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":318,"end":585,"kind":"text"}]},{"pos":585,"end":765,"kind":"text"}],"mapHash":"25118173797-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-60677636699-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare function secondsecond_part2Spread(...b: number[]): void;\r\ndeclare const secondsecond_part2_ar: number[];\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\ndeclare function thirdthird_part1Spread(...b: number[]): void;\r\ndeclare const thirdthird_part1_ar: number[];\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-1627128876-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-71164455765-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare function secondsecond_part2Spread(...b: number[]): void;\r\ndeclare const secondsecond_part2_ar: number[];\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\ndeclare function thirdthird_part1Spread(...b: number[]): void;\r\ndeclare const thirdthird_part1_ar: number[];\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -6174,10 +6173,10 @@ declare const thirdthird_part1_ar: number[]; "outFile": "./third-output.js" }, "outSignature": "-71164455765-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare function secondsecond_part2Spread(...b: number[]): void;\r\ndeclare const secondsecond_part2_ar: number[];\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\ndeclare function thirdthird_part1Spread(...b: number[]): void;\r\ndeclare const thirdthird_part1_ar: number[];\r\n", - "dtsChangeTime": 42000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9306 + "size": 9329 } @@ -6202,25 +6201,24 @@ function forfirstfirst_PART1Rest() { }console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:24 AM] Projects in this build: +[12:01:20 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:25 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:21 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:26 AM] Building project '/src/first/tsconfig.json'... +[12:01:22 AM] Building project '/src/first/tsconfig.json'... -[12:01:35 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:30 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:36 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:31 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:37 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:32 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC"} @@ -6801,7 +6799,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1345,"kind":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray"]},"mapHash":"-26203276582-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"42519965252-var __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nfunction firstfirst_part3Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar firstfirst_part3_ar = [20, 30];\r\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":318,"kind":"text"}],"mapHash":"8802529616-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-53733421126-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["1776071466-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }console.log(s);","4973778178-console.log(f());\r\n","998368782-function f() {\r\n return \"JS does hoists\";\r\n}\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-42349562125-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\n","dtsChangeTime":18000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1345,"kind":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray"]},"mapHash":"-26203276582-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"42519965252-var __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nfunction firstfirst_part3Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar firstfirst_part3_ar = [20, 30];\r\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":318,"kind":"text"}],"mapHash":"8802529616-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-53733421126-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["1776071466-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }console.log(s);","4973778178-console.log(f());\r\n","998368782-function f() {\r\n return \"JS does hoists\";\r\n}\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-42349562125-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -6939,10 +6937,10 @@ declare const firstfirst_part3_ar: number[]; "outFile": "./first-output.js" }, "outSignature": "-42349562125-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\n", - "dtsChangeTime": 18000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 4483 + "size": 4506 } //// [/src/third/thirdjs/output/third-output.d.ts.map] @@ -8573,7 +8571,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1396,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1398,"end":1847,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1398,"end":1847,"kind":"text"}]},{"pos":1847,"end":2541,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1847,"end":2541,"kind":"text"}]},{"pos":2541,"end":2976,"kind":"text"}],"mapHash":"26169118295-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"72997038466-var __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nfunction firstfirst_part3Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar firstfirst_part3_ar = [20, 30];\r\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nfunction secondsecond_part2Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar secondsecond_part2_ar = [20, 30];\r\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\r\nvar c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nfunction thirdthird_part1Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar thirdthird_part1_ar = [20, 30];\r\nthirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false));\r\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":318,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":318,"kind":"text"}]},{"pos":318,"end":585,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":318,"end":585,"kind":"text"}]},{"pos":585,"end":765,"kind":"text"}],"mapHash":"18621572486-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-60677636699-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare function secondsecond_part2Spread(...b: number[]): void;\r\ndeclare const secondsecond_part2_ar: number[];\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\ndeclare function thirdthird_part1Spread(...b: number[]): void;\r\ndeclare const thirdthird_part1_ar: number[];\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-1627128876-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-71164455765-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare function secondsecond_part2Spread(...b: number[]): void;\r\ndeclare const secondsecond_part2_ar: number[];\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\ndeclare function thirdthird_part1Spread(...b: number[]): void;\r\ndeclare const thirdthird_part1_ar: number[];\r\n","dtsChangeTime":42000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1396,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1398,"end":1847,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1398,"end":1847,"kind":"text"}]},{"pos":1847,"end":2541,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1847,"end":2541,"kind":"text"}]},{"pos":2541,"end":2976,"kind":"text"}],"mapHash":"26169118295-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"72997038466-var __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nfunction firstfirst_part3Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar firstfirst_part3_ar = [20, 30];\r\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction forsecondsecond_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nfunction secondsecond_part2Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar secondsecond_part2_ar = [20, 30];\r\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\r\nvar c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nfunction thirdthird_part1Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar thirdthird_part1_ar = [20, 30];\r\nthirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false));\r\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":318,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":318,"kind":"text"}]},{"pos":318,"end":585,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":318,"end":585,"kind":"text"}]},{"pos":585,"end":765,"kind":"text"}],"mapHash":"18621572486-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-60677636699-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare function secondsecond_part2Spread(...b: number[]): void;\r\ndeclare const secondsecond_part2_ar: number[];\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\ndeclare function thirdthird_part1Spread(...b: number[]): void;\r\ndeclare const thirdthird_part1_ar: number[];\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-1627128876-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-71164455765-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare function secondsecond_part2Spread(...b: number[]): void;\r\ndeclare const secondsecond_part2_ar: number[];\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\ndeclare function thirdthird_part1Spread(...b: number[]): void;\r\ndeclare const thirdthird_part1_ar: number[];\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8850,9 +8848,9 @@ declare const thirdthird_part1_ar: number[]; "outFile": "./third-output.js" }, "outSignature": "-71164455765-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare function firstfirst_part3Spread(...b: number[]): void;\r\ndeclare const firstfirst_part3_ar: number[];\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function forsecondsecond_part1Rest(): void;\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare function secondsecond_part2Spread(...b: number[]): void;\r\ndeclare const secondsecond_part2_ar: number[];\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\ndeclare function thirdthird_part1Spread(...b: number[]): void;\r\ndeclare const thirdthird_part1_ar: number[];\r\n", - "dtsChangeTime": 42000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9091 + "size": 9114 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-different-projects.js index 7a1ff55fa43..5a1fc1de0af 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-different-projects.js @@ -148,13 +148,13 @@ Output:: [12:00:12 AM] Building project '/src/first/tsconfig.json'... -[12:00:23 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:22 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:24 AM] Building project '/src/second/tsconfig.json'... +[12:00:23 AM] Building project '/src/second/tsconfig.json'... -[12:00:35 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:33 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:36 AM] Building project '/src/third/tsconfig.json'... +[12:00:34 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -775,7 +775,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1471,"kind":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray"]},"mapHash":"-34534977022-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"53236375969-var __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction secondsecond_part1Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar secondsecond_part1_ar = [20, 30];\r\nsecondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":214,"kind":"text"}],"mapHash":"14094696036-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-14757968608-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function secondsecond_part1Spread(...b: number[]): void;\r\ndeclare const secondsecond_part1_ar: number[];\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-24334061923-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nfunction secondsecond_part1Spread(...b: number[]) { }\nconst secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread(10, ...secondsecond_part1_ar);","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-22039916699-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function secondsecond_part1Spread(...b: number[]): void;\r\ndeclare const secondsecond_part1_ar: number[];\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":25000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1471,"kind":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray"]},"mapHash":"-34534977022-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"53236375969-var __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction secondsecond_part1Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar secondsecond_part1_ar = [20, 30];\r\nsecondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":214,"kind":"text"}],"mapHash":"14094696036-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-14757968608-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function secondsecond_part1Spread(...b: number[]): void;\r\ndeclare const secondsecond_part1_ar: number[];\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-24334061923-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nfunction secondsecond_part1Spread(...b: number[]) { }\nconst secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread(10, ...secondsecond_part1_ar);","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-22039916699-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function secondsecond_part1Spread(...b: number[]): void;\r\ndeclare const secondsecond_part1_ar: number[];\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -915,10 +915,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "-22039916699-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function secondsecond_part1Spread(...b: number[]): void;\r\ndeclare const secondsecond_part1_ar: number[];\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 25000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 4305 + "size": 4329 } //// [/src/first/bin/first-output.d.ts] @@ -1368,7 +1368,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":729,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-19791845071-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"15167709187-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":208,"kind":"text"}],"mapHash":"22543277725-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-27595933529-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-2071921725-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-27894059104-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n","dtsChangeTime":13000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":729,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-19791845071-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"15167709187-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":208,"kind":"text"}],"mapHash":"22543277725-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-27595933529-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-2071921725-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-27894059104-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1474,10 +1474,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-27894059104-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 13000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3210 + "size": 3233 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -2715,7 +2715,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":1006,"kind":"emitHelpers","data":"typescript:read"},{"pos":1008,"end":1396,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1398,"end":1625,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1398,"end":1625,"kind":"text"}]},{"pos":1625,"end":2200,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1625,"end":2200,"kind":"text"}]},{"pos":2200,"end":2353,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-13780861725-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-46955292405-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction secondsecond_part1Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar secondsecond_part1_ar = [20, 30];\r\nsecondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":208,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":208,"kind":"text"}]},{"pos":208,"end":422,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":208,"end":422,"kind":"text"}]},{"pos":422,"end":492,"kind":"text"}],"mapHash":"27738518528-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"2435669836-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function secondsecond_part1Spread(...b: number[]): void;\r\ndeclare const secondsecond_part1_ar: number[];\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-10517557870-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function secondsecond_part1Spread(...b: number[]): void;\r\ndeclare const secondsecond_part1_ar: number[];\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n","dtsChangeTime":37000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":1006,"kind":"emitHelpers","data":"typescript:read"},{"pos":1008,"end":1396,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1398,"end":1625,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1398,"end":1625,"kind":"text"}]},{"pos":1625,"end":2200,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1625,"end":2200,"kind":"text"}]},{"pos":2200,"end":2353,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-13780861725-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-46955292405-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction secondsecond_part1Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar secondsecond_part1_ar = [20, 30];\r\nsecondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":208,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":208,"kind":"text"}]},{"pos":208,"end":422,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":208,"end":422,"kind":"text"}]},{"pos":422,"end":492,"kind":"text"}],"mapHash":"27738518528-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"2435669836-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function secondsecond_part1Spread(...b: number[]): void;\r\ndeclare const secondsecond_part1_ar: number[];\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-10517557870-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function secondsecond_part1Spread(...b: number[]): void;\r\ndeclare const secondsecond_part1_ar: number[];\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2967,10 +2967,10 @@ declare function forthirdthird_part1Rest(): void; "outFile": "./third-output.js" }, "outSignature": "-10517557870-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function secondsecond_part1Spread(...b: number[]): void;\r\ndeclare const secondsecond_part1_ar: number[];\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n", - "dtsChangeTime": 37000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 7075 + "size": 7098 } @@ -2997,25 +2997,24 @@ const { b, ...rest } = { a: 10, b: 30, yy: 30 }; Output:: /lib/tsc --b /src/third --verbose -[12:00:55 AM] Projects in this build: +[12:00:52 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:56 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:53 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:57 AM] Building project '/src/first/tsconfig.json'... +[12:00:54 AM] Building project '/src/first/tsconfig.json'... -[12:01:06 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:02 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:07 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:03 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:08 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:04 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] @@ -3329,7 +3328,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":746,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-28162747006-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-7584727524-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":208,"kind":"text"}],"mapHash":"22543277725-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-27595933529-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-5382108219-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-27894059104-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n","dtsChangeTime":13000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":746,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-28162747006-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-7584727524-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":208,"kind":"text"}],"mapHash":"22543277725-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-27595933529-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-5382108219-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-27894059104-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3436,10 +3435,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-27894059104-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 13000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3285 + "size": 3308 } //// [/src/third/thirdjs/output/third-output.js] @@ -4348,7 +4347,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":1006,"kind":"emitHelpers","data":"typescript:read"},{"pos":1008,"end":1396,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1398,"end":1642,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1398,"end":1642,"kind":"text"}]},{"pos":1642,"end":2217,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1642,"end":2217,"kind":"text"}]},{"pos":2217,"end":2370,"kind":"text"}],"mapHash":"36408281972-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"13159318596-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction secondsecond_part1Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar secondsecond_part1_ar = [20, 30];\r\nsecondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":208,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":208,"kind":"text"}]},{"pos":208,"end":422,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":208,"end":422,"kind":"text"}]},{"pos":422,"end":492,"kind":"text"}],"mapHash":"27738518528-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"2435669836-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function secondsecond_part1Spread(...b: number[]): void;\r\ndeclare const secondsecond_part1_ar: number[];\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-10517557870-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function secondsecond_part1Spread(...b: number[]): void;\r\ndeclare const secondsecond_part1_ar: number[];\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n","dtsChangeTime":37000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":1006,"kind":"emitHelpers","data":"typescript:read"},{"pos":1008,"end":1396,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1398,"end":1642,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1398,"end":1642,"kind":"text"}]},{"pos":1642,"end":2217,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1642,"end":2217,"kind":"text"}]},{"pos":2217,"end":2370,"kind":"text"}],"mapHash":"36408281972-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"13159318596-var __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction secondsecond_part1Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar secondsecond_part1_ar = [20, 30];\r\nsecondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":208,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":208,"kind":"text"}]},{"pos":208,"end":422,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":208,"end":422,"kind":"text"}]},{"pos":422,"end":492,"kind":"text"}],"mapHash":"27738518528-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"2435669836-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function secondsecond_part1Spread(...b: number[]): void;\r\ndeclare const secondsecond_part1_ar: number[];\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-10517557870-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function secondsecond_part1Spread(...b: number[]): void;\r\ndeclare const secondsecond_part1_ar: number[];\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4601,10 +4600,10 @@ declare function forthirdthird_part1Rest(): void; "outFile": "./third-output.js" }, "outSignature": "-10517557870-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function secondsecond_part1Spread(...b: number[]): void;\r\ndeclare const secondsecond_part1_ar: number[];\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n", - "dtsChangeTime": 37000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 7133 + "size": 7156 } @@ -4629,25 +4628,24 @@ function forfirstfirst_PART1Rest() { }console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:19 AM] Projects in this build: +[12:01:15 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:20 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:16 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:21 AM] Building project '/src/first/tsconfig.json'... +[12:01:17 AM] Building project '/src/first/tsconfig.json'... -[12:01:30 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:25 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:31 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:26 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:32 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:27 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET"} @@ -5002,7 +5000,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":167,"kind":"text"}],"mapHash":"-28547337588-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"26845982355-var s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":208,"kind":"text"}],"mapHash":"22270452542-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET\"}","hash":"-27595933529-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["1776071466-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-27894059104-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n","dtsChangeTime":13000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":167,"kind":"text"}],"mapHash":"-28547337588-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"26845982355-var s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":208,"kind":"text"}],"mapHash":"22270452542-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET\"}","hash":"-27595933529-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["1776071466-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-27894059104-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5083,10 +5081,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-27894059104-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 13000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2373 + "size": 2396 } //// [/src/third/thirdjs/output/third-output.d.ts.map] @@ -6242,7 +6240,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1396,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1398,"end":1565,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1398,"end":1565,"kind":"text"}]},{"pos":1565,"end":2140,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1565,"end":2140,"kind":"text"}]},{"pos":2140,"end":2293,"kind":"text"}],"mapHash":"10267526983-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"15398485858-var __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction secondsecond_part1Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar secondsecond_part1_ar = [20, 30];\r\nsecondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":208,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":208,"kind":"text"}]},{"pos":208,"end":422,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":208,"end":422,"kind":"text"}]},{"pos":422,"end":492,"kind":"text"}],"mapHash":"11916833729-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"2435669836-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function secondsecond_part1Spread(...b: number[]): void;\r\ndeclare const secondsecond_part1_ar: number[];\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-10517557870-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function secondsecond_part1Spread(...b: number[]): void;\r\ndeclare const secondsecond_part1_ar: number[];\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n","dtsChangeTime":37000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1396,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1398,"end":1565,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1398,"end":1565,"kind":"text"}]},{"pos":1565,"end":2140,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1565,"end":2140,"kind":"text"}]},{"pos":2140,"end":2293,"kind":"text"}],"mapHash":"10267526983-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"15398485858-var __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar __rest = (this && this.__rest) || function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n};\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nfunction secondsecond_part1Spread() {\r\n var b = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n b[_i] = arguments[_i];\r\n }\r\n}\r\nvar secondsecond_part1_ar = [20, 30];\r\nsecondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\r\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\r\n}\r\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":208,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":208,"kind":"text"}]},{"pos":208,"end":422,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":208,"end":422,"kind":"text"}]},{"pos":422,"end":492,"kind":"text"}],"mapHash":"11916833729-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"2435669836-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function secondsecond_part1Spread(...b: number[]): void;\r\ndeclare const secondsecond_part1_ar: number[];\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-10517557870-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function secondsecond_part1Spread(...b: number[]): void;\r\ndeclare const secondsecond_part1_ar: number[];\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -6493,9 +6491,9 @@ declare function forthirdthird_part1Rest(): void; "outFile": "./third-output.js" }, "outSignature": "-10517557870-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function forfirstfirst_PART1Rest(): void;\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare function secondsecond_part1Spread(...b: number[]): void;\r\ndeclare const secondsecond_part1_ar: number[];\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\ndeclare function forthirdthird_part1Rest(): void;\r\n", - "dtsChangeTime": 37000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 6918 + "size": 6941 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-all-projects.js index a4587405c23..0b7f66fbaca 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-all-projects.js @@ -145,13 +145,13 @@ Output:: [12:00:16 AM] Building project '/src/first/tsconfig.json'... -[12:00:27 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:26 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:28 AM] Building project '/src/second/tsconfig.json'... +[12:00:27 AM] Building project '/src/second/tsconfig.json'... -[12:00:39 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:37 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:40 AM] Building project '/src/third/tsconfig.json'... +[12:00:38 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -601,7 +601,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue2"},{"pos":46,"end":331,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]},{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]},"mapHash":"-3048025768-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ADKd,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"1999145944-\"use strict\";\r\n\"myPrologue\";\r\n\"myPrologue2\";\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"10908638301-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-5295626911-\"myPrologue\"\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","18749993618-\"myPrologue2\";\nclass C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":29000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue2"},{"pos":46,"end":331,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]},{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]},"mapHash":"-3048025768-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ADKd,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"1999145944-\"use strict\";\r\n\"myPrologue\";\r\n\"myPrologue2\";\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"10908638301-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-5295626911-\"myPrologue\"\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","18749993618-\"myPrologue2\";\nclass C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -754,10 +754,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 29000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2803 + "size": 2827 } //// [/src/first/bin/first-output.d.ts] @@ -1078,7 +1078,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":140,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-16462635350-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"816706653-\"use strict\";\r\n\"myPrologue\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"18068494155-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["31392936222-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":17000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":140,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-16462635350-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"816706653-\"use strict\";\r\n\"myPrologue\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"18068494155-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["31392936222-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1202,10 +1202,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 17000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2466 + "size": 2489 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -2007,7 +2007,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue2"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue3"},{"pos":62,"end":172,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":62,"end":172,"kind":"text"}]},{"pos":172,"end":457,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":172,"end":457,"kind":"text"}]},{"pos":457,"end":493,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]},"mapHash":"28083733311-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-57679879735-\"use strict\";\r\n\"myPrologue\";\r\n\"myPrologue2\";\r\n\"myPrologue3\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"37827717207-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["419920190-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":41000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue2"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue3"},{"pos":62,"end":172,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":62,"end":172,"kind":"text"}]},{"pos":172,"end":457,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":172,"end":457,"kind":"text"}]},{"pos":457,"end":493,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]},"mapHash":"28083733311-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-57679879735-\"use strict\";\r\n\"myPrologue\";\r\n\"myPrologue2\";\r\n\"myPrologue3\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"37827717207-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["419920190-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2249,10 +2249,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 41000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4287 + "size": 4310 } @@ -2278,20 +2278,20 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:59 AM] Projects in this build: +[12:00:56 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:00 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:57 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:01 AM] Building project '/src/first/tsconfig.json'... +[12:00:58 AM] Building project '/src/first/tsconfig.json'... -[12:01:11 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:07 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:12 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:08 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:01:13 AM] Building project '/src/third/tsconfig.json'... +[12:01:09 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -2633,7 +2633,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":139,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-4897215004-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"5422290221-\"use strict\";\r\n\"myPrologue\";\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}],"mapHash":"11879278213-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["36491275086-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":62000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":139,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-4897215004-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"5422290221-\"use strict\";\r\n\"myPrologue\";\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}],"mapHash":"11879278213-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["36491275086-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2757,10 +2757,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 62000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2462 + "size": 2485 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -3562,7 +3562,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue2"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue3"},{"pos":62,"end":171,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":62,"end":171,"kind":"text"}]},{"pos":171,"end":456,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":171,"end":456,"kind":"text"}]},{"pos":456,"end":492,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]},"mapHash":"-70914791687-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-48862390855-\"use strict\";\r\n\"myPrologue\";\r\n\"myPrologue2\";\r\n\"myPrologue3\";\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}],"mapHash":"5755872145-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22149225483-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["419920190-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":74000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue2"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue3"},{"pos":62,"end":171,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":62,"end":171,"kind":"text"}]},{"pos":171,"end":456,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":171,"end":456,"kind":"text"}]},{"pos":456,"end":492,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]},"mapHash":"-70914791687-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-48862390855-\"use strict\";\r\n\"myPrologue\";\r\n\"myPrologue2\";\r\n\"myPrologue3\";\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}],"mapHash":"5755872145-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22149225483-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["419920190-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3804,10 +3804,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 74000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4285 + "size": 4308 } @@ -3833,20 +3833,20 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:28 AM] Projects in this build: +[12:01:23 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:29 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:24 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:30 AM] Building project '/src/first/tsconfig.json'... +[12:01:25 AM] Building project '/src/first/tsconfig.json'... -[12:01:39 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:33 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:40 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:34 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:41 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:35 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -3873,7 +3873,6 @@ readFiles:: { "/src/2/second-output.d.ts.map": 1 } -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] @@ -4078,7 +4077,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":156,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-14273144424-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18535492742-\"use strict\";\r\n\"myPrologue\";\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}],"mapHash":"11879278213-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["38656732144-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":62000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":156,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-14273144424-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18535492742-\"use strict\";\r\n\"myPrologue\";\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}],"mapHash":"11879278213-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["38656732144-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4203,10 +4202,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 62000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2538 + "size": 2561 } //// [/src/third/thirdjs/output/third-output.js] @@ -4768,7 +4767,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue2"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue3"},{"pos":62,"end":188,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":62,"end":188,"kind":"text"}]},{"pos":188,"end":473,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":188,"end":473,"kind":"text"}]},{"pos":473,"end":509,"kind":"text"}],"mapHash":"39252034733-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-40480844526-\"use strict\";\r\n\"myPrologue\";\r\n\"myPrologue2\";\r\n\"myPrologue3\";\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]}},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}],"mapHash":"5755872145-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22149225483-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["419920190-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":74000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue2"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue3"},{"pos":62,"end":188,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":62,"end":188,"kind":"text"}]},{"pos":188,"end":473,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":188,"end":473,"kind":"text"}]},{"pos":473,"end":509,"kind":"text"}],"mapHash":"39252034733-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-40480844526-\"use strict\";\r\n\"myPrologue\";\r\n\"myPrologue2\";\r\n\"myPrologue3\";\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]}},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}],"mapHash":"5755872145-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22149225483-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["419920190-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5011,10 +5010,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 74000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4343 + "size": 4366 } @@ -5041,20 +5040,20 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:52 AM] Projects in this build: +[12:01:46 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:53 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:47 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:54 AM] Building project '/src/first/tsconfig.json'... +[12:01:48 AM] Building project '/src/first/tsconfig.json'... -[12:02:03 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:56 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:02:04 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:57 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:02:05 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:58 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -5081,7 +5080,6 @@ readFiles:: { "/src/2/second-output.d.ts.map": 1 } -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAEA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AEVD,iBAAS,CAAC,WAET"} @@ -5432,7 +5430,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":29,"kind":"prologue","data":"myPrologue5"},{"pos":31,"end":44,"kind":"prologue","data":"myPrologue"},{"pos":46,"end":172,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue5\"\n\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue5"}},{"pos":13,"end":26,"expression":{"pos":13,"end":26,"text":"myPrologue"}}]}]},"mapHash":"291662276-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,aAAa,CAAA;AACb,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"10669903364-\"use strict\";\r\n\"myPrologue5\";\r\n\"myPrologue\";\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}],"mapHash":"22465488777-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAEA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AEVD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["35213579206-\"myPrologue5\"\n\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":62000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":29,"kind":"prologue","data":"myPrologue5"},{"pos":31,"end":44,"kind":"prologue","data":"myPrologue"},{"pos":46,"end":172,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue5\"\n\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue5"}},{"pos":13,"end":26,"expression":{"pos":13,"end":26,"text":"myPrologue"}}]}]},"mapHash":"291662276-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,aAAa,CAAA;AACb,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"10669903364-\"use strict\";\r\n\"myPrologue5\";\r\n\"myPrologue\";\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}],"mapHash":"22465488777-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAEA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AEVD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["35213579206-\"myPrologue5\"\n\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5575,10 +5573,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 62000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2737 + "size": 2760 } //// [/src/third/thirdjs/output/third-output.d.ts.map] @@ -6405,7 +6403,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":29,"kind":"prologue","data":"myPrologue5"},{"pos":31,"end":44,"kind":"prologue","data":"myPrologue"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue2"},{"pos":62,"end":76,"kind":"prologue","data":"myPrologue3"},{"pos":78,"end":204,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":78,"end":204,"kind":"text"}]},{"pos":204,"end":489,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":204,"end":489,"kind":"text"}]},{"pos":489,"end":525,"kind":"text"}],"mapHash":"-27088974530-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,aAAa,CAAA;AACb,YAAY,CAAA;ACDZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFMd,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGbf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-10456117680-\"use strict\";\r\n\"myPrologue5\";\r\n\"myPrologue\";\r\n\"myPrologue2\";\r\n\"myPrologue3\";\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]}},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}],"mapHash":"-10856751979-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAEA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACVD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22149225483-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["419920190-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":74000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":29,"kind":"prologue","data":"myPrologue5"},{"pos":31,"end":44,"kind":"prologue","data":"myPrologue"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue2"},{"pos":62,"end":76,"kind":"prologue","data":"myPrologue3"},{"pos":78,"end":204,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":78,"end":204,"kind":"text"}]},{"pos":204,"end":489,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":204,"end":489,"kind":"text"}]},{"pos":489,"end":525,"kind":"text"}],"mapHash":"-27088974530-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,aAAa,CAAA;AACb,YAAY,CAAA;ACDZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFMd,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGbf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-10456117680-\"use strict\";\r\n\"myPrologue5\";\r\n\"myPrologue\";\r\n\"myPrologue2\";\r\n\"myPrologue3\";\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]}},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}],"mapHash":"-10856751979-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAEA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACVD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22149225483-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["419920190-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -6657,9 +6655,9 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 74000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4440 + "size": 4463 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-different-projects.js index 0ff8d9dbed0..cf0e15c829e 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-different-projects.js @@ -142,13 +142,13 @@ Output:: [12:00:12 AM] Building project '/src/first/tsconfig.json'... -[12:00:23 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:22 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:24 AM] Building project '/src/second/tsconfig.json'... +[12:00:23 AM] Building project '/src/second/tsconfig.json'... -[12:00:35 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:33 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:36 AM] Building project '/src/third/tsconfig.json'... +[12:00:34 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -576,7 +576,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"myPrologue"},{"pos":15,"end":29,"kind":"prologue","data":"myPrologue2"},{"pos":31,"end":316,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]},{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]},"mapHash":"12655227837-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ADKd,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-1429825924-\"myPrologue\";\r\n\"myPrologue2\";\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"10908638301-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-5295626911-\"myPrologue\"\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","18749993618-\"myPrologue2\";\nclass C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":25000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"myPrologue"},{"pos":15,"end":29,"kind":"prologue","data":"myPrologue2"},{"pos":31,"end":316,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]},{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]},"mapHash":"12655227837-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ADKd,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-1429825924-\"myPrologue\";\r\n\"myPrologue2\";\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"10908638301-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-5295626911-\"myPrologue\"\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","18749993618-\"myPrologue2\";\nclass C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -711,10 +711,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 25000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2653 + "size": 2677 } //// [/src/first/bin/first-output.d.ts] @@ -1020,7 +1020,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":125,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-18922522596-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"20463836756-\"use strict\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":13000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":125,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-18922522596-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"20463836756-\"use strict\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1126,10 +1126,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 13000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2276 + "size": 2299 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1908,7 +1908,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue2"},{"pos":46,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":46,"end":156,"kind":"text"}]},{"pos":156,"end":441,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":156,"end":441,"kind":"text"}]},{"pos":441,"end":477,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"40081010550-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACId,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AJGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AILD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-21898750067-\"use strict\";\r\n\"myPrologue\";\r\n\"myPrologue2\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"89480535-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACLD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":37000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue2"},{"pos":46,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":46,"end":156,"kind":"text"}]},{"pos":156,"end":441,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":156,"end":441,"kind":"text"}]},{"pos":441,"end":477,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"40081010550-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACId,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AJGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AILD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-21898750067-\"use strict\";\r\n\"myPrologue\";\r\n\"myPrologue2\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"89480535-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACLD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2123,10 +2123,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 37000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3979 + "size": 4002 } @@ -2151,25 +2151,24 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:55 AM] Projects in this build: +[12:00:52 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:56 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:53 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:57 AM] Building project '/src/first/tsconfig.json'... +[12:00:54 AM] Building project '/src/first/tsconfig.json'... -[12:01:06 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:02 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:07 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:03 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:08 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:04 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] @@ -2360,7 +2359,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":142,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-4938209840-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"12866242701-\"use strict\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":13000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":142,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-4938209840-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"12866242701-\"use strict\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2467,10 +2466,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 13000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2349 + "size": 2372 } //// [/src/third/thirdjs/output/third-output.js] @@ -3012,7 +3011,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue2"},{"pos":46,"end":173,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":46,"end":173,"kind":"text"}]},{"pos":173,"end":458,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":173,"end":458,"kind":"text"}]},{"pos":458,"end":494,"kind":"text"}],"mapHash":"-40026203606-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACId,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AJGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AILD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-19850184346-\"use strict\";\r\n\"myPrologue\";\r\n\"myPrologue2\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"89480535-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACLD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":37000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue2"},{"pos":46,"end":173,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":46,"end":173,"kind":"text"}]},{"pos":173,"end":458,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":173,"end":458,"kind":"text"}]},{"pos":458,"end":494,"kind":"text"}],"mapHash":"-40026203606-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACId,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AJGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AILD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-19850184346-\"use strict\";\r\n\"myPrologue\";\r\n\"myPrologue2\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"89480535-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACLD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3228,10 +3227,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 37000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4039 + "size": 4062 } @@ -3257,25 +3256,24 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:19 AM] Projects in this build: +[12:01:15 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:20 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:16 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:21 AM] Building project '/src/first/tsconfig.json'... +[12:01:17 AM] Building project '/src/first/tsconfig.json'... -[12:01:30 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:25 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:31 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:26 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:32 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:27 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} @@ -3612,7 +3610,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":29,"kind":"prologue","data":"myPrologue5"},{"pos":31,"end":158,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue5\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue5"}}]}]},"mapHash":"-25421726346-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,aAAa,CAAA;AAKb,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"17340827019-\"use strict\";\r\n\"myPrologue5\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"18068494155-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-2496167435-\"myPrologue5\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":13000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":29,"kind":"prologue","data":"myPrologue5"},{"pos":31,"end":158,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue5\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue5"}}]}]},"mapHash":"-25421726346-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,aAAa,CAAA;AAKb,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"17340827019-\"use strict\";\r\n\"myPrologue5\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"18068494155-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-2496167435-\"myPrologue5\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3737,10 +3735,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 13000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2547 + "size": 2570 } //// [/src/third/thirdjs/output/third-output.d.ts.map] @@ -4547,7 +4545,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":29,"kind":"prologue","data":"myPrologue5"},{"pos":31,"end":44,"kind":"prologue","data":"myPrologue"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue2"},{"pos":62,"end":189,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":62,"end":189,"kind":"text"}]},{"pos":189,"end":474,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":189,"end":474,"kind":"text"}]},{"pos":474,"end":510,"kind":"text"}],"mapHash":"38125604309-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,aAAa,CAAA;ACAb,YAAY,CAAA;ACAZ,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AHGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AGLD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"18901376612-\"use strict\";\r\n\"myPrologue5\";\r\n\"myPrologue\";\r\n\"myPrologue2\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"30721496667-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACLD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":37000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":29,"kind":"prologue","data":"myPrologue5"},{"pos":31,"end":44,"kind":"prologue","data":"myPrologue"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue2"},{"pos":62,"end":189,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":62,"end":189,"kind":"text"}]},{"pos":189,"end":474,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":189,"end":474,"kind":"text"}]},{"pos":474,"end":510,"kind":"text"}],"mapHash":"38125604309-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,aAAa,CAAA;ACAb,YAAY,CAAA;ACAZ,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AHGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AGLD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"18901376612-\"use strict\";\r\n\"myPrologue5\";\r\n\"myPrologue\";\r\n\"myPrologue2\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"30721496667-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACLD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4772,9 +4770,9 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 37000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4134 + "size": 4157 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-all-projects.js index 031bb4e5133..e4606ae29bd 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-all-projects.js @@ -144,13 +144,13 @@ Output:: [12:00:12 AM] Building project '/src/first/tsconfig.json'... -[12:00:23 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:22 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:24 AM] Building project '/src/second/tsconfig.json'... +[12:00:23 AM] Building project '/src/second/tsconfig.json'... -[12:00:35 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:33 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:36 AM] Building project '/src/third/tsconfig.json'... +[12:00:34 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -567,7 +567,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":35,"end":320,"kind":"text"}],"mapHash":"-4207645659-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"4362029886-#!someshebang second second_part1\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":35,"end":135,"kind":"text"}],"mapHash":"-7527955494-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16482341849-#!someshebang second second_part1\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-8705047463-#!someshebang second second_part1\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-11559081780-#!someshebang second second_part1\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":25000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":35,"end":320,"kind":"text"}],"mapHash":"-4207645659-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"4362029886-#!someshebang second second_part1\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":35,"end":135,"kind":"text"}],"mapHash":"-7527955494-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16482341849-#!someshebang second second_part1\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-8705047463-#!someshebang second second_part1\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-11559081780-#!someshebang second second_part1\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -650,10 +650,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "-11559081780-#!someshebang second second_part1\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 25000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2314 + "size": 2338 } //// [/src/first/bin/first-output.d.ts] @@ -964,7 +964,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":33,"end":143,"kind":"text"}],"mapHash":"-13636454783-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-21479222570-#!someshebang first first_PART1\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":33,"end":190,"kind":"text"}],"mapHash":"-2225185530-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"15850402116-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-1632348754-#!someshebang first first_PART1\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","-270744556-#!someshebang first first_part2\nconsole.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"21711084541-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":13000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":33,"end":143,"kind":"text"}],"mapHash":"-13636454783-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-21479222570-#!someshebang first first_PART1\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":33,"end":190,"kind":"text"}],"mapHash":"-2225185530-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"15850402116-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-1632348754-#!someshebang first first_PART1\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","-270744556-#!someshebang first first_part2\nconsole.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"21711084541-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1042,10 +1042,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "21711084541-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 13000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2236 + "size": 2259 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1795,7 +1795,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":33,"end":143,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":33,"end":143,"kind":"text"}]},{"pos":143,"end":428,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":143,"end":428,"kind":"text"}]},{"pos":428,"end":464,"kind":"text"}],"mapHash":"79536022840-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-26217893813-#!someshebang first first_PART1\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":33,"end":190,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":33,"end":190,"kind":"text"}]},{"pos":190,"end":290,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":190,"end":290,"kind":"text"}]},{"pos":290,"end":309,"kind":"text"}],"mapHash":"-28105379596-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"7825374755-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["4470817290-#!someshebang third third_part1\nvar c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"12975654825-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":37000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":33,"end":143,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":33,"end":143,"kind":"text"}]},{"pos":143,"end":428,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":143,"end":428,"kind":"text"}]},{"pos":428,"end":464,"kind":"text"}],"mapHash":"79536022840-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-26217893813-#!someshebang first first_PART1\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":33,"end":190,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":33,"end":190,"kind":"text"}]},{"pos":190,"end":290,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":190,"end":290,"kind":"text"}]},{"pos":290,"end":309,"kind":"text"}],"mapHash":"-28105379596-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"7825374755-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["4470817290-#!someshebang third third_part1\nvar c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"12975654825-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1964,10 +1964,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "12975654825-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 37000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3724 + "size": 3747 } @@ -1993,20 +1993,20 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:55 AM] Projects in this build: +[12:00:52 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:56 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:53 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:57 AM] Building project '/src/first/tsconfig.json'... +[12:00:54 AM] Building project '/src/first/tsconfig.json'... -[12:01:07 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:03 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:08 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:04 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:01:09 AM] Building project '/src/third/tsconfig.json'... +[12:01:05 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -2338,7 +2338,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":33,"end":142,"kind":"text"}],"mapHash":"19403802043-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"13206440070-#!someshebang first first_PART1\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":33,"end":189,"kind":"text"}],"mapHash":"8765467712-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"18697147572-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["9069952478-#!someshebang first first_PART1\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","-270744556-#!someshebang first first_part2\nconsole.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"21839278957-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":58000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":33,"end":142,"kind":"text"}],"mapHash":"19403802043-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"13206440070-#!someshebang first first_PART1\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":33,"end":189,"kind":"text"}],"mapHash":"8765467712-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"18697147572-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["9069952478-#!someshebang first first_PART1\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","-270744556-#!someshebang first first_part2\nconsole.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"21839278957-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2416,10 +2416,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "21839278957-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 58000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2228 + "size": 2251 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -3169,7 +3169,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":33,"end":142,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":33,"end":142,"kind":"text"}]},{"pos":142,"end":427,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":142,"end":427,"kind":"text"}]},{"pos":427,"end":463,"kind":"text"}],"mapHash":"44962007282-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-29427622917-#!someshebang first first_PART1\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":33,"end":189,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":33,"end":189,"kind":"text"}]},{"pos":189,"end":289,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":189,"end":289,"kind":"text"}]},{"pos":289,"end":308,"kind":"text"}],"mapHash":"-21522518994-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"16587785107-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["4470817290-#!someshebang third third_part1\nvar c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"12255510809-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":70000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":33,"end":142,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":33,"end":142,"kind":"text"}]},{"pos":142,"end":427,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":142,"end":427,"kind":"text"}]},{"pos":427,"end":463,"kind":"text"}],"mapHash":"44962007282-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-29427622917-#!someshebang first first_PART1\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":33,"end":189,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":33,"end":189,"kind":"text"}]},{"pos":189,"end":289,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":189,"end":289,"kind":"text"}]},{"pos":289,"end":308,"kind":"text"}],"mapHash":"-21522518994-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"16587785107-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["4470817290-#!someshebang third third_part1\nvar c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"12255510809-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3338,10 +3338,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "12255510809-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 70000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3722 + "size": 3745 } @@ -3367,20 +3367,20 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:24 AM] Projects in this build: +[12:01:19 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:25 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:20 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:26 AM] Building project '/src/first/tsconfig.json'... +[12:01:21 AM] Building project '/src/first/tsconfig.json'... -[12:01:35 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:29 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:36 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:30 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:37 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:31 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -3407,7 +3407,6 @@ readFiles:: { "/src/2/second-output.d.ts": 1 } -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] @@ -3600,7 +3599,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":33,"end":159,"kind":"text"}],"mapHash":"-2608504977-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14215814399-#!someshebang first first_PART1\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":33,"end":189,"kind":"text"}],"mapHash":"8765467712-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"18697147572-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["6925175936-#!someshebang first first_PART1\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","-270744556-#!someshebang first first_part2\nconsole.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"21839278957-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":58000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":33,"end":159,"kind":"text"}],"mapHash":"-2608504977-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14215814399-#!someshebang first first_PART1\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":33,"end":189,"kind":"text"}],"mapHash":"8765467712-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"18697147572-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["6925175936-#!someshebang first first_PART1\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","-270744556-#!someshebang first first_part2\nconsole.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"21839278957-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3679,10 +3678,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "21839278957-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 58000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2302 + "size": 2325 } //// [/src/third/thirdjs/output/third-output.js] @@ -4192,7 +4191,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":33,"end":159,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":33,"end":159,"kind":"text"}]},{"pos":159,"end":444,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":159,"end":444,"kind":"text"}]},{"pos":444,"end":480,"kind":"text"}],"mapHash":"30932229030-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"62192084884-#!someshebang first first_PART1\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":33,"end":189,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":33,"end":189,"kind":"text"}]},{"pos":189,"end":289,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":189,"end":289,"kind":"text"}]},{"pos":289,"end":308,"kind":"text"}],"mapHash":"-21522518994-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"16587785107-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["4470817290-#!someshebang third third_part1\nvar c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"12255510809-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":70000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":33,"end":159,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":33,"end":159,"kind":"text"}]},{"pos":159,"end":444,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":159,"end":444,"kind":"text"}]},{"pos":444,"end":480,"kind":"text"}],"mapHash":"30932229030-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"62192084884-#!someshebang first first_PART1\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":33,"end":189,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":33,"end":189,"kind":"text"}]},{"pos":189,"end":289,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":189,"end":289,"kind":"text"}]},{"pos":289,"end":308,"kind":"text"}],"mapHash":"-21522518994-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"16587785107-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["4470817290-#!someshebang third third_part1\nvar c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"12255510809-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4362,9 +4361,9 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "12255510809-#!someshebang first first_PART1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 70000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3780 + "size": 3803 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-only-one-dependency-project.js index 602e4843472..1069024521e 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-only-one-dependency-project.js @@ -141,13 +141,13 @@ Output:: [12:00:09 AM] Building project '/src/first/tsconfig.json'... -[12:00:20 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/second/tsconfig.json'... +[12:00:20 AM] Building project '/src/second/tsconfig.json'... -[12:00:32 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:30 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:33 AM] Building project '/src/third/tsconfig.json'... +[12:00:31 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -544,7 +544,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":35,"end":320,"kind":"text"}],"mapHash":"-4207645659-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"4362029886-#!someshebang second second_part1\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":35,"end":135,"kind":"text"}],"mapHash":"-7527955494-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16482341849-#!someshebang second second_part1\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-8705047463-#!someshebang second second_part1\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-11559081780-#!someshebang second second_part1\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":22000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":35,"end":320,"kind":"text"}],"mapHash":"-4207645659-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"4362029886-#!someshebang second second_part1\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":35,"end":135,"kind":"text"}],"mapHash":"-7527955494-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16482341849-#!someshebang second second_part1\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-8705047463-#!someshebang second second_part1\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-11559081780-#!someshebang second second_part1\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -627,10 +627,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "-11559081780-#!someshebang second second_part1\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 22000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2314 + "size": 2338 } //// [/src/first/bin/first-output.d.ts] @@ -934,7 +934,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":10000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1012,10 +1012,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 10000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2063 + "size": 2086 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1760,7 +1760,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":35,"end":145,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":35,"end":145,"kind":"text"}]},{"pos":145,"end":430,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":145,"end":430,"kind":"text"}]},{"pos":430,"end":466,"kind":"text"}],"mapHash":"17881551829-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-3129593933-#!someshebang second second_part1\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":35,"end":192,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":35,"end":192,"kind":"text"}]},{"pos":192,"end":292,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":192,"end":292,"kind":"text"}]},{"pos":292,"end":311,"kind":"text"}],"mapHash":"-8603414798-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"33189836939-#!someshebang second second_part1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"34342993937-#!someshebang second second_part1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":34000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":35,"end":145,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":35,"end":145,"kind":"text"}]},{"pos":145,"end":430,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":145,"end":430,"kind":"text"}]},{"pos":430,"end":466,"kind":"text"}],"mapHash":"17881551829-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-3129593933-#!someshebang second second_part1\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":35,"end":192,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":35,"end":192,"kind":"text"}]},{"pos":192,"end":292,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":192,"end":292,"kind":"text"}]},{"pos":292,"end":311,"kind":"text"}],"mapHash":"-8603414798-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"33189836939-#!someshebang second second_part1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"34342993937-#!someshebang second second_part1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1929,10 +1929,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "34342993937-#!someshebang second second_part1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 34000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3697 + "size": 3720 } @@ -1957,25 +1957,24 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:52 AM] Projects in this build: +[12:00:49 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:53 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:50 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:54 AM] Building project '/src/first/tsconfig.json'... +[12:00:51 AM] Building project '/src/first/tsconfig.json'... -[12:01:03 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:00:59 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:04 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:05 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:01 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] @@ -2164,7 +2163,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":10000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2243,10 +2242,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 10000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2136 + "size": 2159 } //// [/src/third/thirdjs/output/third-output.js] @@ -2753,7 +2752,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":35,"end":162,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":35,"end":162,"kind":"text"}]},{"pos":162,"end":447,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":162,"end":447,"kind":"text"}]},{"pos":447,"end":483,"kind":"text"}],"mapHash":"428292745-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-966991284-#!someshebang second second_part1\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":35,"end":192,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":35,"end":192,"kind":"text"}]},{"pos":192,"end":292,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":192,"end":292,"kind":"text"}]},{"pos":292,"end":311,"kind":"text"}],"mapHash":"-8603414798-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"33189836939-#!someshebang second second_part1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"34342993937-#!someshebang second second_part1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":34000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":35,"end":162,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":35,"end":162,"kind":"text"}]},{"pos":162,"end":447,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":162,"end":447,"kind":"text"}]},{"pos":447,"end":483,"kind":"text"}],"mapHash":"428292745-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-966991284-#!someshebang second second_part1\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":35,"end":192,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":35,"end":192,"kind":"text"}]},{"pos":192,"end":292,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":192,"end":292,"kind":"text"}]},{"pos":292,"end":311,"kind":"text"}],"mapHash":"-8603414798-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"33189836939-#!someshebang second second_part1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"34342993937-#!someshebang second second_part1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2923,9 +2922,9 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "34342993937-#!someshebang second second_part1\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 34000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3753 + "size": 3776 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/strict-in-all-projects.js index d2307661fa8..cf4edf45918 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/strict-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/strict-in-all-projects.js @@ -140,13 +140,13 @@ Output:: [12:00:11 AM] Building project '/src/first/tsconfig.json'... -[12:00:22 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:21 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:23 AM] Building project '/src/second/tsconfig.json'... +[12:00:22 AM] Building project '/src/second/tsconfig.json'... -[12:00:34 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:32 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:35 AM] Building project '/src/third/tsconfig.json'... +[12:00:33 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -559,7 +559,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":300,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-5973886303-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-4672698284-\"use strict\";\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":24000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":300,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-5973886303-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-4672698284-\"use strict\";\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -670,10 +670,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 24000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2374 + "size": 2398 } //// [/src/first/bin/first-output.d.ts] @@ -979,7 +979,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":125,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-18922522596-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"20463836756-\"use strict\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":12000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":125,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-18922522596-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"20463836756-\"use strict\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1085,10 +1085,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 12000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2276 + "size": 2299 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1829,7 +1829,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":125,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":15,"end":125,"kind":"text"}]},{"pos":125,"end":410,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":125,"end":410,"kind":"text"}]},{"pos":410,"end":446,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"2198167249-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-22272074871-\"use strict\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":36000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":125,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":15,"end":125,"kind":"text"}]},{"pos":125,"end":410,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":125,"end":410,"kind":"text"}]},{"pos":410,"end":446,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"2198167249-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-22272074871-\"use strict\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2026,10 +2026,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 36000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3796 + "size": 3819 } @@ -2054,20 +2054,20 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:54 AM] Projects in this build: +[12:00:51 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:55 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:52 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:56 AM] Building project '/src/first/tsconfig.json'... +[12:00:53 AM] Building project '/src/first/tsconfig.json'... -[12:01:06 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:02 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:07 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:03 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:01:08 AM] Building project '/src/third/tsconfig.json'... +[12:01:04 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -2394,7 +2394,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":124,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-11652069546-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"19032710212-\"use strict\";\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-2594963283-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":57000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":124,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-11652069546-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"19032710212-\"use strict\";\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-2594963283-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2500,10 +2500,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 57000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2271 + "size": 2294 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -3244,7 +3244,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":124,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":15,"end":124,"kind":"text"}]},{"pos":124,"end":409,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":124,"end":409,"kind":"text"}]},{"pos":409,"end":445,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"40638595723-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-13169387655-\"use strict\";\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22149225483-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":69000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":124,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":15,"end":124,"kind":"text"}]},{"pos":124,"end":409,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":124,"end":409,"kind":"text"}]},{"pos":409,"end":445,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"40638595723-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-13169387655-\"use strict\";\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22149225483-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3441,10 +3441,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 69000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3793 + "size": 3816 } @@ -3469,20 +3469,20 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:23 AM] Projects in this build: +[12:01:18 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:24 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:19 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:25 AM] Building project '/src/first/tsconfig.json'... +[12:01:20 AM] Building project '/src/first/tsconfig.json'... -[12:01:34 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:28 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:35 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:29 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:36 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:30 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -3509,7 +3509,6 @@ readFiles:: { "/src/2/second-output.d.ts.map": 1 } -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] @@ -3700,7 +3699,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":141,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"12349749002-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"35161351293-\"use strict\";\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":57000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":141,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"12349749002-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"35161351293-\"use strict\";\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3807,10 +3806,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 57000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2343 + "size": 2366 } //// [/src/third/thirdjs/output/third-output.js] @@ -4316,7 +4315,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":141,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":15,"end":141,"kind":"text"}]},{"pos":141,"end":426,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":141,"end":426,"kind":"text"}]},{"pos":426,"end":462,"kind":"text"}],"mapHash":"17637681983-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"36110536402-\"use strict\";\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22149225483-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":69000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":141,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":15,"end":141,"kind":"text"}]},{"pos":141,"end":426,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":141,"end":426,"kind":"text"}]},{"pos":426,"end":462,"kind":"text"}],"mapHash":"17637681983-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"36110536402-\"use strict\";\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22149225483-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4514,10 +4513,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 69000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3851 + "size": 3874 } @@ -4543,20 +4542,20 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:47 AM] Projects in this build: +[12:01:41 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:48 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:42 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:49 AM] Building project '/src/first/tsconfig.json'... +[12:01:43 AM] Building project '/src/first/tsconfig.json'... -[12:01:58 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:51 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:59 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:52 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:02:00 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:53 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -4583,7 +4582,6 @@ readFiles:: { "/src/2/second-output.d.ts.map": 1 } -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} @@ -4920,7 +4918,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":156,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-14273144424-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18535492742-\"use strict\";\r\n\"myPrologue\";\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}],"mapHash":"11879278213-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["38656732144-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":57000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":156,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-14273144424-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18535492742-\"use strict\";\r\n\"myPrologue\";\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}],"mapHash":"11879278213-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["38656732144-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5045,10 +5043,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 57000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2538 + "size": 2561 } //// [/src/third/thirdjs/output/third-output.d.ts.map] @@ -5814,7 +5812,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":30,"end":156,"kind":"text"}]},{"pos":156,"end":441,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":156,"end":441,"kind":"text"}]},{"pos":441,"end":477,"kind":"text"}],"mapHash":"47400624973-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"53781037051-\"use strict\";\r\n\"myPrologue\";\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}],"mapHash":"26964323861-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22149225483-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":69000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":30,"end":156,"kind":"text"}]},{"pos":156,"end":441,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":156,"end":441,"kind":"text"}]},{"pos":441,"end":477,"kind":"text"}],"mapHash":"47400624973-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"53781037051-\"use strict\";\r\n\"myPrologue\";\r\nvar s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}],"mapHash":"26964323861-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22149225483-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -6021,9 +6019,9 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-29474089221-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 69000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3944 + "size": 3967 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/strict-in-one-dependency.js b/tests/baselines/reference/tsbuild/outfile-concat/strict-in-one-dependency.js index 1e33282848e..afb46643759 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/strict-in-one-dependency.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/strict-in-one-dependency.js @@ -140,13 +140,13 @@ Output:: [12:00:09 AM] Building project '/src/first/tsconfig.json'... -[12:00:20 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/second/tsconfig.json'... +[12:00:20 AM] Building project '/src/second/tsconfig.json'... -[12:00:32 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:30 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:33 AM] Building project '/src/third/tsconfig.json'... +[12:00:31 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -539,7 +539,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":300,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-5973886303-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-4672698284-\"use strict\";\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":22000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":300,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-5973886303-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-4672698284-\"use strict\";\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -650,10 +650,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 22000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2374 + "size": 2398 } //// [/src/first/bin/first-output.d.ts] @@ -957,7 +957,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":10000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1035,10 +1035,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 10000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2063 + "size": 2086 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1779,7 +1779,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":125,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":15,"end":125,"kind":"text"}]},{"pos":125,"end":410,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":125,"end":410,"kind":"text"}]},{"pos":410,"end":446,"kind":"text"}],"mapHash":"2198167249-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-22272074871-\"use strict\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":34000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":125,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":15,"end":125,"kind":"text"}]},{"pos":125,"end":410,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":125,"end":410,"kind":"text"}]},{"pos":410,"end":446,"kind":"text"}],"mapHash":"2198167249-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-22272074871-\"use strict\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1957,10 +1957,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 34000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3661 + "size": 3684 } @@ -1985,25 +1985,24 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:52 AM] Projects in this build: +[12:00:49 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:53 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:50 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:54 AM] Building project '/src/first/tsconfig.json'... +[12:00:51 AM] Building project '/src/first/tsconfig.json'... -[12:01:03 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:00:59 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:04 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:05 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:01 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] @@ -2192,7 +2191,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":10000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2271,10 +2270,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 10000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2136 + "size": 2159 } //// [/src/third/thirdjs/output/third-output.js] @@ -2780,7 +2779,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":142,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":15,"end":142,"kind":"text"}]},{"pos":142,"end":427,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":142,"end":427,"kind":"text"}]},{"pos":427,"end":463,"kind":"text"}],"mapHash":"40579483013-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-23325199134-\"use strict\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":34000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":142,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":15,"end":142,"kind":"text"}]},{"pos":142,"end":427,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":142,"end":427,"kind":"text"}]},{"pos":427,"end":463,"kind":"text"}],"mapHash":"40579483013-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-23325199134-\"use strict\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2959,10 +2958,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 34000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3721 + "size": 3744 } @@ -2988,25 +2987,24 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:16 AM] Projects in this build: +[12:01:12 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:17 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:13 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:18 AM] Building project '/src/first/tsconfig.json'... +[12:01:14 AM] Building project '/src/first/tsconfig.json'... -[12:01:27 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:22 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:28 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:23 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:29 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:24 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} @@ -3341,7 +3339,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"myPrologue"},{"pos":15,"end":142,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-32438518845-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-4722419494-\"myPrologue\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"18068494155-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["32790583232-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":10000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"myPrologue"},{"pos":15,"end":142,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-32438518845-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-4722419494-\"myPrologue\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"18068494155-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["32790583232-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3448,10 +3446,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 10000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2391 + "size": 2414 } //// [/src/third/thirdjs/output/third-output.d.ts.map] @@ -4217,7 +4215,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"myPrologue"},{"pos":15,"end":28,"kind":"prologue","data":"use strict"},{"pos":30,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":30,"end":157,"kind":"text"}]},{"pos":157,"end":442,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":157,"end":442,"kind":"text"}]},{"pos":442,"end":478,"kind":"text"}],"mapHash":"26598307091-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,YAAY,CAAA;;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-21386740853-\"myPrologue\";\r\n\"use strict\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"28971397851-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":34000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"myPrologue"},{"pos":15,"end":28,"kind":"prologue","data":"use strict"},{"pos":30,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":30,"end":157,"kind":"text"}]},{"pos":157,"end":442,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":157,"end":442,"kind":"text"}]},{"pos":442,"end":478,"kind":"text"}],"mapHash":"26598307091-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,YAAY,CAAA;;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-21386740853-\"myPrologue\";\r\n\"use strict\";\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"28971397851-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4405,9 +4403,9 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 34000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3812 + "size": 3835 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-baseline-when-internal-is-inside-another-internal.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-baseline-when-internal-is-inside-another-internal.js index 4b0bcc9e128..e68d5a85e11 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-baseline-when-internal-is-inside-another-internal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-baseline-when-internal-is-inside-another-internal.js @@ -168,13 +168,13 @@ Output:: [12:00:10 AM] Building project '/src/first/tsconfig.json'... -[12:00:21 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:22 AM] Building project '/src/second/tsconfig.json'... +[12:00:21 AM] Building project '/src/second/tsconfig.json'... -[12:00:33 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:31 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:34 AM] Building project '/src/third/tsconfig.json'... +[12:00:32 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -565,7 +565,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":23000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -648,10 +648,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 23000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2161 + "size": 2185 } //// [/src/first/bin/first-output.d.ts] @@ -1273,7 +1273,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-27619420124-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AA+BA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACrCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":24,"kind":"text"},{"pos":24,"end":363,"kind":"internal"},{"pos":365,"end":587,"kind":"text"}],"mapHash":"62640600936-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,EAAE,CAAC;IAKT,UAAiB,cAAc;QAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QACtB,OAAO,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;QAEhC,6BAA6B,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;KAC9F;IAGD,UAAiB,YAAY;QAEzB,QAAQ,CAAC,cAAc,EAAE,UAAU,CAAC;QAKpC,QAAQ,CAAC,YAAY,EAAE,UAAU,CAAC;KACrC;IAGD,UAAiB,UAAU;QACvB,QAAQ,EAAE,MAAM,CAAC;KACpB;CACJ;AAAA,UAAU,QAAQ;IACf,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AEnCD,iBAAS,CAAC,WAET\"}","hash":"30960745489-declare namespace ts {\r\n interface SourceFileLike {\r\n readonly text: string;\r\n lineMap?: ReadonlyArray;\r\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\r\n }\r\n interface RedirectInfo {\r\n readonly redirectTarget: SourceFile;\r\n readonly unredirected: SourceFile;\r\n }\r\n interface SourceFile {\r\n someProp: string;\r\n }\r\n}\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-91898050992-namespace ts {\n /* @internal */\n /**\n * Subset of properties from SourceFile that are used in multiple utility functions\n */\n export interface SourceFileLike {\n readonly text: string;\n lineMap?: ReadonlyArray;\n /* @internal */\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\n }\n\n /* @internal */\n export interface RedirectInfo {\n /** Source file this redirects to. */\n readonly redirectTarget: SourceFile;\n /**\n * Source file for the duplicate package. This will not be used by the Program,\n * but we need to keep this around so we can watch for changes in underlying.\n */\n readonly unredirected: SourceFile;\n }\n\n // Source files are declarations when they are external modules.\n export interface SourceFile {\n someProp: string;\n }\n}interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"44823486090-declare namespace ts {\r\n interface SourceFileLike {\r\n readonly text: string;\r\n lineMap?: ReadonlyArray;\r\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\r\n }\r\n interface RedirectInfo {\r\n readonly redirectTarget: SourceFile;\r\n readonly unredirected: SourceFile;\r\n }\r\n interface SourceFile {\r\n someProp: string;\r\n }\r\n}\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":11000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-27619420124-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AA+BA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACrCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":24,"kind":"text"},{"pos":24,"end":363,"kind":"internal"},{"pos":365,"end":587,"kind":"text"}],"mapHash":"62640600936-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,EAAE,CAAC;IAKT,UAAiB,cAAc;QAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QACtB,OAAO,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;QAEhC,6BAA6B,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;KAC9F;IAGD,UAAiB,YAAY;QAEzB,QAAQ,CAAC,cAAc,EAAE,UAAU,CAAC;QAKpC,QAAQ,CAAC,YAAY,EAAE,UAAU,CAAC;KACrC;IAGD,UAAiB,UAAU;QACvB,QAAQ,EAAE,MAAM,CAAC;KACpB;CACJ;AAAA,UAAU,QAAQ;IACf,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AEnCD,iBAAS,CAAC,WAET\"}","hash":"30960745489-declare namespace ts {\r\n interface SourceFileLike {\r\n readonly text: string;\r\n lineMap?: ReadonlyArray;\r\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\r\n }\r\n interface RedirectInfo {\r\n readonly redirectTarget: SourceFile;\r\n readonly unredirected: SourceFile;\r\n }\r\n interface SourceFile {\r\n someProp: string;\r\n }\r\n}\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-91898050992-namespace ts {\n /* @internal */\n /**\n * Subset of properties from SourceFile that are used in multiple utility functions\n */\n export interface SourceFileLike {\n readonly text: string;\n lineMap?: ReadonlyArray;\n /* @internal */\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\n }\n\n /* @internal */\n export interface RedirectInfo {\n /** Source file this redirects to. */\n readonly redirectTarget: SourceFile;\n /**\n * Source file for the duplicate package. This will not be used by the Program,\n * but we need to keep this around so we can watch for changes in underlying.\n */\n readonly unredirected: SourceFile;\n }\n\n // Source files are declarations when they are external modules.\n export interface SourceFile {\n someProp: string;\n }\n}interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"44823486090-declare namespace ts {\r\n interface SourceFileLike {\r\n readonly text: string;\r\n lineMap?: ReadonlyArray;\r\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\r\n }\r\n interface RedirectInfo {\r\n readonly redirectTarget: SourceFile;\r\n readonly unredirected: SourceFile;\r\n }\r\n interface SourceFile {\r\n someProp: string;\r\n }\r\n}\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1380,10 +1380,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "44823486090-declare namespace ts {\r\n interface SourceFileLike {\r\n readonly text: string;\r\n lineMap?: ReadonlyArray;\r\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\r\n }\r\n interface RedirectInfo {\r\n readonly redirectTarget: SourceFile;\r\n readonly unredirected: SourceFile;\r\n }\r\n interface SourceFile {\r\n someProp: string;\r\n }\r\n}\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 11000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 4362 + "size": 4385 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -2236,7 +2236,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":395,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":395,"kind":"text"}]},{"pos":395,"end":431,"kind":"text"}],"mapHash":"29106911449-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AA+BA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACrCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"20832180013-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":246,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":246,"kind":"text"}]},{"pos":246,"end":346,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":246,"end":346,"kind":"text"}]},{"pos":346,"end":365,"kind":"text"}],"mapHash":"21930574719-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,EAAE,CAAC;IAwBT,UAAiB,UAAU;QACvB,QAAQ,EAAE,MAAM,CAAC;KACpB;CACJ;AAAA,UAAU,QAAQ;IACf,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACnCD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"51037985711-declare namespace ts {\r\n interface SourceFile {\r\n someProp: string;\r\n }\r\n}\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"54982415925-declare namespace ts {\r\n interface SourceFile {\r\n someProp: string;\r\n }\r\n}\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":35000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":395,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":395,"kind":"text"}]},{"pos":395,"end":431,"kind":"text"}],"mapHash":"29106911449-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AA+BA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACrCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"20832180013-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":246,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":246,"kind":"text"}]},{"pos":246,"end":346,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":246,"end":346,"kind":"text"}]},{"pos":346,"end":365,"kind":"text"}],"mapHash":"21930574719-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,EAAE,CAAC;IAwBT,UAAiB,UAAU;QACvB,QAAQ,EAAE,MAAM,CAAC;KACpB;CACJ;AAAA,UAAU,QAAQ;IACf,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACnCD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"51037985711-declare namespace ts {\r\n interface SourceFile {\r\n someProp: string;\r\n }\r\n}\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"54982415925-declare namespace ts {\r\n interface SourceFile {\r\n someProp: string;\r\n }\r\n}\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2410,9 +2410,9 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "54982415925-declare namespace ts {\r\n interface SourceFile {\r\n someProp: string;\r\n }\r\n}\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 35000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3856 + "size": 3879 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js index da1c809abc9..3be640118d7 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js @@ -167,13 +167,13 @@ Output:: [12:00:13 AM] Building project '/src/first/tsconfig.json'... -[12:00:24 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:23 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:25 AM] Building project '/src/second/tsconfig.json'... +[12:00:24 AM] Building project '/src/second/tsconfig.json'... -[12:00:36 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:34 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:37 AM] Building project '/src/third/tsconfig.json'... +[12:00:35 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -231,7 +231,7 @@ declare namespace internalOther.something { } } import internalImport = internalNamespace.someClass; -declare type internalType = internalC; +type internalType = internalC; declare const internalConst = 10; declare enum internalEnum { a = 0, @@ -244,7 +244,7 @@ declare class C { //# sourceMappingURL=second-output.d.ts.map //// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd"} +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -923,42 +923,43 @@ sourceFile:../second/second_part1.ts 7 >Emitted(52, 52) Source(34, 67) + SourceIndex(2) 8 >Emitted(52, 53) Source(34, 68) + SourceIndex(2) --- ->>>declare type internalType = internalC; +>>>type internalType = internalC; 1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ +2 >^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +7 > ^^^^-> 1 > >/**@internal*/ 2 >type -3 > internalType -4 > = -5 > internalC -6 > ; +3 > internalType +4 > = +5 > internalC +6 > ; 1 >Emitted(53, 1) Source(35, 16) + SourceIndex(2) -2 >Emitted(53, 14) Source(35, 21) + SourceIndex(2) -3 >Emitted(53, 26) Source(35, 33) + SourceIndex(2) -4 >Emitted(53, 29) Source(35, 36) + SourceIndex(2) -5 >Emitted(53, 38) Source(35, 45) + SourceIndex(2) -6 >Emitted(53, 39) Source(35, 46) + SourceIndex(2) +2 >Emitted(53, 6) Source(35, 21) + SourceIndex(2) +3 >Emitted(53, 18) Source(35, 33) + SourceIndex(2) +4 >Emitted(53, 21) Source(35, 36) + SourceIndex(2) +5 >Emitted(53, 30) Source(35, 45) + SourceIndex(2) +6 >Emitted(53, 31) Source(35, 46) + SourceIndex(2) --- >>>declare const internalConst = 10; -1 > +1-> 2 >^^^^^^^^ 3 > ^^^^^^ 4 > ^^^^^^^^^^^^^ 5 > ^^^^^ 6 > ^ -1 > +1-> >/**@internal*/ 2 > 3 > const 4 > internalConst 5 > = 10 6 > ; -1 >Emitted(54, 1) Source(36, 16) + SourceIndex(2) +1->Emitted(54, 1) Source(36, 16) + SourceIndex(2) 2 >Emitted(54, 9) Source(36, 16) + SourceIndex(2) 3 >Emitted(54, 15) Source(36, 22) + SourceIndex(2) 4 >Emitted(54, 28) Source(36, 35) + SourceIndex(2) @@ -2750,7 +2751,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":3163,"kind":"text"}],"mapHash":"-4451840947-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"144238636645-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}]},{"pos":157,"end":234,"kind":"text"},{"pos":234,"end":339,"kind":"internal"},{"pos":341,"end":373,"kind":"text"},{"pos":373,"end":765,"kind":"internal"},{"pos":767,"end":770,"kind":"text"},{"pos":770,"end":1183,"kind":"internal"},{"pos":1185,"end":1233,"kind":"text"}],"mapHash":"47169317065-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-13432536459-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-25454326822-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":26000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":3163,"kind":"text"}],"mapHash":"-4451840947-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"144238636645-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}]},{"pos":157,"end":234,"kind":"text"},{"pos":234,"end":339,"kind":"internal"},{"pos":341,"end":373,"kind":"text"},{"pos":373,"end":765,"kind":"internal"},{"pos":767,"end":770,"kind":"text"},{"pos":770,"end":1175,"kind":"internal"},{"pos":1177,"end":1225,"kind":"text"}],"mapHash":"35487435059-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-76652520731-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-68578080182-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2935,7 +2936,7 @@ text: (767-770) } ---------------------------------------------------------------------- -internal: (770-1183) +internal: (770-1175) declare class internalC { } declare function internalfoo(): void; @@ -2948,7 +2949,7 @@ declare namespace internalOther.something { } } import internalImport = internalNamespace.someClass; -declare type internalType = internalC; +type internalType = internalC; declare const internalConst = 10; declare enum internalEnum { a = 0, @@ -2956,7 +2957,7 @@ declare enum internalEnum { c = 2 } ---------------------------------------------------------------------- -text: (1185-1233) +text: (1177-1225) declare class C { doSomething(): void; } @@ -3042,17 +3043,17 @@ declare class C { }, { "pos": 770, - "end": 1183, + "end": 1175, "kind": "internal" }, { - "pos": 1185, - "end": 1233, + "pos": 1177, + "end": 1225, "kind": "text" } ], - "hash": "-13432536459-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", - "mapHash": "47169317065-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}" + "hash": "-76652520731-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", + "mapHash": "35487435059-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}" } }, "program": { @@ -3068,11 +3069,11 @@ declare class C { "composite": true, "outFile": "./second-output.js" }, - "outSignature": "-25454326822-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 26000 + "outSignature": "-68578080182-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12282 + "size": 12290 } //// [/src/first/bin/first-output.d.ts] @@ -3376,7 +3377,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}],"mapHash":"26534310144-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-28083977866-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":14000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}],"mapHash":"26534310144-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-28083977866-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3461,10 +3462,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 14000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2117 + "size": 2140 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -5504,7 +5505,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3163,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3163,"kind":"text"}]},{"pos":3163,"end":3199,"kind":"text"}],"mapHash":"89706277518-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"154908145202-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":38000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3163,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3163,"kind":"text"}]},{"pos":3163,"end":3199,"kind":"text"}],"mapHash":"89706277518-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"154908145202-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5725,10 +5726,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 38000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 7972 + "size": 7995 } @@ -5753,22 +5754,22 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:56 AM] Projects in this build: +[12:00:53 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:57 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:54 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:58 AM] Building project '/src/first/tsconfig.json'... +[12:00:55 AM] Building project '/src/first/tsconfig.json'... -[12:01:07 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:03 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:08 AM] Updating output of project '/src/second/tsconfig.json'... +[12:01:04 AM] Updating output of project '/src/second/tsconfig.json'... -[12:01:15 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +[12:01:11 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -[12:01:16 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:12 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -7498,7 +7499,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3180,"kind":"text"}],"mapHash":"3227826561-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-105939128098-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}]},{"pos":157,"end":234,"kind":"text"},{"pos":234,"end":339,"kind":"internal"},{"pos":341,"end":373,"kind":"text"},{"pos":373,"end":765,"kind":"internal"},{"pos":767,"end":770,"kind":"text"},{"pos":770,"end":1183,"kind":"internal"},{"pos":1185,"end":1233,"kind":"text"}],"mapHash":"47169317065-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-13432536459-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-25454326822-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":26000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3180,"kind":"text"}],"mapHash":"3227826561-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-105939128098-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}]},{"pos":157,"end":234,"kind":"text"},{"pos":234,"end":339,"kind":"internal"},{"pos":341,"end":373,"kind":"text"},{"pos":373,"end":765,"kind":"internal"},{"pos":767,"end":770,"kind":"text"},{"pos":770,"end":1175,"kind":"internal"},{"pos":1177,"end":1225,"kind":"text"}],"mapHash":"35487435059-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-76652520731-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-68578080182-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -7684,7 +7685,7 @@ text: (767-770) } ---------------------------------------------------------------------- -internal: (770-1183) +internal: (770-1175) declare class internalC { } declare function internalfoo(): void; @@ -7697,7 +7698,7 @@ declare namespace internalOther.something { } } import internalImport = internalNamespace.someClass; -declare type internalType = internalC; +type internalType = internalC; declare const internalConst = 10; declare enum internalEnum { a = 0, @@ -7705,7 +7706,7 @@ declare enum internalEnum { c = 2 } ---------------------------------------------------------------------- -text: (1185-1233) +text: (1177-1225) declare class C { doSomething(): void; } @@ -7791,17 +7792,17 @@ declare class C { }, { "pos": 770, - "end": 1183, + "end": 1175, "kind": "internal" }, { - "pos": 1185, - "end": 1233, + "pos": 1177, + "end": 1225, "kind": "text" } ], - "hash": "-13432536459-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", - "mapHash": "47169317065-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}" + "hash": "-76652520731-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", + "mapHash": "35487435059-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}" } }, "program": { @@ -7817,14 +7818,13 @@ declare class C { "composite": true, "outFile": "./second-output.js" }, - "outSignature": "-25454326822-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 26000 + "outSignature": "-68578080182-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12341 + "size": 12349 } -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] @@ -8013,7 +8013,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}],"mapHash":"26534310144-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-39212946152-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":14000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}],"mapHash":"26534310144-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-39212946152-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8099,10 +8099,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 14000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2190 + "size": 2213 } //// [/src/third/thirdjs/output/third-output.js] @@ -9885,7 +9885,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3180,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3180,"kind":"text"}]},{"pos":3180,"end":3216,"kind":"text"}],"mapHash":"111332820802-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-99251833333-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":38000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3180,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3180,"kind":"text"}]},{"pos":3180,"end":3216,"kind":"text"}],"mapHash":"111332820802-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-99251833333-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -10107,10 +10107,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 38000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 8032 + "size": 8055 } @@ -10135,28 +10135,28 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:28 AM] Projects in this build: +[12:01:24 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:29 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:25 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:30 AM] Building project '/src/first/tsconfig.json'... +[12:01:26 AM] Building project '/src/first/tsconfig.json'... -[12:01:39 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:34 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:40 AM] Updating output of project '/src/second/tsconfig.json'... +[12:01:35 AM] Updating output of project '/src/second/tsconfig.json'... -[12:01:46 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +[12:01:41 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -[12:01:47 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:42 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success //// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd"} +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -10835,42 +10835,43 @@ sourceFile:../second/second_part1.ts 7 >Emitted(52, 52) Source(34, 67) + SourceIndex(2) 8 >Emitted(52, 53) Source(34, 68) + SourceIndex(2) --- ->>>declare type internalType = internalC; +>>>type internalType = internalC; 1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ +2 >^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +7 > ^^^^-> 1 > >/**@internal*/ 2 >type -3 > internalType -4 > = -5 > internalC -6 > ; +3 > internalType +4 > = +5 > internalC +6 > ; 1 >Emitted(53, 1) Source(35, 16) + SourceIndex(2) -2 >Emitted(53, 14) Source(35, 21) + SourceIndex(2) -3 >Emitted(53, 26) Source(35, 33) + SourceIndex(2) -4 >Emitted(53, 29) Source(35, 36) + SourceIndex(2) -5 >Emitted(53, 38) Source(35, 45) + SourceIndex(2) -6 >Emitted(53, 39) Source(35, 46) + SourceIndex(2) +2 >Emitted(53, 6) Source(35, 21) + SourceIndex(2) +3 >Emitted(53, 18) Source(35, 33) + SourceIndex(2) +4 >Emitted(53, 21) Source(35, 36) + SourceIndex(2) +5 >Emitted(53, 30) Source(35, 45) + SourceIndex(2) +6 >Emitted(53, 31) Source(35, 46) + SourceIndex(2) --- >>>declare const internalConst = 10; -1 > +1-> 2 >^^^^^^^^ 3 > ^^^^^^ 4 > ^^^^^^^^^^^^^ 5 > ^^^^^ 6 > ^ -1 > +1-> >/**@internal*/ 2 > 3 > const 4 > internalConst 5 > = 10 6 > ; -1 >Emitted(54, 1) Source(36, 16) + SourceIndex(2) +1->Emitted(54, 1) Source(36, 16) + SourceIndex(2) 2 >Emitted(54, 9) Source(36, 16) + SourceIndex(2) 3 >Emitted(54, 15) Source(36, 22) + SourceIndex(2) 4 >Emitted(54, 28) Source(36, 35) + SourceIndex(2) @@ -10967,7 +10968,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.d.ts.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3180,"kind":"text"}],"mapHash":"3227826561-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-105939128098-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":234,"kind":"text"},{"pos":234,"end":339,"kind":"internal"},{"pos":341,"end":373,"kind":"text"},{"pos":373,"end":765,"kind":"internal"},{"pos":767,"end":770,"kind":"text"},{"pos":770,"end":1183,"kind":"internal"},{"pos":1185,"end":1233,"kind":"text"}],"mapHash":"68891964848-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-13432536459-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-25454326822-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":26000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3180,"kind":"text"}],"mapHash":"3227826561-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-105939128098-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":234,"kind":"text"},{"pos":234,"end":339,"kind":"internal"},{"pos":341,"end":373,"kind":"text"},{"pos":373,"end":765,"kind":"internal"},{"pos":767,"end":770,"kind":"text"},{"pos":770,"end":1175,"kind":"internal"},{"pos":1177,"end":1225,"kind":"text"}],"mapHash":"65800017434-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-76652520731-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-68578080182-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -11151,7 +11152,7 @@ text: (767-770) } ---------------------------------------------------------------------- -internal: (770-1183) +internal: (770-1175) declare class internalC { } declare function internalfoo(): void; @@ -11164,7 +11165,7 @@ declare namespace internalOther.something { } } import internalImport = internalNamespace.someClass; -declare type internalType = internalC; +type internalType = internalC; declare const internalConst = 10; declare enum internalEnum { a = 0, @@ -11172,7 +11173,7 @@ declare enum internalEnum { c = 2 } ---------------------------------------------------------------------- -text: (1185-1233) +text: (1177-1225) declare class C { doSomething(): void; } @@ -11253,17 +11254,17 @@ declare class C { }, { "pos": 770, - "end": 1183, + "end": 1175, "kind": "internal" }, { - "pos": 1185, - "end": 1233, + "pos": 1177, + "end": 1225, "kind": "text" } ], - "hash": "-13432536459-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", - "mapHash": "68891964848-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}" + "hash": "-76652520731-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", + "mapHash": "65800017434-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}" } }, "program": { @@ -11279,14 +11280,13 @@ declare class C { "composite": true, "outFile": "./second-output.js" }, - "outSignature": "-25454326822-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 26000 + "outSignature": "-68578080182-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12302 + "size": 12310 } -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} @@ -11595,7 +11595,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":14000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -11674,10 +11674,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 14000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2136 + "size": 2159 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -12004,7 +12004,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3180,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3180,"kind":"text"}]},{"pos":3180,"end":3216,"kind":"text"}],"mapHash":"111332820802-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-99251833333-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":317,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":317,"kind":"text"}]},{"pos":317,"end":336,"kind":"text"}],"mapHash":"-6546370592-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-17624507241-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-3274754787-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":108000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3180,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3180,"kind":"text"}]},{"pos":3180,"end":3216,"kind":"text"}],"mapHash":"111332820802-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-99251833333-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":317,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":317,"kind":"text"}]},{"pos":317,"end":336,"kind":"text"}],"mapHash":"-6546370592-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-17624507241-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-3274754787-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -12229,9 +12229,9 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-3274754787-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 108000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 8173 + "size": 8195 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment.js index 46229025cf6..816a5b53dd6 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment.js @@ -166,13 +166,13 @@ Output:: [12:00:11 AM] Building project '/src/first/tsconfig.json'... -[12:00:22 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:21 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:23 AM] Building project '/src/second/tsconfig.json'... +[12:00:22 AM] Building project '/src/second/tsconfig.json'... -[12:00:34 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:32 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:35 AM] Building project '/src/third/tsconfig.json'... +[12:00:33 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -222,7 +222,7 @@ declare namespace internalOther.something { } } import internalImport = internalNamespace.someClass; -declare type internalType = internalC; +type internalType = internalC; declare const internalConst = 10; declare enum internalEnum { a = 0, @@ -235,7 +235,7 @@ declare class C { //# sourceMappingURL=second-output.d.ts.map //// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd"} +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -794,42 +794,43 @@ sourceFile:../second/second_part1.ts 7 >Emitted(44, 52) Source(34, 67) + SourceIndex(0) 8 >Emitted(44, 53) Source(34, 68) + SourceIndex(0) --- ->>>declare type internalType = internalC; +>>>type internalType = internalC; 1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ +2 >^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +7 > ^^^^-> 1 > >/**@internal*/ 2 >type -3 > internalType -4 > = -5 > internalC -6 > ; +3 > internalType +4 > = +5 > internalC +6 > ; 1 >Emitted(45, 1) Source(35, 16) + SourceIndex(0) -2 >Emitted(45, 14) Source(35, 21) + SourceIndex(0) -3 >Emitted(45, 26) Source(35, 33) + SourceIndex(0) -4 >Emitted(45, 29) Source(35, 36) + SourceIndex(0) -5 >Emitted(45, 38) Source(35, 45) + SourceIndex(0) -6 >Emitted(45, 39) Source(35, 46) + SourceIndex(0) +2 >Emitted(45, 6) Source(35, 21) + SourceIndex(0) +3 >Emitted(45, 18) Source(35, 33) + SourceIndex(0) +4 >Emitted(45, 21) Source(35, 36) + SourceIndex(0) +5 >Emitted(45, 30) Source(35, 45) + SourceIndex(0) +6 >Emitted(45, 31) Source(35, 46) + SourceIndex(0) --- >>>declare const internalConst = 10; -1 > +1-> 2 >^^^^^^^^ 3 > ^^^^^^ 4 > ^^^^^^^^^^^^^ 5 > ^^^^^ 6 > ^ -1 > +1-> >/**@internal*/ 2 > 3 > const 4 > internalConst 5 > = 10 6 > ; -1 >Emitted(46, 1) Source(36, 16) + SourceIndex(0) +1->Emitted(46, 1) Source(36, 16) + SourceIndex(0) 2 >Emitted(46, 9) Source(36, 16) + SourceIndex(0) 3 >Emitted(46, 15) Source(36, 22) + SourceIndex(0) 4 >Emitted(46, 28) Source(36, 35) + SourceIndex(0) @@ -2480,7 +2481,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":3053,"kind":"text"}],"mapHash":"6253281662-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-8314017635-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":77,"kind":"text"},{"pos":77,"end":182,"kind":"internal"},{"pos":184,"end":216,"kind":"text"},{"pos":216,"end":608,"kind":"internal"},{"pos":610,"end":613,"kind":"text"},{"pos":613,"end":1026,"kind":"internal"},{"pos":1028,"end":1076,"kind":"text"}],"mapHash":"109269358215-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-9468064165-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-20504865920-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":24000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":3053,"kind":"text"}],"mapHash":"6253281662-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-8314017635-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":77,"kind":"text"},{"pos":77,"end":182,"kind":"internal"},{"pos":184,"end":216,"kind":"text"},{"pos":216,"end":608,"kind":"internal"},{"pos":610,"end":613,"kind":"text"},{"pos":613,"end":1018,"kind":"internal"},{"pos":1020,"end":1068,"kind":"text"}],"mapHash":"119062312689-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"11189477579-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"2446199792-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2639,7 +2640,7 @@ text: (610-613) } ---------------------------------------------------------------------- -internal: (613-1026) +internal: (613-1018) declare class internalC { } declare function internalfoo(): void; @@ -2652,7 +2653,7 @@ declare namespace internalOther.something { } } import internalImport = internalNamespace.someClass; -declare type internalType = internalC; +type internalType = internalC; declare const internalConst = 10; declare enum internalEnum { a = 0, @@ -2660,7 +2661,7 @@ declare enum internalEnum { c = 2 } ---------------------------------------------------------------------- -text: (1028-1076) +text: (1020-1068) declare class C { doSomething(): void; } @@ -2715,17 +2716,17 @@ declare class C { }, { "pos": 613, - "end": 1026, + "end": 1018, "kind": "internal" }, { - "pos": 1028, - "end": 1076, + "pos": 1020, + "end": 1068, "kind": "text" } ], - "hash": "-9468064165-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", - "mapHash": "109269358215-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}" + "hash": "11189477579-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", + "mapHash": "119062312689-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}" } }, "program": { @@ -2741,11 +2742,11 @@ declare class C { "composite": true, "outFile": "./second-output.js" }, - "outSignature": "-20504865920-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 24000 + "outSignature": "2446199792-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 11067 + "size": 11073 } //// [/src/first/bin/first-output.d.ts] @@ -3049,7 +3050,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}],"mapHash":"26534310144-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-28083977866-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":12000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}],"mapHash":"26534310144-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-28083977866-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3134,10 +3135,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 12000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2117 + "size": 2140 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -5177,7 +5178,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":3163,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":3163,"kind":"text"}]},{"pos":3163,"end":3199,"kind":"text"}],"mapHash":"89706277518-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"154908145202-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":116,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":116,"kind":"text"}]},{"pos":116,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":116,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":36000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":3163,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":3163,"kind":"text"}]},{"pos":3163,"end":3199,"kind":"text"}],"mapHash":"89706277518-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"154908145202-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":116,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":116,"kind":"text"}]},{"pos":116,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":116,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5434,10 +5435,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 36000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 8232 + "size": 8255 } @@ -5462,25 +5463,24 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:54 AM] Projects in this build: +[12:00:51 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:55 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:52 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:56 AM] Building project '/src/first/tsconfig.json'... +[12:00:53 AM] Building project '/src/first/tsconfig.json'... -[12:01:05 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:01 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:06 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:02 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:07 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:03 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] @@ -5669,7 +5669,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}],"mapHash":"26534310144-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-39212946152-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":12000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}],"mapHash":"26534310144-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-39212946152-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5755,10 +5755,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 12000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2190 + "size": 2213 } //// [/src/third/thirdjs/output/third-output.js] @@ -7541,7 +7541,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3180,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":3180,"kind":"text"}]},{"pos":3180,"end":3216,"kind":"text"}],"mapHash":"111332820802-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-99251833333-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":116,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":116,"kind":"text"}]},{"pos":116,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":116,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":36000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3180,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":3180,"kind":"text"}]},{"pos":3180,"end":3216,"kind":"text"}],"mapHash":"111332820802-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-99251833333-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":116,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":116,"kind":"text"}]},{"pos":116,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":116,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -7799,10 +7799,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 36000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 8292 + "size": 8315 } @@ -7827,25 +7827,24 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:18 AM] Projects in this build: +[12:01:14 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:19 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:15 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:20 AM] Building project '/src/first/tsconfig.json'... +[12:01:16 AM] Building project '/src/first/tsconfig.json'... -[12:01:29 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:24 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:30 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:25 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:31 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:26 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} @@ -8154,7 +8153,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":12000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8233,10 +8232,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 12000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2136 + "size": 2159 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -8563,7 +8562,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3180,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":3180,"kind":"text"}]},{"pos":3180,"end":3216,"kind":"text"}],"mapHash":"111332820802-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-99251833333-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":317,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":317,"kind":"text"}]},{"pos":317,"end":336,"kind":"text"}],"mapHash":"-6546370592-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-17624507241-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-3274754787-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":92000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3180,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":3180,"kind":"text"}]},{"pos":3180,"end":3216,"kind":"text"}],"mapHash":"111332820802-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-99251833333-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":317,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":317,"kind":"text"}]},{"pos":317,"end":336,"kind":"text"}],"mapHash":"-6546370592-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-17624507241-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-3274754787-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8824,9 +8823,9 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-3274754787-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 92000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 8432 + "size": 8455 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index 86666657974..660825b25bc 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -167,13 +167,13 @@ Output:: [12:00:16 AM] Building project '/src/first/tsconfig.json'... -[12:00:27 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:26 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:28 AM] Building project '/src/second/tsconfig.json'... +[12:00:27 AM] Building project '/src/second/tsconfig.json'... -[12:00:39 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:37 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:40 AM] Building project '/src/third/tsconfig.json'... +[12:00:38 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -231,7 +231,7 @@ declare namespace normalN { } } /**@internal*/ import internalImport = internalNamespace.someClass; -/**@internal*/ declare type internalType = internalC; +/**@internal*/ type internalType = internalC; /**@internal*/ declare const internalConst = 10; /**@internal*/ declare enum internalEnum { a = 0, @@ -244,7 +244,7 @@ declare class C { //# sourceMappingURL=second-output.d.ts.map //// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,aAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd"} +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,KAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -1041,35 +1041,36 @@ sourceFile:../second/second_part1.ts 9 >Emitted(52, 67) Source(34, 67) + SourceIndex(2) 10>Emitted(52, 68) Source(34, 68) + SourceIndex(2) --- ->>>/**@internal*/ declare type internalType = internalC; +>>>/**@internal*/ type internalType = internalC; 1 > 2 >^^^^^^^^^^^^^^ 3 > ^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^ -8 > ^ +4 > ^^^^^ +5 > ^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^ +8 > ^ +9 > ^^^^-> 1 > > 2 >/**@internal*/ 3 > 4 > type -5 > internalType -6 > = -7 > internalC -8 > ; +5 > internalType +6 > = +7 > internalC +8 > ; 1 >Emitted(53, 1) Source(35, 1) + SourceIndex(2) 2 >Emitted(53, 15) Source(35, 15) + SourceIndex(2) 3 >Emitted(53, 16) Source(35, 16) + SourceIndex(2) -4 >Emitted(53, 29) Source(35, 21) + SourceIndex(2) -5 >Emitted(53, 41) Source(35, 33) + SourceIndex(2) -6 >Emitted(53, 44) Source(35, 36) + SourceIndex(2) -7 >Emitted(53, 53) Source(35, 45) + SourceIndex(2) -8 >Emitted(53, 54) Source(35, 46) + SourceIndex(2) +4 >Emitted(53, 21) Source(35, 21) + SourceIndex(2) +5 >Emitted(53, 33) Source(35, 33) + SourceIndex(2) +6 >Emitted(53, 36) Source(35, 36) + SourceIndex(2) +7 >Emitted(53, 45) Source(35, 45) + SourceIndex(2) +8 >Emitted(53, 46) Source(35, 46) + SourceIndex(2) --- >>>/**@internal*/ declare const internalConst = 10; -1 > +1-> 2 >^^^^^^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^ @@ -1077,7 +1078,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^^^^^ 7 > ^^^^^ 8 > ^ -1 > +1-> > 2 >/**@internal*/ 3 > @@ -1086,7 +1087,7 @@ sourceFile:../second/second_part1.ts 6 > internalConst 7 > = 10 8 > ; -1 >Emitted(54, 1) Source(36, 1) + SourceIndex(2) +1->Emitted(54, 1) Source(36, 1) + SourceIndex(2) 2 >Emitted(54, 15) Source(36, 15) + SourceIndex(2) 3 >Emitted(54, 16) Source(36, 16) + SourceIndex(2) 4 >Emitted(54, 24) Source(36, 16) + SourceIndex(2) @@ -2986,7 +2987,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":3545,"kind":"text"}],"mapHash":"73103866863-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-46276215625-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /**@internal*/ function normalC() {\r\n }\r\n /**@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /**@internal*/ get: function () { return 10; },\r\n /**@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /**@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /**@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /**@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /**@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /**@internal*/ normalN.someImport = someNamespace.C;\r\n /**@internal*/ normalN.internalConst = 10;\r\n /**@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/**@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/**@internal*/ function internalfoo() { }\r\n/**@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/**@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/**@internal*/ var internalImport = internalNamespace.someClass;\r\n/**@internal*/ var internalConst = 10;\r\n/**@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":172,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":54,"kind":"internal"},{"pos":56,"end":172,"kind":"text"}]},{"pos":172,"end":249,"kind":"text"},{"pos":249,"end":429,"kind":"internal"},{"pos":431,"end":463,"kind":"text"},{"pos":463,"end":975,"kind":"internal"},{"pos":977,"end":980,"kind":"text"},{"pos":980,"end":1513,"kind":"internal"},{"pos":1515,"end":1563,"kind":"text"}],"mapHash":"72637168065-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,aAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"28495717979-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n /**@internal*/ constructor();\r\n /**@internal*/ prop: string;\r\n /**@internal*/ method(): void;\r\n /**@internal*/ get c(): number;\r\n /**@internal*/ set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n /**@internal*/ class C {\r\n }\r\n /**@internal*/ function foo(): void;\r\n /**@internal*/ namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n /**@internal*/ namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n /**@internal*/ export import someImport = someNamespace.C;\r\n /**@internal*/ type internalType = internalC;\r\n /**@internal*/ const internalConst = 10;\r\n /**@internal*/ enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\n/**@internal*/ declare class internalC {\r\n}\r\n/**@internal*/ declare function internalfoo(): void;\r\n/**@internal*/ declare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ declare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ import internalImport = internalNamespace.someClass;\r\n/**@internal*/ declare type internalType = internalC;\r\n/**@internal*/ declare const internalConst = 10;\r\n/**@internal*/ declare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"31678065536-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n /**@internal*/ constructor();\r\n /**@internal*/ prop: string;\r\n /**@internal*/ method(): void;\r\n /**@internal*/ get c(): number;\r\n /**@internal*/ set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n /**@internal*/ class C {\r\n }\r\n /**@internal*/ function foo(): void;\r\n /**@internal*/ namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n /**@internal*/ namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n /**@internal*/ export import someImport = someNamespace.C;\r\n /**@internal*/ type internalType = internalC;\r\n /**@internal*/ const internalConst = 10;\r\n /**@internal*/ enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\n/**@internal*/ declare class internalC {\r\n}\r\n/**@internal*/ declare function internalfoo(): void;\r\n/**@internal*/ declare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ declare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ import internalImport = internalNamespace.someClass;\r\n/**@internal*/ declare type internalType = internalC;\r\n/**@internal*/ declare const internalConst = 10;\r\n/**@internal*/ declare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":29000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":3545,"kind":"text"}],"mapHash":"73103866863-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-46276215625-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /**@internal*/ function normalC() {\r\n }\r\n /**@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /**@internal*/ get: function () { return 10; },\r\n /**@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /**@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /**@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /**@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /**@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /**@internal*/ normalN.someImport = someNamespace.C;\r\n /**@internal*/ normalN.internalConst = 10;\r\n /**@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/**@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/**@internal*/ function internalfoo() { }\r\n/**@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/**@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/**@internal*/ var internalImport = internalNamespace.someClass;\r\n/**@internal*/ var internalConst = 10;\r\n/**@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":172,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":54,"kind":"internal"},{"pos":56,"end":172,"kind":"text"}]},{"pos":172,"end":249,"kind":"text"},{"pos":249,"end":429,"kind":"internal"},{"pos":431,"end":463,"kind":"text"},{"pos":463,"end":975,"kind":"internal"},{"pos":977,"end":980,"kind":"text"},{"pos":980,"end":1505,"kind":"internal"},{"pos":1507,"end":1555,"kind":"text"}],"mapHash":"62262842155-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,KAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"63279926987-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n /**@internal*/ constructor();\r\n /**@internal*/ prop: string;\r\n /**@internal*/ method(): void;\r\n /**@internal*/ get c(): number;\r\n /**@internal*/ set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n /**@internal*/ class C {\r\n }\r\n /**@internal*/ function foo(): void;\r\n /**@internal*/ namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n /**@internal*/ namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n /**@internal*/ export import someImport = someNamespace.C;\r\n /**@internal*/ type internalType = internalC;\r\n /**@internal*/ const internalConst = 10;\r\n /**@internal*/ enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\n/**@internal*/ declare class internalC {\r\n}\r\n/**@internal*/ declare function internalfoo(): void;\r\n/**@internal*/ declare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ declare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ import internalImport = internalNamespace.someClass;\r\n/**@internal*/ type internalType = internalC;\r\n/**@internal*/ declare const internalConst = 10;\r\n/**@internal*/ declare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"57021299184-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n /**@internal*/ constructor();\r\n /**@internal*/ prop: string;\r\n /**@internal*/ method(): void;\r\n /**@internal*/ get c(): number;\r\n /**@internal*/ set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n /**@internal*/ class C {\r\n }\r\n /**@internal*/ function foo(): void;\r\n /**@internal*/ namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n /**@internal*/ namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n /**@internal*/ export import someImport = someNamespace.C;\r\n /**@internal*/ type internalType = internalC;\r\n /**@internal*/ const internalConst = 10;\r\n /**@internal*/ enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\n/**@internal*/ declare class internalC {\r\n}\r\n/**@internal*/ declare function internalfoo(): void;\r\n/**@internal*/ declare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ declare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ import internalImport = internalNamespace.someClass;\r\n/**@internal*/ type internalType = internalC;\r\n/**@internal*/ declare const internalConst = 10;\r\n/**@internal*/ declare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3171,7 +3172,7 @@ text: (977-980) } ---------------------------------------------------------------------- -internal: (980-1513) +internal: (980-1505) /**@internal*/ declare class internalC { } /**@internal*/ declare function internalfoo(): void; @@ -3184,7 +3185,7 @@ internal: (980-1513) } } /**@internal*/ import internalImport = internalNamespace.someClass; -/**@internal*/ declare type internalType = internalC; +/**@internal*/ type internalType = internalC; /**@internal*/ declare const internalConst = 10; /**@internal*/ declare enum internalEnum { a = 0, @@ -3192,7 +3193,7 @@ internal: (980-1513) c = 2 } ---------------------------------------------------------------------- -text: (1515-1563) +text: (1507-1555) declare class C { doSomething(): void; } @@ -3278,17 +3279,17 @@ declare class C { }, { "pos": 980, - "end": 1513, + "end": 1505, "kind": "internal" }, { - "pos": 1515, - "end": 1563, + "pos": 1507, + "end": 1555, "kind": "text" } ], - "hash": "28495717979-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n /**@internal*/ constructor();\r\n /**@internal*/ prop: string;\r\n /**@internal*/ method(): void;\r\n /**@internal*/ get c(): number;\r\n /**@internal*/ set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n /**@internal*/ class C {\r\n }\r\n /**@internal*/ function foo(): void;\r\n /**@internal*/ namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n /**@internal*/ namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n /**@internal*/ export import someImport = someNamespace.C;\r\n /**@internal*/ type internalType = internalC;\r\n /**@internal*/ const internalConst = 10;\r\n /**@internal*/ enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\n/**@internal*/ declare class internalC {\r\n}\r\n/**@internal*/ declare function internalfoo(): void;\r\n/**@internal*/ declare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ declare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ import internalImport = internalNamespace.someClass;\r\n/**@internal*/ declare type internalType = internalC;\r\n/**@internal*/ declare const internalConst = 10;\r\n/**@internal*/ declare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", - "mapHash": "72637168065-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,aAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}" + "hash": "63279926987-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n /**@internal*/ constructor();\r\n /**@internal*/ prop: string;\r\n /**@internal*/ method(): void;\r\n /**@internal*/ get c(): number;\r\n /**@internal*/ set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n /**@internal*/ class C {\r\n }\r\n /**@internal*/ function foo(): void;\r\n /**@internal*/ namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n /**@internal*/ namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n /**@internal*/ export import someImport = someNamespace.C;\r\n /**@internal*/ type internalType = internalC;\r\n /**@internal*/ const internalConst = 10;\r\n /**@internal*/ enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\n/**@internal*/ declare class internalC {\r\n}\r\n/**@internal*/ declare function internalfoo(): void;\r\n/**@internal*/ declare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ declare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ import internalImport = internalNamespace.someClass;\r\n/**@internal*/ type internalType = internalC;\r\n/**@internal*/ declare const internalConst = 10;\r\n/**@internal*/ declare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", + "mapHash": "62262842155-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,KAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}" } }, "program": { @@ -3304,11 +3305,11 @@ declare class C { "composite": true, "outFile": "./second-output.js" }, - "outSignature": "31678065536-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n /**@internal*/ constructor();\r\n /**@internal*/ prop: string;\r\n /**@internal*/ method(): void;\r\n /**@internal*/ get c(): number;\r\n /**@internal*/ set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n /**@internal*/ class C {\r\n }\r\n /**@internal*/ function foo(): void;\r\n /**@internal*/ namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n /**@internal*/ namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n /**@internal*/ export import someImport = someNamespace.C;\r\n /**@internal*/ type internalType = internalC;\r\n /**@internal*/ const internalConst = 10;\r\n /**@internal*/ enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\n/**@internal*/ declare class internalC {\r\n}\r\n/**@internal*/ declare function internalfoo(): void;\r\n/**@internal*/ declare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ declare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ import internalImport = internalNamespace.someClass;\r\n/**@internal*/ declare type internalType = internalC;\r\n/**@internal*/ declare const internalConst = 10;\r\n/**@internal*/ declare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 29000 + "outSignature": "57021299184-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n /**@internal*/ constructor();\r\n /**@internal*/ prop: string;\r\n /**@internal*/ method(): void;\r\n /**@internal*/ get c(): number;\r\n /**@internal*/ set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n /**@internal*/ class C {\r\n }\r\n /**@internal*/ function foo(): void;\r\n /**@internal*/ namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n /**@internal*/ namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n /**@internal*/ export import someImport = someNamespace.C;\r\n /**@internal*/ type internalType = internalC;\r\n /**@internal*/ const internalConst = 10;\r\n /**@internal*/ enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\n/**@internal*/ declare class internalC {\r\n}\r\n/**@internal*/ declare function internalfoo(): void;\r\n/**@internal*/ declare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ declare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ import internalImport = internalNamespace.someClass;\r\n/**@internal*/ type internalType = internalC;\r\n/**@internal*/ declare const internalConst = 10;\r\n/**@internal*/ declare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 13723 + "size": 13731 } //// [/src/first/bin/first-output.d.ts] @@ -3618,7 +3619,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":54,"kind":"internal"},{"pos":56,"end":172,"kind":"text"}],"mapHash":"32981141636-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-2170893185-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-28083977866-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-8362838664-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":17000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":54,"kind":"internal"},{"pos":56,"end":172,"kind":"text"}],"mapHash":"32981141636-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-2170893185-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-28083977866-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-8362838664-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3703,10 +3704,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-8362838664-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 17000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2155 + "size": 2178 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -5846,7 +5847,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3545,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3545,"kind":"text"}]},{"pos":3545,"end":3581,"kind":"text"}],"mapHash":"-35203587856-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-60456254652-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /**@internal*/ function normalC() {\r\n }\r\n /**@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /**@internal*/ get: function () { return 10; },\r\n /**@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /**@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /**@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /**@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /**@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /**@internal*/ normalN.someImport = someNamespace.C;\r\n /**@internal*/ normalN.internalConst = 10;\r\n /**@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/**@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/**@internal*/ function internalfoo() { }\r\n/**@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/**@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/**@internal*/ var internalImport = internalNamespace.someClass;\r\n/**@internal*/ var internalConst = 10;\r\n/**@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":41000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3545,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3545,"kind":"text"}]},{"pos":3545,"end":3581,"kind":"text"}],"mapHash":"-35203587856-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-60456254652-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /**@internal*/ function normalC() {\r\n }\r\n /**@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /**@internal*/ get: function () { return 10; },\r\n /**@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /**@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /**@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /**@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /**@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /**@internal*/ normalN.someImport = someNamespace.C;\r\n /**@internal*/ normalN.internalConst = 10;\r\n /**@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/**@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/**@internal*/ function internalfoo() { }\r\n/**@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/**@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/**@internal*/ var internalImport = internalNamespace.someClass;\r\n/**@internal*/ var internalConst = 10;\r\n/**@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -6067,10 +6068,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 41000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 8535 + "size": 8558 } @@ -6095,22 +6096,22 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:59 AM] Projects in this build: +[12:00:56 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:00 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:57 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:01 AM] Building project '/src/first/tsconfig.json'... +[12:00:58 AM] Building project '/src/first/tsconfig.json'... -[12:01:10 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:06 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:11 AM] Updating output of project '/src/second/tsconfig.json'... +[12:01:07 AM] Updating output of project '/src/second/tsconfig.json'... -[12:01:18 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +[12:01:14 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -[12:01:19 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:15 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -7940,7 +7941,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3562,"kind":"text"}],"mapHash":"-92108137693-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"52101774576-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /**@internal*/ function normalC() {\r\n }\r\n /**@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /**@internal*/ get: function () { return 10; },\r\n /**@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /**@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /**@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /**@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /**@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /**@internal*/ normalN.someImport = someNamespace.C;\r\n /**@internal*/ normalN.internalConst = 10;\r\n /**@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/**@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/**@internal*/ function internalfoo() { }\r\n/**@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/**@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/**@internal*/ var internalImport = internalNamespace.someClass;\r\n/**@internal*/ var internalConst = 10;\r\n/**@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":172,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":54,"kind":"internal"},{"pos":56,"end":172,"kind":"text"}]},{"pos":172,"end":249,"kind":"text"},{"pos":249,"end":429,"kind":"internal"},{"pos":431,"end":463,"kind":"text"},{"pos":463,"end":975,"kind":"internal"},{"pos":977,"end":980,"kind":"text"},{"pos":980,"end":1513,"kind":"internal"},{"pos":1515,"end":1563,"kind":"text"}],"mapHash":"72637168065-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,aAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"28495717979-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n /**@internal*/ constructor();\r\n /**@internal*/ prop: string;\r\n /**@internal*/ method(): void;\r\n /**@internal*/ get c(): number;\r\n /**@internal*/ set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n /**@internal*/ class C {\r\n }\r\n /**@internal*/ function foo(): void;\r\n /**@internal*/ namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n /**@internal*/ namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n /**@internal*/ export import someImport = someNamespace.C;\r\n /**@internal*/ type internalType = internalC;\r\n /**@internal*/ const internalConst = 10;\r\n /**@internal*/ enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\n/**@internal*/ declare class internalC {\r\n}\r\n/**@internal*/ declare function internalfoo(): void;\r\n/**@internal*/ declare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ declare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ import internalImport = internalNamespace.someClass;\r\n/**@internal*/ declare type internalType = internalC;\r\n/**@internal*/ declare const internalConst = 10;\r\n/**@internal*/ declare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"31678065536-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n /**@internal*/ constructor();\r\n /**@internal*/ prop: string;\r\n /**@internal*/ method(): void;\r\n /**@internal*/ get c(): number;\r\n /**@internal*/ set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n /**@internal*/ class C {\r\n }\r\n /**@internal*/ function foo(): void;\r\n /**@internal*/ namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n /**@internal*/ namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n /**@internal*/ export import someImport = someNamespace.C;\r\n /**@internal*/ type internalType = internalC;\r\n /**@internal*/ const internalConst = 10;\r\n /**@internal*/ enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\n/**@internal*/ declare class internalC {\r\n}\r\n/**@internal*/ declare function internalfoo(): void;\r\n/**@internal*/ declare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ declare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ import internalImport = internalNamespace.someClass;\r\n/**@internal*/ declare type internalType = internalC;\r\n/**@internal*/ declare const internalConst = 10;\r\n/**@internal*/ declare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":29000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3562,"kind":"text"}],"mapHash":"-92108137693-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"52101774576-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /**@internal*/ function normalC() {\r\n }\r\n /**@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /**@internal*/ get: function () { return 10; },\r\n /**@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /**@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /**@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /**@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /**@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /**@internal*/ normalN.someImport = someNamespace.C;\r\n /**@internal*/ normalN.internalConst = 10;\r\n /**@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/**@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/**@internal*/ function internalfoo() { }\r\n/**@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/**@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/**@internal*/ var internalImport = internalNamespace.someClass;\r\n/**@internal*/ var internalConst = 10;\r\n/**@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":172,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":54,"kind":"internal"},{"pos":56,"end":172,"kind":"text"}]},{"pos":172,"end":249,"kind":"text"},{"pos":249,"end":429,"kind":"internal"},{"pos":431,"end":463,"kind":"text"},{"pos":463,"end":975,"kind":"internal"},{"pos":977,"end":980,"kind":"text"},{"pos":980,"end":1505,"kind":"internal"},{"pos":1507,"end":1555,"kind":"text"}],"mapHash":"62262842155-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,KAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"63279926987-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n /**@internal*/ constructor();\r\n /**@internal*/ prop: string;\r\n /**@internal*/ method(): void;\r\n /**@internal*/ get c(): number;\r\n /**@internal*/ set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n /**@internal*/ class C {\r\n }\r\n /**@internal*/ function foo(): void;\r\n /**@internal*/ namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n /**@internal*/ namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n /**@internal*/ export import someImport = someNamespace.C;\r\n /**@internal*/ type internalType = internalC;\r\n /**@internal*/ const internalConst = 10;\r\n /**@internal*/ enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\n/**@internal*/ declare class internalC {\r\n}\r\n/**@internal*/ declare function internalfoo(): void;\r\n/**@internal*/ declare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ declare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ import internalImport = internalNamespace.someClass;\r\n/**@internal*/ type internalType = internalC;\r\n/**@internal*/ declare const internalConst = 10;\r\n/**@internal*/ declare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"57021299184-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n /**@internal*/ constructor();\r\n /**@internal*/ prop: string;\r\n /**@internal*/ method(): void;\r\n /**@internal*/ get c(): number;\r\n /**@internal*/ set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n /**@internal*/ class C {\r\n }\r\n /**@internal*/ function foo(): void;\r\n /**@internal*/ namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n /**@internal*/ namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n /**@internal*/ export import someImport = someNamespace.C;\r\n /**@internal*/ type internalType = internalC;\r\n /**@internal*/ const internalConst = 10;\r\n /**@internal*/ enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\n/**@internal*/ declare class internalC {\r\n}\r\n/**@internal*/ declare function internalfoo(): void;\r\n/**@internal*/ declare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ declare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ import internalImport = internalNamespace.someClass;\r\n/**@internal*/ type internalType = internalC;\r\n/**@internal*/ declare const internalConst = 10;\r\n/**@internal*/ declare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8126,7 +8127,7 @@ text: (977-980) } ---------------------------------------------------------------------- -internal: (980-1513) +internal: (980-1505) /**@internal*/ declare class internalC { } /**@internal*/ declare function internalfoo(): void; @@ -8139,7 +8140,7 @@ internal: (980-1513) } } /**@internal*/ import internalImport = internalNamespace.someClass; -/**@internal*/ declare type internalType = internalC; +/**@internal*/ type internalType = internalC; /**@internal*/ declare const internalConst = 10; /**@internal*/ declare enum internalEnum { a = 0, @@ -8147,7 +8148,7 @@ internal: (980-1513) c = 2 } ---------------------------------------------------------------------- -text: (1515-1563) +text: (1507-1555) declare class C { doSomething(): void; } @@ -8233,17 +8234,17 @@ declare class C { }, { "pos": 980, - "end": 1513, + "end": 1505, "kind": "internal" }, { - "pos": 1515, - "end": 1563, + "pos": 1507, + "end": 1555, "kind": "text" } ], - "hash": "28495717979-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n /**@internal*/ constructor();\r\n /**@internal*/ prop: string;\r\n /**@internal*/ method(): void;\r\n /**@internal*/ get c(): number;\r\n /**@internal*/ set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n /**@internal*/ class C {\r\n }\r\n /**@internal*/ function foo(): void;\r\n /**@internal*/ namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n /**@internal*/ namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n /**@internal*/ export import someImport = someNamespace.C;\r\n /**@internal*/ type internalType = internalC;\r\n /**@internal*/ const internalConst = 10;\r\n /**@internal*/ enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\n/**@internal*/ declare class internalC {\r\n}\r\n/**@internal*/ declare function internalfoo(): void;\r\n/**@internal*/ declare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ declare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ import internalImport = internalNamespace.someClass;\r\n/**@internal*/ declare type internalType = internalC;\r\n/**@internal*/ declare const internalConst = 10;\r\n/**@internal*/ declare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", - "mapHash": "72637168065-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,aAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}" + "hash": "63279926987-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n /**@internal*/ constructor();\r\n /**@internal*/ prop: string;\r\n /**@internal*/ method(): void;\r\n /**@internal*/ get c(): number;\r\n /**@internal*/ set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n /**@internal*/ class C {\r\n }\r\n /**@internal*/ function foo(): void;\r\n /**@internal*/ namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n /**@internal*/ namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n /**@internal*/ export import someImport = someNamespace.C;\r\n /**@internal*/ type internalType = internalC;\r\n /**@internal*/ const internalConst = 10;\r\n /**@internal*/ enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\n/**@internal*/ declare class internalC {\r\n}\r\n/**@internal*/ declare function internalfoo(): void;\r\n/**@internal*/ declare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ declare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ import internalImport = internalNamespace.someClass;\r\n/**@internal*/ type internalType = internalC;\r\n/**@internal*/ declare const internalConst = 10;\r\n/**@internal*/ declare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", + "mapHash": "62262842155-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,KAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}" } }, "program": { @@ -8259,14 +8260,13 @@ declare class C { "composite": true, "outFile": "./second-output.js" }, - "outSignature": "31678065536-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n /**@internal*/ constructor();\r\n /**@internal*/ prop: string;\r\n /**@internal*/ method(): void;\r\n /**@internal*/ get c(): number;\r\n /**@internal*/ set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n /**@internal*/ class C {\r\n }\r\n /**@internal*/ function foo(): void;\r\n /**@internal*/ namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n /**@internal*/ namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n /**@internal*/ export import someImport = someNamespace.C;\r\n /**@internal*/ type internalType = internalC;\r\n /**@internal*/ const internalConst = 10;\r\n /**@internal*/ enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\n/**@internal*/ declare class internalC {\r\n}\r\n/**@internal*/ declare function internalfoo(): void;\r\n/**@internal*/ declare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ declare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ import internalImport = internalNamespace.someClass;\r\n/**@internal*/ declare type internalType = internalC;\r\n/**@internal*/ declare const internalConst = 10;\r\n/**@internal*/ declare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 29000 + "outSignature": "57021299184-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n /**@internal*/ constructor();\r\n /**@internal*/ prop: string;\r\n /**@internal*/ method(): void;\r\n /**@internal*/ get c(): number;\r\n /**@internal*/ set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n /**@internal*/ class C {\r\n }\r\n /**@internal*/ function foo(): void;\r\n /**@internal*/ namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n /**@internal*/ namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n /**@internal*/ export import someImport = someNamespace.C;\r\n /**@internal*/ type internalType = internalC;\r\n /**@internal*/ const internalConst = 10;\r\n /**@internal*/ enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\n/**@internal*/ declare class internalC {\r\n}\r\n/**@internal*/ declare function internalfoo(): void;\r\n/**@internal*/ declare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ declare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ import internalImport = internalNamespace.someClass;\r\n/**@internal*/ type internalType = internalC;\r\n/**@internal*/ declare const internalConst = 10;\r\n/**@internal*/ declare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 13782 + "size": 13790 } -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] @@ -8455,7 +8455,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":54,"kind":"internal"},{"pos":56,"end":172,"kind":"text"}],"mapHash":"32981141636-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-2170893185-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-39212946152-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-8362838664-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":17000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":54,"kind":"internal"},{"pos":56,"end":172,"kind":"text"}],"mapHash":"32981141636-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-2170893185-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-39212946152-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-8362838664-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8541,10 +8541,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-8362838664-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 17000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2228 + "size": 2251 } //// [/src/third/thirdjs/output/third-output.js] @@ -10427,7 +10427,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3562,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3562,"kind":"text"}]},{"pos":3562,"end":3598,"kind":"text"}],"mapHash":"76555087780-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"26825140445-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /**@internal*/ function normalC() {\r\n }\r\n /**@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /**@internal*/ get: function () { return 10; },\r\n /**@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /**@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /**@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /**@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /**@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /**@internal*/ normalN.someImport = someNamespace.C;\r\n /**@internal*/ normalN.internalConst = 10;\r\n /**@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/**@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/**@internal*/ function internalfoo() { }\r\n/**@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/**@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/**@internal*/ var internalImport = internalNamespace.someClass;\r\n/**@internal*/ var internalConst = 10;\r\n/**@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":41000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3562,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3562,"kind":"text"}]},{"pos":3562,"end":3598,"kind":"text"}],"mapHash":"76555087780-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"26825140445-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /**@internal*/ function normalC() {\r\n }\r\n /**@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /**@internal*/ get: function () { return 10; },\r\n /**@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /**@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /**@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /**@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /**@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /**@internal*/ normalN.someImport = someNamespace.C;\r\n /**@internal*/ normalN.internalConst = 10;\r\n /**@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/**@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/**@internal*/ function internalfoo() { }\r\n/**@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/**@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/**@internal*/ var internalImport = internalNamespace.someClass;\r\n/**@internal*/ var internalConst = 10;\r\n/**@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -10649,9 +10649,9 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 41000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 8592 + "size": 8615 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled.js index 5052a720b03..97a9e089c8b 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled.js @@ -166,13 +166,13 @@ Output:: [12:00:14 AM] Building project '/src/first/tsconfig.json'... -[12:00:25 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:24 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:26 AM] Building project '/src/second/tsconfig.json'... +[12:00:25 AM] Building project '/src/second/tsconfig.json'... -[12:00:37 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:35 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:38 AM] Building project '/src/third/tsconfig.json'... +[12:00:36 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -222,7 +222,7 @@ declare namespace normalN { } } /**@internal*/ import internalImport = internalNamespace.someClass; -/**@internal*/ declare type internalType = internalC; +/**@internal*/ type internalType = internalC; /**@internal*/ declare const internalConst = 10; /**@internal*/ declare enum internalEnum { a = 0, @@ -235,7 +235,7 @@ declare class C { //# sourceMappingURL=second-output.d.ts.map //// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,aAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd"} +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,KAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -906,35 +906,36 @@ sourceFile:../second/second_part1.ts 9 >Emitted(44, 67) Source(34, 67) + SourceIndex(0) 10>Emitted(44, 68) Source(34, 68) + SourceIndex(0) --- ->>>/**@internal*/ declare type internalType = internalC; +>>>/**@internal*/ type internalType = internalC; 1 > 2 >^^^^^^^^^^^^^^ 3 > ^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^ -8 > ^ +4 > ^^^^^ +5 > ^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^ +8 > ^ +9 > ^^^^-> 1 > > 2 >/**@internal*/ 3 > 4 > type -5 > internalType -6 > = -7 > internalC -8 > ; +5 > internalType +6 > = +7 > internalC +8 > ; 1 >Emitted(45, 1) Source(35, 1) + SourceIndex(0) 2 >Emitted(45, 15) Source(35, 15) + SourceIndex(0) 3 >Emitted(45, 16) Source(35, 16) + SourceIndex(0) -4 >Emitted(45, 29) Source(35, 21) + SourceIndex(0) -5 >Emitted(45, 41) Source(35, 33) + SourceIndex(0) -6 >Emitted(45, 44) Source(35, 36) + SourceIndex(0) -7 >Emitted(45, 53) Source(35, 45) + SourceIndex(0) -8 >Emitted(45, 54) Source(35, 46) + SourceIndex(0) +4 >Emitted(45, 21) Source(35, 21) + SourceIndex(0) +5 >Emitted(45, 33) Source(35, 33) + SourceIndex(0) +6 >Emitted(45, 36) Source(35, 36) + SourceIndex(0) +7 >Emitted(45, 45) Source(35, 45) + SourceIndex(0) +8 >Emitted(45, 46) Source(35, 46) + SourceIndex(0) --- >>>/**@internal*/ declare const internalConst = 10; -1 > +1-> 2 >^^^^^^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^ @@ -942,7 +943,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^^^^^ 7 > ^^^^^ 8 > ^ -1 > +1-> > 2 >/**@internal*/ 3 > @@ -951,7 +952,7 @@ sourceFile:../second/second_part1.ts 6 > internalConst 7 > = 10 8 > ; -1 >Emitted(46, 1) Source(36, 1) + SourceIndex(0) +1->Emitted(46, 1) Source(36, 1) + SourceIndex(0) 2 >Emitted(46, 15) Source(36, 15) + SourceIndex(0) 3 >Emitted(46, 16) Source(36, 16) + SourceIndex(0) 4 >Emitted(46, 24) Source(36, 16) + SourceIndex(0) @@ -2710,7 +2711,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":3435,"kind":"text"}],"mapHash":"72728491936-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"33596295407-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /**@internal*/ function normalC() {\r\n }\r\n /**@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /**@internal*/ get: function () { return 10; },\r\n /**@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /**@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /**@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /**@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /**@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /**@internal*/ normalN.someImport = someNamespace.C;\r\n /**@internal*/ normalN.internalConst = 10;\r\n /**@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/**@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/**@internal*/ function internalfoo() { }\r\n/**@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/**@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/**@internal*/ var internalImport = internalNamespace.someClass;\r\n/**@internal*/ var internalConst = 10;\r\n/**@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":77,"kind":"text"},{"pos":77,"end":257,"kind":"internal"},{"pos":259,"end":291,"kind":"text"},{"pos":291,"end":803,"kind":"internal"},{"pos":805,"end":808,"kind":"text"},{"pos":808,"end":1341,"kind":"internal"},{"pos":1343,"end":1391,"kind":"text"}],"mapHash":"-12724997-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,aAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"62726964264-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n /**@internal*/ constructor();\r\n /**@internal*/ prop: string;\r\n /**@internal*/ method(): void;\r\n /**@internal*/ get c(): number;\r\n /**@internal*/ set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n /**@internal*/ class C {\r\n }\r\n /**@internal*/ function foo(): void;\r\n /**@internal*/ namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n /**@internal*/ namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n /**@internal*/ export import someImport = someNamespace.C;\r\n /**@internal*/ type internalType = internalC;\r\n /**@internal*/ const internalConst = 10;\r\n /**@internal*/ enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\n/**@internal*/ declare class internalC {\r\n}\r\n/**@internal*/ declare function internalfoo(): void;\r\n/**@internal*/ declare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ declare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ import internalImport = internalNamespace.someClass;\r\n/**@internal*/ declare type internalType = internalC;\r\n/**@internal*/ declare const internalConst = 10;\r\n/**@internal*/ declare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"51852821357-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n /**@internal*/ constructor();\r\n /**@internal*/ prop: string;\r\n /**@internal*/ method(): void;\r\n /**@internal*/ get c(): number;\r\n /**@internal*/ set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n /**@internal*/ class C {\r\n }\r\n /**@internal*/ function foo(): void;\r\n /**@internal*/ namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n /**@internal*/ namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n /**@internal*/ export import someImport = someNamespace.C;\r\n /**@internal*/ type internalType = internalC;\r\n /**@internal*/ const internalConst = 10;\r\n /**@internal*/ enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\n/**@internal*/ declare class internalC {\r\n}\r\n/**@internal*/ declare function internalfoo(): void;\r\n/**@internal*/ declare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ declare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ import internalImport = internalNamespace.someClass;\r\n/**@internal*/ declare type internalType = internalC;\r\n/**@internal*/ declare const internalConst = 10;\r\n/**@internal*/ declare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":27000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":3435,"kind":"text"}],"mapHash":"72728491936-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"33596295407-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /**@internal*/ function normalC() {\r\n }\r\n /**@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /**@internal*/ get: function () { return 10; },\r\n /**@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /**@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /**@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /**@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /**@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /**@internal*/ normalN.someImport = someNamespace.C;\r\n /**@internal*/ normalN.internalConst = 10;\r\n /**@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/**@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/**@internal*/ function internalfoo() { }\r\n/**@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/**@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/**@internal*/ var internalImport = internalNamespace.someClass;\r\n/**@internal*/ var internalConst = 10;\r\n/**@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":77,"kind":"text"},{"pos":77,"end":257,"kind":"internal"},{"pos":259,"end":291,"kind":"text"},{"pos":291,"end":803,"kind":"internal"},{"pos":805,"end":808,"kind":"text"},{"pos":808,"end":1333,"kind":"internal"},{"pos":1335,"end":1383,"kind":"text"}],"mapHash":"-10387050907-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,KAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"46063415192-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n /**@internal*/ constructor();\r\n /**@internal*/ prop: string;\r\n /**@internal*/ method(): void;\r\n /**@internal*/ get c(): number;\r\n /**@internal*/ set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n /**@internal*/ class C {\r\n }\r\n /**@internal*/ function foo(): void;\r\n /**@internal*/ namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n /**@internal*/ namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n /**@internal*/ export import someImport = someNamespace.C;\r\n /**@internal*/ type internalType = internalC;\r\n /**@internal*/ const internalConst = 10;\r\n /**@internal*/ enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\n/**@internal*/ declare class internalC {\r\n}\r\n/**@internal*/ declare function internalfoo(): void;\r\n/**@internal*/ declare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ declare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ import internalImport = internalNamespace.someClass;\r\n/**@internal*/ type internalType = internalC;\r\n/**@internal*/ declare const internalConst = 10;\r\n/**@internal*/ declare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"43837797597-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n /**@internal*/ constructor();\r\n /**@internal*/ prop: string;\r\n /**@internal*/ method(): void;\r\n /**@internal*/ get c(): number;\r\n /**@internal*/ set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n /**@internal*/ class C {\r\n }\r\n /**@internal*/ function foo(): void;\r\n /**@internal*/ namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n /**@internal*/ namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n /**@internal*/ export import someImport = someNamespace.C;\r\n /**@internal*/ type internalType = internalC;\r\n /**@internal*/ const internalConst = 10;\r\n /**@internal*/ enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\n/**@internal*/ declare class internalC {\r\n}\r\n/**@internal*/ declare function internalfoo(): void;\r\n/**@internal*/ declare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ declare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ import internalImport = internalNamespace.someClass;\r\n/**@internal*/ type internalType = internalC;\r\n/**@internal*/ declare const internalConst = 10;\r\n/**@internal*/ declare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2869,7 +2870,7 @@ text: (805-808) } ---------------------------------------------------------------------- -internal: (808-1341) +internal: (808-1333) /**@internal*/ declare class internalC { } /**@internal*/ declare function internalfoo(): void; @@ -2882,7 +2883,7 @@ internal: (808-1341) } } /**@internal*/ import internalImport = internalNamespace.someClass; -/**@internal*/ declare type internalType = internalC; +/**@internal*/ type internalType = internalC; /**@internal*/ declare const internalConst = 10; /**@internal*/ declare enum internalEnum { a = 0, @@ -2890,7 +2891,7 @@ internal: (808-1341) c = 2 } ---------------------------------------------------------------------- -text: (1343-1391) +text: (1335-1383) declare class C { doSomething(): void; } @@ -2945,17 +2946,17 @@ declare class C { }, { "pos": 808, - "end": 1341, + "end": 1333, "kind": "internal" }, { - "pos": 1343, - "end": 1391, + "pos": 1335, + "end": 1383, "kind": "text" } ], - "hash": "62726964264-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n /**@internal*/ constructor();\r\n /**@internal*/ prop: string;\r\n /**@internal*/ method(): void;\r\n /**@internal*/ get c(): number;\r\n /**@internal*/ set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n /**@internal*/ class C {\r\n }\r\n /**@internal*/ function foo(): void;\r\n /**@internal*/ namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n /**@internal*/ namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n /**@internal*/ export import someImport = someNamespace.C;\r\n /**@internal*/ type internalType = internalC;\r\n /**@internal*/ const internalConst = 10;\r\n /**@internal*/ enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\n/**@internal*/ declare class internalC {\r\n}\r\n/**@internal*/ declare function internalfoo(): void;\r\n/**@internal*/ declare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ declare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ import internalImport = internalNamespace.someClass;\r\n/**@internal*/ declare type internalType = internalC;\r\n/**@internal*/ declare const internalConst = 10;\r\n/**@internal*/ declare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", - "mapHash": "-12724997-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,aAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}" + "hash": "46063415192-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n /**@internal*/ constructor();\r\n /**@internal*/ prop: string;\r\n /**@internal*/ method(): void;\r\n /**@internal*/ get c(): number;\r\n /**@internal*/ set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n /**@internal*/ class C {\r\n }\r\n /**@internal*/ function foo(): void;\r\n /**@internal*/ namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n /**@internal*/ namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n /**@internal*/ export import someImport = someNamespace.C;\r\n /**@internal*/ type internalType = internalC;\r\n /**@internal*/ const internalConst = 10;\r\n /**@internal*/ enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\n/**@internal*/ declare class internalC {\r\n}\r\n/**@internal*/ declare function internalfoo(): void;\r\n/**@internal*/ declare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ declare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ import internalImport = internalNamespace.someClass;\r\n/**@internal*/ type internalType = internalC;\r\n/**@internal*/ declare const internalConst = 10;\r\n/**@internal*/ declare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", + "mapHash": "-10387050907-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,KAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}" } }, "program": { @@ -2971,11 +2972,11 @@ declare class C { "composite": true, "outFile": "./second-output.js" }, - "outSignature": "51852821357-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n /**@internal*/ constructor();\r\n /**@internal*/ prop: string;\r\n /**@internal*/ method(): void;\r\n /**@internal*/ get c(): number;\r\n /**@internal*/ set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n /**@internal*/ class C {\r\n }\r\n /**@internal*/ function foo(): void;\r\n /**@internal*/ namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n /**@internal*/ namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n /**@internal*/ export import someImport = someNamespace.C;\r\n /**@internal*/ type internalType = internalC;\r\n /**@internal*/ const internalConst = 10;\r\n /**@internal*/ enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\n/**@internal*/ declare class internalC {\r\n}\r\n/**@internal*/ declare function internalfoo(): void;\r\n/**@internal*/ declare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ declare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ import internalImport = internalNamespace.someClass;\r\n/**@internal*/ declare type internalType = internalC;\r\n/**@internal*/ declare const internalConst = 10;\r\n/**@internal*/ declare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 27000 + "outSignature": "43837797597-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n /**@internal*/ constructor();\r\n /**@internal*/ prop: string;\r\n /**@internal*/ method(): void;\r\n /**@internal*/ get c(): number;\r\n /**@internal*/ set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n /**@internal*/ class C {\r\n }\r\n /**@internal*/ function foo(): void;\r\n /**@internal*/ namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n /**@internal*/ namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n /**@internal*/ export import someImport = someNamespace.C;\r\n /**@internal*/ type internalType = internalC;\r\n /**@internal*/ const internalConst = 10;\r\n /**@internal*/ enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\n/**@internal*/ declare class internalC {\r\n}\r\n/**@internal*/ declare function internalfoo(): void;\r\n/**@internal*/ declare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ declare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\n/**@internal*/ import internalImport = internalNamespace.someClass;\r\n/**@internal*/ type internalType = internalC;\r\n/**@internal*/ declare const internalConst = 10;\r\n/**@internal*/ declare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12467 + "size": 12478 } //// [/src/first/bin/first-output.d.ts] @@ -3285,7 +3286,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":54,"kind":"internal"},{"pos":56,"end":172,"kind":"text"}],"mapHash":"32981141636-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-2170893185-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-28083977866-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-8362838664-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":15000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":54,"kind":"internal"},{"pos":56,"end":172,"kind":"text"}],"mapHash":"32981141636-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-2170893185-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-28083977866-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-8362838664-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3370,10 +3371,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-8362838664-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 15000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2155 + "size": 2178 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -5513,7 +5514,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":3545,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":3545,"kind":"text"}]},{"pos":3545,"end":3581,"kind":"text"}],"mapHash":"-35203587856-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-60456254652-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /**@internal*/ function normalC() {\r\n }\r\n /**@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /**@internal*/ get: function () { return 10; },\r\n /**@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /**@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /**@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /**@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /**@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /**@internal*/ normalN.someImport = someNamespace.C;\r\n /**@internal*/ normalN.internalConst = 10;\r\n /**@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/**@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/**@internal*/ function internalfoo() { }\r\n/**@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/**@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/**@internal*/ var internalImport = internalNamespace.someClass;\r\n/**@internal*/ var internalConst = 10;\r\n/**@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":116,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":116,"kind":"text"}]},{"pos":116,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":116,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":39000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":3545,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":3545,"kind":"text"}]},{"pos":3545,"end":3581,"kind":"text"}],"mapHash":"-35203587856-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-60456254652-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /**@internal*/ function normalC() {\r\n }\r\n /**@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /**@internal*/ get: function () { return 10; },\r\n /**@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /**@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /**@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /**@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /**@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /**@internal*/ normalN.someImport = someNamespace.C;\r\n /**@internal*/ normalN.internalConst = 10;\r\n /**@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/**@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/**@internal*/ function internalfoo() { }\r\n/**@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/**@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/**@internal*/ var internalImport = internalNamespace.someClass;\r\n/**@internal*/ var internalConst = 10;\r\n/**@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":116,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":116,"kind":"text"}]},{"pos":116,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":116,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5770,10 +5771,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 39000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 8795 + "size": 8818 } @@ -5798,25 +5799,24 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:57 AM] Projects in this build: +[12:00:54 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:58 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:55 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:59 AM] Building project '/src/first/tsconfig.json'... +[12:00:56 AM] Building project '/src/first/tsconfig.json'... -[12:01:08 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:04 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:09 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:05 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:10 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:06 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] @@ -6005,7 +6005,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":54,"kind":"internal"},{"pos":56,"end":172,"kind":"text"}],"mapHash":"32981141636-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-2170893185-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-39212946152-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-8362838664-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":15000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":54,"kind":"internal"},{"pos":56,"end":172,"kind":"text"}],"mapHash":"32981141636-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-2170893185-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-39212946152-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-8362838664-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -6091,10 +6091,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-8362838664-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 15000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2228 + "size": 2251 } //// [/src/third/thirdjs/output/third-output.js] @@ -7977,7 +7977,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3562,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":3562,"kind":"text"}]},{"pos":3562,"end":3598,"kind":"text"}],"mapHash":"76555087780-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"26825140445-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /**@internal*/ function normalC() {\r\n }\r\n /**@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /**@internal*/ get: function () { return 10; },\r\n /**@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /**@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /**@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /**@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /**@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /**@internal*/ normalN.someImport = someNamespace.C;\r\n /**@internal*/ normalN.internalConst = 10;\r\n /**@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/**@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/**@internal*/ function internalfoo() { }\r\n/**@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/**@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/**@internal*/ var internalImport = internalNamespace.someClass;\r\n/**@internal*/ var internalConst = 10;\r\n/**@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":116,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":116,"kind":"text"}]},{"pos":116,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":116,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":39000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3562,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":3562,"kind":"text"}]},{"pos":3562,"end":3598,"kind":"text"}],"mapHash":"76555087780-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"26825140445-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /**@internal*/ function normalC() {\r\n }\r\n /**@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /**@internal*/ get: function () { return 10; },\r\n /**@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /**@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /**@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /**@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /**@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /**@internal*/ normalN.someImport = someNamespace.C;\r\n /**@internal*/ normalN.internalConst = 10;\r\n /**@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/**@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/**@internal*/ function internalfoo() { }\r\n/**@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/**@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/**@internal*/ var internalImport = internalNamespace.someClass;\r\n/**@internal*/ var internalConst = 10;\r\n/**@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":116,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":116,"kind":"text"}]},{"pos":116,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":116,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8235,9 +8235,9 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 39000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 8852 + "size": 8875 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-few-members-of-enum-are-internal.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-few-members-of-enum-are-internal.js index e09395596cb..485a474ea86 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-few-members-of-enum-are-internal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-few-members-of-enum-are-internal.js @@ -163,13 +163,13 @@ Output:: [12:00:10 AM] Building project '/src/first/tsconfig.json'... -[12:00:21 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:22 AM] Building project '/src/second/tsconfig.json'... +[12:00:21 AM] Building project '/src/second/tsconfig.json'... -[12:00:33 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:31 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:34 AM] Building project '/src/third/tsconfig.json'... +[12:00:32 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -560,7 +560,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":23000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -643,10 +643,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 23000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2161 + "size": 2185 } //// [/src/first/bin/first-output.d.ts] @@ -1432,7 +1432,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":1131,"kind":"text"}],"mapHash":"-31206929079-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAK,UAqBJ;AArBD,WAAK,UAAU;IACX,2CAAQ,CAAA;IAER,uEAA2B,CAAA;IAE3B,6EAA8B,CAAA;IAE9B,2DAAqB,CAAA;IAErB,6EAA8B,CAAA;IAC9B,wDAAmB,CAAA;IACnB,8CAAc,CAAA;IACd,4DAAqB,CAAA;IACrB,mEAAwB,CAAA;IACxB,iEAAuB,CAAA;IAEvB,uEAA0B,CAAA;IAE1B,iFAAyD,CAAA;IAEzD,4EAAoG,CAAA;AACxG,CAAC,EArBI,UAAU,KAAV,UAAU,QAqBd;AAKD,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AChCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"12609243978-var TokenFlags;\r\n(function (TokenFlags) {\r\n TokenFlags[TokenFlags[\"None\"] = 0] = \"None\";\r\n TokenFlags[TokenFlags[\"PrecedingLineBreak\"] = 1] = \"PrecedingLineBreak\";\r\n TokenFlags[TokenFlags[\"PrecedingJSDocComment\"] = 2] = \"PrecedingJSDocComment\";\r\n TokenFlags[TokenFlags[\"Unterminated\"] = 4] = \"Unterminated\";\r\n TokenFlags[TokenFlags[\"ExtendedUnicodeEscape\"] = 8] = \"ExtendedUnicodeEscape\";\r\n TokenFlags[TokenFlags[\"Scientific\"] = 16] = \"Scientific\";\r\n TokenFlags[TokenFlags[\"Octal\"] = 32] = \"Octal\";\r\n TokenFlags[TokenFlags[\"HexSpecifier\"] = 64] = \"HexSpecifier\";\r\n TokenFlags[TokenFlags[\"BinarySpecifier\"] = 128] = \"BinarySpecifier\";\r\n TokenFlags[TokenFlags[\"OctalSpecifier\"] = 256] = \"OctalSpecifier\";\r\n TokenFlags[TokenFlags[\"ContainsSeparator\"] = 512] = \"ContainsSeparator\";\r\n TokenFlags[TokenFlags[\"BinaryOrOctalSpecifier\"] = 384] = \"BinaryOrOctalSpecifier\";\r\n TokenFlags[TokenFlags[\"NumericLiteralFlags\"] = 1008] = \"NumericLiteralFlags\";\r\n})(TokenFlags || (TokenFlags = {}));\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":42,"kind":"text"},{"pos":42,"end":156,"kind":"internal"},{"pos":158,"end":276,"kind":"text"},{"pos":276,"end":371,"kind":"internal"},{"pos":373,"end":533,"kind":"text"}],"mapHash":"12756767772-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAK,UAAU;IACX,IAAI,IAAI;IAER,kBAAkB,IAAS;IAE3B,qBAAqB,IAAS;IAE9B,YAAY,IAAS;IAErB,qBAAqB,IAAS;IAC9B,UAAU,KAAS;IACnB,KAAK,KAAS;IACd,YAAY,KAAS;IACrB,eAAe,MAAS;IACxB,cAAc,MAAS;IAEvB,iBAAiB,MAAS;IAE1B,sBAAsB,MAAmC;IAEzD,mBAAmB,OAAiF;CACvG;AACD,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AE9BD,iBAAS,CAAC,WAET\"}","hash":"-5295570803-declare enum TokenFlags {\r\n None = 0,\r\n PrecedingLineBreak = 1,\r\n PrecedingJSDocComment = 2,\r\n Unterminated = 4,\r\n ExtendedUnicodeEscape = 8,\r\n Scientific = 16,\r\n Octal = 32,\r\n HexSpecifier = 64,\r\n BinarySpecifier = 128,\r\n OctalSpecifier = 256,\r\n ContainsSeparator = 512,\r\n BinaryOrOctalSpecifier = 384,\r\n NumericLiteralFlags = 1008\r\n}\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-78369044808-enum TokenFlags {\n None = 0,\n /* @internal */\n PrecedingLineBreak = 1 << 0,\n /* @internal */\n PrecedingJSDocComment = 1 << 1,\n /* @internal */\n Unterminated = 1 << 2,\n /* @internal */\n ExtendedUnicodeEscape = 1 << 3,\n Scientific = 1 << 4,\n Octal = 1 << 5,\n HexSpecifier = 1 << 6,\n BinarySpecifier = 1 << 7,\n OctalSpecifier = 1 << 8,\n /* @internal */\n ContainsSeparator = 1 << 9,\n /* @internal */\n BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier,\n /* @internal */\n NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator\n}\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"8051664902-declare enum TokenFlags {\r\n None = 0,\r\n PrecedingLineBreak = 1,\r\n PrecedingJSDocComment = 2,\r\n Unterminated = 4,\r\n ExtendedUnicodeEscape = 8,\r\n Scientific = 16,\r\n Octal = 32,\r\n HexSpecifier = 64,\r\n BinarySpecifier = 128,\r\n OctalSpecifier = 256,\r\n ContainsSeparator = 512,\r\n BinaryOrOctalSpecifier = 384,\r\n NumericLiteralFlags = 1008\r\n}\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":11000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":1131,"kind":"text"}],"mapHash":"-31206929079-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAK,UAqBJ;AArBD,WAAK,UAAU;IACX,2CAAQ,CAAA;IAER,uEAA2B,CAAA;IAE3B,6EAA8B,CAAA;IAE9B,2DAAqB,CAAA;IAErB,6EAA8B,CAAA;IAC9B,wDAAmB,CAAA;IACnB,8CAAc,CAAA;IACd,4DAAqB,CAAA;IACrB,mEAAwB,CAAA;IACxB,iEAAuB,CAAA;IAEvB,uEAA0B,CAAA;IAE1B,iFAAyD,CAAA;IAEzD,4EAAoG,CAAA;AACxG,CAAC,EArBI,UAAU,KAAV,UAAU,QAqBd;AAKD,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AChCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"12609243978-var TokenFlags;\r\n(function (TokenFlags) {\r\n TokenFlags[TokenFlags[\"None\"] = 0] = \"None\";\r\n TokenFlags[TokenFlags[\"PrecedingLineBreak\"] = 1] = \"PrecedingLineBreak\";\r\n TokenFlags[TokenFlags[\"PrecedingJSDocComment\"] = 2] = \"PrecedingJSDocComment\";\r\n TokenFlags[TokenFlags[\"Unterminated\"] = 4] = \"Unterminated\";\r\n TokenFlags[TokenFlags[\"ExtendedUnicodeEscape\"] = 8] = \"ExtendedUnicodeEscape\";\r\n TokenFlags[TokenFlags[\"Scientific\"] = 16] = \"Scientific\";\r\n TokenFlags[TokenFlags[\"Octal\"] = 32] = \"Octal\";\r\n TokenFlags[TokenFlags[\"HexSpecifier\"] = 64] = \"HexSpecifier\";\r\n TokenFlags[TokenFlags[\"BinarySpecifier\"] = 128] = \"BinarySpecifier\";\r\n TokenFlags[TokenFlags[\"OctalSpecifier\"] = 256] = \"OctalSpecifier\";\r\n TokenFlags[TokenFlags[\"ContainsSeparator\"] = 512] = \"ContainsSeparator\";\r\n TokenFlags[TokenFlags[\"BinaryOrOctalSpecifier\"] = 384] = \"BinaryOrOctalSpecifier\";\r\n TokenFlags[TokenFlags[\"NumericLiteralFlags\"] = 1008] = \"NumericLiteralFlags\";\r\n})(TokenFlags || (TokenFlags = {}));\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":42,"kind":"text"},{"pos":42,"end":156,"kind":"internal"},{"pos":158,"end":276,"kind":"text"},{"pos":276,"end":371,"kind":"internal"},{"pos":373,"end":533,"kind":"text"}],"mapHash":"12756767772-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAK,UAAU;IACX,IAAI,IAAI;IAER,kBAAkB,IAAS;IAE3B,qBAAqB,IAAS;IAE9B,YAAY,IAAS;IAErB,qBAAqB,IAAS;IAC9B,UAAU,KAAS;IACnB,KAAK,KAAS;IACd,YAAY,KAAS;IACrB,eAAe,MAAS;IACxB,cAAc,MAAS;IAEvB,iBAAiB,MAAS;IAE1B,sBAAsB,MAAmC;IAEzD,mBAAmB,OAAiF;CACvG;AACD,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AE9BD,iBAAS,CAAC,WAET\"}","hash":"-5295570803-declare enum TokenFlags {\r\n None = 0,\r\n PrecedingLineBreak = 1,\r\n PrecedingJSDocComment = 2,\r\n Unterminated = 4,\r\n ExtendedUnicodeEscape = 8,\r\n Scientific = 16,\r\n Octal = 32,\r\n HexSpecifier = 64,\r\n BinarySpecifier = 128,\r\n OctalSpecifier = 256,\r\n ContainsSeparator = 512,\r\n BinaryOrOctalSpecifier = 384,\r\n NumericLiteralFlags = 1008\r\n}\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-78369044808-enum TokenFlags {\n None = 0,\n /* @internal */\n PrecedingLineBreak = 1 << 0,\n /* @internal */\n PrecedingJSDocComment = 1 << 1,\n /* @internal */\n Unterminated = 1 << 2,\n /* @internal */\n ExtendedUnicodeEscape = 1 << 3,\n Scientific = 1 << 4,\n Octal = 1 << 5,\n HexSpecifier = 1 << 6,\n BinarySpecifier = 1 << 7,\n OctalSpecifier = 1 << 8,\n /* @internal */\n ContainsSeparator = 1 << 9,\n /* @internal */\n BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier,\n /* @internal */\n NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator\n}\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"8051664902-declare enum TokenFlags {\r\n None = 0,\r\n PrecedingLineBreak = 1,\r\n PrecedingJSDocComment = 2,\r\n Unterminated = 4,\r\n ExtendedUnicodeEscape = 8,\r\n Scientific = 16,\r\n Octal = 32,\r\n HexSpecifier = 64,\r\n BinarySpecifier = 128,\r\n OctalSpecifier = 256,\r\n ContainsSeparator = 512,\r\n BinaryOrOctalSpecifier = 384,\r\n NumericLiteralFlags = 1008\r\n}\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1571,10 +1571,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "8051664902-declare enum TokenFlags {\r\n None = 0,\r\n PrecedingLineBreak = 1,\r\n PrecedingJSDocComment = 2,\r\n Unterminated = 4,\r\n ExtendedUnicodeEscape = 8,\r\n Scientific = 16,\r\n Octal = 32,\r\n HexSpecifier = 64,\r\n BinarySpecifier = 128,\r\n OctalSpecifier = 256,\r\n ContainsSeparator = 512,\r\n BinaryOrOctalSpecifier = 384,\r\n NumericLiteralFlags = 1008\r\n}\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 11000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 5328 + "size": 5351 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -2707,7 +2707,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":1131,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":1131,"kind":"text"}]},{"pos":1131,"end":1416,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1131,"end":1416,"kind":"text"}]},{"pos":1416,"end":1452,"kind":"text"}],"mapHash":"82804019774-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAK,UAqBJ;AArBD,WAAK,UAAU;IACX,2CAAQ,CAAA;IAER,uEAA2B,CAAA;IAE3B,6EAA8B,CAAA;IAE9B,2DAAqB,CAAA;IAErB,6EAA8B,CAAA;IAC9B,wDAAmB,CAAA;IACnB,8CAAc,CAAA;IACd,4DAAqB,CAAA;IACrB,mEAAwB,CAAA;IACxB,iEAAuB,CAAA;IAEvB,uEAA0B,CAAA;IAE1B,iFAAyD,CAAA;IAEzD,4EAAoG,CAAA;AACxG,CAAC,EArBI,UAAU,KAAV,UAAU,QAqBd;AAKD,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AChCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"32101799743-var TokenFlags;\r\n(function (TokenFlags) {\r\n TokenFlags[TokenFlags[\"None\"] = 0] = \"None\";\r\n TokenFlags[TokenFlags[\"PrecedingLineBreak\"] = 1] = \"PrecedingLineBreak\";\r\n TokenFlags[TokenFlags[\"PrecedingJSDocComment\"] = 2] = \"PrecedingJSDocComment\";\r\n TokenFlags[TokenFlags[\"Unterminated\"] = 4] = \"Unterminated\";\r\n TokenFlags[TokenFlags[\"ExtendedUnicodeEscape\"] = 8] = \"ExtendedUnicodeEscape\";\r\n TokenFlags[TokenFlags[\"Scientific\"] = 16] = \"Scientific\";\r\n TokenFlags[TokenFlags[\"Octal\"] = 32] = \"Octal\";\r\n TokenFlags[TokenFlags[\"HexSpecifier\"] = 64] = \"HexSpecifier\";\r\n TokenFlags[TokenFlags[\"BinarySpecifier\"] = 128] = \"BinarySpecifier\";\r\n TokenFlags[TokenFlags[\"OctalSpecifier\"] = 256] = \"OctalSpecifier\";\r\n TokenFlags[TokenFlags[\"ContainsSeparator\"] = 512] = \"ContainsSeparator\";\r\n TokenFlags[TokenFlags[\"BinaryOrOctalSpecifier\"] = 384] = \"BinaryOrOctalSpecifier\";\r\n TokenFlags[TokenFlags[\"NumericLiteralFlags\"] = 1008] = \"NumericLiteralFlags\";\r\n})(TokenFlags || (TokenFlags = {}));\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":320,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":320,"kind":"text"}]},{"pos":320,"end":420,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":320,"end":420,"kind":"text"}]},{"pos":420,"end":439,"kind":"text"}],"mapHash":"22013376427-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAK,UAAU;IACX,IAAI,IAAI;IASR,UAAU,KAAS;IACnB,KAAK,KAAS;IACd,YAAY,KAAS;IACrB,eAAe,MAAS;IACxB,cAAc,MAAS;CAO1B;AACD,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AC9BD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-39106923765-declare enum TokenFlags {\r\n None = 0,\r\n Scientific = 16,\r\n Octal = 32,\r\n HexSpecifier = 64,\r\n BinarySpecifier = 128,\r\n OctalSpecifier = 256,\r\n}\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-41732646255-declare enum TokenFlags {\r\n None = 0,\r\n Scientific = 16,\r\n Octal = 32,\r\n HexSpecifier = 64,\r\n BinarySpecifier = 128,\r\n OctalSpecifier = 256,\r\n}\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":35000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":1131,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":1131,"kind":"text"}]},{"pos":1131,"end":1416,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1131,"end":1416,"kind":"text"}]},{"pos":1416,"end":1452,"kind":"text"}],"mapHash":"82804019774-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAK,UAqBJ;AArBD,WAAK,UAAU;IACX,2CAAQ,CAAA;IAER,uEAA2B,CAAA;IAE3B,6EAA8B,CAAA;IAE9B,2DAAqB,CAAA;IAErB,6EAA8B,CAAA;IAC9B,wDAAmB,CAAA;IACnB,8CAAc,CAAA;IACd,4DAAqB,CAAA;IACrB,mEAAwB,CAAA;IACxB,iEAAuB,CAAA;IAEvB,uEAA0B,CAAA;IAE1B,iFAAyD,CAAA;IAEzD,4EAAoG,CAAA;AACxG,CAAC,EArBI,UAAU,KAAV,UAAU,QAqBd;AAKD,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AChCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"32101799743-var TokenFlags;\r\n(function (TokenFlags) {\r\n TokenFlags[TokenFlags[\"None\"] = 0] = \"None\";\r\n TokenFlags[TokenFlags[\"PrecedingLineBreak\"] = 1] = \"PrecedingLineBreak\";\r\n TokenFlags[TokenFlags[\"PrecedingJSDocComment\"] = 2] = \"PrecedingJSDocComment\";\r\n TokenFlags[TokenFlags[\"Unterminated\"] = 4] = \"Unterminated\";\r\n TokenFlags[TokenFlags[\"ExtendedUnicodeEscape\"] = 8] = \"ExtendedUnicodeEscape\";\r\n TokenFlags[TokenFlags[\"Scientific\"] = 16] = \"Scientific\";\r\n TokenFlags[TokenFlags[\"Octal\"] = 32] = \"Octal\";\r\n TokenFlags[TokenFlags[\"HexSpecifier\"] = 64] = \"HexSpecifier\";\r\n TokenFlags[TokenFlags[\"BinarySpecifier\"] = 128] = \"BinarySpecifier\";\r\n TokenFlags[TokenFlags[\"OctalSpecifier\"] = 256] = \"OctalSpecifier\";\r\n TokenFlags[TokenFlags[\"ContainsSeparator\"] = 512] = \"ContainsSeparator\";\r\n TokenFlags[TokenFlags[\"BinaryOrOctalSpecifier\"] = 384] = \"BinaryOrOctalSpecifier\";\r\n TokenFlags[TokenFlags[\"NumericLiteralFlags\"] = 1008] = \"NumericLiteralFlags\";\r\n})(TokenFlags || (TokenFlags = {}));\r\nvar s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":320,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":320,"kind":"text"}]},{"pos":320,"end":420,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":320,"end":420,"kind":"text"}]},{"pos":420,"end":439,"kind":"text"}],"mapHash":"22013376427-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAK,UAAU;IACX,IAAI,IAAI;IASR,UAAU,KAAS;IACnB,KAAK,KAAS;IACd,YAAY,KAAS;IACrB,eAAe,MAAS;IACxB,cAAc,MAAS;CAO1B;AACD,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AC9BD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-39106923765-declare enum TokenFlags {\r\n None = 0,\r\n Scientific = 16,\r\n Octal = 32,\r\n HexSpecifier = 64,\r\n BinarySpecifier = 128,\r\n OctalSpecifier = 256,\r\n}\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-41732646255-declare enum TokenFlags {\r\n None = 0,\r\n Scientific = 16,\r\n Octal = 32,\r\n HexSpecifier = 64,\r\n BinarySpecifier = 128,\r\n OctalSpecifier = 256,\r\n}\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2900,9 +2900,9 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-41732646255-declare enum TokenFlags {\r\n None = 0,\r\n Scientific = 16,\r\n Octal = 32,\r\n HexSpecifier = 64,\r\n BinarySpecifier = 128,\r\n OctalSpecifier = 256,\r\n}\r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 35000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5468 + "size": 5491 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-one-two-three-are-prepended-in-order.js index 6d489230a8f..36f03d09aaa 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -167,13 +167,13 @@ Output:: [12:00:13 AM] Building project '/src/first/tsconfig.json'... -[12:00:24 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:23 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:25 AM] Building project '/src/second/tsconfig.json'... +[12:00:24 AM] Building project '/src/second/tsconfig.json'... -[12:00:36 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:34 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:37 AM] Building project '/src/third/tsconfig.json'... +[12:00:35 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -251,7 +251,7 @@ declare namespace internalOther.something { } } import internalImport = internalNamespace.someClass; -declare type internalType = internalC; +type internalType = internalC; declare const internalConst = 10; declare enum internalEnum { a = 0, @@ -264,7 +264,7 @@ declare class C { //# sourceMappingURL=second-output.d.ts.map //// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -943,42 +943,43 @@ sourceFile:../second/second_part1.ts 7 >Emitted(52, 52) Source(34, 66) + SourceIndex(2) 8 >Emitted(52, 53) Source(34, 67) + SourceIndex(2) --- ->>>declare type internalType = internalC; +>>>type internalType = internalC; 1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ +2 >^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +7 > ^^^^-> 1 > >/*@internal*/ 2 >type -3 > internalType -4 > = -5 > internalC -6 > ; +3 > internalType +4 > = +5 > internalC +6 > ; 1 >Emitted(53, 1) Source(35, 15) + SourceIndex(2) -2 >Emitted(53, 14) Source(35, 20) + SourceIndex(2) -3 >Emitted(53, 26) Source(35, 32) + SourceIndex(2) -4 >Emitted(53, 29) Source(35, 35) + SourceIndex(2) -5 >Emitted(53, 38) Source(35, 44) + SourceIndex(2) -6 >Emitted(53, 39) Source(35, 45) + SourceIndex(2) +2 >Emitted(53, 6) Source(35, 20) + SourceIndex(2) +3 >Emitted(53, 18) Source(35, 32) + SourceIndex(2) +4 >Emitted(53, 21) Source(35, 35) + SourceIndex(2) +5 >Emitted(53, 30) Source(35, 44) + SourceIndex(2) +6 >Emitted(53, 31) Source(35, 45) + SourceIndex(2) --- >>>declare const internalConst = 10; -1 > +1-> 2 >^^^^^^^^ 3 > ^^^^^^ 4 > ^^^^^^^^^^^^^ 5 > ^^^^^ 6 > ^ -1 > +1-> >/*@internal*/ 2 > 3 > const 4 > internalConst 5 > = 10 6 > ; -1 >Emitted(54, 1) Source(36, 15) + SourceIndex(2) +1->Emitted(54, 1) Source(36, 15) + SourceIndex(2) 2 >Emitted(54, 9) Source(36, 15) + SourceIndex(2) 3 >Emitted(54, 15) Source(36, 21) + SourceIndex(2) 4 >Emitted(54, 28) Source(36, 34) + SourceIndex(2) @@ -2770,7 +2771,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":3163,"kind":"text"}],"mapHash":"-31829622207-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"144238636645-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}]},{"pos":157,"end":234,"kind":"text"},{"pos":234,"end":339,"kind":"internal"},{"pos":341,"end":373,"kind":"text"},{"pos":373,"end":765,"kind":"internal"},{"pos":767,"end":770,"kind":"text"},{"pos":770,"end":1183,"kind":"internal"},{"pos":1185,"end":1233,"kind":"text"}],"mapHash":"-113365255-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-13432536459-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-25454326822-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":26000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":3163,"kind":"text"}],"mapHash":"-31829622207-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"144238636645-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}]},{"pos":157,"end":234,"kind":"text"},{"pos":234,"end":339,"kind":"internal"},{"pos":341,"end":373,"kind":"text"},{"pos":373,"end":765,"kind":"internal"},{"pos":767,"end":770,"kind":"text"},{"pos":770,"end":1175,"kind":"internal"},{"pos":1177,"end":1225,"kind":"text"}],"mapHash":"13974556515-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-76652520731-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-68578080182-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2955,7 +2956,7 @@ text: (767-770) } ---------------------------------------------------------------------- -internal: (770-1183) +internal: (770-1175) declare class internalC { } declare function internalfoo(): void; @@ -2968,7 +2969,7 @@ declare namespace internalOther.something { } } import internalImport = internalNamespace.someClass; -declare type internalType = internalC; +type internalType = internalC; declare const internalConst = 10; declare enum internalEnum { a = 0, @@ -2976,7 +2977,7 @@ declare enum internalEnum { c = 2 } ---------------------------------------------------------------------- -text: (1185-1233) +text: (1177-1225) declare class C { doSomething(): void; } @@ -3062,17 +3063,17 @@ declare class C { }, { "pos": 770, - "end": 1183, + "end": 1175, "kind": "internal" }, { - "pos": 1185, - "end": 1233, + "pos": 1177, + "end": 1225, "kind": "text" } ], - "hash": "-13432536459-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", - "mapHash": "-113365255-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}" + "hash": "-76652520731-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", + "mapHash": "13974556515-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}" } }, "program": { @@ -3088,11 +3089,11 @@ declare class C { "composite": true, "outFile": "./second-output.js" }, - "outSignature": "-25454326822-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 26000 + "outSignature": "-68578080182-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12262 + "size": 12271 } //// [/src/first/bin/first-output.d.ts] @@ -3396,7 +3397,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-7635519924-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":14000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-7635519924-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3481,10 +3482,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 14000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2115 + "size": 2138 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -5524,7 +5525,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3163,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3163,"kind":"text"}]},{"pos":3163,"end":3199,"kind":"text"}],"mapHash":"-8086338046-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"154908145202-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":38000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3163,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3163,"kind":"text"}]},{"pos":3163,"end":3199,"kind":"text"}],"mapHash":"-8086338046-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"154908145202-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5745,10 +5746,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 38000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 7972 + "size": 7995 } @@ -5773,22 +5774,22 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:56 AM] Projects in this build: +[12:00:53 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:57 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:54 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:58 AM] Building project '/src/first/tsconfig.json'... +[12:00:55 AM] Building project '/src/first/tsconfig.json'... -[12:01:08 AM] Project 'src/second/tsconfig.json' is out of date because output 'src/2/second-output.tsbuildinfo' is older than input 'src/first' +[12:01:04 AM] Project 'src/second/tsconfig.json' is out of date because output 'src/2/second-output.tsbuildinfo' is older than input 'src/first' -[12:01:09 AM] Building project '/src/second/tsconfig.json'... +[12:01:05 AM] Building project '/src/second/tsconfig.json'... -[12:01:19 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/second' +[12:01:14 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/second' -[12:01:20 AM] Building project '/src/third/tsconfig.json'... +[12:01:15 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -5867,7 +5868,7 @@ declare namespace internalOther.something { } } import internalImport = internalNamespace.someClass; -declare type internalType = internalC; +type internalType = internalC; declare const internalConst = 10; declare enum internalEnum { a = 0, @@ -5880,7 +5881,7 @@ declare class C { //# sourceMappingURL=second-output.d.ts.map //// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -6559,42 +6560,43 @@ sourceFile:../second/second_part1.ts 7 >Emitted(52, 52) Source(34, 66) + SourceIndex(2) 8 >Emitted(52, 53) Source(34, 67) + SourceIndex(2) --- ->>>declare type internalType = internalC; +>>>type internalType = internalC; 1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ +2 >^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +7 > ^^^^-> 1 > >/*@internal*/ 2 >type -3 > internalType -4 > = -5 > internalC -6 > ; +3 > internalType +4 > = +5 > internalC +6 > ; 1 >Emitted(53, 1) Source(35, 15) + SourceIndex(2) -2 >Emitted(53, 14) Source(35, 20) + SourceIndex(2) -3 >Emitted(53, 26) Source(35, 32) + SourceIndex(2) -4 >Emitted(53, 29) Source(35, 35) + SourceIndex(2) -5 >Emitted(53, 38) Source(35, 44) + SourceIndex(2) -6 >Emitted(53, 39) Source(35, 45) + SourceIndex(2) +2 >Emitted(53, 6) Source(35, 20) + SourceIndex(2) +3 >Emitted(53, 18) Source(35, 32) + SourceIndex(2) +4 >Emitted(53, 21) Source(35, 35) + SourceIndex(2) +5 >Emitted(53, 30) Source(35, 44) + SourceIndex(2) +6 >Emitted(53, 31) Source(35, 45) + SourceIndex(2) --- >>>declare const internalConst = 10; -1 > +1-> 2 >^^^^^^^^ 3 > ^^^^^^ 4 > ^^^^^^^^^^^^^ 5 > ^^^^^ 6 > ^ -1 > +1-> >/*@internal*/ 2 > 3 > const 4 > internalConst 5 > = 10 6 > ; -1 >Emitted(54, 1) Source(36, 15) + SourceIndex(2) +1->Emitted(54, 1) Source(36, 15) + SourceIndex(2) 2 >Emitted(54, 9) Source(36, 15) + SourceIndex(2) 3 >Emitted(54, 15) Source(36, 21) + SourceIndex(2) 4 >Emitted(54, 28) Source(36, 34) + SourceIndex(2) @@ -8386,7 +8388,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":109,"kind":"text"}]},{"pos":109,"end":3162,"kind":"text"}],"mapHash":"44741038523-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-81921877035-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":156,"kind":"text"}]},{"pos":156,"end":233,"kind":"text"},{"pos":233,"end":338,"kind":"internal"},{"pos":340,"end":372,"kind":"text"},{"pos":372,"end":764,"kind":"internal"},{"pos":766,"end":769,"kind":"text"},{"pos":769,"end":1182,"kind":"internal"},{"pos":1184,"end":1232,"kind":"text"}],"mapHash":"64998097715-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-69637640283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-86912100598-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":70000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":109,"kind":"text"}]},{"pos":109,"end":3162,"kind":"text"}],"mapHash":"44741038523-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-81921877035-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":156,"kind":"text"}]},{"pos":156,"end":233,"kind":"text"},{"pos":233,"end":338,"kind":"internal"},{"pos":340,"end":372,"kind":"text"},{"pos":372,"end":764,"kind":"internal"},{"pos":766,"end":769,"kind":"text"},{"pos":769,"end":1174,"kind":"internal"},{"pos":1176,"end":1224,"kind":"text"}],"mapHash":"96265888669-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-114771929067-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-95739042438-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8571,7 +8573,7 @@ text: (766-769) } ---------------------------------------------------------------------- -internal: (769-1182) +internal: (769-1174) declare class internalC { } declare function internalfoo(): void; @@ -8584,7 +8586,7 @@ declare namespace internalOther.something { } } import internalImport = internalNamespace.someClass; -declare type internalType = internalC; +type internalType = internalC; declare const internalConst = 10; declare enum internalEnum { a = 0, @@ -8592,7 +8594,7 @@ declare enum internalEnum { c = 2 } ---------------------------------------------------------------------- -text: (1184-1232) +text: (1176-1224) declare class C { doSomething(): void; } @@ -8678,17 +8680,17 @@ declare class C { }, { "pos": 769, - "end": 1182, + "end": 1174, "kind": "internal" }, { - "pos": 1184, - "end": 1232, + "pos": 1176, + "end": 1224, "kind": "text" } ], - "hash": "-69637640283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", - "mapHash": "64998097715-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}" + "hash": "-114771929067-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", + "mapHash": "96265888669-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}" } }, "program": { @@ -8704,11 +8706,11 @@ declare class C { "composite": true, "outFile": "./second-output.js" }, - "outSignature": "-86912100598-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 70000 + "outSignature": "-95739042438-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12259 + "size": 12268 } //// [/src/first/bin/first-output.d.ts] @@ -9012,7 +9014,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"text"}],"mapHash":"-23743024037-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-17751605528-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":156,"kind":"text"}],"mapHash":"26096235382-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-12716948804-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":59000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"text"}],"mapHash":"-23743024037-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-17751605528-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":156,"kind":"text"}],"mapHash":"26096235382-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-12716948804-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -9097,10 +9099,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 59000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2113 + "size": 2136 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -11140,7 +11142,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3162,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3162,"kind":"text"}]},{"pos":3162,"end":3198,"kind":"text"}],"mapHash":"175025764412-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-77350621790-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":275,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":275,"kind":"text"}]},{"pos":275,"end":294,"kind":"text"}],"mapHash":"-7558054436-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-3056724381-declare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"16720646121-declare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":81000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3162,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3162,"kind":"text"}]},{"pos":3162,"end":3198,"kind":"text"}],"mapHash":"175025764412-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-77350621790-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":275,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":275,"kind":"text"}]},{"pos":275,"end":294,"kind":"text"}],"mapHash":"-7558054436-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-3056724381-declare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"16720646121-declare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -11361,10 +11363,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "16720646121-declare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 81000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 7970 + "size": 7993 } @@ -11389,22 +11391,22 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:37 AM] Projects in this build: +[12:01:31 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:38 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:32 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:39 AM] Building project '/src/first/tsconfig.json'... +[12:01:33 AM] Building project '/src/first/tsconfig.json'... -[12:01:48 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:41 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:49 AM] Updating output of project '/src/second/tsconfig.json'... +[12:01:42 AM] Updating output of project '/src/second/tsconfig.json'... -[12:01:56 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +[12:01:49 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -[12:01:57 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:50 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -13156,7 +13158,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":126,"kind":"text"}]},{"pos":126,"end":3179,"kind":"text"}],"mapHash":"25332072687-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-22338327474-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":156,"kind":"text"}]},{"pos":156,"end":233,"kind":"text"},{"pos":233,"end":338,"kind":"internal"},{"pos":340,"end":372,"kind":"text"},{"pos":372,"end":764,"kind":"internal"},{"pos":766,"end":769,"kind":"text"},{"pos":769,"end":1182,"kind":"internal"},{"pos":1184,"end":1232,"kind":"text"}],"mapHash":"64998097715-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-69637640283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-86912100598-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":70000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":126,"kind":"text"}]},{"pos":126,"end":3179,"kind":"text"}],"mapHash":"25332072687-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-22338327474-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":156,"kind":"text"}]},{"pos":156,"end":233,"kind":"text"},{"pos":233,"end":338,"kind":"internal"},{"pos":340,"end":372,"kind":"text"},{"pos":372,"end":764,"kind":"internal"},{"pos":766,"end":769,"kind":"text"},{"pos":769,"end":1174,"kind":"internal"},{"pos":1176,"end":1224,"kind":"text"}],"mapHash":"96265888669-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-114771929067-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-95739042438-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -13342,7 +13344,7 @@ text: (766-769) } ---------------------------------------------------------------------- -internal: (769-1182) +internal: (769-1174) declare class internalC { } declare function internalfoo(): void; @@ -13355,7 +13357,7 @@ declare namespace internalOther.something { } } import internalImport = internalNamespace.someClass; -declare type internalType = internalC; +type internalType = internalC; declare const internalConst = 10; declare enum internalEnum { a = 0, @@ -13363,7 +13365,7 @@ declare enum internalEnum { c = 2 } ---------------------------------------------------------------------- -text: (1184-1232) +text: (1176-1224) declare class C { doSomething(): void; } @@ -13449,17 +13451,17 @@ declare class C { }, { "pos": 769, - "end": 1182, + "end": 1174, "kind": "internal" }, { - "pos": 1184, - "end": 1232, + "pos": 1176, + "end": 1224, "kind": "text" } ], - "hash": "-69637640283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", - "mapHash": "64998097715-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}" + "hash": "-114771929067-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", + "mapHash": "96265888669-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}" } }, "program": { @@ -13475,14 +13477,13 @@ declare class C { "composite": true, "outFile": "./second-output.js" }, - "outSignature": "-86912100598-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 70000 + "outSignature": "-95739042438-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12318 + "size": 12327 } -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] @@ -13671,7 +13672,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"8404444065-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":156,"kind":"text"}],"mapHash":"26096235382-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-9838630498-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":59000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"8404444065-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":156,"kind":"text"}],"mapHash":"26096235382-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-9838630498-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -13757,10 +13758,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 59000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2184 + "size": 2207 } //// [/src/third/thirdjs/output/third-output.js] @@ -15543,7 +15544,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3179,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3179,"kind":"text"}]},{"pos":3179,"end":3215,"kind":"text"}],"mapHash":"-121698117904-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"12439878523-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":275,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":275,"kind":"text"}]},{"pos":275,"end":294,"kind":"text"}],"mapHash":"-7558054436-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-3056724381-declare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"16720646121-declare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":81000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3179,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3179,"kind":"text"}]},{"pos":3179,"end":3215,"kind":"text"}],"mapHash":"-121698117904-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"12439878523-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":275,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":275,"kind":"text"}]},{"pos":275,"end":294,"kind":"text"}],"mapHash":"-7558054436-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-3056724381-declare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"16720646121-declare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -15765,10 +15766,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "16720646121-declare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 81000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 8029 + "size": 8052 } @@ -15793,22 +15794,22 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:02:09 AM] Projects in this build: +[12:02:02 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:02:10 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:02:03 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:02:11 AM] Building project '/src/first/tsconfig.json'... +[12:02:04 AM] Building project '/src/first/tsconfig.json'... -[12:02:20 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:02:12 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:02:21 AM] Updating output of project '/src/second/tsconfig.json'... +[12:02:13 AM] Updating output of project '/src/second/tsconfig.json'... -[12:02:27 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +[12:02:19 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -[12:02:28 AM] Updating output of project '/src/third/tsconfig.json'... +[12:02:20 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -15836,7 +15837,7 @@ readFiles:: { } //// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -16515,42 +16516,43 @@ sourceFile:../second/second_part1.ts 7 >Emitted(52, 52) Source(34, 66) + SourceIndex(2) 8 >Emitted(52, 53) Source(34, 67) + SourceIndex(2) --- ->>>declare type internalType = internalC; +>>>type internalType = internalC; 1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ +2 >^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +7 > ^^^^-> 1 > >/*@internal*/ 2 >type -3 > internalType -4 > = -5 > internalC -6 > ; +3 > internalType +4 > = +5 > internalC +6 > ; 1 >Emitted(53, 1) Source(35, 15) + SourceIndex(2) -2 >Emitted(53, 14) Source(35, 20) + SourceIndex(2) -3 >Emitted(53, 26) Source(35, 32) + SourceIndex(2) -4 >Emitted(53, 29) Source(35, 35) + SourceIndex(2) -5 >Emitted(53, 38) Source(35, 44) + SourceIndex(2) -6 >Emitted(53, 39) Source(35, 45) + SourceIndex(2) +2 >Emitted(53, 6) Source(35, 20) + SourceIndex(2) +3 >Emitted(53, 18) Source(35, 32) + SourceIndex(2) +4 >Emitted(53, 21) Source(35, 35) + SourceIndex(2) +5 >Emitted(53, 30) Source(35, 44) + SourceIndex(2) +6 >Emitted(53, 31) Source(35, 45) + SourceIndex(2) --- >>>declare const internalConst = 10; -1 > +1-> 2 >^^^^^^^^ 3 > ^^^^^^ 4 > ^^^^^^^^^^^^^ 5 > ^^^^^ 6 > ^ -1 > +1-> >/*@internal*/ 2 > 3 > const 4 > internalConst 5 > = 10 6 > ; -1 >Emitted(54, 1) Source(36, 15) + SourceIndex(2) +1->Emitted(54, 1) Source(36, 15) + SourceIndex(2) 2 >Emitted(54, 9) Source(36, 15) + SourceIndex(2) 3 >Emitted(54, 15) Source(36, 21) + SourceIndex(2) 4 >Emitted(54, 28) Source(36, 34) + SourceIndex(2) @@ -16647,7 +16649,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.d.ts.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":126,"kind":"text"}]},{"pos":126,"end":3179,"kind":"text"}],"mapHash":"25332072687-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-22338327474-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":233,"kind":"text"},{"pos":233,"end":338,"kind":"internal"},{"pos":340,"end":372,"kind":"text"},{"pos":372,"end":764,"kind":"internal"},{"pos":766,"end":769,"kind":"text"},{"pos":769,"end":1182,"kind":"internal"},{"pos":1184,"end":1232,"kind":"text"}],"mapHash":"-5262111010-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-69637640283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-86912100598-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":70000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":126,"kind":"text"}]},{"pos":126,"end":3179,"kind":"text"}],"mapHash":"25332072687-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-22338327474-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":233,"kind":"text"},{"pos":233,"end":338,"kind":"internal"},{"pos":340,"end":372,"kind":"text"},{"pos":372,"end":764,"kind":"internal"},{"pos":766,"end":769,"kind":"text"},{"pos":769,"end":1174,"kind":"internal"},{"pos":1176,"end":1224,"kind":"text"}],"mapHash":"-16943993016-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-114771929067-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-95739042438-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -16831,7 +16833,7 @@ text: (766-769) } ---------------------------------------------------------------------- -internal: (769-1182) +internal: (769-1174) declare class internalC { } declare function internalfoo(): void; @@ -16844,7 +16846,7 @@ declare namespace internalOther.something { } } import internalImport = internalNamespace.someClass; -declare type internalType = internalC; +type internalType = internalC; declare const internalConst = 10; declare enum internalEnum { a = 0, @@ -16852,7 +16854,7 @@ declare enum internalEnum { c = 2 } ---------------------------------------------------------------------- -text: (1184-1232) +text: (1176-1224) declare class C { doSomething(): void; } @@ -16933,17 +16935,17 @@ declare class C { }, { "pos": 769, - "end": 1182, + "end": 1174, "kind": "internal" }, { - "pos": 1184, - "end": 1232, + "pos": 1176, + "end": 1224, "kind": "text" } ], - "hash": "-69637640283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", - "mapHash": "-5262111010-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}" + "hash": "-114771929067-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", + "mapHash": "-16943993016-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}" } }, "program": { @@ -16959,14 +16961,13 @@ declare class C { "composite": true, "outFile": "./second-output.js" }, - "outSignature": "-86912100598-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 70000 + "outSignature": "-95739042438-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12279 + "size": 12289 } -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} @@ -17275,7 +17276,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"8404444065-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":59000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"8404444065-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -17354,10 +17355,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 59000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2130 + "size": 2153 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -17684,7 +17685,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3179,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3179,"kind":"text"}]},{"pos":3179,"end":3215,"kind":"text"}],"mapHash":"-121698117904-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"12439878523-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":316,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":316,"kind":"text"}]},{"pos":316,"end":335,"kind":"text"}],"mapHash":"12830271258-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-24269849145-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-15507760563-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":149000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3179,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3179,"kind":"text"}]},{"pos":3179,"end":3215,"kind":"text"}],"mapHash":"-121698117904-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"12439878523-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":316,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":316,"kind":"text"}]},{"pos":316,"end":335,"kind":"text"}],"mapHash":"12830271258-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-24269849145-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-15507760563-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -17909,9 +17910,9 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-15507760563-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 149000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 8171 + "size": 8193 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-prepend-is-completely-internal.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-prepend-is-completely-internal.js index 914b3c48b8d..67b39fbf094 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-prepend-is-completely-internal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-prepend-is-completely-internal.js @@ -87,9 +87,9 @@ Output:: [12:00:12 AM] Building project '/src/first/tsconfig.json'... -[12:00:23 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:22 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:24 AM] Building project '/src/third/tsconfig.json'... +[12:00:23 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -183,7 +183,7 @@ sourceFile:../first_PART1.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts"],"js":{"sections":[{"pos":0,"end":28,"kind":"text"}],"mapHash":"8137573854-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\"],\"names\":[],\"mappings\":\"AAAA,eAAe,CAAC,IAAM,CAAC,GAAG,CAAC,CAAC\"}","hash":"-14536113207-/* @internal */ var A = 1;\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":20,"kind":"internal"}],"mapHash":"1199471594-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\"],\"names\":[],\"mappings\":\"AAAgB,QAAA,MAAM,CAAC,IAAI,CAAC\"}","hash":"10602481092-declare const A = 1;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts"],"fileInfos":["2890484261-/* @internal */ const A = 1;"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-2963648387-declare const A = 1;\r\n","dtsChangeTime":13000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts"],"js":{"sections":[{"pos":0,"end":28,"kind":"text"}],"mapHash":"8137573854-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\"],\"names\":[],\"mappings\":\"AAAA,eAAe,CAAC,IAAM,CAAC,GAAG,CAAC,CAAC\"}","hash":"-14536113207-/* @internal */ var A = 1;\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":20,"kind":"internal"}],"mapHash":"1199471594-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\"],\"names\":[],\"mappings\":\"AAAgB,QAAA,MAAM,CAAC,IAAI,CAAC\"}","hash":"10602481092-declare const A = 1;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts"],"fileInfos":["2890484261-/* @internal */ const A = 1;"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-2963648387-declare const A = 1;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -242,10 +242,10 @@ declare const A = 1; "outFile": "./first-output.js" }, "outSignature": "-2963648387-declare const A = 1;\r\n", - "dtsChangeTime": 13000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 1013 + "size": 1036 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -325,7 +325,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":28,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":28,"kind":"text"}]},{"pos":28,"end":40,"kind":"text"}],"mapHash":"27220614446-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,eAAe,CAAC,IAAM,CAAC,GAAG,CAAC,CAAC;ACA5B,IAAM,CAAC,GAAG,CAAC,CAAC\"}","hash":"-10155812952-/* @internal */ var A = 1;\r\nvar B = 2;\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":0,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[]},{"pos":0,"end":22,"kind":"text"}],"hash":"1000124863-declare const B = 2;\r\n"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["1943613816-const B = 2;"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"1000124863-declare const B = 2;\r\n","dtsChangeTime":25000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":28,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":28,"kind":"text"}]},{"pos":28,"end":40,"kind":"text"}],"mapHash":"27220614446-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,eAAe,CAAC,IAAM,CAAC,GAAG,CAAC,CAAC;ACA5B,IAAM,CAAC,GAAG,CAAC,CAAC\"}","hash":"-10155812952-/* @internal */ var A = 1;\r\nvar B = 2;\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":0,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[]},{"pos":0,"end":22,"kind":"text"}],"hash":"1000124863-declare const B = 2;\r\n"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["1943613816-const B = 2;"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"1000124863-declare const B = 2;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -412,9 +412,9 @@ declare const B = 2; "outFile": "./third-output.js" }, "outSignature": "1000124863-declare const B = 2;\r\n", - "dtsChangeTime": 25000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 1070 + "size": 1093 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index 19b97c14d01..1e331dc5db1 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -167,13 +167,13 @@ Output:: [12:00:16 AM] Building project '/src/first/tsconfig.json'... -[12:00:27 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:26 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:28 AM] Building project '/src/second/tsconfig.json'... +[12:00:27 AM] Building project '/src/second/tsconfig.json'... -[12:00:39 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:37 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:40 AM] Building project '/src/third/tsconfig.json'... +[12:00:38 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -231,7 +231,7 @@ declare namespace internalOther.something { } } import internalImport = internalNamespace.someClass; -declare type internalType = internalC; +type internalType = internalC; declare const internalConst = 10; declare enum internalEnum { a = 0, @@ -244,7 +244,7 @@ declare class C { //# sourceMappingURL=second-output.d.ts.map //// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -923,42 +923,43 @@ sourceFile:../second/second_part1.ts 7 >Emitted(52, 52) Source(34, 66) + SourceIndex(2) 8 >Emitted(52, 53) Source(34, 67) + SourceIndex(2) --- ->>>declare type internalType = internalC; +>>>type internalType = internalC; 1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ +2 >^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +7 > ^^^^-> 1 > >/*@internal*/ 2 >type -3 > internalType -4 > = -5 > internalC -6 > ; +3 > internalType +4 > = +5 > internalC +6 > ; 1 >Emitted(53, 1) Source(35, 15) + SourceIndex(2) -2 >Emitted(53, 14) Source(35, 20) + SourceIndex(2) -3 >Emitted(53, 26) Source(35, 32) + SourceIndex(2) -4 >Emitted(53, 29) Source(35, 35) + SourceIndex(2) -5 >Emitted(53, 38) Source(35, 44) + SourceIndex(2) -6 >Emitted(53, 39) Source(35, 45) + SourceIndex(2) +2 >Emitted(53, 6) Source(35, 20) + SourceIndex(2) +3 >Emitted(53, 18) Source(35, 32) + SourceIndex(2) +4 >Emitted(53, 21) Source(35, 35) + SourceIndex(2) +5 >Emitted(53, 30) Source(35, 44) + SourceIndex(2) +6 >Emitted(53, 31) Source(35, 45) + SourceIndex(2) --- >>>declare const internalConst = 10; -1 > +1-> 2 >^^^^^^^^ 3 > ^^^^^^ 4 > ^^^^^^^^^^^^^ 5 > ^^^^^ 6 > ^ -1 > +1-> >/*@internal*/ 2 > 3 > const 4 > internalConst 5 > = 10 6 > ; -1 >Emitted(54, 1) Source(36, 15) + SourceIndex(2) +1->Emitted(54, 1) Source(36, 15) + SourceIndex(2) 2 >Emitted(54, 9) Source(36, 15) + SourceIndex(2) 3 >Emitted(54, 15) Source(36, 21) + SourceIndex(2) 4 >Emitted(54, 28) Source(36, 34) + SourceIndex(2) @@ -2850,7 +2851,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":3527,"kind":"text"}],"mapHash":"49450898210-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"35368666403-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/*@internal*/ function internalfoo() { }\r\n/*@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/*@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/*@internal*/ var internalImport = internalNamespace.someClass;\r\n/*@internal*/ var internalConst = 10;\r\n/*@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}]},{"pos":157,"end":234,"kind":"text"},{"pos":234,"end":339,"kind":"internal"},{"pos":341,"end":373,"kind":"text"},{"pos":373,"end":765,"kind":"internal"},{"pos":767,"end":770,"kind":"text"},{"pos":770,"end":1183,"kind":"internal"},{"pos":1185,"end":1233,"kind":"text"}],"mapHash":"-113365255-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-13432536459-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-25454326822-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":29000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":3527,"kind":"text"}],"mapHash":"49450898210-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"35368666403-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/*@internal*/ function internalfoo() { }\r\n/*@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/*@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/*@internal*/ var internalImport = internalNamespace.someClass;\r\n/*@internal*/ var internalConst = 10;\r\n/*@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}]},{"pos":157,"end":234,"kind":"text"},{"pos":234,"end":339,"kind":"internal"},{"pos":341,"end":373,"kind":"text"},{"pos":373,"end":765,"kind":"internal"},{"pos":767,"end":770,"kind":"text"},{"pos":770,"end":1175,"kind":"internal"},{"pos":1177,"end":1225,"kind":"text"}],"mapHash":"13974556515-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-76652520731-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-68578080182-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3035,7 +3036,7 @@ text: (767-770) } ---------------------------------------------------------------------- -internal: (770-1183) +internal: (770-1175) declare class internalC { } declare function internalfoo(): void; @@ -3048,7 +3049,7 @@ declare namespace internalOther.something { } } import internalImport = internalNamespace.someClass; -declare type internalType = internalC; +type internalType = internalC; declare const internalConst = 10; declare enum internalEnum { a = 0, @@ -3056,7 +3057,7 @@ declare enum internalEnum { c = 2 } ---------------------------------------------------------------------- -text: (1185-1233) +text: (1177-1225) declare class C { doSomething(): void; } @@ -3142,17 +3143,17 @@ declare class C { }, { "pos": 770, - "end": 1183, + "end": 1175, "kind": "internal" }, { - "pos": 1185, - "end": 1233, + "pos": 1177, + "end": 1225, "kind": "text" } ], - "hash": "-13432536459-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", - "mapHash": "-113365255-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}" + "hash": "-76652520731-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", + "mapHash": "13974556515-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}" } }, "program": { @@ -3168,11 +3169,11 @@ declare class C { "composite": true, "outFile": "./second-output.js" }, - "outSignature": "-25454326822-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 29000 + "outSignature": "-68578080182-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12804 + "size": 12813 } //// [/src/first/bin/first-output.d.ts] @@ -3476,7 +3477,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-7635519924-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":17000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-7635519924-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3561,10 +3562,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 17000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2115 + "size": 2138 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -5704,7 +5705,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3527,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3527,"kind":"text"}]},{"pos":3527,"end":3563,"kind":"text"}],"mapHash":"139241117891-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"41938302000-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/*@internal*/ function internalfoo() { }\r\n/*@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/*@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/*@internal*/ var internalImport = internalNamespace.someClass;\r\n/*@internal*/ var internalConst = 10;\r\n/*@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":41000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3527,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3527,"kind":"text"}]},{"pos":3527,"end":3563,"kind":"text"}],"mapHash":"139241117891-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"41938302000-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/*@internal*/ function internalfoo() { }\r\n/*@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/*@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/*@internal*/ var internalImport = internalNamespace.someClass;\r\n/*@internal*/ var internalConst = 10;\r\n/*@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5925,10 +5926,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 41000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 8516 + "size": 8539 } @@ -5953,22 +5954,22 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:59 AM] Projects in this build: +[12:00:56 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:00 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:57 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:01 AM] Building project '/src/first/tsconfig.json'... +[12:00:58 AM] Building project '/src/first/tsconfig.json'... -[12:01:10 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:06 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:11 AM] Updating output of project '/src/second/tsconfig.json'... +[12:01:07 AM] Updating output of project '/src/second/tsconfig.json'... -[12:01:18 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +[12:01:14 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -[12:01:19 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:15 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -7798,7 +7799,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3544,"kind":"text"}],"mapHash":"4497977942-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-62899236580-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/*@internal*/ function internalfoo() { }\r\n/*@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/*@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/*@internal*/ var internalImport = internalNamespace.someClass;\r\n/*@internal*/ var internalConst = 10;\r\n/*@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}]},{"pos":157,"end":234,"kind":"text"},{"pos":234,"end":339,"kind":"internal"},{"pos":341,"end":373,"kind":"text"},{"pos":373,"end":765,"kind":"internal"},{"pos":767,"end":770,"kind":"text"},{"pos":770,"end":1183,"kind":"internal"},{"pos":1185,"end":1233,"kind":"text"}],"mapHash":"-113365255-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-13432536459-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-25454326822-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":29000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3544,"kind":"text"}],"mapHash":"4497977942-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-62899236580-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/*@internal*/ function internalfoo() { }\r\n/*@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/*@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/*@internal*/ var internalImport = internalNamespace.someClass;\r\n/*@internal*/ var internalConst = 10;\r\n/*@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}]},{"pos":157,"end":234,"kind":"text"},{"pos":234,"end":339,"kind":"internal"},{"pos":341,"end":373,"kind":"text"},{"pos":373,"end":765,"kind":"internal"},{"pos":767,"end":770,"kind":"text"},{"pos":770,"end":1175,"kind":"internal"},{"pos":1177,"end":1225,"kind":"text"}],"mapHash":"13974556515-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-76652520731-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-68578080182-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -7984,7 +7985,7 @@ text: (767-770) } ---------------------------------------------------------------------- -internal: (770-1183) +internal: (770-1175) declare class internalC { } declare function internalfoo(): void; @@ -7997,7 +7998,7 @@ declare namespace internalOther.something { } } import internalImport = internalNamespace.someClass; -declare type internalType = internalC; +type internalType = internalC; declare const internalConst = 10; declare enum internalEnum { a = 0, @@ -8005,7 +8006,7 @@ declare enum internalEnum { c = 2 } ---------------------------------------------------------------------- -text: (1185-1233) +text: (1177-1225) declare class C { doSomething(): void; } @@ -8091,17 +8092,17 @@ declare class C { }, { "pos": 770, - "end": 1183, + "end": 1175, "kind": "internal" }, { - "pos": 1185, - "end": 1233, + "pos": 1177, + "end": 1225, "kind": "text" } ], - "hash": "-13432536459-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", - "mapHash": "-113365255-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}" + "hash": "-76652520731-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", + "mapHash": "13974556515-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}" } }, "program": { @@ -8117,14 +8118,13 @@ declare class C { "composite": true, "outFile": "./second-output.js" }, - "outSignature": "-25454326822-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 29000 + "outSignature": "-68578080182-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12863 + "size": 12872 } -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] @@ -8313,7 +8313,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-8483255506-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":17000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-8483255506-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8399,10 +8399,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 17000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2188 + "size": 2211 } //// [/src/third/thirdjs/output/third-output.js] @@ -10285,7 +10285,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3544,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3544,"kind":"text"}]},{"pos":3544,"end":3580,"kind":"text"}],"mapHash":"92086003575-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-58627043959-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/*@internal*/ function internalfoo() { }\r\n/*@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/*@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/*@internal*/ var internalImport = internalNamespace.someClass;\r\n/*@internal*/ var internalConst = 10;\r\n/*@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":41000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3544,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3544,"kind":"text"}]},{"pos":3544,"end":3580,"kind":"text"}],"mapHash":"92086003575-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-58627043959-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/*@internal*/ function internalfoo() { }\r\n/*@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/*@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/*@internal*/ var internalImport = internalNamespace.someClass;\r\n/*@internal*/ var internalConst = 10;\r\n/*@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -10507,10 +10507,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 41000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 8575 + "size": 8598 } @@ -10535,28 +10535,28 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:31 AM] Projects in this build: +[12:01:27 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:32 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:28 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:33 AM] Building project '/src/first/tsconfig.json'... +[12:01:29 AM] Building project '/src/first/tsconfig.json'... -[12:01:42 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:37 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:43 AM] Updating output of project '/src/second/tsconfig.json'... +[12:01:38 AM] Updating output of project '/src/second/tsconfig.json'... -[12:01:49 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +[12:01:44 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -[12:01:50 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:45 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success //// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -11235,42 +11235,43 @@ sourceFile:../second/second_part1.ts 7 >Emitted(52, 52) Source(34, 66) + SourceIndex(2) 8 >Emitted(52, 53) Source(34, 67) + SourceIndex(2) --- ->>>declare type internalType = internalC; +>>>type internalType = internalC; 1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ +2 >^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +7 > ^^^^-> 1 > >/*@internal*/ 2 >type -3 > internalType -4 > = -5 > internalC -6 > ; +3 > internalType +4 > = +5 > internalC +6 > ; 1 >Emitted(53, 1) Source(35, 15) + SourceIndex(2) -2 >Emitted(53, 14) Source(35, 20) + SourceIndex(2) -3 >Emitted(53, 26) Source(35, 32) + SourceIndex(2) -4 >Emitted(53, 29) Source(35, 35) + SourceIndex(2) -5 >Emitted(53, 38) Source(35, 44) + SourceIndex(2) -6 >Emitted(53, 39) Source(35, 45) + SourceIndex(2) +2 >Emitted(53, 6) Source(35, 20) + SourceIndex(2) +3 >Emitted(53, 18) Source(35, 32) + SourceIndex(2) +4 >Emitted(53, 21) Source(35, 35) + SourceIndex(2) +5 >Emitted(53, 30) Source(35, 44) + SourceIndex(2) +6 >Emitted(53, 31) Source(35, 45) + SourceIndex(2) --- >>>declare const internalConst = 10; -1 > +1-> 2 >^^^^^^^^ 3 > ^^^^^^ 4 > ^^^^^^^^^^^^^ 5 > ^^^^^ 6 > ^ -1 > +1-> >/*@internal*/ 2 > 3 > const 4 > internalConst 5 > = 10 6 > ; -1 >Emitted(54, 1) Source(36, 15) + SourceIndex(2) +1->Emitted(54, 1) Source(36, 15) + SourceIndex(2) 2 >Emitted(54, 9) Source(36, 15) + SourceIndex(2) 3 >Emitted(54, 15) Source(36, 21) + SourceIndex(2) 4 >Emitted(54, 28) Source(36, 34) + SourceIndex(2) @@ -11367,7 +11368,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.d.ts.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3544,"kind":"text"}],"mapHash":"4497977942-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-62899236580-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/*@internal*/ function internalfoo() { }\r\n/*@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/*@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/*@internal*/ var internalImport = internalNamespace.someClass;\r\n/*@internal*/ var internalConst = 10;\r\n/*@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":234,"kind":"text"},{"pos":234,"end":339,"kind":"internal"},{"pos":341,"end":373,"kind":"text"},{"pos":373,"end":765,"kind":"internal"},{"pos":767,"end":770,"kind":"text"},{"pos":770,"end":1183,"kind":"internal"},{"pos":1185,"end":1233,"kind":"text"}],"mapHash":"28410673828-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-13432536459-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-25454326822-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":29000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3544,"kind":"text"}],"mapHash":"4497977942-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-62899236580-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/*@internal*/ function internalfoo() { }\r\n/*@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/*@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/*@internal*/ var internalImport = internalNamespace.someClass;\r\n/*@internal*/ var internalConst = 10;\r\n/*@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":234,"kind":"text"},{"pos":234,"end":339,"kind":"internal"},{"pos":341,"end":373,"kind":"text"},{"pos":373,"end":765,"kind":"internal"},{"pos":767,"end":770,"kind":"text"},{"pos":770,"end":1175,"kind":"internal"},{"pos":1177,"end":1225,"kind":"text"}],"mapHash":"55383497486-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-76652520731-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-68578080182-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -11551,7 +11552,7 @@ text: (767-770) } ---------------------------------------------------------------------- -internal: (770-1183) +internal: (770-1175) declare class internalC { } declare function internalfoo(): void; @@ -11564,7 +11565,7 @@ declare namespace internalOther.something { } } import internalImport = internalNamespace.someClass; -declare type internalType = internalC; +type internalType = internalC; declare const internalConst = 10; declare enum internalEnum { a = 0, @@ -11572,7 +11573,7 @@ declare enum internalEnum { c = 2 } ---------------------------------------------------------------------- -text: (1185-1233) +text: (1177-1225) declare class C { doSomething(): void; } @@ -11653,17 +11654,17 @@ declare class C { }, { "pos": 770, - "end": 1183, + "end": 1175, "kind": "internal" }, { - "pos": 1185, - "end": 1233, + "pos": 1177, + "end": 1225, "kind": "text" } ], - "hash": "-13432536459-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", - "mapHash": "28410673828-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}" + "hash": "-76652520731-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", + "mapHash": "55383497486-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}" } }, "program": { @@ -11679,14 +11680,13 @@ declare class C { "composite": true, "outFile": "./second-output.js" }, - "outSignature": "-25454326822-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 29000 + "outSignature": "-68578080182-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12825 + "size": 12833 } -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} @@ -11995,7 +11995,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":17000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -12074,10 +12074,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 17000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2136 + "size": 2159 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -12404,7 +12404,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3544,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3544,"kind":"text"}]},{"pos":3544,"end":3580,"kind":"text"}],"mapHash":"92086003575-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-58627043959-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/*@internal*/ function internalfoo() { }\r\n/*@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/*@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/*@internal*/ var internalImport = internalNamespace.someClass;\r\n/*@internal*/ var internalConst = 10;\r\n/*@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":317,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":317,"kind":"text"}]},{"pos":317,"end":336,"kind":"text"}],"mapHash":"-6546370592-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-17624507241-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-3274754787-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":111000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3544,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3544,"kind":"text"}]},{"pos":3544,"end":3580,"kind":"text"}],"mapHash":"92086003575-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-58627043959-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/*@internal*/ function internalfoo() { }\r\n/*@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/*@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/*@internal*/ var internalImport = internalNamespace.someClass;\r\n/*@internal*/ var internalConst = 10;\r\n/*@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":317,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":317,"kind":"text"}]},{"pos":317,"end":336,"kind":"text"}],"mapHash":"-6546370592-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-17624507241-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-3274754787-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -12629,9 +12629,9 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-3274754787-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 111000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 8716 + "size": 8738 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled.js index eee20bb14d4..78d5174dd6b 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled.js @@ -166,13 +166,13 @@ Output:: [12:00:14 AM] Building project '/src/first/tsconfig.json'... -[12:00:25 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:24 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:26 AM] Building project '/src/second/tsconfig.json'... +[12:00:25 AM] Building project '/src/second/tsconfig.json'... -[12:00:37 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:35 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:38 AM] Building project '/src/third/tsconfig.json'... +[12:00:36 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -222,7 +222,7 @@ declare namespace internalOther.something { } } import internalImport = internalNamespace.someClass; -declare type internalType = internalC; +type internalType = internalC; declare const internalConst = 10; declare enum internalEnum { a = 0, @@ -235,7 +235,7 @@ declare class C { //# sourceMappingURL=second-output.d.ts.map //// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -794,42 +794,43 @@ sourceFile:../second/second_part1.ts 7 >Emitted(44, 52) Source(34, 66) + SourceIndex(0) 8 >Emitted(44, 53) Source(34, 67) + SourceIndex(0) --- ->>>declare type internalType = internalC; +>>>type internalType = internalC; 1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ +2 >^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +7 > ^^^^-> 1 > >/*@internal*/ 2 >type -3 > internalType -4 > = -5 > internalC -6 > ; +3 > internalType +4 > = +5 > internalC +6 > ; 1 >Emitted(45, 1) Source(35, 15) + SourceIndex(0) -2 >Emitted(45, 14) Source(35, 20) + SourceIndex(0) -3 >Emitted(45, 26) Source(35, 32) + SourceIndex(0) -4 >Emitted(45, 29) Source(35, 35) + SourceIndex(0) -5 >Emitted(45, 38) Source(35, 44) + SourceIndex(0) -6 >Emitted(45, 39) Source(35, 45) + SourceIndex(0) +2 >Emitted(45, 6) Source(35, 20) + SourceIndex(0) +3 >Emitted(45, 18) Source(35, 32) + SourceIndex(0) +4 >Emitted(45, 21) Source(35, 35) + SourceIndex(0) +5 >Emitted(45, 30) Source(35, 44) + SourceIndex(0) +6 >Emitted(45, 31) Source(35, 45) + SourceIndex(0) --- >>>declare const internalConst = 10; -1 > +1-> 2 >^^^^^^^^ 3 > ^^^^^^ 4 > ^^^^^^^^^^^^^ 5 > ^^^^^ 6 > ^ -1 > +1-> >/*@internal*/ 2 > 3 > const 4 > internalConst 5 > = 10 6 > ; -1 >Emitted(46, 1) Source(36, 15) + SourceIndex(0) +1->Emitted(46, 1) Source(36, 15) + SourceIndex(0) 2 >Emitted(46, 9) Source(36, 15) + SourceIndex(0) 3 >Emitted(46, 15) Source(36, 21) + SourceIndex(0) 4 >Emitted(46, 28) Source(36, 34) + SourceIndex(0) @@ -2580,7 +2581,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":3417,"kind":"text"}],"mapHash":"-2464084269-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-136024231077-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/*@internal*/ function internalfoo() { }\r\n/*@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/*@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/*@internal*/ var internalImport = internalNamespace.someClass;\r\n/*@internal*/ var internalConst = 10;\r\n/*@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":77,"kind":"text"},{"pos":77,"end":182,"kind":"internal"},{"pos":184,"end":216,"kind":"text"},{"pos":216,"end":608,"kind":"internal"},{"pos":610,"end":613,"kind":"text"},{"pos":613,"end":1026,"kind":"internal"},{"pos":1028,"end":1076,"kind":"text"}],"mapHash":"-21406246021-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-9468064165-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-20504865920-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":27000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":3417,"kind":"text"}],"mapHash":"-2464084269-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-136024231077-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/*@internal*/ function internalfoo() { }\r\n/*@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/*@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/*@internal*/ var internalImport = internalNamespace.someClass;\r\n/*@internal*/ var internalConst = 10;\r\n/*@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":77,"kind":"text"},{"pos":77,"end":182,"kind":"internal"},{"pos":184,"end":216,"kind":"text"},{"pos":216,"end":608,"kind":"internal"},{"pos":610,"end":613,"kind":"text"},{"pos":613,"end":1018,"kind":"internal"},{"pos":1020,"end":1068,"kind":"text"}],"mapHash":"-11613291547-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"11189477579-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"2446199792-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2739,7 +2740,7 @@ text: (610-613) } ---------------------------------------------------------------------- -internal: (613-1026) +internal: (613-1018) declare class internalC { } declare function internalfoo(): void; @@ -2752,7 +2753,7 @@ declare namespace internalOther.something { } } import internalImport = internalNamespace.someClass; -declare type internalType = internalC; +type internalType = internalC; declare const internalConst = 10; declare enum internalEnum { a = 0, @@ -2760,7 +2761,7 @@ declare enum internalEnum { c = 2 } ---------------------------------------------------------------------- -text: (1028-1076) +text: (1020-1068) declare class C { doSomething(): void; } @@ -2815,17 +2816,17 @@ declare class C { }, { "pos": 613, - "end": 1026, + "end": 1018, "kind": "internal" }, { - "pos": 1028, - "end": 1076, + "pos": 1020, + "end": 1068, "kind": "text" } ], - "hash": "-9468064165-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", - "mapHash": "-21406246021-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}" + "hash": "11189477579-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", + "mapHash": "-11613291547-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}" } }, "program": { @@ -2841,11 +2842,11 @@ declare class C { "composite": true, "outFile": "./second-output.js" }, - "outSignature": "-20504865920-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 27000 + "outSignature": "2446199792-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 11594 + "size": 11600 } //// [/src/first/bin/first-output.d.ts] @@ -3149,7 +3150,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-7635519924-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":15000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-7635519924-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3234,10 +3235,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 15000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2115 + "size": 2138 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -5377,7 +5378,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":3527,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":3527,"kind":"text"}]},{"pos":3527,"end":3563,"kind":"text"}],"mapHash":"139241117891-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"41938302000-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/*@internal*/ function internalfoo() { }\r\n/*@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/*@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/*@internal*/ var internalImport = internalNamespace.someClass;\r\n/*@internal*/ var internalConst = 10;\r\n/*@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":116,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":116,"kind":"text"}]},{"pos":116,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":116,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":39000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":3527,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":3527,"kind":"text"}]},{"pos":3527,"end":3563,"kind":"text"}],"mapHash":"139241117891-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"41938302000-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/*@internal*/ function internalfoo() { }\r\n/*@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/*@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/*@internal*/ var internalImport = internalNamespace.someClass;\r\n/*@internal*/ var internalConst = 10;\r\n/*@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":116,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":116,"kind":"text"}]},{"pos":116,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":116,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5634,10 +5635,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 39000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 8776 + "size": 8799 } @@ -5662,25 +5663,24 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:57 AM] Projects in this build: +[12:00:54 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:58 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:55 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:59 AM] Building project '/src/first/tsconfig.json'... +[12:00:56 AM] Building project '/src/first/tsconfig.json'... -[12:01:08 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:04 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:09 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:05 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:10 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:06 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] @@ -5869,7 +5869,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-8483255506-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":15000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-8483255506-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5955,10 +5955,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 15000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2188 + "size": 2211 } //// [/src/third/thirdjs/output/third-output.js] @@ -7841,7 +7841,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3544,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":3544,"kind":"text"}]},{"pos":3544,"end":3580,"kind":"text"}],"mapHash":"92086003575-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-58627043959-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/*@internal*/ function internalfoo() { }\r\n/*@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/*@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/*@internal*/ var internalImport = internalNamespace.someClass;\r\n/*@internal*/ var internalConst = 10;\r\n/*@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":116,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":116,"kind":"text"}]},{"pos":116,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":116,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":39000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3544,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":3544,"kind":"text"}]},{"pos":3544,"end":3580,"kind":"text"}],"mapHash":"92086003575-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-58627043959-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/*@internal*/ function internalfoo() { }\r\n/*@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/*@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/*@internal*/ var internalImport = internalNamespace.someClass;\r\n/*@internal*/ var internalConst = 10;\r\n/*@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":116,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":116,"kind":"text"}]},{"pos":116,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":116,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8099,10 +8099,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 39000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 8835 + "size": 8858 } @@ -8127,25 +8127,24 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:21 AM] Projects in this build: +[12:01:17 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:22 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:18 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:23 AM] Building project '/src/first/tsconfig.json'... +[12:01:19 AM] Building project '/src/first/tsconfig.json'... -[12:01:32 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:27 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:33 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:28 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:34 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:29 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} @@ -8454,7 +8453,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":15000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8533,10 +8532,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 15000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2136 + "size": 2159 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -8863,7 +8862,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3544,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":3544,"kind":"text"}]},{"pos":3544,"end":3580,"kind":"text"}],"mapHash":"92086003575-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-58627043959-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/*@internal*/ function internalfoo() { }\r\n/*@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/*@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/*@internal*/ var internalImport = internalNamespace.someClass;\r\n/*@internal*/ var internalConst = 10;\r\n/*@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":317,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":317,"kind":"text"}]},{"pos":317,"end":336,"kind":"text"}],"mapHash":"-6546370592-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-17624507241-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-3274754787-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":95000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3544,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":3544,"kind":"text"}]},{"pos":3544,"end":3580,"kind":"text"}],"mapHash":"92086003575-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-58627043959-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = /** @class */ (function () {\r\n /*@internal*/ function normalC() {\r\n }\r\n /*@internal*/ normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n /*@internal*/ get: function () { return 10; },\r\n /*@internal*/ set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n /*@internal*/ var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n /*@internal*/ function foo() { }\r\n normalN.foo = foo;\r\n /*@internal*/ var someNamespace;\r\n (function (someNamespace) {\r\n var C = /** @class */ (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n /*@internal*/ var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n /*@internal*/ normalN.someImport = someNamespace.C;\r\n /*@internal*/ normalN.internalConst = 10;\r\n /*@internal*/ var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\n/*@internal*/ var internalC = /** @class */ (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\n/*@internal*/ function internalfoo() { }\r\n/*@internal*/ var internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\n/*@internal*/ var internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = /** @class */ (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\n/*@internal*/ var internalImport = internalNamespace.someClass;\r\n/*@internal*/ var internalConst = 10;\r\n/*@internal*/ var internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = /** @class */ (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":317,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":317,"kind":"text"}]},{"pos":317,"end":336,"kind":"text"}],"mapHash":"-6546370592-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-17624507241-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-3274754787-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -9124,9 +9123,9 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-3274754787-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 95000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 8975 + "size": 8998 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal.js index d90bc19d7d7..92e1d292ada 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal.js @@ -166,13 +166,13 @@ Output:: [12:00:11 AM] Building project '/src/first/tsconfig.json'... -[12:00:22 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:21 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:23 AM] Building project '/src/second/tsconfig.json'... +[12:00:22 AM] Building project '/src/second/tsconfig.json'... -[12:00:34 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:32 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:35 AM] Building project '/src/third/tsconfig.json'... +[12:00:33 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -242,7 +242,7 @@ declare namespace internalOther.something { } } import internalImport = internalNamespace.someClass; -declare type internalType = internalC; +type internalType = internalC; declare const internalConst = 10; declare enum internalEnum { a = 0, @@ -255,7 +255,7 @@ declare class C { //# sourceMappingURL=second-output.d.ts.map //// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -814,42 +814,43 @@ sourceFile:../second/second_part1.ts 7 >Emitted(44, 52) Source(34, 66) + SourceIndex(0) 8 >Emitted(44, 53) Source(34, 67) + SourceIndex(0) --- ->>>declare type internalType = internalC; +>>>type internalType = internalC; 1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ +2 >^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +7 > ^^^^-> 1 > >/*@internal*/ 2 >type -3 > internalType -4 > = -5 > internalC -6 > ; +3 > internalType +4 > = +5 > internalC +6 > ; 1 >Emitted(45, 1) Source(35, 15) + SourceIndex(0) -2 >Emitted(45, 14) Source(35, 20) + SourceIndex(0) -3 >Emitted(45, 26) Source(35, 32) + SourceIndex(0) -4 >Emitted(45, 29) Source(35, 35) + SourceIndex(0) -5 >Emitted(45, 38) Source(35, 44) + SourceIndex(0) -6 >Emitted(45, 39) Source(35, 45) + SourceIndex(0) +2 >Emitted(45, 6) Source(35, 20) + SourceIndex(0) +3 >Emitted(45, 18) Source(35, 32) + SourceIndex(0) +4 >Emitted(45, 21) Source(35, 35) + SourceIndex(0) +5 >Emitted(45, 30) Source(35, 44) + SourceIndex(0) +6 >Emitted(45, 31) Source(35, 45) + SourceIndex(0) --- >>>declare const internalConst = 10; -1 > +1-> 2 >^^^^^^^^ 3 > ^^^^^^ 4 > ^^^^^^^^^^^^^ 5 > ^^^^^ 6 > ^ -1 > +1-> >/*@internal*/ 2 > 3 > const 4 > internalConst 5 > = 10 6 > ; -1 >Emitted(46, 1) Source(36, 15) + SourceIndex(0) +1->Emitted(46, 1) Source(36, 15) + SourceIndex(0) 2 >Emitted(46, 9) Source(36, 15) + SourceIndex(0) 3 >Emitted(46, 15) Source(36, 21) + SourceIndex(0) 4 >Emitted(46, 28) Source(36, 34) + SourceIndex(0) @@ -2500,7 +2501,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":3053,"kind":"text"}],"mapHash":"47594977138-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-8314017635-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":77,"kind":"text"},{"pos":77,"end":182,"kind":"internal"},{"pos":184,"end":216,"kind":"text"},{"pos":216,"end":608,"kind":"internal"},{"pos":610,"end":613,"kind":"text"},{"pos":613,"end":1026,"kind":"internal"},{"pos":1028,"end":1076,"kind":"text"}],"mapHash":"-21406246021-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-9468064165-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-20504865920-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":24000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":3053,"kind":"text"}],"mapHash":"47594977138-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-8314017635-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":77,"kind":"text"},{"pos":77,"end":182,"kind":"internal"},{"pos":184,"end":216,"kind":"text"},{"pos":216,"end":608,"kind":"internal"},{"pos":610,"end":613,"kind":"text"},{"pos":613,"end":1018,"kind":"internal"},{"pos":1020,"end":1068,"kind":"text"}],"mapHash":"-11613291547-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"11189477579-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"2446199792-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2659,7 +2660,7 @@ text: (610-613) } ---------------------------------------------------------------------- -internal: (613-1026) +internal: (613-1018) declare class internalC { } declare function internalfoo(): void; @@ -2672,7 +2673,7 @@ declare namespace internalOther.something { } } import internalImport = internalNamespace.someClass; -declare type internalType = internalC; +type internalType = internalC; declare const internalConst = 10; declare enum internalEnum { a = 0, @@ -2680,7 +2681,7 @@ declare enum internalEnum { c = 2 } ---------------------------------------------------------------------- -text: (1028-1076) +text: (1020-1068) declare class C { doSomething(): void; } @@ -2735,17 +2736,17 @@ declare class C { }, { "pos": 613, - "end": 1026, + "end": 1018, "kind": "internal" }, { - "pos": 1028, - "end": 1076, + "pos": 1020, + "end": 1068, "kind": "text" } ], - "hash": "-9468064165-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", - "mapHash": "-21406246021-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}" + "hash": "11189477579-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map", + "mapHash": "-11613291547-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}" } }, "program": { @@ -2761,11 +2762,11 @@ declare class C { "composite": true, "outFile": "./second-output.js" }, - "outSignature": "-20504865920-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ndeclare type internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 24000 + "outSignature": "2446199792-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n constructor();\r\n prop: string;\r\n method(): void;\r\n get c(): number;\r\n set c(val: number);\r\n}\r\ndeclare namespace normalN {\r\n class C {\r\n }\r\n function foo(): void;\r\n namespace someNamespace {\r\n class C {\r\n }\r\n }\r\n namespace someOther.something {\r\n class someClass {\r\n }\r\n }\r\n export import someImport = someNamespace.C;\r\n type internalType = internalC;\r\n const internalConst = 10;\r\n enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n }\r\n}\r\ndeclare class internalC {\r\n}\r\ndeclare function internalfoo(): void;\r\ndeclare namespace internalNamespace {\r\n class someClass {\r\n }\r\n}\r\ndeclare namespace internalOther.something {\r\n class someClass {\r\n }\r\n}\r\nimport internalImport = internalNamespace.someClass;\r\ntype internalType = internalC;\r\ndeclare const internalConst = 10;\r\ndeclare enum internalEnum {\r\n a = 0,\r\n b = 1,\r\n c = 2\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 11048 + "size": 11054 } //// [/src/first/bin/first-output.d.ts] @@ -3069,7 +3070,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-7635519924-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":12000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-7635519924-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3154,10 +3155,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 12000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2115 + "size": 2138 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -5197,7 +5198,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":3163,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":3163,"kind":"text"}]},{"pos":3163,"end":3199,"kind":"text"}],"mapHash":"-8086338046-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"154908145202-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":116,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":116,"kind":"text"}]},{"pos":116,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":116,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":36000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":3163,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":3163,"kind":"text"}]},{"pos":3163,"end":3199,"kind":"text"}],"mapHash":"-8086338046-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"154908145202-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":116,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":116,"kind":"text"}]},{"pos":116,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":116,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"12393711795-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5454,10 +5455,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "20880580153-declare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 36000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 8232 + "size": 8255 } @@ -5482,20 +5483,20 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:54 AM] Projects in this build: +[12:00:51 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:55 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:52 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:56 AM] Building project '/src/first/tsconfig.json'... +[12:00:53 AM] Building project '/src/first/tsconfig.json'... -[12:01:06 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:02 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:07 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:03 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:01:08 AM] Building project '/src/third/tsconfig.json'... +[12:01:04 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -5820,7 +5821,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"text"}],"mapHash":"-23743024037-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-17751605528-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":156,"kind":"text"}],"mapHash":"26096235382-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-12716948804-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":57000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"text"}],"mapHash":"-23743024037-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-17751605528-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":156,"kind":"text"}],"mapHash":"26096235382-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-12716948804-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5905,10 +5906,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 57000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2113 + "size": 2136 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -7948,7 +7949,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":109,"kind":"text"}]},{"pos":109,"end":3162,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":109,"end":3162,"kind":"text"}]},{"pos":3162,"end":3198,"kind":"text"}],"mapHash":"175025764412-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-77350621790-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":115,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":115,"kind":"text"}]},{"pos":115,"end":275,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":115,"end":275,"kind":"text"}]},{"pos":275,"end":294,"kind":"text"}],"mapHash":"-7558054436-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-3056724381-declare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"16720646121-declare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":69000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":109,"kind":"text"}]},{"pos":109,"end":3162,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":109,"end":3162,"kind":"text"}]},{"pos":3162,"end":3198,"kind":"text"}],"mapHash":"175025764412-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-77350621790-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":115,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":115,"kind":"text"}]},{"pos":115,"end":275,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":115,"end":275,"kind":"text"}]},{"pos":275,"end":294,"kind":"text"}],"mapHash":"-7558054436-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-3056724381-declare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"16720646121-declare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8205,10 +8206,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "16720646121-declare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 69000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 8230 + "size": 8253 } @@ -8233,20 +8234,20 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:23 AM] Projects in this build: +[12:01:18 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:24 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:19 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:25 AM] Building project '/src/first/tsconfig.json'... +[12:01:20 AM] Building project '/src/first/tsconfig.json'... -[12:01:34 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:28 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:35 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:29 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:36 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:30 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -8273,7 +8274,6 @@ readFiles:: { "/src/2/second-output.d.ts.map": 1 } -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] @@ -8462,7 +8462,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"8404444065-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":156,"kind":"text"}],"mapHash":"26096235382-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-9838630498-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":57000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"8404444065-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":156,"kind":"text"}],"mapHash":"26096235382-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-9838630498-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8548,10 +8548,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 57000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2184 + "size": 2207 } //// [/src/third/thirdjs/output/third-output.js] @@ -10334,7 +10334,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":126,"kind":"text"}]},{"pos":126,"end":3179,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":126,"end":3179,"kind":"text"}]},{"pos":3179,"end":3215,"kind":"text"}],"mapHash":"-121698117904-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"12439878523-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":115,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":115,"kind":"text"}]},{"pos":115,"end":275,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":115,"end":275,"kind":"text"}]},{"pos":275,"end":294,"kind":"text"}],"mapHash":"-7558054436-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-3056724381-declare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"16720646121-declare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":69000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":126,"kind":"text"}]},{"pos":126,"end":3179,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":126,"end":3179,"kind":"text"}]},{"pos":3179,"end":3215,"kind":"text"}],"mapHash":"-121698117904-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"12439878523-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":115,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":115,"kind":"text"}]},{"pos":115,"end":275,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":115,"end":275,"kind":"text"}]},{"pos":275,"end":294,"kind":"text"}],"mapHash":"-7558054436-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-3056724381-declare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"16720646121-declare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -10592,10 +10592,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "16720646121-declare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 69000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 8289 + "size": 8312 } @@ -10620,20 +10620,20 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:47 AM] Projects in this build: +[12:01:41 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:48 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:42 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:49 AM] Building project '/src/first/tsconfig.json'... +[12:01:43 AM] Building project '/src/first/tsconfig.json'... -[12:01:58 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:51 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:59 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:52 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:02:00 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:53 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -10660,7 +10660,6 @@ readFiles:: { "/src/2/second-output.d.ts.map": 1 } -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} @@ -10969,7 +10968,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"8404444065-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":57000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"8404444065-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-15939443882-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -11048,10 +11047,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-11343140977-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 57000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2130 + "size": 2153 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -11378,7 +11377,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":126,"kind":"text"}]},{"pos":126,"end":3179,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":126,"end":3179,"kind":"text"}]},{"pos":3179,"end":3215,"kind":"text"}],"mapHash":"-121698117904-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"12439878523-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":316,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":316,"kind":"text"}]},{"pos":316,"end":335,"kind":"text"}],"mapHash":"12830271258-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-24269849145-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-15507760563-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":121000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":126,"kind":"text"}]},{"pos":126,"end":3179,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":126,"end":3179,"kind":"text"}]},{"pos":3179,"end":3215,"kind":"text"}],"mapHash":"-121698117904-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"12439878523-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar normalC = (function () {\r\n function normalC() {\r\n }\r\n normalC.prototype.method = function () { };\r\n Object.defineProperty(normalC.prototype, \"c\", {\r\n get: function () { return 10; },\r\n set: function (val) { },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return normalC;\r\n}());\r\nvar normalN;\r\n(function (normalN) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n normalN.C = C;\r\n function foo() { }\r\n normalN.foo = foo;\r\n var someNamespace;\r\n (function (someNamespace) {\r\n var C = (function () {\r\n function C() {\r\n }\r\n return C;\r\n }());\r\n someNamespace.C = C;\r\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\r\n var someOther;\r\n (function (someOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = someOther.something || (someOther.something = {}));\r\n })(someOther = normalN.someOther || (normalN.someOther = {}));\r\n normalN.someImport = someNamespace.C;\r\n normalN.internalConst = 10;\r\n var internalEnum;\r\n (function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\r\n})(normalN || (normalN = {}));\r\nvar internalC = (function () {\r\n function internalC() {\r\n }\r\n return internalC;\r\n}());\r\nfunction internalfoo() { }\r\nvar internalNamespace;\r\n(function (internalNamespace) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n internalNamespace.someClass = someClass;\r\n})(internalNamespace || (internalNamespace = {}));\r\nvar internalOther;\r\n(function (internalOther) {\r\n var something;\r\n (function (something) {\r\n var someClass = (function () {\r\n function someClass() {\r\n }\r\n return someClass;\r\n }());\r\n something.someClass = someClass;\r\n })(something = internalOther.something || (internalOther.something = {}));\r\n})(internalOther || (internalOther = {}));\r\nvar internalImport = internalNamespace.someClass;\r\nvar internalConst = 10;\r\nvar internalEnum;\r\n(function (internalEnum) {\r\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\r\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\r\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\r\n})(internalEnum || (internalEnum = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":316,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":316,"kind":"text"}]},{"pos":316,"end":335,"kind":"text"}],"mapHash":"12830271258-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-24269849145-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-15507760563-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -11639,9 +11638,9 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-15507760563-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class normalC {\r\n}\r\ndeclare namespace normalN {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 121000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 8431 + "size": 8453 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-all-projects.js index bb5a3da2b76..a8faa9fa6ba 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-all-projects.js @@ -155,13 +155,13 @@ Output:: [12:00:14 AM] Building project '/src/first/tsconfig.json'... -[12:00:25 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:24 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:26 AM] Building project '/src/second/tsconfig.json'... +[12:00:25 AM] Building project '/src/second/tsconfig.json'... -[12:00:37 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:35 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:38 AM] Building project '/src/third/tsconfig.json'... +[12:00:36 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -629,7 +629,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":336,"kind":"text"}],"mapHash":"6635165462-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AACA,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"22409784724-var second_part1Const = new secondsecond_part1();\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":49,"kind":"reference","data":"../second/tripleRef.d.ts"},{"pos":51,"end":205,"kind":"text"}],"mapHash":"-3800548159-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7138999361-/// \r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts","../second/tripleref.d.ts"],"fileInfos":["-823890693-///\nconst second_part1Const = new secondsecond_part1();\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n","-742713438-declare class secondsecond_part1 { }"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-1874117338-/// \r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":27000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":336,"kind":"text"}],"mapHash":"6635165462-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AACA,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"22409784724-var second_part1Const = new secondsecond_part1();\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":49,"kind":"reference","data":"../second/tripleRef.d.ts"},{"pos":51,"end":205,"kind":"text"}],"mapHash":"-3800548159-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7138999361-/// \r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts","../second/tripleref.d.ts"],"fileInfos":["-823890693-///\nconst second_part1Const = new secondsecond_part1();\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n","-742713438-declare class secondsecond_part1 { }"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-1874117338-/// \r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -725,10 +725,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "-1874117338-/// \r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 27000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2762 + "size": 2786 } //// [/src/first/bin/first-output.d.ts] @@ -1089,7 +1089,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":158,"kind":"text"}],"mapHash":"-46474879684-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"28384366618-var s = \"Hello, world\";\r\nconsole.log(s);\r\nvar first_part2Const = new firstfirst_part2();\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":42,"kind":"reference","data":"../tripleRef.d.ts"},{"pos":44,"end":252,"kind":"text"}],"mapHash":"28011477375-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET\"}","hash":"17759686593-/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","1679819683-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"27529827898-/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\n","dtsChangeTime":15000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":158,"kind":"text"}],"mapHash":"-46474879684-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"28384366618-var s = \"Hello, world\";\r\nconsole.log(s);\r\nvar first_part2Const = new firstfirst_part2();\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":42,"kind":"reference","data":"../tripleRef.d.ts"},{"pos":44,"end":252,"kind":"text"}],"mapHash":"28011477375-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET\"}","hash":"17759686593-/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","1679819683-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"27529827898-/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1178,10 +1178,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "27529827898-/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 15000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2553 + "size": 2576 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -2086,7 +2086,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":158,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":158,"kind":"text"}]},{"pos":158,"end":494,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":158,"end":494,"kind":"text"}]},{"pos":494,"end":578,"kind":"text"}],"mapHash":"44476692060-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-22392504284-var s = \"Hello, world\";\r\nconsole.log(s);\r\nvar first_part2Const = new firstfirst_part2();\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar second_part1Const = new secondsecond_part1();\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar third_part1Const = new thirdthird_part1();\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":45,"kind":"reference","data":"../../tripleRef.d.ts"},{"pos":47,"end":101,"kind":"reference","data":"../../../first/tripleRef.d.ts"},{"pos":103,"end":158,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":160,"end":368,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":160,"end":368,"kind":"text"}]},{"pos":368,"end":522,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":368,"end":522,"kind":"text"}]},{"pos":522,"end":592,"kind":"text"}],"mapHash":"-21355679145-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-31944901056-/// \r\n/// \r\n/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare const third_part1Const: thirdthird_part1;\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-6970567573-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-22286623866-/// \r\n/// \r\n/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare const third_part1Const: thirdthird_part1;\r\ndeclare var c: C;\r\n","dtsChangeTime":39000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":158,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":158,"kind":"text"}]},{"pos":158,"end":494,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":158,"end":494,"kind":"text"}]},{"pos":494,"end":578,"kind":"text"}],"mapHash":"44476692060-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-22392504284-var s = \"Hello, world\";\r\nconsole.log(s);\r\nvar first_part2Const = new firstfirst_part2();\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar second_part1Const = new secondsecond_part1();\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar third_part1Const = new thirdthird_part1();\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":45,"kind":"reference","data":"../../tripleRef.d.ts"},{"pos":47,"end":101,"kind":"reference","data":"../../../first/tripleRef.d.ts"},{"pos":103,"end":158,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":160,"end":368,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":160,"end":368,"kind":"text"}]},{"pos":368,"end":522,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":368,"end":522,"kind":"text"}]},{"pos":522,"end":592,"kind":"text"}],"mapHash":"-21355679145-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-31944901056-/// \r\n/// \r\n/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare const third_part1Const: thirdthird_part1;\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-6970567573-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-22286623866-/// \r\n/// \r\n/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare const third_part1Const: thirdthird_part1;\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2288,10 +2288,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-22286623866-/// \r\n/// \r\n/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare const third_part1Const: thirdthird_part1;\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 39000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5007 + "size": 5030 } @@ -2316,20 +2316,20 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:57 AM] Projects in this build: +[12:00:54 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:58 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:55 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:59 AM] Building project '/src/first/tsconfig.json'... +[12:00:56 AM] Building project '/src/first/tsconfig.json'... -[12:01:09 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:05 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:10 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:06 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:01:11 AM] Building project '/src/third/tsconfig.json'... +[12:01:07 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -2714,7 +2714,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"-19929709898-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-7594042998-var s = \"Hola, world\";\r\nconsole.log(s);\r\nvar first_part2Const = new firstfirst_part2();\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":42,"kind":"reference","data":"../tripleRef.d.ts"},{"pos":44,"end":251,"kind":"text"}],"mapHash":"5325987449-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET\"}","hash":"25983932369-/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-2594963283-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","1679819683-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"6858951242-/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\n","dtsChangeTime":60000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"-19929709898-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-7594042998-var s = \"Hola, world\";\r\nconsole.log(s);\r\nvar first_part2Const = new firstfirst_part2();\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":42,"kind":"reference","data":"../tripleRef.d.ts"},{"pos":44,"end":251,"kind":"text"}],"mapHash":"5325987449-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET\"}","hash":"25983932369-/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-2594963283-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","1679819683-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"6858951242-/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2803,10 +2803,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "6858951242-/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 60000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2546 + "size": 2569 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -3711,7 +3711,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":493,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":157,"end":493,"kind":"text"}]},{"pos":493,"end":577,"kind":"text"}],"mapHash":"-20483685162-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-53700165228-var s = \"Hola, world\";\r\nconsole.log(s);\r\nvar first_part2Const = new firstfirst_part2();\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar second_part1Const = new secondsecond_part1();\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar third_part1Const = new thirdthird_part1();\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":45,"kind":"reference","data":"../../tripleRef.d.ts"},{"pos":47,"end":101,"kind":"reference","data":"../../../first/tripleRef.d.ts"},{"pos":103,"end":158,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":160,"end":367,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":160,"end":367,"kind":"text"}]},{"pos":367,"end":521,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":367,"end":521,"kind":"text"}]},{"pos":521,"end":591,"kind":"text"}],"mapHash":"7646357201-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"9613787376-/// \r\n/// \r\n/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare const third_part1Const: thirdthird_part1;\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-6970567573-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"15835693622-/// \r\n/// \r\n/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare const third_part1Const: thirdthird_part1;\r\ndeclare var c: C;\r\n","dtsChangeTime":72000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":493,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":157,"end":493,"kind":"text"}]},{"pos":493,"end":577,"kind":"text"}],"mapHash":"-20483685162-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-53700165228-var s = \"Hola, world\";\r\nconsole.log(s);\r\nvar first_part2Const = new firstfirst_part2();\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar second_part1Const = new secondsecond_part1();\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar third_part1Const = new thirdthird_part1();\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":45,"kind":"reference","data":"../../tripleRef.d.ts"},{"pos":47,"end":101,"kind":"reference","data":"../../../first/tripleRef.d.ts"},{"pos":103,"end":158,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":160,"end":367,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":160,"end":367,"kind":"text"}]},{"pos":367,"end":521,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":367,"end":521,"kind":"text"}]},{"pos":521,"end":591,"kind":"text"}],"mapHash":"7646357201-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"9613787376-/// \r\n/// \r\n/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare const third_part1Const: thirdthird_part1;\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-6970567573-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"15835693622-/// \r\n/// \r\n/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare const third_part1Const: thirdthird_part1;\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3913,10 +3913,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "15835693622-/// \r\n/// \r\n/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare const third_part1Const: thirdthird_part1;\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 72000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5000 + "size": 5023 } @@ -3941,20 +3941,20 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:26 AM] Projects in this build: +[12:01:21 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:27 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:22 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:28 AM] Building project '/src/first/tsconfig.json'... +[12:01:23 AM] Building project '/src/first/tsconfig.json'... -[12:01:37 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:31 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:38 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:32 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:39 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:33 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -3982,7 +3982,6 @@ readFiles:: { "/src/2/second-output.d.ts.map": 1 } -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] @@ -4200,7 +4199,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":174,"kind":"text"}],"mapHash":"-10985091094-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"9600939075-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nvar first_part2Const = new firstfirst_part2();\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":42,"kind":"reference","data":"../tripleRef.d.ts"},{"pos":44,"end":251,"kind":"text"}],"mapHash":"5325987449-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET\"}","hash":"25983932369-/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","1679819683-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"6858951242-/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\n","dtsChangeTime":60000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":174,"kind":"text"}],"mapHash":"-10985091094-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"9600939075-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nvar first_part2Const = new firstfirst_part2();\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":42,"kind":"reference","data":"../tripleRef.d.ts"},{"pos":44,"end":251,"kind":"text"}],"mapHash":"5325987449-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET\"}","hash":"25983932369-/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","1679819683-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"6858951242-/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4290,10 +4289,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "6858951242-/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 60000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2618 + "size": 2641 } //// [/src/third/thirdjs/output/third-output.js] @@ -4884,7 +4883,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":174,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":174,"kind":"text"}]},{"pos":174,"end":510,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":174,"end":510,"kind":"text"}]},{"pos":510,"end":594,"kind":"text"}],"mapHash":"-35476945910-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-26734091059-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nvar first_part2Const = new firstfirst_part2();\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar second_part1Const = new secondsecond_part1();\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar third_part1Const = new thirdthird_part1();\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":45,"kind":"reference","data":"../../tripleRef.d.ts"},{"pos":47,"end":101,"kind":"reference","data":"../../../first/tripleRef.d.ts"},{"pos":103,"end":158,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":160,"end":367,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":160,"end":367,"kind":"text"}]},{"pos":367,"end":521,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":367,"end":521,"kind":"text"}]},{"pos":521,"end":591,"kind":"text"}],"mapHash":"7646357201-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"9613787376-/// \r\n/// \r\n/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare const third_part1Const: thirdthird_part1;\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-6970567573-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"15835693622-/// \r\n/// \r\n/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare const third_part1Const: thirdthird_part1;\r\ndeclare var c: C;\r\n","dtsChangeTime":72000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":174,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":174,"kind":"text"}]},{"pos":174,"end":510,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":174,"end":510,"kind":"text"}]},{"pos":510,"end":594,"kind":"text"}],"mapHash":"-35476945910-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-26734091059-var s = \"Hola, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nvar first_part2Const = new firstfirst_part2();\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar second_part1Const = new secondsecond_part1();\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar third_part1Const = new thirdthird_part1();\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":45,"kind":"reference","data":"../../tripleRef.d.ts"},{"pos":47,"end":101,"kind":"reference","data":"../../../first/tripleRef.d.ts"},{"pos":103,"end":158,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":160,"end":367,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":160,"end":367,"kind":"text"}]},{"pos":367,"end":521,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":367,"end":521,"kind":"text"}]},{"pos":521,"end":591,"kind":"text"}],"mapHash":"7646357201-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"9613787376-/// \r\n/// \r\n/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare const third_part1Const: thirdthird_part1;\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["-6970567573-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"15835693622-/// \r\n/// \r\n/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare const third_part1Const: thirdthird_part1;\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5087,9 +5086,9 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "15835693622-/// \r\n/// \r\n/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hola, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare const first_part2Const: firstfirst_part2;\r\ndeclare function f(): string;\r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare const third_part1Const: thirdthird_part1;\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 72000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5059 + "size": 5082 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-one-project.js b/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-one-project.js index abcc2655754..ceca8fbefe8 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-one-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-one-project.js @@ -145,13 +145,13 @@ Output:: [12:00:10 AM] Building project '/src/first/tsconfig.json'... -[12:00:21 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:22 AM] Building project '/src/second/tsconfig.json'... +[12:00:21 AM] Building project '/src/second/tsconfig.json'... -[12:00:33 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:31 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:34 AM] Building project '/src/third/tsconfig.json'... +[12:00:32 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -596,7 +596,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":336,"kind":"text"}],"mapHash":"6635165462-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AACA,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"22409784724-var second_part1Const = new secondsecond_part1();\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":49,"kind":"reference","data":"../second/tripleRef.d.ts"},{"pos":51,"end":205,"kind":"text"}],"mapHash":"-3800548159-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7138999361-/// \r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts","../second/tripleref.d.ts"],"fileInfos":["-823890693-///\nconst second_part1Const = new secondsecond_part1();\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n","-742713438-declare class secondsecond_part1 { }"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-1874117338-/// \r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":23000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":336,"kind":"text"}],"mapHash":"6635165462-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AACA,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"22409784724-var second_part1Const = new secondsecond_part1();\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":49,"kind":"reference","data":"../second/tripleRef.d.ts"},{"pos":51,"end":205,"kind":"text"}],"mapHash":"-3800548159-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7138999361-/// \r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts","../second/tripleref.d.ts"],"fileInfos":["-823890693-///\nconst second_part1Const = new secondsecond_part1();\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n","-742713438-declare class secondsecond_part1 { }"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"-1874117338-/// \r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -692,10 +692,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "-1874117338-/// \r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 23000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2762 + "size": 2786 } //// [/src/first/bin/first-output.d.ts] @@ -999,7 +999,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":11000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1077,10 +1077,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 11000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2063 + "size": 2086 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1874,7 +1874,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":446,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":446,"kind":"text"}]},{"pos":446,"end":482,"kind":"text"}],"mapHash":"-13380196693-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-17051659575-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar second_part1Const = new secondsecond_part1();\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":55,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":57,"end":214,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":57,"end":214,"kind":"text"}]},{"pos":214,"end":368,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":214,"end":368,"kind":"text"}]},{"pos":368,"end":387,"kind":"text"}],"mapHash":"-6747558023-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-73127873189-/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-67627878175-/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":35000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":446,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":446,"kind":"text"}]},{"pos":446,"end":482,"kind":"text"}],"mapHash":"-13380196693-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-17051659575-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar second_part1Const = new secondsecond_part1();\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":55,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":57,"end":214,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":57,"end":214,"kind":"text"}]},{"pos":214,"end":368,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":214,"end":368,"kind":"text"}]},{"pos":368,"end":387,"kind":"text"}],"mapHash":"-6747558023-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-73127873189-/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-67627878175-/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2054,10 +2054,10 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-67627878175-/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 35000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4032 + "size": 4055 } @@ -2082,25 +2082,24 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:53 AM] Projects in this build: +[12:00:50 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:54 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:51 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:55 AM] Building project '/src/first/tsconfig.json'... +[12:00:52 AM] Building project '/src/first/tsconfig.json'... -[12:01:04 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:05 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:01 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:06 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:02 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] @@ -2289,7 +2288,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":11000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2368,10 +2367,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 11000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2136 + "size": 2159 } //// [/src/third/thirdjs/output/third-output.js] @@ -2904,7 +2903,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":463,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":463,"kind":"text"}]},{"pos":463,"end":499,"kind":"text"}],"mapHash":"29274327775-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"45460290562-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar second_part1Const = new secondsecond_part1();\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":55,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":57,"end":214,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":57,"end":214,"kind":"text"}]},{"pos":214,"end":368,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":214,"end":368,"kind":"text"}]},{"pos":368,"end":387,"kind":"text"}],"mapHash":"-6747558023-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-73127873189-/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-67627878175-/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":35000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":463,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":463,"kind":"text"}]},{"pos":463,"end":499,"kind":"text"}],"mapHash":"29274327775-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"45460290562-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar second_part1Const = new secondsecond_part1();\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":55,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":57,"end":214,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":57,"end":214,"kind":"text"}]},{"pos":214,"end":368,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":214,"end":368,"kind":"text"}]},{"pos":368,"end":387,"kind":"text"}],"mapHash":"-6747558023-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-73127873189-/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-67627878175-/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3085,9 +3084,9 @@ declare var c: C; "outFile": "./third-output.js" }, "outSignature": "-67627878175-/// \r\ninterface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare const second_part1Const: secondsecond_part1;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 35000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4089 + "size": 4112 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-incremental.js b/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-incremental.js index d5c4c92599c..7a398b80846 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-incremental.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-incremental.js @@ -140,13 +140,13 @@ Output:: [12:00:09 AM] Building project '/src/first/tsconfig.json'... -[12:00:20 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/second/tsconfig.json'... +[12:00:20 AM] Building project '/src/second/tsconfig.json'... -[12:00:32 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:30 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:33 AM] Building project '/src/third/tsconfig.json'... +[12:00:31 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -537,7 +537,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":22000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -620,10 +620,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 22000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2161 + "size": 2185 } //// [/src/first/bin/first-output.d.ts] @@ -927,7 +927,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":10000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1005,10 +1005,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 10000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2063 + "size": 2086 } //// [/src/third/thirdjs/output/third-output.d.ts] diff --git a/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-uses-project-references.js b/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-uses-project-references.js index d4b143e882d..6bc2a727a7f 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-uses-project-references.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-uses-project-references.js @@ -140,13 +140,13 @@ Output:: [12:00:09 AM] Building project '/src/first/tsconfig.json'... -[12:00:20 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/second/tsconfig.json'... +[12:00:20 AM] Building project '/src/second/tsconfig.json'... -[12:00:32 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +[12:00:30 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -[12:00:33 AM] Building project '/src/third/tsconfig.json'... +[12:00:31 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -537,7 +537,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":22000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -620,10 +620,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 22000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2161 + "size": 2185 } //// [/src/first/bin/first-output.d.ts] @@ -927,7 +927,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":10000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1005,10 +1005,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 10000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2063 + "size": 2086 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1768,25 +1768,24 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:47 AM] Projects in this build: +[12:00:45 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:48 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:46 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:49 AM] Building project '/src/first/tsconfig.json'... +[12:00:47 AM] Building project '/src/first/tsconfig.json'... -[12:00:58 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:00:55 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:00:59 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:00:56 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:00 AM] Building project '/src/third/tsconfig.json'... +[12:00:57 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] @@ -1975,7 +1974,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":10000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2054,10 +2053,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 10000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2136 + "size": 2159 } //// [/src/third/thirdjs/output/third-output.d.ts] file written with same contents diff --git a/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-specifies-tsBuildInfoFile.js b/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-specifies-tsBuildInfoFile.js index d12789c106f..2ab5a74785a 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-specifies-tsBuildInfoFile.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-specifies-tsBuildInfoFile.js @@ -141,13 +141,13 @@ Output:: [12:00:09 AM] Building project '/src/first/tsconfig.json'... -[12:00:20 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/second/tsconfig.json'... +[12:00:20 AM] Building project '/src/second/tsconfig.json'... -[12:00:32 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third.tsbuildinfo' does not exist +[12:00:30 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third.tsbuildinfo' does not exist -[12:00:33 AM] Building project '/src/third/tsconfig.json'... +[12:00:31 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -538,7 +538,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":22000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -621,10 +621,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 22000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2161 + "size": 2185 } //// [/src/first/bin/first-output.d.ts] @@ -928,7 +928,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":10000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1006,10 +1006,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 10000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2063 + "size": 2086 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1748,7 +1748,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":395,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":395,"kind":"text"}]},{"pos":395,"end":431,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"20832180013-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js","tsBuildInfoFile":"./third.tsbuildinfo"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","dtsChangeTime":34000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":395,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":395,"kind":"text"}]},{"pos":395,"end":431,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"20832180013-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\nvar c = new C();\r\nc.doSomething();\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-16365524283-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["10470273651-var c = new C();\r\nc.doSomething();\r\n"],"options":{"composite":true,"outFile":"./third-output.js","tsBuildInfoFile":"./third.tsbuildinfo"},"outSignature":"-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third.tsbuildinfo.baseline.txt] ====================================================================== @@ -1918,9 +1918,9 @@ declare var c: C; "tsBuildInfoFile": "./third.tsbuildinfo" }, "outSignature": "-6891480629-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\ndeclare var c: C;\r\n", - "dtsChangeTime": 34000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3622 + "size": 3645 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/when-source-files-are-empty-in-the-own-file.js b/tests/baselines/reference/tsbuild/outfile-concat/when-source-files-are-empty-in-the-own-file.js index 74e1fcd33f6..12f24dfdc83 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/when-source-files-are-empty-in-the-own-file.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/when-source-files-are-empty-in-the-own-file.js @@ -138,13 +138,13 @@ Output:: [12:00:09 AM] Building project '/src/first/tsconfig.json'... -[12:00:20 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/second/tsconfig.json'... +[12:00:20 AM] Building project '/src/second/tsconfig.json'... -[12:00:32 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:30 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:33 AM] Building project '/src/third/tsconfig.json'... +[12:00:31 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -535,7 +535,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":22000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":285,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-23059753096-var N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":100,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"7752788385-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"options":{"composite":true,"outFile":"./second-output.js"},"outSignature":"7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -618,10 +618,10 @@ declare class C { "outFile": "./second-output.js" }, "outSignature": "7003440774-declare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 22000 + "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2161 + "size": 2185 } //// [/src/first/bin/first-output.d.ts] @@ -925,7 +925,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":10000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3712641672-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1003,10 +1003,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 10000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2063 + "size": 2086 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1664,7 +1664,7 @@ sourceFile:../../../second/second_part2.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":395,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":395,"kind":"text"}]}],"mapHash":"44742745535-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"12056597951-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]}],"mapHash":"-2868768104-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-18898330086-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["5381-"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-14086268192-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":34000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":395,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":395,"kind":"text"}]}],"mapHash":"44742745535-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"12056597951-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]}],"mapHash":"-2868768104-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-18898330086-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["5381-"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-14086268192-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1814,10 +1814,10 @@ declare class C { "outFile": "./third-output.js" }, "outSignature": "-14086268192-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 34000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3280 + "size": 3303 } @@ -1842,25 +1842,24 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:52 AM] Projects in this build: +[12:00:49 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:53 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:50 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:54 AM] Building project '/src/first/tsconfig.json'... +[12:00:51 AM] Building project '/src/first/tsconfig.json'... -[12:01:03 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:00:59 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:04 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:05 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:01 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] @@ -2049,7 +2048,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","dtsChangeTime":10000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"18946534449-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-23350520794-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"options":{"composite":true,"outFile":"./first-output.js"},"outSignature":"-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2128,10 +2127,10 @@ declare function f(): string; "outFile": "./first-output.js" }, "outSignature": "-16746818465-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\n", - "dtsChangeTime": 10000 + "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2136 + "size": 2159 } //// [/src/third/thirdjs/output/third-output.js] @@ -2580,7 +2579,7 @@ sourceFile:../../../second/second_part2.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":412,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":412,"kind":"text"}]}],"mapHash":"69061128179-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-20492008680-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]}],"mapHash":"-2868768104-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-18898330086-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["5381-"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-14086268192-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","dtsChangeTime":34000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":412,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":412,"kind":"text"}]}],"mapHash":"69061128179-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-20492008680-var s = \"Hello, world\";\r\nconsole.log(s);\r\nconsole.log(s);\r\nconsole.log(f());\r\nfunction f() {\r\n return \"JS does hoists\";\r\n}\r\nvar N;\r\n(function (N) {\r\n function f() {\r\n console.log('testing');\r\n }\r\n f();\r\n})(N || (N = {}));\r\nvar C = (function () {\r\n function C() {\r\n }\r\n C.prototype.doSomething = function () {\r\n console.log(\"something got done\");\r\n };\r\n return C;\r\n}());\r\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]}],"mapHash":"-2868768104-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-18898330086-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../third_part1.ts"],"fileInfos":["5381-"],"options":{"composite":true,"outFile":"./third-output.js"},"outSignature":"-14086268192-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2731,9 +2730,9 @@ declare class C { "outFile": "./third-output.js" }, "outSignature": "-14086268192-interface TheFirst {\r\n none: any;\r\n}\r\ndeclare const s = \"Hello, world\";\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\ndeclare function f(): string;\r\ndeclare namespace N {\r\n}\r\ndeclare namespace N {\r\n}\r\ndeclare class C {\r\n doSomething(): void;\r\n}\r\n", - "dtsChangeTime": 34000 + "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 3340 + "size": 3363 } diff --git a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js index 584d245b979..b5601c2c577 100644 --- a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js +++ b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js @@ -46,7 +46,7 @@ exports.x = 10; //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"}],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":12000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"}],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -76,10 +76,10 @@ exports.x = 10; "../../lib/lib.d.ts", "../src/index.ts" ], - "dtsChangeTime": 12000 + "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 835 + "size": 855 } @@ -90,10 +90,10 @@ Input:: Output:: /lib/tsc --b /src/tsconfig.json -v -[12:00:20 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/tsconfig.json -[12:00:21 AM] Project 'src/tsconfig.json' is up to date because newest input 'src/src/index.ts' is older than output 'src/dist/tsconfig.tsbuildinfo' +[12:00:20 AM] Project 'src/tsconfig.json' is up to date because newest input 'src/src/index.ts' is older than output 'src/dist/tsconfig.tsbuildinfo' exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js index 28f390cdd16..db7935db611 100644 --- a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js +++ b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js @@ -139,7 +139,7 @@ exports.x = 10; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/index.ts","./types/type.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"-4885977236-export type t = string;","signature":"-4409762125-export declare type t = string;\r\n"}],"options":{"composite":true,"outDir":"./dist","rootDir":"./src"},"referencedMap":[],"exportedModulesMap":[],"dtsChangeTime":25000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/index.ts","./types/type.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"-4885977236-export type t = string;","signature":"-7954664413-export type t = string;\r\n"}],"options":{"composite":true,"outDir":"./dist","rootDir":"./src"},"referencedMap":[],"exportedModulesMap":[],"latestChangedDtsFile":"./types/type.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -161,7 +161,7 @@ exports.x = 10; }, "./types/type.ts": { "version": "-4885977236-export type t = string;", - "signature": "-4409762125-export declare type t = string;\r\n" + "signature": "-7954664413-export type t = string;\r\n" } }, "options": { @@ -171,14 +171,14 @@ exports.x = 10; }, "referencedMap": {}, "exportedModulesMap": {}, - "dtsChangeTime": 25000 + "latestChangedDtsFile": "./types/type.d.ts" }, "version": "FakeTSVersion", - "size": 948 + "size": 961 } //// [/src/types/type.d.ts] -export declare type t = string; +export type t = string; //// [/src/types/type.js] diff --git a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/builds-correctly.js b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/builds-correctly.js index f775d2f87c2..a0c2f606871 100644 --- a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/builds-correctly.js +++ b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/builds-correctly.js @@ -83,7 +83,7 @@ exports.b = 0; //// [/src/dist/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../src/main/b.ts","../../src/main/a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-11678562673-export const b = 0;\r\n","signature":"-3829176033-export declare const b = 0;\r\n"},{"version":"-17071184049-import { b } from './b';\r\nconst a = b;","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"declaration":true,"outDir":"..","rootDir":"../../src","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"dtsChangeTime":14000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../../src/main/b.ts","../../src/main/a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-11678562673-export const b = 0;\r\n","signature":"-3829176033-export declare const b = 0;\r\n"},{"version":"-17071184049-import { b } from './b';\r\nconst a = b;","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"declaration":true,"outDir":"..","rootDir":"../../src","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -131,10 +131,10 @@ exports.b = 0; "../../src/main/a.ts", "../../src/main/b.ts" ], - "dtsChangeTime": 14000 + "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 1070 + "size": 1082 } //// [/src/dist/other/other.d.ts] @@ -149,7 +149,7 @@ exports.Other = 0; //// [/src/dist/other/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2951227185-export const Other = 0;\r\n","signature":"-7996259489-export declare const Other = 0;\r\n"}],"options":{"composite":true,"declaration":true,"outDir":"..","rootDir":"../../src","skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":6000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2951227185-export const Other = 0;\r\n","signature":"-7996259489-export declare const Other = 0;\r\n"}],"options":{"composite":true,"declaration":true,"outDir":"..","rootDir":"../../src","skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/other/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,9 +182,9 @@ exports.Other = 0; "../../../lib/lib.d.ts", "../../src/other/other.ts" ], - "dtsChangeTime": 6000 + "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 923 + "size": 940 } diff --git a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file-because-no-rootDir-in-the-base.js b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file-because-no-rootDir-in-the-base.js index 23cb7305baa..dbfb0ec9252 100644 --- a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file-because-no-rootDir-in-the-base.js +++ b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file-because-no-rootDir-in-the-base.js @@ -65,9 +65,9 @@ Output:: [12:00:09 AM] Building project '/src/src/other/tsconfig.json'... -[12:00:17 AM] Project 'src/src/main/tsconfig.json' is out of date because output 'src/dist/tsconfig.tsbuildinfo' is older than input 'src/src/other' +[12:00:16 AM] Project 'src/src/main/tsconfig.json' is out of date because output 'src/dist/tsconfig.tsbuildinfo' is older than input 'src/src/other' -[12:00:18 AM] Building project '/src/src/main/tsconfig.json'... +[12:00:17 AM] Building project '/src/src/main/tsconfig.json'... src/src/main/tsconfig.json:4:5 - error TS6377: Cannot write file '/src/dist/tsconfig.tsbuildinfo' because it will overwrite '.tsbuildinfo' file generated by referenced project '/src/src/other' @@ -92,7 +92,7 @@ exports.Other = 0; //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2951227185-export const Other = 0;\r\n","signature":"-7996259489-export declare const Other = 0;\r\n"}],"options":{"composite":true,"declaration":true,"outDir":"./","skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":10000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2951227185-export const Other = 0;\r\n","signature":"-7996259489-export declare const Other = 0;\r\n"}],"options":{"composite":true,"declaration":true,"outDir":"./","skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -124,9 +124,9 @@ exports.Other = 0; "../../lib/lib.d.ts", "../src/other/other.ts" ], - "dtsChangeTime": 10000 + "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 896 + "size": 912 } diff --git a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file.js b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file.js index 2e9e4f64570..71aed8ef5cf 100644 --- a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file.js +++ b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file.js @@ -58,9 +58,9 @@ Output:: [12:00:10 AM] Building project '/src/src/other/tsconfig.json'... -[12:00:18 AM] Project 'src/src/main/tsconfig.json' is out of date because output 'src/dist/tsconfig.tsbuildinfo' is older than input 'src/src/other' +[12:00:17 AM] Project 'src/src/main/tsconfig.json' is out of date because output 'src/dist/tsconfig.tsbuildinfo' is older than input 'src/src/other' -[12:00:19 AM] Building project '/src/src/main/tsconfig.json'... +[12:00:18 AM] Building project '/src/src/main/tsconfig.json'... src/src/main/tsconfig.json:1:76 - error TS6377: Cannot write file '/src/dist/tsconfig.tsbuildinfo' because it will overwrite '.tsbuildinfo' file generated by referenced project '/src/src/other' @@ -85,7 +85,7 @@ exports.Other = 0; //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2951227185-export const Other = 0;\r\n","signature":"-7996259489-export declare const Other = 0;\r\n"}],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":11000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2951227185-export const Other = 0;\r\n","signature":"-7996259489-export declare const Other = 0;\r\n"}],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -115,9 +115,9 @@ exports.Other = 0; "../../lib/lib.d.ts", "../src/other/other.ts" ], - "dtsChangeTime": 11000 + "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 850 + "size": 866 } diff --git a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-no-error-when-tsbuildinfo-differ.js b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-no-error-when-tsbuildinfo-differ.js index 5bb085c5c66..7e024b6d6af 100644 --- a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-no-error-when-tsbuildinfo-differ.js +++ b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-no-error-when-tsbuildinfo-differ.js @@ -58,9 +58,9 @@ Output:: [12:00:12 AM] Building project '/src/src/other/tsconfig.other.json'... -[12:00:20 AM] Project 'src/src/main/tsconfig.main.json' is out of date because output file 'src/dist/tsconfig.main.tsbuildinfo' does not exist +[12:00:19 AM] Project 'src/src/main/tsconfig.main.json' is out of date because output file 'src/dist/tsconfig.main.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/src/main/tsconfig.main.json'... +[12:00:20 AM] Building project '/src/src/main/tsconfig.main.json'... exitCode:: ExitStatus.Success @@ -99,7 +99,7 @@ exports.Other = 0; //// [/src/dist/tsconfig.main.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/main/b.ts","../src/main/a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-11678562673-export const b = 0;\r\n","signature":"-3829176033-export declare const b = 0;\r\n"},{"version":"-17071184049-import { b } from './b';\r\nconst a = b;","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"dtsChangeTime":22000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/main/b.ts","../src/main/a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-11678562673-export const b = 0;\r\n","signature":"-3829176033-export declare const b = 0;\r\n"},{"version":"-17071184049-import { b } from './b';\r\nconst a = b;","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.main.tsbuildinfo.readable.baseline.txt] { @@ -144,14 +144,14 @@ exports.Other = 0; "../src/main/a.ts", "../src/main/b.ts" ], - "dtsChangeTime": 22000 + "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 993 + "size": 1005 } //// [/src/dist/tsconfig.other.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2951227185-export const Other = 0;\r\n","signature":"-7996259489-export declare const Other = 0;\r\n"}],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":13000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2951227185-export const Other = 0;\r\n","signature":"-7996259489-export declare const Other = 0;\r\n"}],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.other.tsbuildinfo.readable.baseline.txt] { @@ -181,9 +181,9 @@ exports.Other = 0; "../../lib/lib.d.ts", "../src/other/other.ts" ], - "dtsChangeTime": 13000 + "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 850 + "size": 866 } diff --git a/tests/baselines/reference/tsbuild/publicAPI/build-with-custom-transformers.js b/tests/baselines/reference/tsbuild/publicAPI/build-with-custom-transformers.js index 425dd6be8ec..bf49484c1b2 100644 --- a/tests/baselines/reference/tsbuild/publicAPI/build-with-custom-transformers.js +++ b/tests/baselines/reference/tsbuild/publicAPI/build-with-custom-transformers.js @@ -50,9 +50,9 @@ Output:: [12:00:15 AM] Building project '/src/shared/tsconfig.json'... -[12:00:22 AM] Project 'src/webpack/tsconfig.json' is out of date because output file 'src/webpack/tsconfig.tsbuildinfo' does not exist +[12:00:21 AM] Project 'src/webpack/tsconfig.json' is out of date because output file 'src/webpack/tsconfig.tsbuildinfo' does not exist -[12:00:23 AM] Building project '/src/webpack/tsconfig.json'... +[12:00:22 AM] Building project '/src/webpack/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: ["/src/shared/index.ts"] @@ -120,7 +120,7 @@ exports.f2 = f2; //// [/src/shared/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"8649344783-export function f1() { }\nexport class c { }\nexport enum e { }\n// leading\nexport function f2() { } // trailing"],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"emitSignatures":[[2,"-15963581979-export declare function f1(): void;\r\nexport declare class c {\r\n}\r\nexport declare enum e {\r\n}\r\nexport declare function f2(): void;\r\n"]],"dtsChangeTime":16000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"8649344783-export function f1() { }\nexport class c { }\nexport enum e { }\n// leading\nexport function f2() { } // trailing"],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"emitSignatures":[[2,"-15963581979-export declare function f1(): void;\r\nexport declare class c {\r\n}\r\nexport declare enum e {\r\n}\r\nexport declare function f2(): void;\r\n"]],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/shared/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -155,10 +155,10 @@ exports.f2 = f2; "-15963581979-export declare function f1(): void;\r\nexport declare class c {\r\n}\r\nexport declare enum e {\r\n}\r\nexport declare function f2(): void;\r\n" ] ], - "dtsChangeTime": 16000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1018 + "size": 1034 } //// [/src/webpack/index.d.ts] @@ -195,7 +195,7 @@ exports.f22 = f22; //// [/src/webpack/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"20140662566-export function f2() { }\nexport class c2 { }\nexport enum e2 { }\n// leading\nexport function f22() { } // trailing"],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"emitSignatures":[[2,"-4025519876-export declare function f2(): void;\r\nexport declare class c2 {\r\n}\r\nexport declare enum e2 {\r\n}\r\nexport declare function f22(): void;\r\n"]],"dtsChangeTime":24000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"20140662566-export function f2() { }\nexport class c2 { }\nexport enum e2 { }\n// leading\nexport function f22() { } // trailing"],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"emitSignatures":[[2,"-4025519876-export declare function f2(): void;\r\nexport declare class c2 {\r\n}\r\nexport declare enum e2 {\r\n}\r\nexport declare function f22(): void;\r\n"]],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/webpack/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -230,9 +230,9 @@ exports.f22 = f22; "-4025519876-export declare function f2(): void;\r\nexport declare class c2 {\r\n}\r\nexport declare enum e2 {\r\n}\r\nexport declare function f22(): void;\r\n" ] ], - "dtsChangeTime": 24000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1024 + "size": 1040 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js b/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js index 2eb743008af..408b5bbe142 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js @@ -138,7 +138,7 @@ exports["default"] = hello_json_1["default"].hello; //// [/src/dist/tsconfig_withFiles.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-27703454282-import hello from \"./hello.json\"\n\nexport default hello.hello","signature":"-1680156224-declare const _default: string;\r\nexport default _default;\r\n"}],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":9000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-27703454282-import hello from \"./hello.json\"\n\nexport default hello.hello","signature":"-1680156224-declare const _default: string;\r\nexport default _default;\r\n"}],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig_withFiles.tsbuildinfo.readable.baseline.txt] { @@ -187,9 +187,9 @@ exports["default"] = hello_json_1["default"].hello; "../src/hello.json", "../src/index.ts" ], - "dtsChangeTime": 9000 + "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1095 + "size": 1116 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js b/tests/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js index 2913fb02f65..48bad67b152 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js @@ -109,7 +109,7 @@ console.log(foo_json_1.foo); //// [/src/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../strings/foo.json","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"4395333385-{\n \"foo\": \"bar baz\"\n}",{"version":"-4651661680-import { foo } from '../strings/foo.json';\n\nconsole.log(foo);","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"esModuleInterop":true,"module":1,"rootDir":"..","strict":true,"target":1},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"dtsChangeTime":14000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../strings/foo.json","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"4395333385-{\n \"foo\": \"bar baz\"\n}",{"version":"-4651661680-import { foo } from '../strings/foo.json';\n\nconsole.log(foo);","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"esModuleInterop":true,"module":1,"rootDir":"..","strict":true,"target":1},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -158,10 +158,10 @@ console.log(foo_json_1.foo); "./index.ts", "../strings/foo.json" ], - "dtsChangeTime": 14000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1007 + "size": 1023 } //// [/src/strings/tsconfig.tsbuildinfo] @@ -212,14 +212,14 @@ Input:: Output:: /lib/tsc --b src/tsconfig.json --verbose --explainFiles -[12:00:20 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/strings/tsconfig.json * src/main/tsconfig.json * src/tsconfig.json -[12:00:21 AM] Project 'src/strings/tsconfig.json' is up to date because newest input 'src/strings/foo.json' is older than output 'src/strings/tsconfig.tsbuildinfo' +[12:00:20 AM] Project 'src/strings/tsconfig.json' is up to date because newest input 'src/strings/foo.json' is older than output 'src/strings/tsconfig.tsbuildinfo' -[12:00:22 AM] Project 'src/main/tsconfig.json' is up to date because newest input 'src/main/index.ts' is older than output 'src/main/tsconfig.tsbuildinfo' +[12:00:21 AM] Project 'src/main/tsconfig.json' is up to date because newest input 'src/main/index.ts' is older than output 'src/main/tsconfig.tsbuildinfo' exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js index 956c0c703d0..1d485ff905c 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js @@ -138,7 +138,7 @@ exports["default"] = hello_json_1["default"].hello; //// [/src/dist/tsconfig_withIncludeAndFiles.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-27703454282-import hello from \"./hello.json\"\n\nexport default hello.hello","signature":"-1680156224-declare const _default: string;\r\nexport default _default;\r\n"}],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":9000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-27703454282-import hello from \"./hello.json\"\n\nexport default hello.hello","signature":"-1680156224-declare const _default: string;\r\nexport default _default;\r\n"}],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig_withIncludeAndFiles.tsbuildinfo.readable.baseline.txt] { @@ -187,9 +187,9 @@ exports["default"] = hello_json_1["default"].hello; "../src/hello.json", "../src/index.ts" ], - "dtsChangeTime": 9000 + "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1095 + "size": 1116 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js index 9e10f19d7da..eb750d792cf 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js @@ -134,7 +134,7 @@ exports["default"] = index_json_1["default"].hello; //// [/src/dist/tsconfig_withIncludeOfJson.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/index.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2379406821-{\"hello\":\"world\"}",{"version":"-6335882310-import hello from \"./index.json\"\n\nexport default hello.hello","signature":"-1680156224-declare const _default: string;\r\nexport default _default;\r\n"}],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":12000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/index.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2379406821-{\"hello\":\"world\"}",{"version":"-6335882310-import hello from \"./index.json\"\n\nexport default hello.hello","signature":"-1680156224-declare const _default: string;\r\nexport default _default;\r\n"}],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig_withIncludeOfJson.tsbuildinfo.readable.baseline.txt] { @@ -183,9 +183,9 @@ exports["default"] = index_json_1["default"].hello; "../src/index.json", "../src/index.ts" ], - "dtsChangeTime": 12000 + "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1089 + "size": 1109 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js index 36910f12328..e5383aa934b 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js @@ -138,7 +138,7 @@ exports["default"] = hello_json_1["default"].hello; //// [/src/dist/tsconfig_withIncludeOfJson.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-27703454282-import hello from \"./hello.json\"\n\nexport default hello.hello","signature":"-1680156224-declare const _default: string;\r\nexport default _default;\r\n"}],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":9000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-27703454282-import hello from \"./hello.json\"\n\nexport default hello.hello","signature":"-1680156224-declare const _default: string;\r\nexport default _default;\r\n"}],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig_withIncludeOfJson.tsbuildinfo.readable.baseline.txt] { @@ -187,9 +187,9 @@ exports["default"] = hello_json_1["default"].hello; "../src/hello.json", "../src/index.ts" ], - "dtsChangeTime": 9000 + "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1095 + "size": 1116 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js b/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js index 1b5724f51a9..86b2357ed9b 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js @@ -141,7 +141,7 @@ exports["default"] = hello_json_1["default"].hello; {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;AAAA,4DAAgC;AAEhC,qBAAe,uBAAK,CAAC,KAAK,CAAA"} //// [/src/dist/tsconfig_withFiles.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-27703454282-import hello from \"./hello.json\"\n\nexport default hello.hello","signature":"-1680156224-declare const _default: string;\r\nexport default _default;\r\n"}],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":10000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-27703454282-import hello from \"./hello.json\"\n\nexport default hello.hello","signature":"-1680156224-declare const _default: string;\r\nexport default _default;\r\n"}],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig_withFiles.tsbuildinfo.readable.baseline.txt] { @@ -191,10 +191,10 @@ exports["default"] = hello_json_1["default"].hello; "../src/hello.json", "../src/index.ts" ], - "dtsChangeTime": 10000 + "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1113 + "size": 1133 } @@ -205,10 +205,10 @@ Input:: Output:: /lib/tsc --b src/tsconfig_withFiles.json --verbose --explainFiles -[12:00:20 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/tsconfig_withFiles.json -[12:00:21 AM] Project 'src/tsconfig_withFiles.json' is up to date because newest input 'src/src/index.ts' is older than output 'src/dist/tsconfig_withFiles.tsbuildinfo' +[12:00:20 AM] Project 'src/tsconfig_withFiles.json' is up to date because newest input 'src/src/index.ts' is older than output 'src/dist/tsconfig_withFiles.tsbuildinfo' exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js b/tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js index 5867481d471..a2c4e39c1e4 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js @@ -125,7 +125,7 @@ exports["default"] = hello_json_1["default"].hello; //// [/src/tsconfig_withFiles.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/hello.json","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-27703454282-import hello from \"./hello.json\"\n\nexport default hello.hello","signature":"-1680156224-declare const _default: string;\r\nexport default _default;\r\n"}],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":10000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/hello.json","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-27703454282-import hello from \"./hello.json\"\n\nexport default hello.hello","signature":"-1680156224-declare const _default: string;\r\nexport default _default;\r\n"}],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig_withFiles.tsbuildinfo.readable.baseline.txt] { @@ -173,10 +173,10 @@ exports["default"] = hello_json_1["default"].hello; "./src/hello.json", "./src/index.ts" ], - "dtsChangeTime": 10000 + "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1097 } @@ -187,10 +187,10 @@ Input:: Output:: /lib/tsc --b src/tsconfig_withFiles.json --verbose -[12:00:16 AM] Projects in this build: +[12:00:15 AM] Projects in this build: * src/tsconfig_withFiles.json -[12:00:17 AM] Project 'src/tsconfig_withFiles.json' is up to date because newest input 'src/src/index.ts' is older than output 'src/tsconfig_withFiles.tsbuildinfo' +[12:00:16 AM] Project 'src/tsconfig_withFiles.json' is up to date because newest input 'src/src/index.ts' is older than output 'src/tsconfig_withFiles.tsbuildinfo' exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/sample1/always-builds-under-with-force-option.js b/tests/baselines/reference/tsbuild/sample1/always-builds-under-with-force-option.js index 9b72c6f79fb..a51cf0b7905 100644 --- a/tests/baselines/reference/tsbuild/sample1/always-builds-under-with-force-option.js +++ b/tests/baselines/reference/tsbuild/sample1/always-builds-under-with-force-option.js @@ -149,7 +149,7 @@ exports.multiply = multiply; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":6000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -194,10 +194,10 @@ exports.multiply = multiply; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 6000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1452 + "size": 1469 } //// [/src/logic/index.d.ts] @@ -223,7 +223,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":16000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -285,10 +285,10 @@ exports.m = mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 16000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1577 + "size": 1593 } //// [/src/tests/index.d.ts] @@ -309,7 +309,7 @@ exports.m = mod; //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":23000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -384,10 +384,10 @@ exports.m = mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 23000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1724 + "size": 1740 } @@ -407,211 +407,14 @@ exitCode:: ExitStatus.Success //// [/src/core/index.d.ts] file written with same contents //// [/src/core/index.d.ts.map] file written with same contents //// [/src/core/index.js] file written with same contents -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":29000},"version":"FakeTSVersion"} - -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "./anothermodule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "./anothermodule.ts": { - "version": "-2676574883-export const World = \"hello\";\r\n", - "signature": "-8396256275-export declare const World = \"hello\";\r\n" - }, - "./index.ts": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", - "signature": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n" - }, - "./some_decl.d.ts": { - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", - "affectsGlobalScope": true - } - }, - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "referencedMap": {}, - "exportedModulesMap": {}, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "./anothermodule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "dtsChangeTime": 29000 - }, - "version": "FakeTSVersion", - "size": 1453 -} - +//// [/src/core/tsconfig.tsbuildinfo] file written with same contents +//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents //// [/src/logic/index.d.ts] file written with same contents //// [/src/logic/index.js] file written with same contents //// [/src/logic/index.js.map] file written with same contents -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":39000},"version":"FakeTSVersion"} - -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../core/index.d.ts", - "../core/anothermodule.d.ts", - "./index.ts" - ], - "fileNamesList": [ - [ - "../core/index.d.ts", - "../core/anothermodule.d.ts" - ], - [ - "../core/anothermodule.d.ts" - ] - ], - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "../core/index.d.ts": { - "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", - "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" - }, - "../core/anothermodule.d.ts": { - "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" - }, - "./index.ts": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", - "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - } - }, - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anothermodule.d.ts" - ] - }, - "exportedModulesMap": { - "./index.ts": [ - "../core/anothermodule.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../core/anothermodule.d.ts", - "../core/index.d.ts", - "./index.ts" - ], - "dtsChangeTime": 39000 - }, - "version": "FakeTSVersion", - "size": 1577 -} - +//// [/src/logic/tsconfig.tsbuildinfo] file written with same contents +//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents //// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":46000},"version":"FakeTSVersion"} - -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../core/index.d.ts", - "../core/anothermodule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileNamesList": [ - [ - "../core/anothermodule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anothermodule.d.ts", - "../logic/index.d.ts" - ] - ], - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "../core/index.d.ts": { - "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", - "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" - }, - "../core/anothermodule.d.ts": { - "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" - }, - "../logic/index.d.ts": { - "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", - "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - }, - "./index.ts": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", - "signature": "-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - } - }, - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anothermodule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anothermodule.d.ts", - "../logic/index.d.ts" - ] - }, - "exportedModulesMap": { - "../logic/index.d.ts": [ - "../core/anothermodule.d.ts" - ], - "./index.ts": [ - "../core/anothermodule.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../core/anothermodule.d.ts", - "../core/index.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "dtsChangeTime": 46000 - }, - "version": "FakeTSVersion", - "size": 1724 -} - +//// [/src/tests/tsconfig.tsbuildinfo] file written with same contents +//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/sample1/building-using-buildReferencedProject.js b/tests/baselines/reference/tsbuild/sample1/building-using-buildReferencedProject.js index ac3e22f145e..4ad76aa7fa4 100644 --- a/tests/baselines/reference/tsbuild/sample1/building-using-buildReferencedProject.js +++ b/tests/baselines/reference/tsbuild/sample1/building-using-buildReferencedProject.js @@ -119,9 +119,9 @@ Output:: [12:00:08 AM] Building project '/src/core/tsconfig.json'... -[12:00:19 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist +[12:00:18 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/logic/tsconfig.json'... +[12:00:19 AM] Building project '/src/logic/tsconfig.json'... exitCode:: ExitStatus.Success @@ -161,7 +161,7 @@ exports.multiply = multiply; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":9000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -206,10 +206,10 @@ exports.multiply = multiply; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 9000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1452 + "size": 1469 } //// [/src/logic/index.d.ts] @@ -235,7 +235,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":21000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -297,9 +297,9 @@ exports.m = mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 21000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1577 + "size": 1593 } diff --git a/tests/baselines/reference/tsbuild/sample1/building-using-getNextInvalidatedProject.js b/tests/baselines/reference/tsbuild/sample1/building-using-getNextInvalidatedProject.js index a98feadabbe..f6075934a3d 100644 --- a/tests/baselines/reference/tsbuild/sample1/building-using-getNextInvalidatedProject.js +++ b/tests/baselines/reference/tsbuild/sample1/building-using-getNextInvalidatedProject.js @@ -127,7 +127,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":37000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -172,10 +172,10 @@ export declare function multiply(a: number, b: number): number; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 37000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1374 + "size": 1390 } @@ -205,7 +205,7 @@ export declare const m: typeof mod; //// [/user/username/projects/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":55000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -267,10 +267,10 @@ export declare const m: typeof mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 55000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1491 + "size": 1507 } @@ -295,7 +295,7 @@ export declare const m: typeof mod; //// [/user/username/projects/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":67000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -370,10 +370,10 @@ export declare const m: typeof mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 67000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1636 + "size": 1652 } diff --git a/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-declarationDir-is-specified.js b/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-declarationDir-is-specified.js index bb9ae020527..39b75803a90 100644 --- a/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-declarationDir-is-specified.js +++ b/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-declarationDir-is-specified.js @@ -137,7 +137,7 @@ exports.multiply = multiply; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":7000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,10 +182,10 @@ exports.multiply = multiply; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 7000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1452 + "size": 1469 } //// [/src/logic/index.js] @@ -211,7 +211,7 @@ export declare const m: typeof mod; //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"declarationDir":"./out/decls","sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":17000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"declarationDir":"./out/decls","sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./out/decls/index.d.ts"},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -273,10 +273,10 @@ export declare const m: typeof mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 17000 + "latestChangedDtsFile": "./out/decls/index.d.ts" }, "version": "FakeTSVersion", - "size": 1581 + "size": 1607 } //// [/src/tests/index.d.ts] @@ -297,7 +297,7 @@ exports.m = mod; //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/out/decls/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":26000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/out/decls/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -372,9 +372,9 @@ exports.m = mod; "../logic/out/decls/index.d.ts", "./index.ts" ], - "dtsChangeTime": 26000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1734 + "size": 1750 } diff --git a/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-outDir-is-specified.js b/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-outDir-is-specified.js index c5eeff18131..4d4acbe990b 100644 --- a/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-outDir-is-specified.js +++ b/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-outDir-is-specified.js @@ -137,7 +137,7 @@ exports.multiply = multiply; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":7000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,10 +182,10 @@ exports.multiply = multiply; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 7000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1452 + "size": 1469 } //// [/src/logic/outDir/index.d.ts] @@ -211,7 +211,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/src/logic/outDir/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../core/index.d.ts","../../core/anothermodule.d.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"outDir":"./","sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":17000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../../core/index.d.ts","../../core/anothermodule.d.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"outDir":"./","sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/logic/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -273,10 +273,10 @@ exports.m = mod; "../../core/index.d.ts", "../index.ts" ], - "dtsChangeTime": 17000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1574 + "size": 1590 } //// [/src/tests/index.d.ts] @@ -297,7 +297,7 @@ exports.m = mod; //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/outdir/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":25000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/outdir/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -372,9 +372,9 @@ exports.m = mod; "../logic/outdir/index.d.ts", "./index.ts" ], - "dtsChangeTime": 25000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1731 + "size": 1747 } diff --git a/tests/baselines/reference/tsbuild/sample1/builds-till-project-specified.js b/tests/baselines/reference/tsbuild/sample1/builds-till-project-specified.js index 53179207d20..76fea2298a9 100644 --- a/tests/baselines/reference/tsbuild/sample1/builds-till-project-specified.js +++ b/tests/baselines/reference/tsbuild/sample1/builds-till-project-specified.js @@ -149,7 +149,7 @@ exports.multiply = multiply; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":6000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -194,10 +194,10 @@ exports.multiply = multiply; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 6000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1452 + "size": 1469 } //// [/src/logic/index.d.ts] @@ -223,7 +223,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":16000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -285,9 +285,9 @@ exports.m = mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 16000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1577 + "size": 1593 } diff --git a/tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild.js b/tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild.js index 703c7fa5db7..e0125ca8281 100644 --- a/tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild.js +++ b/tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild.js @@ -73,7 +73,7 @@ declare const dts: any; } //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":6000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -118,10 +118,10 @@ declare const dts: any; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 6000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1452 + "size": 1469 } //// [/src/logic/index.d.ts] @@ -171,7 +171,7 @@ export const m = mod; //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":16000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -233,10 +233,10 @@ export const m = mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 16000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1577 + "size": 1593 } //// [/src/tests/index.d.ts] @@ -283,7 +283,7 @@ export const m = mod; } //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":23000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -358,10 +358,10 @@ export const m = mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 23000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1724 + "size": 1740 } //// [/src/ui/index.ts] @@ -387,16 +387,16 @@ export function run() { Output:: /lib/tsc --b /src/tests --verbose -[12:00:29 AM] Projects in this build: +[12:00:26 AM] Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -[12:00:30 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:00:27 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than output 'src/core/tsconfig.tsbuildinfo' -[12:00:31 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:00:28 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' -[12:00:32 AM] Project 'src/tests/tsconfig.json' is up to date because newest input 'src/tests/index.ts' is older than output 'src/tests/tsconfig.tsbuildinfo' +[12:00:29 AM] Project 'src/tests/tsconfig.json' is up to date because newest input 'src/tests/index.ts' is older than output 'src/tests/tsconfig.tsbuildinfo' exitCode:: ExitStatus.Success @@ -412,18 +412,18 @@ const m = 10; Output:: /lib/tsc --b /src/tests --verbose -[12:00:34 AM] Projects in this build: +[12:00:31 AM] Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -[12:00:35 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:00:32 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than output 'src/core/tsconfig.tsbuildinfo' -[12:00:36 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:00:33 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' -[12:00:37 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/tests/index.ts' +[12:00:34 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/tests/index.ts' -[12:00:38 AM] Building project '/src/tests/tsconfig.json'... +[12:00:35 AM] Building project '/src/tests/tsconfig.json'... exitCode:: ExitStatus.Success @@ -437,7 +437,7 @@ var m = 10; //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3708260210-const m = 10;","signature":"1073907769-declare const m = 10;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":39000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3708260210-const m = 10;","signature":"1073907769-declare const m = 10;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -469,10 +469,10 @@ var m = 10; "../../lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 39000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 871 + "size": 887 } @@ -489,27 +489,26 @@ export function multiply(a: number, b: number) { return a * b; } Output:: /lib/tsc --b /src/tests --verbose -[12:00:46 AM] Projects in this build: +[12:00:42 AM] Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -[12:00:47 AM] Project 'src/core/tsconfig.json' is out of date because output 'src/core/tsconfig.tsbuildinfo' is older than input 'src/core/index.ts' +[12:00:43 AM] Project 'src/core/tsconfig.json' is out of date because output 'src/core/tsconfig.tsbuildinfo' is older than input 'src/core/index.ts' -[12:00:48 AM] Building project '/src/core/tsconfig.json'... +[12:00:44 AM] Building project '/src/core/tsconfig.json'... -[12:00:55 AM] Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:00:50 AM] Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:00:56 AM] Updating output timestamps of project '/src/logic/tsconfig.json'... +[12:00:51 AM] Updating output timestamps of project '/src/logic/tsconfig.json'... -[12:00:59 AM] Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:00:54 AM] Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:01:00 AM] Updating output timestamps of project '/src/tests/tsconfig.json'... +[12:00:55 AM] Updating output timestamps of project '/src/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/index.d.ts] file written with same contents //// [/src/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAyB,CAAC;AACnD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} @@ -525,7 +524,7 @@ exports.multiply = multiply; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-2157245566-export const someString: string = \"WELCOME PLANET\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":6000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-2157245566-export const someString: string = \"WELCOME PLANET\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -570,10 +569,10 @@ exports.multiply = multiply; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 6000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1454 + "size": 1471 } //// [/src/logic/tsconfig.tsbuildinfo] file changed its modified time @@ -601,26 +600,25 @@ Input:: Output:: /lib/tsc --b /src/tests --verbose -[12:01:04 AM] Projects in this build: +[12:00:59 AM] Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -[12:01:05 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/index.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:01:00 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/index.ts' is older than output 'src/core/tsconfig.tsbuildinfo' -[12:01:06 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:01:01 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' -[12:01:07 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/tests/tsconfig.json' +[12:01:02 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/tests/tsconfig.json' -[12:01:08 AM] Building project '/src/tests/tsconfig.json'... +[12:01:03 AM] Building project '/src/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3708260210-const m = 10;","signature":"1073907769-declare const m = 10;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":0},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":39000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3708260210-const m = 10;","signature":"1073907769-declare const m = 10;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":0},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -653,9 +651,9 @@ exitCode:: ExitStatus.Success "../../lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 39000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 882 + "size": 898 } diff --git a/tests/baselines/reference/tsbuild/sample1/cleaning-project-in-not-build-order-doesnt-throw-error.js b/tests/baselines/reference/tsbuild/sample1/cleaning-project-in-not-build-order-doesnt-throw-error.js index 7be6897cb10..1d037715db0 100644 --- a/tests/baselines/reference/tsbuild/sample1/cleaning-project-in-not-build-order-doesnt-throw-error.js +++ b/tests/baselines/reference/tsbuild/sample1/cleaning-project-in-not-build-order-doesnt-throw-error.js @@ -73,7 +73,7 @@ declare const dts: any; } //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":6000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -118,10 +118,10 @@ declare const dts: any; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 6000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1452 + "size": 1469 } //// [/src/logic/index.d.ts] @@ -171,7 +171,7 @@ export const m = mod; //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":16000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -233,10 +233,10 @@ export const m = mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 16000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1577 + "size": 1593 } //// [/src/tests/index.d.ts] @@ -283,7 +283,7 @@ export const m = mod; } //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":23000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -358,10 +358,10 @@ export const m = mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 23000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1724 + "size": 1740 } //// [/src/ui/index.ts] diff --git a/tests/baselines/reference/tsbuild/sample1/cleans-till-project-specified.js b/tests/baselines/reference/tsbuild/sample1/cleans-till-project-specified.js index 078171cd72b..10d2b5c642e 100644 --- a/tests/baselines/reference/tsbuild/sample1/cleans-till-project-specified.js +++ b/tests/baselines/reference/tsbuild/sample1/cleans-till-project-specified.js @@ -73,7 +73,7 @@ declare const dts: any; } //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":6000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -118,10 +118,10 @@ declare const dts: any; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 6000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1452 + "size": 1469 } //// [/src/logic/index.d.ts] @@ -171,7 +171,7 @@ export const m = mod; //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":16000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -233,10 +233,10 @@ export const m = mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 16000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1577 + "size": 1593 } //// [/src/tests/index.d.ts] @@ -283,7 +283,7 @@ export const m = mod; } //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":23000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -358,10 +358,10 @@ export const m = mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 23000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1724 + "size": 1740 } //// [/src/ui/index.ts] diff --git a/tests/baselines/reference/tsbuild/sample1/does-not-build-downstream-projects-if-upstream-projects-have-errors.js b/tests/baselines/reference/tsbuild/sample1/does-not-build-downstream-projects-if-upstream-projects-have-errors.js index b28ea1b3564..12aa023c279 100644 --- a/tests/baselines/reference/tsbuild/sample1/does-not-build-downstream-projects-if-upstream-projects-have-errors.js +++ b/tests/baselines/reference/tsbuild/sample1/does-not-build-downstream-projects-if-upstream-projects-have-errors.js @@ -120,18 +120,18 @@ Output:: [12:00:09 AM] Building project '/src/core/tsconfig.json'... -[12:00:20 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist +[12:00:19 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/logic/tsconfig.json'... +[12:00:20 AM] Building project '/src/logic/tsconfig.json'... src/logic/index.ts:3:14 - error TS2339: Property 'muitply' does not exist on type 'typeof import("/src/core/index")'. 3 return c.muitply();    ~~~~~~~ -[12:00:25 AM] Project 'src/tests/tsconfig.json' can't be built because its dependency 'src/logic' has errors +[12:00:24 AM] Project 'src/tests/tsconfig.json' can't be built because its dependency 'src/logic' has errors -[12:00:26 AM] Skipping build of project '/src/tests/tsconfig.json' because its dependency '/src/logic' has errors +[12:00:25 AM] Skipping build of project '/src/tests/tsconfig.json' because its dependency '/src/logic' has errors Found 1 error. @@ -174,7 +174,7 @@ exports.multiply = multiply; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":10000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -219,10 +219,10 @@ exports.multiply = multiply; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 10000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1453 + "size": 1469 } //// [/src/logic/tsconfig.tsbuildinfo] @@ -328,25 +328,25 @@ Input:: Output:: /lib/tsc --b /src/tests --verbose -[12:00:27 AM] Projects in this build: +[12:00:26 AM] Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -[12:00:28 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:00:27 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than output 'src/core/tsconfig.tsbuildinfo' -[12:00:29 AM] Project 'src/logic/tsconfig.json' is out of date because buildinfo file 'src/logic/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted +[12:00:28 AM] Project 'src/logic/tsconfig.json' is out of date because buildinfo file 'src/logic/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted -[12:00:30 AM] Building project '/src/logic/tsconfig.json'... +[12:00:29 AM] Building project '/src/logic/tsconfig.json'... src/logic/index.ts:3:14 - error TS2339: Property 'muitply' does not exist on type 'typeof import("/src/core/index")'. 3 return c.muitply();    ~~~~~~~ -[12:00:31 AM] Project 'src/tests/tsconfig.json' can't be built because its dependency 'src/logic' has errors +[12:00:30 AM] Project 'src/tests/tsconfig.json' can't be built because its dependency 'src/logic' has errors -[12:00:32 AM] Skipping build of project '/src/tests/tsconfig.json' because its dependency '/src/logic' has errors +[12:00:31 AM] Skipping build of project '/src/tests/tsconfig.json' because its dependency '/src/logic' has errors Found 1 error. diff --git a/tests/baselines/reference/tsbuild/sample1/explainFiles.js b/tests/baselines/reference/tsbuild/sample1/explainFiles.js index c45d67b9b24..3dc4ef6340e 100644 --- a/tests/baselines/reference/tsbuild/sample1/explainFiles.js +++ b/tests/baselines/reference/tsbuild/sample1/explainFiles.js @@ -128,9 +128,9 @@ src/core/index.ts Matched by default include pattern '**/*' src/core/some_decl.d.ts Matched by default include pattern '**/*' -[12:00:19 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist +[12:00:18 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/logic/tsconfig.json'... +[12:00:19 AM] Building project '/src/logic/tsconfig.json'... lib/lib.d.ts Default library for target 'es3' @@ -142,9 +142,9 @@ src/core/anotherModule.d.ts File is output of project reference source 'src/core/anotherModule.ts' src/logic/index.ts Matched by default include pattern '**/*' -[12:00:28 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist +[12:00:26 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist -[12:00:29 AM] Building project '/src/tests/tsconfig.json'... +[12:00:27 AM] Building project '/src/tests/tsconfig.json'... lib/lib.d.ts Default library for target 'es3' @@ -198,7 +198,7 @@ exports.multiply = multiply; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":9000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -243,10 +243,10 @@ exports.multiply = multiply; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 9000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1452 + "size": 1469 } //// [/src/logic/index.d.ts] @@ -272,7 +272,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":21000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -334,10 +334,10 @@ exports.m = mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 21000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1577 + "size": 1593 } //// [/src/tests/index.d.ts] @@ -358,7 +358,7 @@ exports.m = mod; //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":30000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -433,10 +433,10 @@ exports.m = mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 30000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1724 + "size": 1740 } @@ -454,14 +454,14 @@ export class someClass { } Output:: /lib/tsc --b /src/tests --explainFiles --v -[12:00:37 AM] Projects in this build: +[12:00:34 AM] Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -[12:00:38 AM] Project 'src/core/tsconfig.json' is out of date because output 'src/core/tsconfig.tsbuildinfo' is older than input 'src/core/index.ts' +[12:00:35 AM] Project 'src/core/tsconfig.json' is out of date because output 'src/core/tsconfig.tsbuildinfo' is older than input 'src/core/index.ts' -[12:00:39 AM] Building project '/src/core/tsconfig.json'... +[12:00:36 AM] Building project '/src/core/tsconfig.json'... lib/lib.d.ts Default library for target 'es3' @@ -471,9 +471,9 @@ src/core/index.ts Matched by default include pattern '**/*' src/core/some_decl.d.ts Matched by default include pattern '**/*' -[12:00:47 AM] Project 'src/logic/tsconfig.json' is out of date because output 'src/logic/tsconfig.tsbuildinfo' is older than input 'src/core' +[12:00:43 AM] Project 'src/logic/tsconfig.json' is out of date because output 'src/logic/tsconfig.tsbuildinfo' is older than input 'src/core' -[12:00:48 AM] Building project '/src/logic/tsconfig.json'... +[12:00:44 AM] Building project '/src/logic/tsconfig.json'... lib/lib.d.ts Default library for target 'es3' @@ -485,9 +485,9 @@ src/core/anotherModule.d.ts File is output of project reference source 'src/core/anotherModule.ts' src/logic/index.ts Matched by default include pattern '**/*' -[12:00:55 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/core' +[12:00:50 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/core' -[12:00:56 AM] Building project '/src/tests/tsconfig.json'... +[12:00:51 AM] Building project '/src/tests/tsconfig.json'... lib/lib.d.ts Default library for target 'es3' @@ -535,7 +535,7 @@ exports.someClass = someClass; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":40000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -580,17 +580,16 @@ exports.someClass = someClass; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 40000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1524 + "size": 1540 } -//// [/src/logic/index.d.ts] file written with same contents //// [/src/logic/index.js] file written with same contents //// [/src/logic/index.js.map] file written with same contents //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":21000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -652,16 +651,15 @@ exports.someClass = someClass; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 21000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1617 + "size": 1633 } -//// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":30000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -736,10 +734,10 @@ exports.someClass = someClass; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 30000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1764 + "size": 1780 } @@ -758,14 +756,14 @@ class someClass2 { } Output:: /lib/tsc --b /src/tests --explainFiles --v -[12:01:03 AM] Projects in this build: +[12:00:57 AM] Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -[12:01:04 AM] Project 'src/core/tsconfig.json' is out of date because output 'src/core/tsconfig.tsbuildinfo' is older than input 'src/core/index.ts' +[12:00:58 AM] Project 'src/core/tsconfig.json' is out of date because output 'src/core/tsconfig.tsbuildinfo' is older than input 'src/core/index.ts' -[12:01:05 AM] Building project '/src/core/tsconfig.json'... +[12:00:59 AM] Building project '/src/core/tsconfig.json'... lib/lib.d.ts Default library for target 'es3' @@ -775,18 +773,17 @@ src/core/index.ts Matched by default include pattern '**/*' src/core/some_decl.d.ts Matched by default include pattern '**/*' -[12:01:12 AM] Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:05 AM] Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:01:13 AM] Updating output timestamps of project '/src/logic/tsconfig.json'... +[12:01:06 AM] Updating output timestamps of project '/src/logic/tsconfig.json'... -[12:01:16 AM] Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:09 AM] Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:01:17 AM] Updating output timestamps of project '/src/tests/tsconfig.json'... +[12:01:10 AM] Updating output timestamps of project '/src/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/index.d.ts] file written with same contents //// [/src/core/index.d.ts.map] file written with same contents //// [/src/core/index.js] "use strict"; @@ -811,7 +808,7 @@ var someClass2 = /** @class */ (function () { //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":40000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -856,10 +853,10 @@ var someClass2 = /** @class */ (function () { "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 40000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1546 + "size": 1562 } //// [/src/logic/tsconfig.tsbuildinfo] file changed its modified time @@ -872,16 +869,16 @@ Input:: Output:: /lib/tsc --b /src/tests --explainFiles --v -[12:01:20 AM] Projects in this build: +[12:01:13 AM] Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -[12:01:21 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/index.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:01:14 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/index.ts' is older than output 'src/core/tsconfig.tsbuildinfo' -[12:01:22 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:01:15 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' -[12:01:23 AM] Project 'src/tests/tsconfig.json' is up to date because newest input 'src/tests/index.ts' is older than output 'src/tests/tsconfig.tsbuildinfo' +[12:01:16 AM] Project 'src/tests/tsconfig.json' is up to date because newest input 'src/tests/index.ts' is older than output 'src/tests/tsconfig.tsbuildinfo' exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/sample1/indicates-that-it-would-skip-builds-during-a-dry-build.js b/tests/baselines/reference/tsbuild/sample1/indicates-that-it-would-skip-builds-during-a-dry-build.js index 78d167406d2..aaae55034ca 100644 --- a/tests/baselines/reference/tsbuild/sample1/indicates-that-it-would-skip-builds-during-a-dry-build.js +++ b/tests/baselines/reference/tsbuild/sample1/indicates-that-it-would-skip-builds-during-a-dry-build.js @@ -73,7 +73,7 @@ declare const dts: any; } //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":6000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -118,10 +118,10 @@ declare const dts: any; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 6000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1452 + "size": 1469 } //// [/src/logic/index.d.ts] @@ -171,7 +171,7 @@ export const m = mod; //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":16000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -233,10 +233,10 @@ export const m = mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 16000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1577 + "size": 1593 } //// [/src/tests/index.d.ts] @@ -283,7 +283,7 @@ export const m = mod; } //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":23000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -358,10 +358,10 @@ export const m = mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 23000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1724 + "size": 1740 } //// [/src/ui/index.ts] @@ -387,11 +387,11 @@ export function run() { Output:: /lib/tsc --b /src/tests --dry -[12:00:29 AM] Project '/src/core/tsconfig.json' is up to date +[12:00:26 AM] Project '/src/core/tsconfig.json' is up to date -[12:00:30 AM] Project '/src/logic/tsconfig.json' is up to date +[12:00:27 AM] Project '/src/logic/tsconfig.json' is up to date -[12:00:31 AM] Project '/src/tests/tsconfig.json' is up to date +[12:00:28 AM] Project '/src/tests/tsconfig.json' is up to date exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/sample1/invalidates-projects-correctly.js b/tests/baselines/reference/tsbuild/sample1/invalidates-projects-correctly.js index 6c6724f1061..9a51f3f872c 100644 --- a/tests/baselines/reference/tsbuild/sample1/invalidates-projects-correctly.js +++ b/tests/baselines/reference/tsbuild/sample1/invalidates-projects-correctly.js @@ -123,7 +123,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":37000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -168,10 +168,10 @@ export declare function multiply(a: number, b: number): number; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 37000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1374 + "size": 1390 } //// [/user/username/projects/logic/index.js.map] @@ -197,7 +197,7 @@ export declare const m: typeof mod; //// [/user/username/projects/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":55000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -259,10 +259,10 @@ export declare const m: typeof mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 55000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1491 + "size": 1507 } //// [/user/username/projects/tests/index.js] @@ -283,7 +283,7 @@ export declare const m: typeof mod; //// [/user/username/projects/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":67000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -358,10 +358,10 @@ export declare const m: typeof mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 67000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1636 + "size": 1652 } @@ -395,9 +395,8 @@ exports.m = mod; function foo() { } //# sourceMappingURL=index.js.map -//// [/user/username/projects/logic/index.d.ts] file written with same contents //// [/user/username/projects/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-2207004071-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() {}","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":55000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-2207004071-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() {}","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -459,10 +458,10 @@ function foo() { } "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 55000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1508 + "size": 1524 } @@ -515,7 +514,7 @@ export declare class cNew { //// [/user/username/projects/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5994214602-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() {}export class cNew {}","signature":"-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":98000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5994214602-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() {}export class cNew {}","signature":"-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -577,10 +576,10 @@ export declare class cNew { "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 98000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1561 + "size": 1577 } @@ -588,9 +587,8 @@ Dts change to Logic:: After building next project Output:: //// [/user/username/projects/tests/index.js] file written with same contents -//// [/user/username/projects/tests/index.d.ts] file written with same contents //// [/user/username/projects/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":67000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -665,9 +663,9 @@ Output:: "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 67000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1669 + "size": 1685 } diff --git a/tests/baselines/reference/tsbuild/sample1/listEmittedFiles.js b/tests/baselines/reference/tsbuild/sample1/listEmittedFiles.js index 51b5078e7fb..326a2bdaa21 100644 --- a/tests/baselines/reference/tsbuild/sample1/listEmittedFiles.js +++ b/tests/baselines/reference/tsbuild/sample1/listEmittedFiles.js @@ -163,7 +163,7 @@ exports.multiply = multiply; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":6000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -208,10 +208,10 @@ exports.multiply = multiply; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 6000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1452 + "size": 1469 } //// [/src/logic/index.d.ts] @@ -237,7 +237,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":16000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -299,10 +299,10 @@ exports.m = mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 16000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1577 + "size": 1593 } //// [/src/tests/index.d.ts] @@ -323,7 +323,7 @@ exports.m = mod; //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":23000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -398,10 +398,10 @@ exports.m = mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 23000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1724 + "size": 1740 } @@ -425,10 +425,8 @@ TSFILE: /src/core/index.d.ts TSFILE: /src/core/tsconfig.tsbuildinfo TSFILE: /src/logic/index.js.map TSFILE: /src/logic/index.js -TSFILE: /src/logic/index.d.ts TSFILE: /src/logic/tsconfig.tsbuildinfo TSFILE: /src/tests/index.js -TSFILE: /src/tests/index.d.ts TSFILE: /src/tests/tsconfig.tsbuildinfo exitCode:: ExitStatus.Success @@ -462,7 +460,7 @@ exports.someClass = someClass; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":30000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -507,17 +505,16 @@ exports.someClass = someClass; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 30000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1524 + "size": 1540 } -//// [/src/logic/index.d.ts] file written with same contents //// [/src/logic/index.js] file written with same contents //// [/src/logic/index.js.map] file written with same contents //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":16000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -579,16 +576,15 @@ exports.someClass = someClass; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 16000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1617 + "size": 1633 } -//// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":23000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -663,10 +659,10 @@ exports.someClass = someClass; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 23000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1764 + "size": 1780 } @@ -687,12 +683,10 @@ Output:: /lib/tsc --b /src/tests --listEmittedFiles TSFILE: /src/core/index.js TSFILE: /src/core/index.d.ts.map -TSFILE: /src/core/index.d.ts TSFILE: /src/core/tsconfig.tsbuildinfo exitCode:: ExitStatus.Success -//// [/src/core/index.d.ts] file written with same contents //// [/src/core/index.d.ts.map] file written with same contents //// [/src/core/index.js] "use strict"; @@ -717,7 +711,7 @@ var someClass2 = /** @class */ (function () { //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":30000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -762,10 +756,10 @@ var someClass2 = /** @class */ (function () { "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 30000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1546 + "size": 1562 } //// [/src/logic/tsconfig.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuild/sample1/listFiles.js b/tests/baselines/reference/tsbuild/sample1/listFiles.js index 90f2050c366..2dcfc3c6b4d 100644 --- a/tests/baselines/reference/tsbuild/sample1/listFiles.js +++ b/tests/baselines/reference/tsbuild/sample1/listFiles.js @@ -162,7 +162,7 @@ exports.multiply = multiply; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":6000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -207,10 +207,10 @@ exports.multiply = multiply; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 6000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1452 + "size": 1469 } //// [/src/logic/index.d.ts] @@ -236,7 +236,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":16000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -298,10 +298,10 @@ exports.m = mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 16000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1577 + "size": 1593 } //// [/src/tests/index.d.ts] @@ -322,7 +322,7 @@ exports.m = mod; //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":23000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -397,10 +397,10 @@ exports.m = mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 23000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1724 + "size": 1740 } @@ -463,7 +463,7 @@ exports.someClass = someClass; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":30000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -508,17 +508,16 @@ exports.someClass = someClass; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 30000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1524 + "size": 1540 } -//// [/src/logic/index.d.ts] file written with same contents //// [/src/logic/index.js] file written with same contents //// [/src/logic/index.js.map] file written with same contents //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":16000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -580,16 +579,15 @@ exports.someClass = someClass; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 16000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1617 + "size": 1633 } -//// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":23000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -664,10 +662,10 @@ exports.someClass = someClass; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 23000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1764 + "size": 1780 } @@ -693,7 +691,6 @@ Output:: exitCode:: ExitStatus.Success -//// [/src/core/index.d.ts] file written with same contents //// [/src/core/index.d.ts.map] file written with same contents //// [/src/core/index.js] "use strict"; @@ -718,7 +715,7 @@ var someClass2 = /** @class */ (function () { //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":30000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -763,10 +760,10 @@ var someClass2 = /** @class */ (function () { "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 30000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1546 + "size": 1562 } //// [/src/logic/tsconfig.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuild/sample1/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js b/tests/baselines/reference/tsbuild/sample1/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js index 9cd5396321d..567a953aed2 100644 --- a/tests/baselines/reference/tsbuild/sample1/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js +++ b/tests/baselines/reference/tsbuild/sample1/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js @@ -73,7 +73,7 @@ declare const dts: any; } //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":6000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -118,10 +118,10 @@ declare const dts: any; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 6000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1452 + "size": 1469 } //// [/src/logic/index.d.ts] @@ -171,7 +171,7 @@ export const m = mod; //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":16000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -233,10 +233,10 @@ export const m = mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 16000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1577 + "size": 1593 } //// [/src/tests/index.d.ts] @@ -283,7 +283,7 @@ export const m = mod; } //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":23000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -358,10 +358,10 @@ export const m = mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 23000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1724 + "size": 1740 } //// [/src/ui/index.ts] @@ -387,22 +387,22 @@ export function run() { Output:: /lib/tsc --b /src/tests --verbose -[12:00:29 AM] Projects in this build: +[12:00:26 AM] Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -[12:00:30 AM] Project 'src/core/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' +[12:00:27 AM] Project 'src/core/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' -[12:00:31 AM] Building project '/src/core/tsconfig.json'... +[12:00:28 AM] Building project '/src/core/tsconfig.json'... -[12:00:42 AM] Project 'src/logic/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' +[12:00:38 AM] Project 'src/logic/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' -[12:00:43 AM] Building project '/src/logic/tsconfig.json'... +[12:00:39 AM] Building project '/src/logic/tsconfig.json'... -[12:00:51 AM] Project 'src/tests/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' +[12:00:46 AM] Project 'src/tests/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' -[12:00:52 AM] Building project '/src/tests/tsconfig.json'... +[12:00:47 AM] Building project '/src/tests/tsconfig.json'... exitCode:: ExitStatus.Success @@ -414,7 +414,7 @@ exitCode:: ExitStatus.Success //// [/src/core/index.d.ts.map] file written with same contents //// [/src/core/index.js] file written with same contents //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":32000},"version":"FakeTSCurrentVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSCurrentVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -459,17 +459,17 @@ exitCode:: ExitStatus.Success "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 32000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 1460 + "size": 1476 } //// [/src/logic/index.d.ts] file written with same contents //// [/src/logic/index.js] file written with same contents //// [/src/logic/index.js.map] file written with same contents //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":44000},"version":"FakeTSCurrentVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSCurrentVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -531,16 +531,16 @@ exitCode:: ExitStatus.Success "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 44000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 1584 + "size": 1600 } //// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":53000},"version":"FakeTSCurrentVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSCurrentVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -615,9 +615,9 @@ exitCode:: ExitStatus.Success "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 53000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 1731 + "size": 1747 } diff --git a/tests/baselines/reference/tsbuild/sample1/rebuilds-from-start-if-force-option-is-set.js b/tests/baselines/reference/tsbuild/sample1/rebuilds-from-start-if-force-option-is-set.js index 08a7a43b152..10f22a1739c 100644 --- a/tests/baselines/reference/tsbuild/sample1/rebuilds-from-start-if-force-option-is-set.js +++ b/tests/baselines/reference/tsbuild/sample1/rebuilds-from-start-if-force-option-is-set.js @@ -73,7 +73,7 @@ declare const dts: any; } //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":6000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -118,10 +118,10 @@ declare const dts: any; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 6000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1452 + "size": 1469 } //// [/src/logic/index.d.ts] @@ -171,7 +171,7 @@ export const m = mod; //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":16000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -233,10 +233,10 @@ export const m = mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 16000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1577 + "size": 1593 } //// [/src/tests/index.d.ts] @@ -283,7 +283,7 @@ export const m = mod; } //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":23000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -358,10 +358,10 @@ export const m = mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 23000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1724 + "size": 1740 } //// [/src/ui/index.ts] @@ -387,22 +387,22 @@ export function run() { Output:: /lib/tsc --b /src/tests --verbose --force -[12:00:29 AM] Projects in this build: +[12:00:26 AM] Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -[12:00:30 AM] Project 'src/core/tsconfig.json' is being forcibly rebuilt +[12:00:27 AM] Project 'src/core/tsconfig.json' is being forcibly rebuilt -[12:00:31 AM] Building project '/src/core/tsconfig.json'... +[12:00:28 AM] Building project '/src/core/tsconfig.json'... -[12:00:42 AM] Project 'src/logic/tsconfig.json' is being forcibly rebuilt +[12:00:38 AM] Project 'src/logic/tsconfig.json' is being forcibly rebuilt -[12:00:43 AM] Building project '/src/logic/tsconfig.json'... +[12:00:39 AM] Building project '/src/logic/tsconfig.json'... -[12:00:51 AM] Project 'src/tests/tsconfig.json' is being forcibly rebuilt +[12:00:46 AM] Project 'src/tests/tsconfig.json' is being forcibly rebuilt -[12:00:52 AM] Building project '/src/tests/tsconfig.json'... +[12:00:47 AM] Building project '/src/tests/tsconfig.json'... exitCode:: ExitStatus.Success @@ -413,211 +413,14 @@ exitCode:: ExitStatus.Success //// [/src/core/index.d.ts] file written with same contents //// [/src/core/index.d.ts.map] file written with same contents //// [/src/core/index.js] file written with same contents -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":32000},"version":"FakeTSVersion"} - -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "./anothermodule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "./anothermodule.ts": { - "version": "-2676574883-export const World = \"hello\";\r\n", - "signature": "-8396256275-export declare const World = \"hello\";\r\n" - }, - "./index.ts": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", - "signature": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n" - }, - "./some_decl.d.ts": { - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", - "affectsGlobalScope": true - } - }, - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "referencedMap": {}, - "exportedModulesMap": {}, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "./anothermodule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "dtsChangeTime": 32000 - }, - "version": "FakeTSVersion", - "size": 1453 -} - +//// [/src/core/tsconfig.tsbuildinfo] file written with same contents +//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents //// [/src/logic/index.d.ts] file written with same contents //// [/src/logic/index.js] file written with same contents //// [/src/logic/index.js.map] file written with same contents -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":44000},"version":"FakeTSVersion"} - -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../core/index.d.ts", - "../core/anothermodule.d.ts", - "./index.ts" - ], - "fileNamesList": [ - [ - "../core/index.d.ts", - "../core/anothermodule.d.ts" - ], - [ - "../core/anothermodule.d.ts" - ] - ], - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "../core/index.d.ts": { - "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", - "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" - }, - "../core/anothermodule.d.ts": { - "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" - }, - "./index.ts": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", - "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - } - }, - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anothermodule.d.ts" - ] - }, - "exportedModulesMap": { - "./index.ts": [ - "../core/anothermodule.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../core/anothermodule.d.ts", - "../core/index.d.ts", - "./index.ts" - ], - "dtsChangeTime": 44000 - }, - "version": "FakeTSVersion", - "size": 1577 -} - +//// [/src/logic/tsconfig.tsbuildinfo] file written with same contents +//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents //// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":53000},"version":"FakeTSVersion"} - -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../core/index.d.ts", - "../core/anothermodule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileNamesList": [ - [ - "../core/anothermodule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anothermodule.d.ts", - "../logic/index.d.ts" - ] - ], - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "../core/index.d.ts": { - "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", - "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" - }, - "../core/anothermodule.d.ts": { - "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" - }, - "../logic/index.d.ts": { - "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", - "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - }, - "./index.ts": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", - "signature": "-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - } - }, - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anothermodule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anothermodule.d.ts", - "../logic/index.d.ts" - ] - }, - "exportedModulesMap": { - "../logic/index.d.ts": [ - "../core/anothermodule.d.ts" - ], - "./index.ts": [ - "../core/anothermodule.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../core/anothermodule.d.ts", - "../core/index.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "dtsChangeTime": 53000 - }, - "version": "FakeTSVersion", - "size": 1724 -} - +//// [/src/tests/tsconfig.tsbuildinfo] file written with same contents +//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/sample1/rebuilds-when-extended-config-file-changes.js b/tests/baselines/reference/tsbuild/sample1/rebuilds-when-extended-config-file-changes.js index fd762a3c797..1575eca679c 100644 --- a/tests/baselines/reference/tsbuild/sample1/rebuilds-when-extended-config-file-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/rebuilds-when-extended-config-file-changes.js @@ -123,13 +123,13 @@ Output:: [12:00:10 AM] Building project '/src/core/tsconfig.json'... -[12:00:21 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist -[12:00:22 AM] Building project '/src/logic/tsconfig.json'... +[12:00:21 AM] Building project '/src/logic/tsconfig.json'... -[12:00:30 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist +[12:00:28 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist -[12:00:31 AM] Building project '/src/tests/tsconfig.json'... +[12:00:29 AM] Building project '/src/tests/tsconfig.json'... exitCode:: ExitStatus.Success @@ -169,7 +169,7 @@ exports.multiply = multiply; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":11000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -214,10 +214,10 @@ exports.multiply = multiply; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 11000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1453 + "size": 1469 } //// [/src/logic/index.d.ts] @@ -243,7 +243,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":23000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -305,10 +305,10 @@ exports.m = mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 23000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1577 + "size": 1593 } //// [/src/tests/index.d.ts] @@ -329,7 +329,7 @@ exports.m = mod; //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":0},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":32000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":0},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -405,10 +405,10 @@ exports.m = mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 32000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1735 + "size": 1751 } @@ -422,26 +422,25 @@ Input:: Output:: /lib/tsc --b /src/tests --verbose -[12:00:39 AM] Projects in this build: +[12:00:36 AM] Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -[12:00:40 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:00:37 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than output 'src/core/tsconfig.tsbuildinfo' -[12:00:41 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:00:38 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' -[12:00:42 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/tests/tsconfig.base.json' +[12:00:39 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/tests/tsconfig.base.json' -[12:00:43 AM] Building project '/src/tests/tsconfig.json'... +[12:00:40 AM] Building project '/src/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":32000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -516,9 +515,9 @@ exitCode:: ExitStatus.Success "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 32000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1724 + "size": 1740 } diff --git a/tests/baselines/reference/tsbuild/sample1/removes-all-files-it-built.js b/tests/baselines/reference/tsbuild/sample1/removes-all-files-it-built.js index a44f43df054..b298fb92dc1 100644 --- a/tests/baselines/reference/tsbuild/sample1/removes-all-files-it-built.js +++ b/tests/baselines/reference/tsbuild/sample1/removes-all-files-it-built.js @@ -73,7 +73,7 @@ declare const dts: any; } //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":6000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -118,10 +118,10 @@ declare const dts: any; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 6000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1452 + "size": 1469 } //// [/src/logic/index.d.ts] @@ -171,7 +171,7 @@ export const m = mod; //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":16000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -233,10 +233,10 @@ export const m = mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 16000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1577 + "size": 1593 } //// [/src/tests/index.d.ts] @@ -283,7 +283,7 @@ export const m = mod; } //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":23000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -358,10 +358,10 @@ export const m = mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 23000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1724 + "size": 1740 } //// [/src/ui/index.ts] diff --git a/tests/baselines/reference/tsbuild/sample1/sample.js b/tests/baselines/reference/tsbuild/sample1/sample.js index b278be96d47..bdf19c45977 100644 --- a/tests/baselines/reference/tsbuild/sample1/sample.js +++ b/tests/baselines/reference/tsbuild/sample1/sample.js @@ -120,13 +120,13 @@ Output:: [12:00:08 AM] Building project '/src/core/tsconfig.json'... -[12:00:19 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist +[12:00:18 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/logic/tsconfig.json'... +[12:00:19 AM] Building project '/src/logic/tsconfig.json'... -[12:00:28 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist +[12:00:26 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist -[12:00:29 AM] Building project '/src/tests/tsconfig.json'... +[12:00:27 AM] Building project '/src/tests/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -328,7 +328,7 @@ exports.multiply = multiply; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":9000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -373,10 +373,10 @@ exports.multiply = multiply; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 9000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1452 + "size": 1469 } //// [/src/logic/index.d.ts] @@ -527,7 +527,7 @@ sourceFile:index.ts >>>//# sourceMappingURL=index.js.map //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":21000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -589,10 +589,10 @@ sourceFile:index.ts "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 21000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1577 + "size": 1593 } //// [/src/tests/index.d.ts] @@ -613,7 +613,7 @@ exports.m = mod; //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":30000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -688,10 +688,10 @@ exports.m = mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 30000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1724 + "size": 1740 } @@ -709,22 +709,22 @@ export class someClass { } Output:: /lib/tsc --b /src/tests --verbose -[12:00:40 AM] Projects in this build: +[12:00:37 AM] Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -[12:00:41 AM] Project 'src/core/tsconfig.json' is out of date because output 'src/core/tsconfig.tsbuildinfo' is older than input 'src/core/index.ts' +[12:00:38 AM] Project 'src/core/tsconfig.json' is out of date because output 'src/core/tsconfig.tsbuildinfo' is older than input 'src/core/index.ts' -[12:00:42 AM] Building project '/src/core/tsconfig.json'... +[12:00:39 AM] Building project '/src/core/tsconfig.json'... -[12:00:50 AM] Project 'src/logic/tsconfig.json' is out of date because output 'src/logic/tsconfig.tsbuildinfo' is older than input 'src/core' +[12:00:46 AM] Project 'src/logic/tsconfig.json' is out of date because output 'src/logic/tsconfig.tsbuildinfo' is older than input 'src/core' -[12:00:51 AM] Building project '/src/logic/tsconfig.json'... +[12:00:47 AM] Building project '/src/logic/tsconfig.json'... -[12:00:58 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/core' +[12:00:53 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/core' -[12:00:59 AM] Building project '/src/tests/tsconfig.json'... +[12:00:54 AM] Building project '/src/tests/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -908,7 +908,7 @@ exports.someClass = someClass; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":43000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -953,18 +953,17 @@ exports.someClass = someClass; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 43000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1524 + "size": 1540 } -//// [/src/logic/index.d.ts] file written with same contents //// [/src/logic/index.js] file written with same contents //// [/src/logic/index.js.map] file written with same contents //// [/src/logic/index.js.map.baseline.txt] file written with same contents //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":21000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1026,16 +1025,15 @@ exports.someClass = someClass; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 21000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1617 + "size": 1633 } -//// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":30000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1110,10 +1108,10 @@ exports.someClass = someClass; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 30000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1764 + "size": 1780 } @@ -1132,22 +1130,22 @@ class someClass2 { } Output:: /lib/tsc --b /src/tests --verbose -[12:01:08 AM] Projects in this build: +[12:01:02 AM] Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -[12:01:09 AM] Project 'src/core/tsconfig.json' is out of date because output 'src/core/tsconfig.tsbuildinfo' is older than input 'src/core/index.ts' +[12:01:03 AM] Project 'src/core/tsconfig.json' is out of date because output 'src/core/tsconfig.tsbuildinfo' is older than input 'src/core/index.ts' -[12:01:10 AM] Building project '/src/core/tsconfig.json'... +[12:01:04 AM] Building project '/src/core/tsconfig.json'... -[12:01:17 AM] Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:10 AM] Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:01:18 AM] Updating output timestamps of project '/src/logic/tsconfig.json'... +[12:01:11 AM] Updating output timestamps of project '/src/logic/tsconfig.json'... -[12:01:21 AM] Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:14 AM] Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:01:22 AM] Updating output timestamps of project '/src/tests/tsconfig.json'... +[12:01:15 AM] Updating output timestamps of project '/src/tests/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -1162,7 +1160,6 @@ readFiles:: { "/src/tests/tsconfig.tsbuildinfo": 1 } -//// [/src/core/index.d.ts] file written with same contents //// [/src/core/index.d.ts.map] file written with same contents //// [/src/core/index.d.ts.map.baseline.txt] file written with same contents //// [/src/core/index.js] @@ -1188,7 +1185,7 @@ var someClass2 = /** @class */ (function () { //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":43000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1233,10 +1230,10 @@ var someClass2 = /** @class */ (function () { "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 43000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1546 + "size": 1562 } //// [/src/logic/tsconfig.tsbuildinfo] file changed its modified time @@ -1249,16 +1246,16 @@ Input:: Output:: /lib/tsc --b /src/tests --verbose -[12:01:26 AM] Projects in this build: +[12:01:19 AM] Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -[12:01:27 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/index.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:01:20 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/index.ts' is older than output 'src/core/tsconfig.tsbuildinfo' -[12:01:28 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:01:21 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' -[12:01:29 AM] Project 'src/tests/tsconfig.json' is up to date because newest input 'src/tests/index.ts' is older than output 'src/tests/tsconfig.tsbuildinfo' +[12:01:22 AM] Project 'src/tests/tsconfig.json' is up to date because newest input 'src/tests/index.ts' is older than output 'src/tests/tsconfig.tsbuildinfo' exitCode:: ExitStatus.Success readFiles:: { @@ -1294,20 +1291,20 @@ Input:: Output:: /lib/tsc --b /src/tests --verbose -[12:01:31 AM] Projects in this build: +[12:01:24 AM] Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -[12:01:32 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/index.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:01:25 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/index.ts' is older than output 'src/core/tsconfig.tsbuildinfo' -[12:01:33 AM] Project 'src/logic/tsconfig.json' is out of date because output 'src/logic/tsconfig.tsbuildinfo' is older than input 'src/logic/tsconfig.json' +[12:01:26 AM] Project 'src/logic/tsconfig.json' is out of date because output 'src/logic/tsconfig.tsbuildinfo' is older than input 'src/logic/tsconfig.json' -[12:01:34 AM] Building project '/src/logic/tsconfig.json'... +[12:01:27 AM] Building project '/src/logic/tsconfig.json'... -[12:01:43 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/logic' +[12:01:35 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/logic' -[12:01:44 AM] Building project '/src/tests/tsconfig.json'... +[12:01:36 AM] Building project '/src/tests/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -1334,7 +1331,7 @@ export declare const m: typeof mod; //// [/src/logic/index.js.map] file written with same contents //// [/src/logic/index.js.map.baseline.txt] file written with same contents //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"declarationDir":"./decls","skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":95000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"declarationDir":"./decls","skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./decls/index.d.ts"},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1397,16 +1394,15 @@ export declare const m: typeof mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 95000 + "latestChangedDtsFile": "./decls/index.d.ts" }, "version": "FakeTSVersion", - "size": 1644 + "size": 1666 } -//// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/decls/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":30000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/decls/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1481,10 +1477,10 @@ export declare const m: typeof mod; "../logic/decls/index.d.ts", "./index.ts" ], - "dtsChangeTime": 30000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1770 + "size": 1786 } @@ -1495,16 +1491,16 @@ Input:: Output:: /lib/tsc --b /src/tests --verbose -[12:01:51 AM] Projects in this build: +[12:01:42 AM] Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -[12:01:52 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/index.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:01:43 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/index.ts' is older than output 'src/core/tsconfig.tsbuildinfo' -[12:01:53 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:01:44 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' -[12:01:54 AM] Project 'src/tests/tsconfig.json' is up to date because newest input 'src/tests/index.ts' is older than output 'src/tests/tsconfig.tsbuildinfo' +[12:01:45 AM] Project 'src/tests/tsconfig.json' is up to date because newest input 'src/tests/index.ts' is older than output 'src/tests/tsconfig.tsbuildinfo' exitCode:: ExitStatus.Success readFiles:: { diff --git a/tests/baselines/reference/tsbuild/sample1/tsbuildinfo-has-error.js b/tests/baselines/reference/tsbuild/sample1/tsbuildinfo-has-error.js new file mode 100644 index 00000000000..c6de202367d --- /dev/null +++ b/tests/baselines/reference/tsbuild/sample1/tsbuildinfo-has-error.js @@ -0,0 +1,104 @@ +Input:: +//// [/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/src/project/main.ts] +export const x = 10; + +//// [/src/project/tsconfig.json] +{} + +//// [/src/project/tsconfig.tsbuildinfo] +Some random string + + + +Output:: +/lib/tsc --b src/project -i -v +[12:00:10 AM] Projects in this build: + * src/project/tsconfig.json + +[12:00:11 AM] Project 'src/project/tsconfig.json' is out of date because there was error reading file 'src/project/tsconfig.tsbuildinfo' + +[12:00:12 AM] Building project '/src/project/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/project/main.js] +"use strict"; +exports.__esModule = true; +exports.x = void 0; +exports.x = 10; + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;"],"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./main.ts" + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./main.ts": { + "version": "-10726455937-export const x = 10;", + "signature": "-10726455937-export const x = 10;" + } + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./main.ts" + ] + }, + "version": "FakeTSVersion", + "size": 693 +} + + + +Change:: tsbuildinfo written has error +Input:: +//// [/src/project/tsconfig.tsbuildinfo] +Some random string{"program":{"fileNames":["../../lib/lib.d.ts","./main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;"],"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} + + + +Output:: +/lib/tsc --b src/project -i -v +[12:00:18 AM] Projects in this build: + * src/project/tsconfig.json + +[12:00:19 AM] Project 'src/project/tsconfig.json' is out of date because there was error reading file 'src/project/tsconfig.tsbuildinfo' + +[12:00:20 AM] Building project '/src/project/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/project/main.js] file written with same contents +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;"],"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/sample1/when-esModuleInterop-option-changes.js b/tests/baselines/reference/tsbuild/sample1/when-esModuleInterop-option-changes.js index 5fd16ac41d7..156d5e31641 100644 --- a/tests/baselines/reference/tsbuild/sample1/when-esModuleInterop-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/when-esModuleInterop-option-changes.js @@ -121,13 +121,13 @@ Output:: [12:00:09 AM] Building project '/src/core/tsconfig.json'... -[12:00:20 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist +[12:00:19 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/logic/tsconfig.json'... +[12:00:20 AM] Building project '/src/logic/tsconfig.json'... -[12:00:29 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist +[12:00:27 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist -[12:00:30 AM] Building project '/src/tests/tsconfig.json'... +[12:00:28 AM] Building project '/src/tests/tsconfig.json'... exitCode:: ExitStatus.Success @@ -167,7 +167,7 @@ exports.multiply = multiply; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":10000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -212,10 +212,10 @@ exports.multiply = multiply; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 10000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1453 + "size": 1469 } //// [/src/logic/index.d.ts] @@ -241,7 +241,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":22000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -303,10 +303,10 @@ exports.m = mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 22000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1577 + "size": 1593 } //// [/src/tests/index.d.ts] @@ -327,7 +327,7 @@ exports.m = mod; //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"esModuleInterop":false,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":31000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"esModuleInterop":false,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -403,10 +403,10 @@ exports.m = mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 31000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1748 + "size": 1764 } @@ -433,23 +433,22 @@ Input:: Output:: /lib/tsc --b /src/tests --verbose -[12:00:38 AM] Projects in this build: +[12:00:35 AM] Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -[12:00:39 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:00:36 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than output 'src/core/tsconfig.tsbuildinfo' -[12:00:40 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:00:37 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' -[12:00:41 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/tests/tsconfig.json' +[12:00:38 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/tests/tsconfig.json' -[12:00:42 AM] Building project '/src/tests/tsconfig.json'... +[12:00:39 AM] Building project '/src/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { @@ -486,7 +485,7 @@ exports.m = mod; //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":31000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -562,9 +561,9 @@ exports.m = mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 31000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1747 + "size": 1763 } diff --git a/tests/baselines/reference/tsbuild/sample1/when-input-file-text-does-not-change-but-its-modified-time-changes.js b/tests/baselines/reference/tsbuild/sample1/when-input-file-text-does-not-change-but-its-modified-time-changes.js index 03c7cb6ab9e..99c8822eee2 100644 --- a/tests/baselines/reference/tsbuild/sample1/when-input-file-text-does-not-change-but-its-modified-time-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/when-input-file-text-does-not-change-but-its-modified-time-changes.js @@ -120,13 +120,13 @@ Output:: [12:00:08 AM] Building project '/src/core/tsconfig.json'... -[12:00:19 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist +[12:00:18 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/logic/tsconfig.json'... +[12:00:19 AM] Building project '/src/logic/tsconfig.json'... -[12:00:28 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist +[12:00:26 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist -[12:00:29 AM] Building project '/src/tests/tsconfig.json'... +[12:00:27 AM] Building project '/src/tests/tsconfig.json'... exitCode:: ExitStatus.Success @@ -166,7 +166,7 @@ exports.multiply = multiply; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":9000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -211,10 +211,10 @@ exports.multiply = multiply; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 9000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1452 + "size": 1469 } //// [/src/logic/index.d.ts] @@ -240,7 +240,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":21000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -302,10 +302,10 @@ exports.m = mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 21000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1577 + "size": 1593 } //// [/src/tests/index.d.ts] @@ -326,7 +326,7 @@ exports.m = mod; //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":30000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -401,10 +401,10 @@ exports.m = mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 30000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1724 + "size": 1740 } @@ -416,22 +416,22 @@ Input:: Output:: /lib/tsc --b /src/tests --verbose -[12:00:38 AM] Projects in this build: +[12:00:35 AM] Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -[12:00:39 AM] Project 'src/core/tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files +[12:00:36 AM] Project 'src/core/tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files -[12:00:40 AM] Updating output timestamps of project '/src/core/tsconfig.json'... +[12:00:37 AM] Updating output timestamps of project '/src/core/tsconfig.json'... -[12:00:43 AM] Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:00:40 AM] Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:00:44 AM] Updating output timestamps of project '/src/logic/tsconfig.json'... +[12:00:41 AM] Updating output timestamps of project '/src/logic/tsconfig.json'... -[12:00:47 AM] Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:00:44 AM] Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:00:48 AM] Updating output timestamps of project '/src/tests/tsconfig.json'... +[12:00:45 AM] Updating output timestamps of project '/src/tests/tsconfig.json'... exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/sample1/when-logic-specifies-tsBuildInfoFile.js b/tests/baselines/reference/tsbuild/sample1/when-logic-specifies-tsBuildInfoFile.js index b8704d77f5a..e0c5714e30d 100644 --- a/tests/baselines/reference/tsbuild/sample1/when-logic-specifies-tsBuildInfoFile.js +++ b/tests/baselines/reference/tsbuild/sample1/when-logic-specifies-tsBuildInfoFile.js @@ -121,13 +121,13 @@ Output:: [12:00:09 AM] Building project '/src/core/tsconfig.json'... -[12:00:20 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/ownFile.tsbuildinfo' does not exist +[12:00:19 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/ownFile.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/logic/tsconfig.json'... +[12:00:20 AM] Building project '/src/logic/tsconfig.json'... -[12:00:29 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist +[12:00:27 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist -[12:00:30 AM] Building project '/src/tests/tsconfig.json'... +[12:00:28 AM] Building project '/src/tests/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { @@ -329,7 +329,7 @@ exports.multiply = multiply; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":10000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-8396256275-export declare const World = \"hello\";\r\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -374,10 +374,10 @@ exports.multiply = multiply; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 10000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1453 + "size": 1469 } //// [/src/logic/index.d.ts] @@ -528,7 +528,7 @@ sourceFile:index.ts >>>//# sourceMappingURL=index.js.map //// [/src/logic/ownFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true,"tsBuildInfoFile":"./ownFile.tsbuildinfo"},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":22000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true,"tsBuildInfoFile":"./ownFile.tsbuildinfo"},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/logic/ownFile.tsbuildinfo.readable.baseline.txt] { @@ -591,10 +591,10 @@ sourceFile:index.ts "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 22000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1619 + "size": 1635 } //// [/src/tests/index.d.ts] @@ -615,7 +615,7 @@ exports.m = mod; //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":31000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -690,9 +690,9 @@ exports.m = mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 31000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1724 + "size": 1740 } diff --git a/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js b/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js index e337adfa9b5..f5251b22fc6 100644 --- a/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js +++ b/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js @@ -110,7 +110,7 @@ a_1.X; //// [/src/tsconfig.a.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8566332115-export class A {}\r\n","signature":"-9529994156-export declare class A {\r\n}\r\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":8000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8566332115-export class A {}\r\n","signature":"-9529994156-export declare class A {\r\n}\r\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.a.tsbuildinfo.readable.baseline.txt] { @@ -139,14 +139,14 @@ a_1.X; "../lib/lib.d.ts", "./a.ts" ], - "dtsChangeTime": 8000 + "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 809 + "size": 822 } //// [/src/tsconfig.b.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9529994156-export declare class A {\r\n}\r\n",{"version":"-17186364832-import {A} from 'a';\nexport const b = new A();","signature":"-9520743082-import { A } from 'a';\r\nexport declare const b: A;\r\n"}],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":14000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9529994156-export declare class A {\r\n}\r\n",{"version":"-17186364832-import {A} from 'a';\nexport const b = new A();","signature":"-9520743082-import { A } from 'a';\r\nexport declare const b: A;\r\n"}],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.b.tsbuildinfo.readable.baseline.txt] { @@ -194,9 +194,9 @@ a_1.X; "./a.d.ts", "./b.ts" ], - "dtsChangeTime": 14000 + "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 951 + "size": 963 } diff --git a/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly.js b/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly.js index f3bd1aec5d3..9d740b20f62 100644 --- a/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly.js +++ b/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly.js @@ -122,7 +122,7 @@ a_1.X; //// [/src/tsconfig.a.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8566332115-export class A {}\r\n","signature":"-9529994156-export declare class A {\r\n}\r\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":6000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8566332115-export class A {}\r\n","signature":"-9529994156-export declare class A {\r\n}\r\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.a.tsbuildinfo.readable.baseline.txt] { @@ -151,14 +151,14 @@ a_1.X; "../lib/lib.d.ts", "./a.ts" ], - "dtsChangeTime": 6000 + "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 809 + "size": 822 } //// [/src/tsconfig.b.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9529994156-export declare class A {\r\n}\r\n",{"version":"-13104686224-import {A} from '@ref/a';\r\nexport const b = new A();\r\n","signature":"-10067914302-import { A } from '@ref/a';\r\nexport declare const b: A;\r\n"}],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":12000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9529994156-export declare class A {\r\n}\r\n",{"version":"-13104686224-import {A} from '@ref/a';\r\nexport const b = new A();\r\n","signature":"-10067914302-import { A } from '@ref/a';\r\nexport declare const b: A;\r\n"}],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.b.tsbuildinfo.readable.baseline.txt] { @@ -206,9 +206,9 @@ a_1.X; "./a.d.ts", "./b.ts" ], - "dtsChangeTime": 12000 + "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 968 + "size": 980 } diff --git a/tests/baselines/reference/tsbuild/transitiveReferences/reports-error-about-module-not-found-with-node-resolution-with-external-module-name.js b/tests/baselines/reference/tsbuild/transitiveReferences/reports-error-about-module-not-found-with-node-resolution-with-external-module-name.js index e0d581a0b12..f669754c386 100644 --- a/tests/baselines/reference/tsbuild/transitiveReferences/reports-error-about-module-not-found-with-node-resolution-with-external-module-name.js +++ b/tests/baselines/reference/tsbuild/transitiveReferences/reports-error-about-module-not-found-with-node-resolution-with-external-module-name.js @@ -90,7 +90,7 @@ exports.A = A; //// [/src/tsconfig.a.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8566332115-export class A {}\r\n","signature":"-9529994156-export declare class A {\r\n}\r\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":8000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8566332115-export class A {}\r\n","signature":"-9529994156-export declare class A {\r\n}\r\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.a.tsbuildinfo.readable.baseline.txt] { @@ -119,10 +119,10 @@ exports.A = A; "../lib/lib.d.ts", "./a.ts" ], - "dtsChangeTime": 8000 + "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 809 + "size": 822 } //// [/src/tsconfig.b.tsbuildinfo] diff --git a/tests/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js b/tests/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js index b2027e7b459..f4c79b5eb8f 100644 --- a/tests/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js +++ b/tests/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js @@ -268,7 +268,7 @@ Output:: >> Screen clear [12:00:49 AM] File change detected. Starting incremental compilation... -[12:01:06 AM] Found 0 errors. Watching for file changes. +[12:01:05 AM] Found 0 errors. Watching for file changes. @@ -305,7 +305,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3260843409-export function fooBar() { }","signature":"-6611919720-export declare function fooBar(): void;\n"},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"}],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":50000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3260843409-export function fooBar() { }","signature":"-6611919720-export declare function fooBar(): void;\n"},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"}],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -341,10 +341,10 @@ exitCode:: ExitStatus.undefined "./a.ts", "./b.ts" ], - "dtsChangeTime": 50000 + "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 902 + "size": 914 } //// [/user/username/projects/myproject/a.js] diff --git a/tests/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js b/tests/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js index 3c4e1ec2dc7..d875c491166 100644 --- a/tests/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js +++ b/tests/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js @@ -223,15 +223,15 @@ Output:: [12:00:54 AM] Building project '/user/username/projects/demo/core/tsconfig.json'... -[12:01:10 AM] Project 'animals/tsconfig.json' is out of date because output file 'lib/animals/tsconfig.tsbuildinfo' does not exist +[12:01:09 AM] Project 'animals/tsconfig.json' is out of date because output file 'lib/animals/tsconfig.tsbuildinfo' does not exist -[12:01:11 AM] Building project '/user/username/projects/demo/animals/tsconfig.json'... +[12:01:10 AM] Building project '/user/username/projects/demo/animals/tsconfig.json'... -[12:01:33 AM] Project 'zoo/tsconfig.json' is out of date because output file 'lib/zoo/tsconfig.tsbuildinfo' does not exist +[12:01:31 AM] Project 'zoo/tsconfig.json' is out of date because output file 'lib/zoo/tsconfig.tsbuildinfo' does not exist -[12:01:34 AM] Building project '/user/username/projects/demo/zoo/tsconfig.json'... +[12:01:32 AM] Building project '/user/username/projects/demo/zoo/tsconfig.json'... -[12:01:48 AM] Found 0 errors. Watching for file changes. +[12:01:45 AM] Found 0 errors. Watching for file changes. @@ -354,7 +354,7 @@ export declare function lastElementOf(arr: T[]): T | undefined; //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":55250},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./utilities.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -393,10 +393,10 @@ export declare function lastElementOf(arr: T[]): T | undefined; "../../../../../../a/lib/lib.d.ts", "../../core/utilities.ts" ], - "dtsChangeTime": 55250 + "latestChangedDtsFile": "./utilities.d.ts" }, "version": "FakeTSVersion", - "size": 1341 + "size": 1361 } //// [/user/username/projects/demo/lib/animals/animal.js] @@ -405,7 +405,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); //// [/user/username/projects/demo/lib/animals/animal.d.ts] -export declare type Size = "small" | "medium" | "large"; +export type Size = "small" | "medium" | "large"; export default interface Animal { size: Size; } @@ -453,7 +453,7 @@ export declare function createDog(): Dog; //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n","signature":"-10510161654-export declare type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n"},{"version":"-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"dtsChangeTime":72350},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n","signature":"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n"},{"version":"-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -486,7 +486,7 @@ export declare function createDog(): Dog; }, "../../animals/animal.ts": { "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", - "signature": "-10510161654-export declare type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" + "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" }, "../../animals/index.ts": { "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", @@ -540,10 +540,10 @@ export declare function createDog(): Dog; "../../animals/index.ts", "../core/utilities.d.ts" ], - "dtsChangeTime": 72350 + "latestChangedDtsFile": "./dog.d.ts" }, "version": "FakeTSVersion", - "size": 2445 + "size": 2450 } //// [/user/username/projects/demo/lib/zoo/zoo.js] @@ -565,7 +565,7 @@ export declare function createZoo(): Array; //// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10510161654-export declare type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n",{"version":"8797123924-import { Dog, createDog } from '../animals/index';\r\n\r\nexport function createZoo(): Array {\r\n return [\r\n createDog()\r\n ];\r\n}\r\n\r\n","signature":"10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n"}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"fileIdsList":[[4],[2,3]],"referencedMap":[[3,1],[4,2],[5,1]],"exportedModulesMap":[[3,1],[4,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"dtsChangeTime":95350},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n",{"version":"8797123924-import { Dog, createDog } from '../animals/index';\r\n\r\nexport function createZoo(): Array {\r\n return [\r\n createDog()\r\n ];\r\n}\r\n\r\n","signature":"10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n"}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"fileIdsList":[[4],[2,3]],"referencedMap":[[3,1],[4,2],[5,1]],"exportedModulesMap":[[3,1],[4,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./zoo.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -593,8 +593,8 @@ export declare function createZoo(): Array; "affectsGlobalScope": true }, "../animals/animal.d.ts": { - "version": "-10510161654-export declare type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "signature": "-10510161654-export declare type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" }, "../animals/dog.d.ts": { "version": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", @@ -653,9 +653,9 @@ export declare function createZoo(): Array; "../animals/index.d.ts", "../../zoo/zoo.ts" ], - "dtsChangeTime": 95350 + "latestChangedDtsFile": "./zoo.d.ts" }, "version": "FakeTSVersion", - "size": 1805 + "size": 1810 } diff --git a/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js b/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js index ebf3a9c8a59..b66d658f16e 100644 --- a/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js +++ b/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js @@ -61,9 +61,9 @@ File '/user/username/projects/myproject/packages/pkg2/const.js.d.ts' does not ex File name '/user/username/projects/myproject/packages/pkg2/const.js' has a '.js' extension - stripping it. File '/user/username/projects/myproject/packages/pkg2/const.ts' exist - use it as a name resolution result. ======== Module name './const.js' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/const.ts'. ======== -[12:01:08 AM] Project 'packages/pkg1/tsconfig.json' is out of date because output file 'packages/pkg1/build/index.js' does not exist +[12:01:07 AM] Project 'packages/pkg1/tsconfig.json' is out of date because output file 'packages/pkg1/build/index.js' does not exist -[12:01:09 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... +[12:01:08 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== Module resolution kind is not specified, using 'NodeJs'. @@ -102,7 +102,7 @@ File '/user/username/projects/myproject/packages/pkg2/build/const.ts' does not e File '/user/username/projects/myproject/packages/pkg2/build/const.tsx' does not exist. File '/user/username/projects/myproject/packages/pkg2/build/const.d.ts' exist - use it as a name resolution result. ======== Module name './const.js' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/const.d.ts'. ======== -[12:01:16 AM] Found 0 errors. Watching for file changes. +[12:01:15 AM] Found 0 errors. Watching for file changes. @@ -180,7 +180,7 @@ exports.__esModule = true; //// [/user/username/projects/myproject/packages/pkg2/build/const.d.ts] -export declare type TheNum = 42; +export type TheNum = 42; //// [/user/username/projects/myproject/packages/pkg2/build/index.js] @@ -198,11 +198,11 @@ exports.__esModule = true; //// [/user/username/projects/myproject/packages/pkg2/build/other.d.ts] -export declare type TheStr = string; +export type TheStr = string; //// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../../a/lib/lib.d.ts","../const.ts","../index.ts","../other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-11202312776-export type TheNum = 42;","signature":"-9649133742-export declare type TheNum = 42;\n"},{"version":"-11225381282-export type { TheNum } from './const.js';","signature":"-9660329432-export type { TheNum } from './const.js';\n"},{"version":"-4609154030-export type TheStr = string;","signature":"-10420741908-export declare type TheStr = string;\n"}],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":47000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../../a/lib/lib.d.ts","../const.ts","../index.ts","../other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-11202312776-export type TheNum = 42;","signature":"-13194036030-export type TheNum = 42;\n"},{"version":"-11225381282-export type { TheNum } from './const.js';","signature":"-9660329432-export type { TheNum } from './const.js';\n"},{"version":"-4609154030-export type TheStr = string;","signature":"-6073194916-export type TheStr = string;\n"}],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -226,7 +226,7 @@ export declare type TheStr = string; }, "../const.ts": { "version": "-11202312776-export type TheNum = 42;", - "signature": "-9649133742-export declare type TheNum = 42;\n" + "signature": "-13194036030-export type TheNum = 42;\n" }, "../index.ts": { "version": "-11225381282-export type { TheNum } from './const.js';", @@ -234,7 +234,7 @@ export declare type TheStr = string; }, "../other.ts": { "version": "-4609154030-export type TheStr = string;", - "signature": "-10420741908-export declare type TheStr = string;\n" + "signature": "-6073194916-export type TheStr = string;\n" } }, "options": { @@ -257,7 +257,7 @@ export declare type TheStr = string; "../index.ts", "../other.ts" ], - "dtsChangeTime": 47000 + "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", "size": 1096 @@ -280,11 +280,11 @@ Input:: Output:: >> Screen clear -[12:01:20 AM] File change detected. Starting incremental compilation... +[12:01:19 AM] File change detected. Starting incremental compilation... -[12:01:21 AM] Project 'packages/pkg1/tsconfig.json' is out of date because output 'packages/pkg1/build/index.js' is older than input 'packages/pkg2/package.json' +[12:01:20 AM] Project 'packages/pkg1/tsconfig.json' is out of date because output 'packages/pkg1/build/index.js' is older than input 'packages/pkg2/package.json' -[12:01:22 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... +[12:01:21 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== Module resolution kind is not specified, using 'NodeJs'. @@ -316,7 +316,7 @@ Resolving real path for '/user/username/projects/myproject/node_modules/pkg2/bui 1 import type { TheNum } from 'pkg2'    ~~~~~~ -[12:01:23 AM] Found 1 error. Watching for file changes. +[12:01:22 AM] Found 1 error. Watching for file changes. @@ -372,11 +372,11 @@ Input:: Output:: >> Screen clear -[12:01:27 AM] File change detected. Starting incremental compilation... +[12:01:26 AM] File change detected. Starting incremental compilation... -[12:01:28 AM] Project 'packages/pkg1/tsconfig.json' is out of date because output 'packages/pkg1/build/index.js' is older than input 'packages/pkg2/package.json' +[12:01:27 AM] Project 'packages/pkg1/tsconfig.json' is out of date because output 'packages/pkg1/build/index.js' is older than input 'packages/pkg2/package.json' -[12:01:29 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... +[12:01:28 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== Module resolution kind is not specified, using 'NodeJs'. @@ -415,7 +415,7 @@ File '/user/username/projects/myproject/packages/pkg2/build/const.ts' does not e File '/user/username/projects/myproject/packages/pkg2/build/const.tsx' does not exist. File '/user/username/projects/myproject/packages/pkg2/build/const.d.ts' exist - use it as a name resolution result. ======== Module name './const.js' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/const.d.ts'. ======== -[12:01:34 AM] Found 0 errors. Watching for file changes. +[12:01:33 AM] Found 0 errors. Watching for file changes. diff --git a/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js b/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js index 0be5f963b8e..c813f2c658a 100644 --- a/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js +++ b/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js @@ -60,9 +60,9 @@ File '/user/username/projects/myproject/packages/pkg2/const.cts' exist - use it File '/a/lib/package.json' does not exist. File '/a/package.json' does not exist. File '/package.json' does not exist. -[12:01:02 AM] Project 'packages/pkg1/tsconfig.json' is out of date because output file 'packages/pkg1/build/index.js' does not exist +[12:01:01 AM] Project 'packages/pkg1/tsconfig.json' is out of date because output file 'packages/pkg1/build/index.js' does not exist -[12:01:03 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... +[12:01:02 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... Found 'package.json' at '/user/username/projects/myproject/packages/pkg1/package.json'. 'package.json' does not have a 'typesVersions' field. @@ -99,7 +99,7 @@ File '/user/username/projects/myproject/packages/pkg2/build/const.d.cts' exist - File '/a/lib/package.json' does not exist according to earlier cached lookups. File '/a/package.json' does not exist according to earlier cached lookups. File '/package.json' does not exist according to earlier cached lookups. -[12:01:10 AM] Found 0 errors. Watching for file changes. +[12:01:09 AM] Found 0 errors. Watching for file changes. @@ -182,7 +182,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); //// [/user/username/projects/myproject/packages/pkg2/build/const.d.cts] -export declare type TheNum = 42; +export type TheNum = 42; //// [/user/username/projects/myproject/packages/pkg2/build/index.js] @@ -194,7 +194,7 @@ export type { TheNum } from './const.cjs'; //// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../../a/lib/lib.es2022.full.d.ts","../const.cts","../index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-11202312776-export type TheNum = 42;","signature":"-9649133742-export declare type TheNum = 42;\n","impliedFormat":1},{"version":"-9668872159-export type { TheNum } from './const.cjs';","signature":"-9835135925-export type { TheNum } from './const.cjs';\n","impliedFormat":99}],"options":{"composite":true,"module":100,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":45000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../../a/lib/lib.es2022.full.d.ts","../const.cts","../index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-11202312776-export type TheNum = 42;","signature":"-13194036030-export type TheNum = 42;\n","impliedFormat":1},{"version":"-9668872159-export type { TheNum } from './const.cjs';","signature":"-9835135925-export type { TheNum } from './const.cjs';\n","impliedFormat":99}],"options":{"composite":true,"module":100,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -218,7 +218,7 @@ export type { TheNum } from './const.cjs'; }, "../const.cts": { "version": "-11202312776-export type TheNum = 42;", - "signature": "-9649133742-export declare type TheNum = 42;\n", + "signature": "-13194036030-export type TheNum = 42;\n", "impliedFormat": "commonjs" }, "../index.ts": { @@ -247,10 +247,10 @@ export type { TheNum } from './const.cjs'; "../const.cts", "../index.ts" ], - "dtsChangeTime": 45000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1041 + "size": 1050 } //// [/user/username/projects/myproject/packages/pkg1/build/index.js] @@ -267,11 +267,11 @@ Input:: Output:: >> Screen clear -[12:01:14 AM] File change detected. Starting incremental compilation... +[12:01:13 AM] File change detected. Starting incremental compilation... -[12:01:15 AM] Project 'packages/pkg1/tsconfig.json' is out of date because output 'packages/pkg1/build/index.js' is older than input 'packages/pkg1/package.json' +[12:01:14 AM] Project 'packages/pkg1/tsconfig.json' is out of date because output 'packages/pkg1/build/index.js' is older than input 'packages/pkg1/package.json' -[12:01:16 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... +[12:01:15 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... Found 'package.json' at '/user/username/projects/myproject/packages/pkg1/package.json'. 'package.json' does not have a 'typesVersions' field. @@ -315,12 +315,13 @@ File '/user/username/projects/myproject/packages/pkg2/build/const.d.cts' exist - File '/a/lib/package.json' does not exist. File '/a/package.json' does not exist. File '/package.json' does not exist. -packages/pkg1/index.ts:1:29 - error TS1471: Module 'pkg2' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +packages/pkg1/index.ts:1:29 - error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("pkg2")' call instead. + To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ "type": "module" }`. 1 import type { TheNum } from 'pkg2'    ~~~~~~ -[12:01:17 AM] Found 1 error. Watching for file changes. +[12:01:16 AM] Found 1 error. Watching for file changes. @@ -383,11 +384,11 @@ Input:: Output:: >> Screen clear -[12:01:21 AM] File change detected. Starting incremental compilation... +[12:01:20 AM] File change detected. Starting incremental compilation... -[12:01:22 AM] Project 'packages/pkg1/tsconfig.json' is out of date because output 'packages/pkg1/build/index.js' is older than input 'packages/pkg1/package.json' +[12:01:21 AM] Project 'packages/pkg1/tsconfig.json' is out of date because output 'packages/pkg1/build/index.js' is older than input 'packages/pkg1/package.json' -[12:01:23 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... +[12:01:22 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... Found 'package.json' at '/user/username/projects/myproject/packages/pkg1/package.json'. 'package.json' does not have a 'typesVersions' field. @@ -425,7 +426,7 @@ File '/user/username/projects/myproject/packages/pkg2/build/const.d.cts' exist - File '/a/lib/package.json' does not exist. File '/a/package.json' does not exist. File '/package.json' does not exist. -[12:01:28 AM] Found 0 errors. Watching for file changes. +[12:01:27 AM] Found 0 errors. Watching for file changes. @@ -489,11 +490,11 @@ Input:: Output:: >> Screen clear -[12:01:32 AM] File change detected. Starting incremental compilation... +[12:01:31 AM] File change detected. Starting incremental compilation... -[12:01:33 AM] Project 'packages/pkg1/tsconfig.json' is out of date because output 'packages/pkg1/build/index.js' is older than input 'packages/pkg1/package.json' +[12:01:32 AM] Project 'packages/pkg1/tsconfig.json' is out of date because output 'packages/pkg1/build/index.js' is older than input 'packages/pkg1/package.json' -[12:01:34 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... +[12:01:33 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... Found 'package.json' at '/user/username/projects/myproject/packages/pkg1/package.json'. 'package.json' does not have a 'typesVersions' field. @@ -537,12 +538,13 @@ File '/user/username/projects/myproject/packages/pkg2/build/const.d.cts' exist - File '/a/lib/package.json' does not exist. File '/a/package.json' does not exist. File '/package.json' does not exist. -packages/pkg1/index.ts:1:29 - error TS1471: Module 'pkg2' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. +packages/pkg1/index.ts:1:29 - error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("pkg2")' call instead. + To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ "type": "module" }`. 1 import type { TheNum } from 'pkg2'    ~~~~~~ -[12:01:35 AM] Found 1 error. Watching for file changes. +[12:01:34 AM] Found 1 error. Watching for file changes. @@ -609,11 +611,11 @@ export type { TheNum } from './const.cjs'; Output:: >> Screen clear -[12:01:43 AM] File change detected. Starting incremental compilation... +[12:01:42 AM] File change detected. Starting incremental compilation... -[12:01:44 AM] Project 'packages/pkg2/tsconfig.json' is out of date because output 'packages/pkg2/build/tsconfig.tsbuildinfo' is older than input 'packages/pkg2/index.cts' +[12:01:43 AM] Project 'packages/pkg2/tsconfig.json' is out of date because output 'packages/pkg2/build/tsconfig.tsbuildinfo' is older than input 'packages/pkg2/index.cts' -[12:01:45 AM] Building project '/user/username/projects/myproject/packages/pkg2/tsconfig.json'... +[12:01:44 AM] Building project '/user/username/projects/myproject/packages/pkg2/tsconfig.json'... ======== Resolving module './const.cjs' from '/user/username/projects/myproject/packages/pkg2/index.cts'. ======== Module resolution kind is not specified, using 'Node16'. @@ -627,9 +629,9 @@ File '/user/username/projects/myproject/packages/pkg2/const.cts' exist - use it File '/a/lib/package.json' does not exist. File '/a/package.json' does not exist. File '/package.json' does not exist. -[12:01:58 AM] Project 'packages/pkg1/tsconfig.json' is out of date because output 'packages/pkg1/build/index.js' is older than input 'packages/pkg2' +[12:01:56 AM] Project 'packages/pkg1/tsconfig.json' is out of date because output 'packages/pkg1/build/index.js' is older than input 'packages/pkg2' -[12:01:59 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... +[12:01:57 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... Found 'package.json' at '/user/username/projects/myproject/packages/pkg1/package.json'. 'package.json' does not have a 'typesVersions' field. @@ -672,7 +674,7 @@ File '/user/username/projects/myproject/packages/pkg2/build/const.d.cts' exist - File '/a/lib/package.json' does not exist according to earlier cached lookups. File '/a/package.json' does not exist according to earlier cached lookups. File '/package.json' does not exist according to earlier cached lookups. -[12:02:04 AM] Found 0 errors. Watching for file changes. +[12:02:02 AM] Found 0 errors. Watching for file changes. @@ -742,7 +744,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../../a/lib/lib.es2022.full.d.ts","../const.cts","../index.cts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-11202312776-export type TheNum = 42;","signature":"-9649133742-export declare type TheNum = 42;\n","impliedFormat":1},{"version":"-9668872159-export type { TheNum } from './const.cjs';","signature":"-9835135925-export type { TheNum } from './const.cjs';\n","impliedFormat":1}],"options":{"composite":true,"module":100,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":106000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../../a/lib/lib.es2022.full.d.ts","../const.cts","../index.cts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-11202312776-export type TheNum = 42;","signature":"-13194036030-export type TheNum = 42;\n","impliedFormat":1},{"version":"-9668872159-export type { TheNum } from './const.cjs';","signature":"-9835135925-export type { TheNum } from './const.cjs';\n","impliedFormat":1}],"options":{"composite":true,"module":100,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.cts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -766,7 +768,7 @@ exitCode:: ExitStatus.undefined }, "../const.cts": { "version": "-11202312776-export type TheNum = 42;", - "signature": "-9649133742-export declare type TheNum = 42;\n", + "signature": "-13194036030-export type TheNum = 42;\n", "impliedFormat": "commonjs" }, "../index.cts": { @@ -795,10 +797,10 @@ exitCode:: ExitStatus.undefined "../const.cts", "../index.cts" ], - "dtsChangeTime": 106000 + "latestChangedDtsFile": "./index.d.cts" }, "version": "FakeTSVersion", - "size": 1042 + "size": 1051 } //// [/user/username/projects/myproject/packages/pkg1/build/index.js] diff --git a/tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js b/tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js index 3eaf32ba0d9..95e12d17eaa 100644 --- a/tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js +++ b/tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js @@ -54,11 +54,11 @@ Output:: [12:00:54 AM] Building project '/user/username/projects/myproject/project1/tsconfig.json'... -[12:01:05 AM] Project 'project2/tsconfig.json' is out of date because output file 'project2/tsconfig.tsbuildinfo' does not exist +[12:01:04 AM] Project 'project2/tsconfig.json' is out of date because output file 'project2/tsconfig.tsbuildinfo' does not exist -[12:01:06 AM] Building project '/user/username/projects/myproject/project2/tsconfig.json'... +[12:01:05 AM] Building project '/user/username/projects/myproject/project2/tsconfig.json'... -[12:01:17 AM] Found 0 errors. Watching for file changes. +[12:01:15 AM] Found 0 errors. Watching for file changes. @@ -141,7 +141,7 @@ export {}; //// [/user/username/projects/myproject/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./node_modules/file/index.d.ts","./index.ts","../node_modules/@types/foo/index.d.ts","../node_modules/@types/bar/index.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-12737086933-export const foo = 10;",{"version":"-4708082513-import { foo } from \"file\";","signature":"-3531856636-export {};\n"},"-12737086933-export const foo = 10;","-12042713060-export const bar = 10;"],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,5,4,3,2],"dtsChangeTime":55000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./node_modules/file/index.d.ts","./index.ts","../node_modules/@types/foo/index.d.ts","../node_modules/@types/bar/index.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-12737086933-export const foo = 10;",{"version":"-4708082513-import { foo } from \"file\";","signature":"-3531856636-export {};\n"},"-12737086933-export const foo = 10;","-12042713060-export const bar = 10;"],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,5,4,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -197,10 +197,10 @@ export {}; "./index.ts", "./node_modules/file/index.d.ts" ], - "dtsChangeTime": 55000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 993 + "size": 1009 } //// [/user/username/projects/myproject/project2/index.js] @@ -213,7 +213,7 @@ export {}; //// [/user/username/projects/myproject/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./file.d.ts","./index.ts","../node_modules/@types/foo/index.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-12737086933-export const foo = 10;",{"version":"-4708082513-import { foo } from \"file\";","signature":"-3531856636-export {};\n"},"-12737086933-export const foo = 10;"],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,2,3],"dtsChangeTime":67000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./file.d.ts","./index.ts","../node_modules/@types/foo/index.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-12737086933-export const foo = 10;",{"version":"-4708082513-import { foo } from \"file\";","signature":"-3531856636-export {};\n"},"-12737086933-export const foo = 10;"],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -263,10 +263,10 @@ export {}; "./file.d.ts", "./index.ts" ], - "dtsChangeTime": 67000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 894 + "size": 910 } @@ -279,13 +279,13 @@ import { foo } from "file";const bar = 10; Output:: >> Screen clear -[12:01:20 AM] File change detected. Starting incremental compilation... +[12:01:18 AM] File change detected. Starting incremental compilation... -[12:01:21 AM] Project 'project1/tsconfig.json' is out of date because output 'project1/tsconfig.tsbuildinfo' is older than input 'project1/index.ts' +[12:01:19 AM] Project 'project1/tsconfig.json' is out of date because output 'project1/tsconfig.tsbuildinfo' is older than input 'project1/index.ts' -[12:01:22 AM] Building project '/user/username/projects/myproject/project1/tsconfig.json'... +[12:01:20 AM] Building project '/user/username/projects/myproject/project1/tsconfig.json'... -[12:01:36 AM] Found 0 errors. Watching for file changes. +[12:01:31 AM] Found 0 errors. Watching for file changes. @@ -335,9 +335,8 @@ exports.__esModule = true; var bar = 10; -//// [/user/username/projects/myproject/project1/index.d.ts] file written with same contents //// [/user/username/projects/myproject/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./node_modules/file/index.d.ts","./index.ts","../node_modules/@types/foo/index.d.ts","../node_modules/@types/bar/index.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-12737086933-export const foo = 10;",{"version":"-7561100220-import { foo } from \"file\";const bar = 10;","signature":"-3531856636-export {};\n"},"-12737086933-export const foo = 10;","-12042713060-export const bar = 10;"],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,5,4,3,2],"dtsChangeTime":55000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./node_modules/file/index.d.ts","./index.ts","../node_modules/@types/foo/index.d.ts","../node_modules/@types/bar/index.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-12737086933-export const foo = 10;",{"version":"-7561100220-import { foo } from \"file\";const bar = 10;","signature":"-3531856636-export {};\n"},"-12737086933-export const foo = 10;","-12042713060-export const bar = 10;"],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,5,4,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -393,9 +392,9 @@ var bar = 10; "./index.ts", "./node_modules/file/index.d.ts" ], - "dtsChangeTime": 55000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1008 + "size": 1024 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/creates-solution-in-watch-mode.js b/tests/baselines/reference/tsbuildWatch/programUpdates/creates-solution-in-watch-mode.js index fb541dace2e..60a7a232a5a 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/creates-solution-in-watch-mode.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/creates-solution-in-watch-mode.js @@ -107,7 +107,7 @@ Output:: >> Screen clear [12:00:45 AM] Starting compilation in watch mode... -[12:01:26 AM] Found 0 errors. Watching for file changes. +[12:01:23 AM] Found 0 errors. Watching for file changes. @@ -235,7 +235,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":46000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -273,10 +273,10 @@ export declare function multiply(a: number, b: number): number; "./anothermodule.ts", "./index.ts" ], - "dtsChangeTime": 46000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1276 + "size": 1292 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -302,7 +302,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":64000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -364,10 +364,10 @@ export declare const m: typeof mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 64000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1494 + "size": 1510 } //// [/user/username/projects/sample1/tests/index.js] @@ -388,7 +388,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":76000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -463,9 +463,9 @@ export declare const m: typeof mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 76000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1639 + "size": 1655 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/incremental-updates-in-verbose-mode.js b/tests/baselines/reference/tsbuildWatch/programUpdates/incremental-updates-in-verbose-mode.js index cc870d4bf5b..324010fad80 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/incremental-updates-in-verbose-mode.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/incremental-updates-in-verbose-mode.js @@ -116,15 +116,15 @@ Output:: [12:00:48 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:01:07 AM] Project 'sample1/logic/tsconfig.json' is out of date because output file 'sample1/logic/tsconfig.tsbuildinfo' does not exist +[12:01:06 AM] Project 'sample1/logic/tsconfig.json' is out of date because output file 'sample1/logic/tsconfig.tsbuildinfo' does not exist -[12:01:08 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... +[12:01:07 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:01:21 AM] Project 'sample1/tests/tsconfig.json' is out of date because output file 'sample1/tests/tsconfig.tsbuildinfo' does not exist +[12:01:19 AM] Project 'sample1/tests/tsconfig.json' is out of date because output file 'sample1/tests/tsconfig.tsbuildinfo' does not exist -[12:01:22 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... +[12:01:20 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... -[12:01:33 AM] Found 0 errors. Watching for file changes. +[12:01:30 AM] Found 0 errors. Watching for file changes. @@ -252,7 +252,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":49000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -290,10 +290,10 @@ export declare function multiply(a: number, b: number): number; "./anothermodule.ts", "./index.ts" ], - "dtsChangeTime": 49000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1276 + "size": 1292 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -319,7 +319,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":69000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -381,10 +381,10 @@ export declare const m: typeof mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 69000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1494 + "size": 1510 } //// [/user/username/projects/sample1/tests/index.js] @@ -405,7 +405,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":83000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -480,10 +480,10 @@ export declare const m: typeof mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 83000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1639 + "size": 1655 } @@ -503,17 +503,17 @@ function someFn() { } Output:: >> Screen clear -[12:01:37 AM] File change detected. Starting incremental compilation... +[12:01:34 AM] File change detected. Starting incremental compilation... -[12:01:38 AM] Project 'sample1/logic/tsconfig.json' is out of date because output 'sample1/logic/tsconfig.tsbuildinfo' is older than input 'sample1/logic/index.ts' +[12:01:35 AM] Project 'sample1/logic/tsconfig.json' is out of date because output 'sample1/logic/tsconfig.tsbuildinfo' is older than input 'sample1/logic/index.ts' -[12:01:39 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... +[12:01:36 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:01:56 AM] Project 'sample1/tests/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:50 AM] Project 'sample1/tests/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:01:57 AM] Updating output timestamps of project '/user/username/projects/sample1/tests/tsconfig.json'... +[12:01:51 AM] Updating output timestamps of project '/user/username/projects/sample1/tests/tsconfig.json'... -[12:01:59 AM] Found 0 errors. Watching for file changes. +[12:01:53 AM] Found 0 errors. Watching for file changes. @@ -575,9 +575,8 @@ exports.m = mod; function someFn() { } //# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.d.ts] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"937092231-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nfunction someFn() { }","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":69000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"937092231-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nfunction someFn() { }","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -639,10 +638,10 @@ function someFn() { } "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 69000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1515 + "size": 1531 } //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file changed its modified time @@ -663,17 +662,17 @@ export function someFn() { } Output:: >> Screen clear -[12:02:03 AM] File change detected. Starting incremental compilation... +[12:01:57 AM] File change detected. Starting incremental compilation... -[12:02:04 AM] Project 'sample1/logic/tsconfig.json' is out of date because output 'sample1/logic/tsconfig.tsbuildinfo' is older than input 'sample1/logic/index.ts' +[12:01:58 AM] Project 'sample1/logic/tsconfig.json' is out of date because output 'sample1/logic/tsconfig.tsbuildinfo' is older than input 'sample1/logic/index.ts' -[12:02:05 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... +[12:01:59 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:02:23 AM] Project 'sample1/tests/tsconfig.json' is out of date because output 'sample1/tests/index.js' is older than input 'sample1/logic/tsconfig.json' +[12:02:16 AM] Project 'sample1/tests/tsconfig.json' is out of date because output 'sample1/tests/index.js' is older than input 'sample1/logic/tsconfig.json' -[12:02:24 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... +[12:02:17 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... -[12:02:38 AM] Found 0 errors. Watching for file changes. +[12:02:28 AM] Found 0 errors. Watching for file changes. @@ -762,7 +761,7 @@ export declare function someFn(): void; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-3093967383-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nexport function someFn() { }","signature":"-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":126500},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-3093967383-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nexport function someFn() { }","signature":"-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -824,16 +823,15 @@ export declare function someFn(): void; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 126500 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1566 + "size": 1581 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents -//// [/user/username/projects/sample1/tests/index.d.ts] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":83000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -908,9 +906,9 @@ export declare function someFn(): void; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 83000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1680 + "size": 1696 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-file-with-no-error-changes.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-file-with-no-error-changes.js index af86664bc4b..5d733a2ec23 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-file-with-no-error-changes.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-file-with-no-error-changes.js @@ -30,7 +30,7 @@ Output:: >> Screen clear [12:00:25 AM] Starting compilation in watch mode... -[12:00:40 AM] Found 0 errors. Watching for file changes. +[12:00:39 AM] Found 0 errors. Watching for file changes. @@ -106,7 +106,7 @@ export declare class myClass { //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-8106435186-export var myClassWithError = class {\n tags() { }\n \n };","signature":"6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n"},{"version":"-11785903855-export class myClass { }","signature":"-7432826827-export declare class myClass {\n}\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":26000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-8106435186-export var myClassWithError = class {\n tags() { }\n \n };","signature":"6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n"},{"version":"-11785903855-export class myClass { }","signature":"-7432826827-export declare class myClass {\n}\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./fileWithoutError.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -141,10 +141,10 @@ export declare class myClass { "./filewitherror.ts", "./filewithouterror.ts" ], - "dtsChangeTime": 26000 + "latestChangedDtsFile": "./fileWithoutError.d.ts" }, "version": "FakeTSVersion", - "size": 1006 + "size": 1033 } @@ -160,14 +160,14 @@ export var myClassWithError = class { Output:: >> Screen clear -[12:00:44 AM] File change detected. Starting incremental compilation... +[12:00:43 AM] File change detected. Starting incremental compilation... app/fileWithError.ts:1:12 - error TS4094: Property 'p' of exported class expression may not be private or protected. 1 export var myClassWithError = class {    ~~~~~~~~~~~~~~~~ -[12:00:45 AM] Found 1 error. Watching for file changes. +[12:00:44 AM] Found 1 error. Watching for file changes. @@ -211,14 +211,14 @@ export class myClass2 { } Output:: >> Screen clear -[12:00:49 AM] File change detected. Starting incremental compilation... +[12:00:48 AM] File change detected. Starting incremental compilation... app/fileWithError.ts:1:12 - error TS4094: Property 'p' of exported class expression may not be private or protected. 1 export var myClassWithError = class {    ~~~~~~~~~~~~~~~~ -[12:00:51 AM] Found 1 error. Watching for file changes. +[12:00:49 AM] Found 1 error. Watching for file changes. diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-fixing-errors-only-changed-file-is-emitted.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-fixing-errors-only-changed-file-is-emitted.js index 8c3789e86f5..62d6bf9c1de 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-fixing-errors-only-changed-file-is-emitted.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-fixing-errors-only-changed-file-is-emitted.js @@ -30,7 +30,7 @@ Output:: >> Screen clear [12:00:25 AM] Starting compilation in watch mode... -[12:00:40 AM] Found 0 errors. Watching for file changes. +[12:00:39 AM] Found 0 errors. Watching for file changes. @@ -106,7 +106,7 @@ export declare class myClass { //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-8106435186-export var myClassWithError = class {\n tags() { }\n \n };","signature":"6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n"},{"version":"-11785903855-export class myClass { }","signature":"-7432826827-export declare class myClass {\n}\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":26000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-8106435186-export var myClassWithError = class {\n tags() { }\n \n };","signature":"6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n"},{"version":"-11785903855-export class myClass { }","signature":"-7432826827-export declare class myClass {\n}\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./fileWithoutError.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -141,10 +141,10 @@ export declare class myClass { "./filewitherror.ts", "./filewithouterror.ts" ], - "dtsChangeTime": 26000 + "latestChangedDtsFile": "./fileWithoutError.d.ts" }, "version": "FakeTSVersion", - "size": 1006 + "size": 1033 } @@ -160,14 +160,14 @@ export var myClassWithError = class { Output:: >> Screen clear -[12:00:44 AM] File change detected. Starting incremental compilation... +[12:00:43 AM] File change detected. Starting incremental compilation... app/fileWithError.ts:1:12 - error TS4094: Property 'p' of exported class expression may not be private or protected. 1 export var myClassWithError = class {    ~~~~~~~~~~~~~~~~ -[12:00:45 AM] Found 1 error. Watching for file changes. +[12:00:44 AM] Found 1 error. Watching for file changes. @@ -214,9 +214,9 @@ export var myClassWithError = class { Output:: >> Screen clear -[12:00:49 AM] File change detected. Starting incremental compilation... +[12:00:48 AM] File change detected. Starting incremental compilation... -[12:00:51 AM] Found 0 errors. Watching for file changes. +[12:00:50 AM] Found 0 errors. Watching for file changes. diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-file-with-no-error-changes.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-file-with-no-error-changes.js index 7f9a5dbd303..6692ee762eb 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-file-with-no-error-changes.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-file-with-no-error-changes.js @@ -35,7 +35,7 @@ Output:: 1 export var myClassWithError = class {    ~~~~~~~~~~~~~~~~ -[12:00:27 AM] Found 1 error. Watching for file changes. +[12:00:26 AM] Found 1 error. Watching for file changes. @@ -83,14 +83,14 @@ export class myClass2 { } Output:: >> Screen clear -[12:00:31 AM] File change detected. Starting incremental compilation... +[12:00:30 AM] File change detected. Starting incremental compilation... app/fileWithError.ts:1:12 - error TS4094: Property 'p' of exported class expression may not be private or protected. 1 export var myClassWithError = class {    ~~~~~~~~~~~~~~~~ -[12:00:33 AM] Found 1 error. Watching for file changes. +[12:00:31 AM] Found 1 error. Watching for file changes. diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-fixing-error-files-all-files-are-emitted.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-fixing-error-files-all-files-are-emitted.js index 40a673e2166..14964662f91 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-fixing-error-files-all-files-are-emitted.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-fixing-error-files-all-files-are-emitted.js @@ -35,7 +35,7 @@ Output:: 1 export var myClassWithError = class {    ~~~~~~~~~~~~~~~~ -[12:00:27 AM] Found 1 error. Watching for file changes. +[12:00:26 AM] Found 1 error. Watching for file changes. @@ -86,9 +86,9 @@ export var myClassWithError = class { Output:: >> Screen clear -[12:00:31 AM] File change detected. Starting incremental compilation... +[12:00:30 AM] File change detected. Starting incremental compilation... -[12:00:46 AM] Found 0 errors. Watching for file changes. +[12:00:44 AM] Found 0 errors. Watching for file changes. @@ -160,7 +160,7 @@ export declare class myClass { //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-8106435186-export var myClassWithError = class {\n tags() { }\n \n };","signature":"6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n"},{"version":"-11785903855-export class myClass { }","signature":"-7432826827-export declare class myClass {\n}\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":32250},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-8106435186-export var myClassWithError = class {\n tags() { }\n \n };","signature":"6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n"},{"version":"-11785903855-export class myClass { }","signature":"-7432826827-export declare class myClass {\n}\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./fileWithoutError.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -195,9 +195,9 @@ export declare class myClass { "./filewitherror.ts", "./filewithouterror.ts" ], - "dtsChangeTime": 32250 + "latestChangedDtsFile": "./fileWithoutError.d.ts" }, "version": "FakeTSVersion", - "size": 1006 + "size": 1033 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js index cc670008047..1b720a03ea9 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js @@ -107,7 +107,7 @@ Output:: >> Screen clear [12:00:45 AM] Starting compilation in watch mode... -[12:01:26 AM] Found 0 errors. Watching for file changes. +[12:01:23 AM] Found 0 errors. Watching for file changes. @@ -235,7 +235,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":46000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -273,10 +273,10 @@ export declare function multiply(a: number, b: number): number; "./anothermodule.ts", "./index.ts" ], - "dtsChangeTime": 46000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1276 + "size": 1292 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -302,7 +302,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":64000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -364,10 +364,10 @@ export declare const m: typeof mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 64000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1494 + "size": 1510 } //// [/user/username/projects/sample1/tests/index.js] @@ -388,7 +388,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":76000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -463,10 +463,10 @@ export declare const m: typeof mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 76000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1639 + "size": 1655 } @@ -486,14 +486,14 @@ let y: string = 10; Output:: >> Screen clear -[12:01:30 AM] File change detected. Starting incremental compilation... +[12:01:27 AM] File change detected. Starting incremental compilation... sample1/logic/index.ts:8:5 - error TS2322: Type 'number' is not assignable to type 'string'. 8 let y: string = 10;    ~ -[12:01:38 AM] Found 1 error. Watching for file changes. +[12:01:35 AM] Found 1 error. Watching for file changes. @@ -539,7 +539,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5445152744-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nlet y: string = 10;","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,[4,[{"file":"./index.ts","start":184,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[[4,1]],"dtsChangeTime":64000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5445152744-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nlet y: string = 10;","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,[4,[{"file":"./index.ts","start":184,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[[4,1]],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -619,10 +619,10 @@ exitCode:: ExitStatus.undefined "Full" ] ], - "dtsChangeTime": 64000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1690 + "size": 1706 } @@ -639,7 +639,7 @@ let x: string = 10; Output:: >> Screen clear -[12:01:42 AM] File change detected. Starting incremental compilation... +[12:01:39 AM] File change detected. Starting incremental compilation... sample1/core/index.ts:5:5 - error TS2322: Type 'number' is not assignable to type 'string'. @@ -651,7 +651,7 @@ Output:: 8 let y: string = 10;    ~ -[12:01:50 AM] Found 2 errors. Watching for file changes. +[12:01:47 AM] Found 2 errors. Watching for file changes. @@ -696,7 +696,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-17094159457-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nlet x: string = 10;","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./index.ts","start":186,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[[3,1]],"dtsChangeTime":46000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-17094159457-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nlet x: string = 10;","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./index.ts","start":186,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[[3,1]],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -752,9 +752,9 @@ exitCode:: ExitStatus.undefined "Full" ] ], - "dtsChangeTime": 46000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1472 + "size": 1488 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js index 000717f92a6..29a5bfa507b 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js @@ -106,7 +106,7 @@ export function run() { Output:: [12:00:45 AM] Starting compilation in watch mode... -[12:01:26 AM] Found 0 errors. Watching for file changes. +[12:01:23 AM] Found 0 errors. Watching for file changes. @@ -234,7 +234,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":46000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -272,10 +272,10 @@ export declare function multiply(a: number, b: number): number; "./anothermodule.ts", "./index.ts" ], - "dtsChangeTime": 46000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1276 + "size": 1292 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -301,7 +301,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":64000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -363,10 +363,10 @@ export declare const m: typeof mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 64000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1494 + "size": 1510 } //// [/user/username/projects/sample1/tests/index.js] @@ -387,7 +387,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":76000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -462,10 +462,10 @@ export declare const m: typeof mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 76000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1639 + "size": 1655 } @@ -484,14 +484,14 @@ let y: string = 10; Output:: -[12:01:30 AM] File change detected. Starting incremental compilation... +[12:01:27 AM] File change detected. Starting incremental compilation... sample1/logic/index.ts:8:5 - error TS2322: Type 'number' is not assignable to type 'string'. 8 let y: string = 10;    ~ -[12:01:38 AM] Found 1 error. Watching for file changes. +[12:01:35 AM] Found 1 error. Watching for file changes. @@ -537,7 +537,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5445152744-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nlet y: string = 10;","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,[4,[{"file":"./index.ts","start":184,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[[4,1]],"dtsChangeTime":64000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5445152744-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nlet y: string = 10;","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,[4,[{"file":"./index.ts","start":184,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[[4,1]],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -617,10 +617,10 @@ exitCode:: ExitStatus.undefined "Full" ] ], - "dtsChangeTime": 64000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1690 + "size": 1706 } @@ -636,7 +636,7 @@ let x: string = 10; Output:: -[12:01:42 AM] File change detected. Starting incremental compilation... +[12:01:39 AM] File change detected. Starting incremental compilation... sample1/core/index.ts:5:5 - error TS2322: Type 'number' is not assignable to type 'string'. @@ -648,7 +648,7 @@ Output:: 8 let y: string = 10;    ~ -[12:01:50 AM] Found 2 errors. Watching for file changes. +[12:01:47 AM] Found 2 errors. Watching for file changes. @@ -693,7 +693,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-17094159457-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nlet x: string = 10;","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./index.ts","start":186,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[[3,1]],"dtsChangeTime":46000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-17094159457-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nlet x: string = 10;","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./index.ts","start":186,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[[3,1]],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -749,9 +749,9 @@ exitCode:: ExitStatus.undefined "Full" ] ], - "dtsChangeTime": 46000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1472 + "size": 1488 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js b/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js index 91692a1ce80..f69151ecf42 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js @@ -38,7 +38,7 @@ Output:: [12:00:30 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:48 AM] Found 0 errors. Watching for file changes. +[12:00:47 AM] Found 0 errors. Watching for file changes. @@ -105,7 +105,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../anothermodule.ts","../index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":31000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../anothermodule.ts","../index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -141,10 +141,10 @@ export declare function multiply(a: number, b: number): number; "../anothermodule.ts", "../index.ts" ], - "dtsChangeTime": 31000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1227 + "size": 1243 } @@ -180,13 +180,13 @@ export const y = 10; Output:: >> Screen clear -[12:00:51 AM] File change detected. Starting incremental compilation... +[12:00:50 AM] File change detected. Starting incremental compilation... -[12:00:52 AM] Project 'sample1/core/tsconfig.json' is out of date because output 'sample1/core/outDir/tsconfig.tsbuildinfo' is older than input 'sample1/core/file3.ts' +[12:00:51 AM] Project 'sample1/core/tsconfig.json' is out of date because output 'sample1/core/outDir/tsconfig.tsbuildinfo' is older than input 'sample1/core/file3.ts' -[12:00:53 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... +[12:00:52 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:01:06 AM] Found 0 errors. Watching for file changes. +[12:01:04 AM] Found 0 errors. Watching for file changes. @@ -224,7 +224,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../anothermodule.ts","../file3.ts","../index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":54250},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../anothermodule.ts","../file3.ts","../index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./file3.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -266,10 +266,10 @@ exitCode:: ExitStatus.undefined "../file3.ts", "../index.ts" ], - "dtsChangeTime": 54250 + "latestChangedDtsFile": "./file3.d.ts" }, "version": "FakeTSVersion", - "size": 1348 + "size": 1364 } //// [/user/username/projects/sample1/core/outDir/file3.js] diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit.js b/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit.js index 74eb90e0c46..3f6856ecd8f 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit.js @@ -45,7 +45,7 @@ Output:: [12:00:30 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:49 AM] Found 0 errors. Watching for file changes. +[12:00:48 AM] Found 0 errors. Watching for file changes. @@ -118,7 +118,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":31000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -156,10 +156,10 @@ export declare function multiply(a: number, b: number): number; "./anothermodule.ts", "./index.ts" ], - "dtsChangeTime": 31000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1276 + "size": 1292 } @@ -195,13 +195,13 @@ export const y = 10; Output:: >> Screen clear -[12:00:52 AM] File change detected. Starting incremental compilation... +[12:00:51 AM] File change detected. Starting incremental compilation... -[12:00:53 AM] Project 'sample1/core/tsconfig.json' is out of date because output 'sample1/core/tsconfig.tsbuildinfo' is older than input 'sample1/core/file3.ts' +[12:00:52 AM] Project 'sample1/core/tsconfig.json' is out of date because output 'sample1/core/tsconfig.tsbuildinfo' is older than input 'sample1/core/file3.ts' -[12:00:54 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... +[12:00:53 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:01:09 AM] Found 0 errors. Watching for file changes. +[12:01:07 AM] Found 0 errors. Watching for file changes. @@ -239,7 +239,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./file3.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":55250},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./file3.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./file3.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -283,10 +283,10 @@ exitCode:: ExitStatus.undefined "./file3.ts", "./index.ts" ], - "dtsChangeTime": 55250 + "latestChangedDtsFile": "./file3.d.ts" }, "version": "FakeTSVersion", - "size": 1396 + "size": 1412 } //// [/user/username/projects/sample1/core/file3.js] diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/tsbuildinfo-has-error.js b/tests/baselines/reference/tsbuildWatch/programUpdates/tsbuildinfo-has-error.js new file mode 100644 index 00000000000..84ee0a6cae4 --- /dev/null +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/tsbuildinfo-has-error.js @@ -0,0 +1,101 @@ +Input:: +//// [/src/project/main.ts] +export const x = 10; + +//// [/src/project/tsconfig.json] +{} + +//// [/src/project/tsconfig.tsbuildinfo] +Some random string + +//// [/a/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + + +/a/lib/tsc.js --b src/project -i -w +Output:: +>> Screen clear +[12:00:19 AM] Starting compilation in watch mode... + +[12:00:28 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/src/project/main.ts"] +Program options: {"watch":true,"incremental":true,"configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/src/project/main.ts + +Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/src/project/main.ts + +Shape signatures in builder refreshed for:: +/a/lib/lib.d.ts (used version) +/src/project/main.ts (used version) + +WatchedFiles:: +/src/project/tsconfig.json: + {"fileName":"/src/project/tsconfig.json","pollingInterval":250} +/src/project/main.ts: + {"fileName":"/src/project/main.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/src/project: + {"directoryName":"/src/project"} + +exitCode:: ExitStatus.undefined + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../a/lib/lib.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-10726455937-export const x = 10;"],"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} + +//// [/src/project/main.js] +"use strict"; +exports.__esModule = true; +exports.x = void 0; +exports.x = 10; + + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../a/lib/lib.d.ts", + "./main.ts" + ], + "fileInfos": { + "../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./main.ts": { + "version": "-10726455937-export const x = 10;", + "signature": "-10726455937-export const x = 10;" + } + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../a/lib/lib.d.ts", + "./main.ts" + ] + }, + "version": "FakeTSVersion", + "size": 615 +} + diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/verify-building-references-watches-only-those-projects.js b/tests/baselines/reference/tsbuildWatch/programUpdates/verify-building-references-watches-only-those-projects.js index 5fbf9cc316c..1b66d196405 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/verify-building-references-watches-only-those-projects.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/verify-building-references-watches-only-those-projects.js @@ -107,7 +107,7 @@ Output:: >> Screen clear [12:00:45 AM] Starting compilation in watch mode... -[12:01:16 AM] Found 0 errors. Watching for file changes. +[12:01:14 AM] Found 0 errors. Watching for file changes. @@ -207,7 +207,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":46000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -245,10 +245,10 @@ export declare function multiply(a: number, b: number): number; "./anothermodule.ts", "./index.ts" ], - "dtsChangeTime": 46000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1276 + "size": 1292 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -274,7 +274,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":64000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -336,9 +336,9 @@ export declare const m: typeof mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 64000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1494 + "size": 1510 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/watches-config-files-that-are-not-present.js b/tests/baselines/reference/tsbuildWatch/programUpdates/watches-config-files-that-are-not-present.js index 79b3933eddf..27d6980d6c0 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/watches-config-files-that-are-not-present.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/watches-config-files-that-are-not-present.js @@ -75,7 +75,7 @@ Output:: error TS5083: Cannot read file '/user/username/projects/sample1/logic/tsconfig.json'. -[12:00:56 AM] Found 1 error. Watching for file changes. +[12:00:55 AM] Found 1 error. Watching for file changes. @@ -154,7 +154,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":38000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -192,10 +192,10 @@ export declare function multiply(a: number, b: number): number; "./anothermodule.ts", "./index.ts" ], - "dtsChangeTime": 38000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1276 + "size": 1292 } @@ -220,7 +220,7 @@ Input:: Output:: >> Screen clear -[12:00:59 AM] File change detected. Starting incremental compilation... +[12:00:58 AM] File change detected. Starting incremental compilation... @@ -294,7 +294,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":60250},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -356,10 +356,10 @@ export declare const m: typeof mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 60250 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1494 + "size": 1510 } @@ -368,7 +368,7 @@ Change:: Build Tests Input:: Output:: -[12:01:22 AM] Found 0 errors. Watching for file changes. +[12:01:19 AM] Found 0 errors. Watching for file changes. @@ -440,7 +440,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":72350},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -515,9 +515,9 @@ export declare const m: typeof mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 72350 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1639 + "size": 1655 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js b/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js index fae6cadd733..ff041be8db7 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js @@ -42,7 +42,7 @@ Output:: >> Screen clear [12:00:29 AM] Starting compilation in watch mode... -[12:00:43 AM] Found 0 errors. Watching for file changes. +[12:00:42 AM] Found 0 errors. Watching for file changes. @@ -120,7 +120,7 @@ export {}; //// [/user/username/projects/sample1/Library/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./library.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"5256469508-\ninterface SomeObject\n{\n message: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message: \"new Object\"\n };\n}","signature":"-18933614215-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":30000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./library.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"5256469508-\ninterface SomeObject\n{\n message: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message: \"new Object\"\n };\n}","signature":"-18933614215-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./library.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/Library/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -149,10 +149,10 @@ export {}; "../../../../../a/lib/lib.d.ts", "./library.ts" ], - "dtsChangeTime": 30000 + "latestChangedDtsFile": "./library.d.ts" }, "version": "FakeTSVersion", - "size": 975 + "size": 993 } //// [/user/username/projects/sample1/App/app.js] @@ -183,7 +183,7 @@ export function createSomeObject(): SomeObject Output:: >> Screen clear -[12:00:47 AM] File change detected. Starting incremental compilation... +[12:00:46 AM] File change detected. Starting incremental compilation... App/app.ts:2:20 - error TS2551: Property 'message' does not exist on type 'SomeObject'. Did you mean 'message2'? @@ -195,7 +195,7 @@ Output::    ~~~~~~~~ 'message2' is declared here. -[12:01:02 AM] Found 1 error. Watching for file changes. +[12:01:00 AM] Found 1 error. Watching for file changes. @@ -269,7 +269,7 @@ export {}; //// [/user/username/projects/sample1/Library/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./library.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-9741349880-\ninterface SomeObject\n{\n message2: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message2: \"new Object\"\n };\n}","signature":"1956297931-interface SomeObject {\n message2: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":48250},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./library.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-9741349880-\ninterface SomeObject\n{\n message2: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message2: \"new Object\"\n };\n}","signature":"1956297931-interface SomeObject {\n message2: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./library.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/Library/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -298,10 +298,10 @@ export {}; "../../../../../a/lib/lib.d.ts", "./library.ts" ], - "dtsChangeTime": 48250 + "latestChangedDtsFile": "./library.d.ts" }, "version": "FakeTSVersion", - "size": 977 + "size": 995 } @@ -325,9 +325,9 @@ export function createSomeObject(): SomeObject Output:: >> Screen clear -[12:01:06 AM] File change detected. Starting incremental compilation... +[12:01:04 AM] File change detected. Starting incremental compilation... -[12:01:25 AM] Found 0 errors. Watching for file changes. +[12:01:22 AM] Found 0 errors. Watching for file changes. @@ -401,7 +401,7 @@ export {}; //// [/user/username/projects/sample1/Library/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./library.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"5256469508-\ninterface SomeObject\n{\n message: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message: \"new Object\"\n };\n}","signature":"-18933614215-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":67600},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./library.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"5256469508-\ninterface SomeObject\n{\n message: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message: \"new Object\"\n };\n}","signature":"-18933614215-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./library.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/Library/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -430,10 +430,10 @@ export {}; "../../../../../a/lib/lib.d.ts", "./library.ts" ], - "dtsChangeTime": 67600 + "latestChangedDtsFile": "./library.d.ts" }, "version": "FakeTSVersion", - "size": 975 + "size": 993 } //// [/user/username/projects/sample1/App/app.js] file written with same contents diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-using-prepend-builds-referencing-project-even-for-non-local-change.js b/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-using-prepend-builds-referencing-project-even-for-non-local-change.js index 13d86207f1e..98cd6ac6bb7 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-using-prepend-builds-referencing-project-even-for-non-local-change.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-using-prepend-builds-referencing-project-even-for-non-local-change.js @@ -30,7 +30,7 @@ Output:: >> Screen clear [12:00:29 AM] Starting compilation in watch mode... -[12:00:54 AM] Found 0 errors. Watching for file changes. +[12:00:52 AM] Found 0 errors. Watching for file changes. @@ -86,7 +86,7 @@ declare function foo(): number; //// [/user/username/projects/sample1/core/index.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./index.ts"],"js":{"sections":[{"pos":0,"end":30,"kind":"text"}],"hash":"3762995390-function foo() { return 10; }\n"},"dts":{"sections":[{"pos":0,"end":32,"kind":"text"}],"hash":"517738360-declare function foo(): number;\n"}},"program":{"fileNames":["./index.ts"],"fileInfos":["5450201652-function foo() { return 10; }"],"options":{"composite":true,"outFile":"./index.js"},"outSignature":"517738360-declare function foo(): number;\n","dtsChangeTime":30000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./index.ts"],"js":{"sections":[{"pos":0,"end":30,"kind":"text"}],"hash":"3762995390-function foo() { return 10; }\n"},"dts":{"sections":[{"pos":0,"end":32,"kind":"text"}],"hash":"517738360-declare function foo(): number;\n"}},"program":{"fileNames":["./index.ts"],"fileInfos":["5450201652-function foo() { return 10; }"],"options":{"composite":true,"outFile":"./index.js"},"outSignature":"517738360-declare function foo(): number;\n","latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/index.tsbuildinfo.readable.baseline.txt] { @@ -128,10 +128,10 @@ declare function foo(): number; "outFile": "./index.js" }, "outSignature": "517738360-declare function foo(): number;\n", - "dtsChangeTime": 30000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 539 + "size": 555 } //// [/user/username/projects/sample1/core/index.tsbuildinfo.baseline.txt] @@ -162,7 +162,7 @@ declare function bar(): number; //// [/user/username/projects/sample1/logic/index.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./index.ts"],"js":{"sections":[{"pos":0,"end":30,"kind":"prepend","data":"../core/index.js","texts":[{"pos":0,"end":30,"kind":"text"}]},{"pos":30,"end":69,"kind":"text"}],"hash":"9692417533-function foo() { return 10; }\nfunction bar() { return foo() + 1; }\n;\n"},"dts":{"sections":[{"pos":0,"end":32,"kind":"prepend","data":"../core/index.d.ts","texts":[{"pos":0,"end":32,"kind":"text"}]},{"pos":32,"end":64,"kind":"text"}],"hash":"9641219228-declare function foo(): number;\ndeclare function bar(): number;\n"}},"program":{"fileNames":["./index.ts"],"fileInfos":["5542925109-function bar() { return foo() + 1 };"],"options":{"composite":true,"outFile":"./index.js"},"outSignature":"9641219228-declare function foo(): number;\ndeclare function bar(): number;\n","dtsChangeTime":42000},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./index.ts"],"js":{"sections":[{"pos":0,"end":30,"kind":"prepend","data":"../core/index.js","texts":[{"pos":0,"end":30,"kind":"text"}]},{"pos":30,"end":69,"kind":"text"}],"hash":"9692417533-function foo() { return 10; }\nfunction bar() { return foo() + 1; }\n;\n"},"dts":{"sections":[{"pos":0,"end":32,"kind":"prepend","data":"../core/index.d.ts","texts":[{"pos":0,"end":32,"kind":"text"}]},{"pos":32,"end":64,"kind":"text"}],"hash":"9641219228-declare function foo(): number;\ndeclare function bar(): number;\n"}},"program":{"fileNames":["./index.ts"],"fileInfos":["5542925109-function bar() { return foo() + 1 };"],"options":{"composite":true,"outFile":"./index.js"},"outSignature":"9641219228-declare function foo(): number;\ndeclare function bar(): number;\n","latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/index.tsbuildinfo.readable.baseline.txt] { @@ -230,10 +230,10 @@ declare function bar(): number; "outFile": "./index.js" }, "outSignature": "9641219228-declare function foo(): number;\ndeclare function bar(): number;\n", - "dtsChangeTime": 42000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 869 + "size": 885 } //// [/user/username/projects/sample1/logic/index.tsbuildinfo.baseline.txt] @@ -276,7 +276,7 @@ function myFunc() { return 10; } Output:: >> Screen clear -[12:00:58 AM] File change detected. Starting incremental compilation... +[12:00:56 AM] File change detected. Starting incremental compilation... @@ -322,7 +322,7 @@ declare function myFunc(): number; //// [/user/username/projects/sample1/core/index.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./index.ts"],"js":{"sections":[{"pos":0,"end":63,"kind":"text"}],"hash":"-6033649947-function foo() { return 10; }\nfunction myFunc() { return 10; }\n"},"dts":{"sections":[{"pos":0,"end":67,"kind":"text"}],"hash":"2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n"}},"program":{"fileNames":["./index.ts"],"fileInfos":["-3957203077-function foo() { return 10; }\nfunction myFunc() { return 10; }"],"options":{"composite":true,"outFile":"./index.js"},"outSignature":"2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n","dtsChangeTime":59250},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./index.ts"],"js":{"sections":[{"pos":0,"end":63,"kind":"text"}],"hash":"-6033649947-function foo() { return 10; }\nfunction myFunc() { return 10; }\n"},"dts":{"sections":[{"pos":0,"end":67,"kind":"text"}],"hash":"2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n"}},"program":{"fileNames":["./index.ts"],"fileInfos":["-3957203077-function foo() { return 10; }\nfunction myFunc() { return 10; }"],"options":{"composite":true,"outFile":"./index.js"},"outSignature":"2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n","latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/index.tsbuildinfo.readable.baseline.txt] { @@ -364,10 +364,10 @@ declare function myFunc(): number; "outFile": "./index.js" }, "outSignature": "2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n", - "dtsChangeTime": 59250 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 683 + "size": 699 } //// [/user/username/projects/sample1/core/index.tsbuildinfo.baseline.txt] @@ -394,7 +394,7 @@ Change:: Build logic Input:: Output:: -[12:01:33 AM] Found 0 errors. Watching for file changes. +[12:01:29 AM] Found 0 errors. Watching for file changes. @@ -444,7 +444,7 @@ declare function bar(): number; //// [/user/username/projects/sample1/logic/index.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./index.ts"],"js":{"sections":[{"pos":0,"end":63,"kind":"prepend","data":"../core/index.js","texts":[{"pos":0,"end":63,"kind":"text"}]},{"pos":63,"end":102,"kind":"text"}],"hash":"-12608297404-function foo() { return 10; }\nfunction myFunc() { return 10; }\nfunction bar() { return foo() + 1; }\n;\n"},"dts":{"sections":[{"pos":0,"end":67,"kind":"prepend","data":"../core/index.d.ts","texts":[{"pos":0,"end":67,"kind":"text"}]},{"pos":67,"end":99,"kind":"text"}],"hash":"-2581247747-declare function foo(): number;\ndeclare function myFunc(): number;\ndeclare function bar(): number;\n"}},"program":{"fileNames":["./index.ts"],"fileInfos":["5542925109-function bar() { return foo() + 1 };"],"options":{"composite":true,"outFile":"./index.js"},"outSignature":"-2581247747-declare function foo(): number;\ndeclare function myFunc(): number;\ndeclare function bar(): number;\n","dtsChangeTime":76350},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./index.ts"],"js":{"sections":[{"pos":0,"end":63,"kind":"prepend","data":"../core/index.js","texts":[{"pos":0,"end":63,"kind":"text"}]},{"pos":63,"end":102,"kind":"text"}],"hash":"-12608297404-function foo() { return 10; }\nfunction myFunc() { return 10; }\nfunction bar() { return foo() + 1; }\n;\n"},"dts":{"sections":[{"pos":0,"end":67,"kind":"prepend","data":"../core/index.d.ts","texts":[{"pos":0,"end":67,"kind":"text"}]},{"pos":67,"end":99,"kind":"text"}],"hash":"-2581247747-declare function foo(): number;\ndeclare function myFunc(): number;\ndeclare function bar(): number;\n"}},"program":{"fileNames":["./index.ts"],"fileInfos":["5542925109-function bar() { return foo() + 1 };"],"options":{"composite":true,"outFile":"./index.js"},"outSignature":"-2581247747-declare function foo(): number;\ndeclare function myFunc(): number;\ndeclare function bar(): number;\n","latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/index.tsbuildinfo.readable.baseline.txt] { @@ -512,10 +512,10 @@ declare function bar(): number; "outFile": "./index.js" }, "outSignature": "-2581247747-declare function foo(): number;\ndeclare function myFunc(): number;\ndeclare function bar(): number;\n", - "dtsChangeTime": 76350 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 980 + "size": 996 } //// [/user/username/projects/sample1/logic/index.tsbuildinfo.baseline.txt] @@ -560,7 +560,7 @@ function myFunc() { return 100; } Output:: >> Screen clear -[12:01:37 AM] File change detected. Starting incremental compilation... +[12:01:33 AM] File change detected. Starting incremental compilation... @@ -600,9 +600,8 @@ function foo() { return 10; } function myFunc() { return 100; } -//// [/user/username/projects/sample1/core/index.d.ts] file written with same contents //// [/user/username/projects/sample1/core/index.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./index.ts"],"js":{"sections":[{"pos":0,"end":64,"kind":"text"}],"hash":"-5849092235-function foo() { return 10; }\nfunction myFunc() { return 100; }\n"},"dts":{"sections":[{"pos":0,"end":67,"kind":"text"}],"hash":"2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n"}},"program":{"fileNames":["./index.ts"],"fileInfos":["-6034018805-function foo() { return 10; }\nfunction myFunc() { return 100; }"],"options":{"composite":true,"outFile":"./index.js"},"outSignature":"2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n","dtsChangeTime":59250},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./index.ts"],"js":{"sections":[{"pos":0,"end":64,"kind":"text"}],"hash":"-5849092235-function foo() { return 10; }\nfunction myFunc() { return 100; }\n"},"dts":{"sections":[{"pos":0,"end":67,"kind":"text"}],"hash":"2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n"}},"program":{"fileNames":["./index.ts"],"fileInfos":["-6034018805-function foo() { return 10; }\nfunction myFunc() { return 100; }"],"options":{"composite":true,"outFile":"./index.js"},"outSignature":"2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n","latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/index.tsbuildinfo.readable.baseline.txt] { @@ -644,10 +643,10 @@ function myFunc() { return 100; } "outFile": "./index.js" }, "outSignature": "2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n", - "dtsChangeTime": 59250 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 685 + "size": 701 } //// [/user/username/projects/sample1/core/index.tsbuildinfo.baseline.txt] @@ -674,7 +673,7 @@ Change:: Build logic Input:: Output:: -[12:02:07 AM] Found 0 errors. Watching for file changes. +[12:02:00 AM] Found 0 errors. Watching for file changes. @@ -706,7 +705,7 @@ function bar() { return foo() + 1; } //// [/user/username/projects/sample1/logic/index.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./index.ts"],"js":{"sections":[{"pos":0,"end":64,"kind":"prepend","data":"../core/index.js","texts":[{"pos":0,"end":64,"kind":"text"}]},{"pos":64,"end":103,"kind":"text"}],"hash":"-1300839212-function foo() { return 10; }\nfunction myFunc() { return 100; }\nfunction bar() { return foo() + 1; }\n;\n"},"dts":{"sections":[{"pos":0,"end":67,"kind":"prepend","data":"../core/index.d.ts","texts":[{"pos":0,"end":67,"kind":"text"}]},{"pos":67,"end":99,"kind":"text"}],"hash":"-2581247747-declare function foo(): number;\ndeclare function myFunc(): number;\ndeclare function bar(): number;\n"}},"program":{"fileNames":["./index.ts"],"fileInfos":["5542925109-function bar() { return foo() + 1 };"],"options":{"composite":true,"outFile":"./index.js"},"outSignature":"-2581247747-declare function foo(): number;\ndeclare function myFunc(): number;\ndeclare function bar(): number;\n","dtsChangeTime":76350},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./index.ts"],"js":{"sections":[{"pos":0,"end":64,"kind":"prepend","data":"../core/index.js","texts":[{"pos":0,"end":64,"kind":"text"}]},{"pos":64,"end":103,"kind":"text"}],"hash":"-1300839212-function foo() { return 10; }\nfunction myFunc() { return 100; }\nfunction bar() { return foo() + 1; }\n;\n"},"dts":{"sections":[{"pos":0,"end":67,"kind":"prepend","data":"../core/index.d.ts","texts":[{"pos":0,"end":67,"kind":"text"}]},{"pos":67,"end":99,"kind":"text"}],"hash":"-2581247747-declare function foo(): number;\ndeclare function myFunc(): number;\ndeclare function bar(): number;\n"}},"program":{"fileNames":["./index.ts"],"fileInfos":["5542925109-function bar() { return foo() + 1 };"],"options":{"composite":true,"outFile":"./index.js"},"outSignature":"-2581247747-declare function foo(): number;\ndeclare function myFunc(): number;\ndeclare function bar(): number;\n","latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/index.tsbuildinfo.readable.baseline.txt] { @@ -774,10 +773,10 @@ function bar() { return foo() + 1; } "outFile": "./index.js" }, "outSignature": "-2581247747-declare function foo(): number;\ndeclare function myFunc(): number;\ndeclare function bar(): number;\n", - "dtsChangeTime": 76350 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 980 + "size": 996 } //// [/user/username/projects/sample1/logic/index.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js index 743ada730f6..af000648fbc 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js @@ -81,7 +81,7 @@ Output:: >> Screen clear [12:00:39 AM] Starting compilation in watch mode... -[12:01:16 AM] Found 0 errors. Watching for file changes. +[12:01:13 AM] Found 0 errors. Watching for file changes. @@ -203,7 +203,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":40000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -239,10 +239,10 @@ export declare function multiply(a: number, b: number): number; "./anothermodule.ts", "./index.ts" ], - "dtsChangeTime": 40000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1227 + "size": 1243 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -268,7 +268,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":54000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -330,10 +330,10 @@ export declare const m: typeof mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 54000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1416 + "size": 1432 } //// [/user/username/projects/sample1/tests/index.js] @@ -354,7 +354,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":66000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -429,10 +429,10 @@ export declare const m: typeof mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 66000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1561 + "size": 1577 } @@ -445,7 +445,7 @@ export const newFileConst = 30; Output:: >> Screen clear -[12:01:19 AM] File change detected. Starting incremental compilation... +[12:01:16 AM] File change detected. Starting incremental compilation... @@ -493,7 +493,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-16320201030-export const newFileConst = 30;","signature":"-22941483372-export declare const newFileConst = 30;\n"}],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":80250},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-16320201030-export const newFileConst = 30;","signature":"-22941483372-export declare const newFileConst = 30;\n"}],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -535,10 +535,10 @@ exitCode:: ExitStatus.undefined "./index.ts", "./newfile.ts" ], - "dtsChangeTime": 80250 + "latestChangedDtsFile": "./newfile.d.ts" }, "version": "FakeTSVersion", - "size": 1372 + "size": 1390 } //// [/user/username/projects/sample1/core/newfile.js] @@ -558,7 +558,7 @@ Change:: Build logic and tests Input:: Output:: -[12:01:34 AM] Found 0 errors. Watching for file changes. +[12:01:30 AM] Found 0 errors. Watching for file changes. @@ -630,7 +630,7 @@ export class someClass2 { } Output:: >> Screen clear -[12:01:38 AM] File change detected. Starting incremental compilation... +[12:01:34 AM] File change detected. Starting incremental compilation... @@ -678,7 +678,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9703836816-export const newFileConst = 30;\nexport class someClass2 { }","signature":"-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n"}],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":99600},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9703836816-export const newFileConst = 30;\nexport class someClass2 { }","signature":"-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n"}],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -720,10 +720,10 @@ exitCode:: ExitStatus.undefined "./index.ts", "./newfile.ts" ], - "dtsChangeTime": 99600 + "latestChangedDtsFile": "./newfile.d.ts" }, "version": "FakeTSVersion", - "size": 1438 + "size": 1456 } //// [/user/username/projects/sample1/core/newfile.js] @@ -751,7 +751,7 @@ Change:: Build logic and tests Input:: Output:: -[12:01:55 AM] Found 0 errors. Watching for file changes. +[12:01:50 AM] Found 0 errors. Watching for file changes. diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js index 00e0d3c6d2b..71fa632c593 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js @@ -81,7 +81,7 @@ Output:: >> Screen clear [12:00:39 AM] Starting compilation in watch mode... -[12:01:16 AM] Found 0 errors. Watching for file changes. +[12:01:13 AM] Found 0 errors. Watching for file changes. @@ -203,7 +203,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":40000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -239,10 +239,10 @@ export declare function multiply(a: number, b: number): number; "./anothermodule.ts", "./index.ts" ], - "dtsChangeTime": 40000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1227 + "size": 1243 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -268,7 +268,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":54000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -330,10 +330,10 @@ export declare const m: typeof mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 54000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1416 + "size": 1432 } //// [/user/username/projects/sample1/tests/index.js] @@ -354,7 +354,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":66000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -429,10 +429,10 @@ export declare const m: typeof mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 66000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1561 + "size": 1577 } @@ -449,7 +449,7 @@ export class someClass { } Output:: >> Screen clear -[12:01:20 AM] File change detected. Starting incremental compilation... +[12:01:17 AM] File change detected. Starting incremental compilation... @@ -519,7 +519,7 @@ export declare class someClass { //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"}],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":81250},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"}],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -555,10 +555,10 @@ export declare class someClass { "./anothermodule.ts", "./index.ts" ], - "dtsChangeTime": 81250 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1292 + "size": 1308 } @@ -567,7 +567,7 @@ Change:: Build logic and tests Input:: Output:: -[12:02:04 AM] Found 0 errors. Watching for file changes. +[12:01:54 AM] Found 0 errors. Watching for file changes. @@ -634,9 +634,8 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js] file written with same contents -//// [/user/username/projects/sample1/logic/index.d.ts] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":54000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -698,16 +697,15 @@ exitCode:: ExitStatus.undefined "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 54000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1453 + "size": 1469 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents -//// [/user/username/projects/sample1/tests/index.d.ts] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":66000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -782,10 +780,10 @@ exitCode:: ExitStatus.undefined "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 66000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1598 + "size": 1614 } @@ -801,7 +799,7 @@ export function multiply(a: number, b: number) { return a * b; } Output:: >> Screen clear -[12:02:08 AM] File change detected. Starting incremental compilation... +[12:01:58 AM] File change detected. Starting incremental compilation... @@ -863,7 +861,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":129600},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -899,10 +897,10 @@ export declare function multiply(a: number, b: number): number; "./anothermodule.ts", "./index.ts" ], - "dtsChangeTime": 129600 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1228 + "size": 1243 } @@ -911,7 +909,7 @@ Change:: Build logic and tests Input:: Output:: -[12:02:52 AM] Found 0 errors. Watching for file changes. +[12:02:35 AM] Found 0 errors. Watching for file changes. @@ -978,9 +976,8 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js] file written with same contents -//// [/user/username/projects/sample1/logic/index.d.ts] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":54000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1042,16 +1039,15 @@ exitCode:: ExitStatus.undefined "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 54000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1416 + "size": 1432 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents -//// [/user/username/projects/sample1/tests/index.d.ts] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":66000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1126,10 +1122,10 @@ exitCode:: ExitStatus.undefined "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 66000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1561 + "size": 1577 } @@ -1147,7 +1143,7 @@ export class someClass2 { } Output:: >> Screen clear -[12:02:59 AM] File change detected. Starting incremental compilation... +[12:02:42 AM] File change detected. Starting incremental compilation... @@ -1225,7 +1221,7 @@ export declare class someClass2 { //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-8266060440-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nexport class someClass2 { }","signature":"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n"}],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":180950},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-8266060440-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nexport class someClass2 { }","signature":"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n"}],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1261,10 +1257,10 @@ export declare class someClass2 { "./anothermodule.ts", "./index.ts" ], - "dtsChangeTime": 180950 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1359 + "size": 1374 } @@ -1273,7 +1269,7 @@ Change:: Build logic and tests Input:: Output:: -[12:03:44 AM] Found 0 errors. Watching for file changes. +[12:03:20 AM] Found 0 errors. Watching for file changes. @@ -1340,9 +1336,8 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js] file written with same contents -//// [/user/username/projects/sample1/logic/index.d.ts] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":54000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1404,16 +1399,15 @@ exitCode:: ExitStatus.undefined "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 54000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1491 + "size": 1507 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents -//// [/user/username/projects/sample1/tests/index.d.ts] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":66000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1488,9 +1482,9 @@ exitCode:: ExitStatus.undefined "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 66000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1636 + "size": 1652 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js index 9ed478a2dbd..456a0f87c79 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js @@ -81,7 +81,7 @@ Output:: >> Screen clear [12:00:39 AM] Starting compilation in watch mode... -[12:01:16 AM] Found 0 errors. Watching for file changes. +[12:01:13 AM] Found 0 errors. Watching for file changes. @@ -203,7 +203,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":40000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -239,10 +239,10 @@ export declare function multiply(a: number, b: number): number; "./anothermodule.ts", "./index.ts" ], - "dtsChangeTime": 40000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1227 + "size": 1243 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -268,7 +268,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":54000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -330,10 +330,10 @@ export declare const m: typeof mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 54000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1416 + "size": 1432 } //// [/user/username/projects/sample1/tests/index.js] @@ -354,7 +354,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":66000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -429,10 +429,10 @@ export declare const m: typeof mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 66000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1561 + "size": 1577 } @@ -449,9 +449,9 @@ function foo() { } Output:: >> Screen clear -[12:01:20 AM] File change detected. Starting incremental compilation... +[12:01:17 AM] File change detected. Starting incremental compilation... -[12:01:36 AM] Found 0 errors. Watching for file changes. +[12:01:30 AM] Found 0 errors. Watching for file changes. @@ -507,9 +507,8 @@ exports.multiply = multiply; function foo() { } -//// [/user/username/projects/sample1/core/index.d.ts] file written with same contents //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-21447768693-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nfunction foo() { }","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":40000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-21447768693-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nfunction foo() { }","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -545,10 +544,10 @@ function foo() { } "./anothermodule.ts", "./index.ts" ], - "dtsChangeTime": 40000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1247 + "size": 1263 } //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js index 7f1962d634d..a11ce02c526 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js @@ -107,7 +107,7 @@ Output:: >> Screen clear [12:00:45 AM] Starting compilation in watch mode... -[12:01:26 AM] Found 0 errors. Watching for file changes. +[12:01:23 AM] Found 0 errors. Watching for file changes. @@ -235,7 +235,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":46000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -273,10 +273,10 @@ export declare function multiply(a: number, b: number): number; "./anothermodule.ts", "./index.ts" ], - "dtsChangeTime": 46000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1276 + "size": 1292 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -302,7 +302,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":64000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -364,10 +364,10 @@ export declare const m: typeof mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 64000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1494 + "size": 1510 } //// [/user/username/projects/sample1/tests/index.js] @@ -388,7 +388,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":76000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -463,10 +463,10 @@ export declare const m: typeof mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 76000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1639 + "size": 1655 } @@ -479,7 +479,7 @@ export const newFileConst = 30; Output:: >> Screen clear -[12:01:29 AM] File change detected. Starting incremental compilation... +[12:01:26 AM] File change detected. Starting incremental compilation... @@ -527,7 +527,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-16320201030-export const newFileConst = 30;","signature":"-22941483372-export declare const newFileConst = 30;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":90250},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-16320201030-export const newFileConst = 30;","signature":"-22941483372-export declare const newFileConst = 30;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -571,10 +571,10 @@ exitCode:: ExitStatus.undefined "./index.ts", "./newfile.ts" ], - "dtsChangeTime": 90250 + "latestChangedDtsFile": "./newfile.d.ts" }, "version": "FakeTSVersion", - "size": 1421 + "size": 1439 } //// [/user/username/projects/sample1/core/newfile.js] @@ -597,7 +597,7 @@ Change:: Build logic and tests Input:: Output:: -[12:01:46 AM] Found 0 errors. Watching for file changes. +[12:01:42 AM] Found 0 errors. Watching for file changes. @@ -669,7 +669,7 @@ export class someClass2 { } Output:: >> Screen clear -[12:01:50 AM] File change detected. Starting incremental compilation... +[12:01:46 AM] File change detected. Starting incremental compilation... @@ -717,7 +717,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9703836816-export const newFileConst = 30;\nexport class someClass2 { }","signature":"-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":111600},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9703836816-export const newFileConst = 30;\nexport class someClass2 { }","signature":"-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -761,10 +761,10 @@ exitCode:: ExitStatus.undefined "./index.ts", "./newfile.ts" ], - "dtsChangeTime": 111600 + "latestChangedDtsFile": "./newfile.d.ts" }, "version": "FakeTSVersion", - "size": 1488 + "size": 1505 } //// [/user/username/projects/sample1/core/newfile.js] @@ -795,7 +795,7 @@ Change:: Build logic and tests Input:: Output:: -[12:02:10 AM] Found 0 errors. Watching for file changes. +[12:02:05 AM] Found 0 errors. Watching for file changes. diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js index 3687594b765..fdfac9145d0 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js @@ -107,7 +107,7 @@ Output:: >> Screen clear [12:00:45 AM] Starting compilation in watch mode... -[12:01:26 AM] Found 0 errors. Watching for file changes. +[12:01:23 AM] Found 0 errors. Watching for file changes. @@ -235,7 +235,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":46000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -273,10 +273,10 @@ export declare function multiply(a: number, b: number): number; "./anothermodule.ts", "./index.ts" ], - "dtsChangeTime": 46000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1276 + "size": 1292 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -302,7 +302,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":64000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -364,10 +364,10 @@ export declare const m: typeof mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 64000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1494 + "size": 1510 } //// [/user/username/projects/sample1/tests/index.js] @@ -388,7 +388,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":76000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -463,10 +463,10 @@ export declare const m: typeof mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 76000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1639 + "size": 1655 } @@ -483,7 +483,7 @@ export class someClass { } Output:: >> Screen clear -[12:01:30 AM] File change detected. Starting incremental compilation... +[12:01:27 AM] File change detected. Starting incremental compilation... @@ -556,7 +556,7 @@ export declare class someClass { //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":91250},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -594,10 +594,10 @@ export declare class someClass { "./anothermodule.ts", "./index.ts" ], - "dtsChangeTime": 91250 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1341 + "size": 1357 } @@ -606,7 +606,7 @@ Change:: Build logic and tests Input:: Output:: -[12:02:17 AM] Found 0 errors. Watching for file changes. +[12:02:07 AM] Found 0 errors. Watching for file changes. @@ -673,9 +673,8 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js] file written with same contents -//// [/user/username/projects/sample1/logic/index.d.ts] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-1428376100-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":64000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-1428376100-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -737,16 +736,15 @@ exitCode:: ExitStatus.undefined "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 64000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1531 + "size": 1547 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents -//// [/user/username/projects/sample1/tests/index.d.ts] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-1428376100-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":76000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-1428376100-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -821,10 +819,10 @@ exitCode:: ExitStatus.undefined "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 76000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1676 + "size": 1692 } @@ -840,7 +838,7 @@ export function multiply(a: number, b: number) { return a * b; } Output:: >> Screen clear -[12:02:21 AM] File change detected. Starting incremental compilation... +[12:02:11 AM] File change detected. Starting incremental compilation... @@ -905,7 +903,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":142600},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -943,10 +941,10 @@ export declare function multiply(a: number, b: number): number; "./anothermodule.ts", "./index.ts" ], - "dtsChangeTime": 142600 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1277 + "size": 1292 } @@ -955,7 +953,7 @@ Change:: Build logic and tests Input:: Output:: -[12:03:08 AM] Found 0 errors. Watching for file changes. +[12:02:51 AM] Found 0 errors. Watching for file changes. @@ -1022,9 +1020,8 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js] file written with same contents -//// [/user/username/projects/sample1/logic/index.d.ts] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":64000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1086,16 +1083,15 @@ exitCode:: ExitStatus.undefined "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 64000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1494 + "size": 1510 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents -//// [/user/username/projects/sample1/tests/index.d.ts] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":76000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1170,10 +1166,10 @@ exitCode:: ExitStatus.undefined "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 76000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1639 + "size": 1655 } @@ -1191,7 +1187,7 @@ export class someClass2 { } Output:: >> Screen clear -[12:03:15 AM] File change detected. Starting incremental compilation... +[12:02:58 AM] File change detected. Starting incremental compilation... @@ -1272,7 +1268,7 @@ export declare class someClass2 { //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-8266060440-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nexport class someClass2 { }","signature":"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":196950},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-8266060440-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nexport class someClass2 { }","signature":"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1310,10 +1306,10 @@ export declare class someClass2 { "./anothermodule.ts", "./index.ts" ], - "dtsChangeTime": 196950 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1408 + "size": 1423 } @@ -1322,7 +1318,7 @@ Change:: Build logic and tests Input:: Output:: -[12:04:03 AM] Found 0 errors. Watching for file changes. +[12:03:39 AM] Found 0 errors. Watching for file changes. @@ -1389,9 +1385,8 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js] file written with same contents -//// [/user/username/projects/sample1/logic/index.d.ts] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8987447092-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":64000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8987447092-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1453,16 +1448,15 @@ exitCode:: ExitStatus.undefined "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 64000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1569 + "size": 1585 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents -//// [/user/username/projects/sample1/tests/index.d.ts] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8987447092-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":76000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8987447092-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1537,9 +1531,9 @@ exitCode:: ExitStatus.undefined "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 76000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1714 + "size": 1730 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js index fa2927242ac..6526a023bbd 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js @@ -107,7 +107,7 @@ Output:: >> Screen clear [12:00:45 AM] Starting compilation in watch mode... -[12:01:26 AM] Found 0 errors. Watching for file changes. +[12:01:23 AM] Found 0 errors. Watching for file changes. @@ -235,7 +235,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":46000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -273,10 +273,10 @@ export declare function multiply(a: number, b: number): number; "./anothermodule.ts", "./index.ts" ], - "dtsChangeTime": 46000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1276 + "size": 1292 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -302,7 +302,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":64000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -364,10 +364,10 @@ export declare const m: typeof mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 64000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1494 + "size": 1510 } //// [/user/username/projects/sample1/tests/index.js] @@ -388,7 +388,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":76000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -463,10 +463,10 @@ export declare const m: typeof mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 76000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1639 + "size": 1655 } @@ -483,9 +483,9 @@ function foo() { } Output:: >> Screen clear -[12:01:30 AM] File change detected. Starting incremental compilation... +[12:01:27 AM] File change detected. Starting incremental compilation... -[12:01:49 AM] Found 0 errors. Watching for file changes. +[12:01:43 AM] Found 0 errors. Watching for file changes. @@ -542,9 +542,8 @@ function foo() { } //// [/user/username/projects/sample1/core/index.d.ts.map] file written with same contents -//// [/user/username/projects/sample1/core/index.d.ts] file written with same contents //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-21447768693-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nfunction foo() { }","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":46000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-21447768693-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nfunction foo() { }","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -582,10 +581,10 @@ function foo() { } "./anothermodule.ts", "./index.ts" ], - "dtsChangeTime": 46000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1296 + "size": 1312 } //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js b/tests/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js index 953e6d78bc9..a2f8ce51642 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js @@ -51,11 +51,11 @@ Output:: [12:00:30 AM] Building project '/a/b/project1.tsconfig.json'... -[12:00:45 AM] Project 'project2.tsconfig.json' is out of date because output file 'project2.tsconfig.tsbuildinfo' does not exist +[12:00:44 AM] Project 'project2.tsconfig.json' is out of date because output file 'project2.tsconfig.tsbuildinfo' does not exist -[12:00:46 AM] Building project '/a/b/project2.tsconfig.json'... +[12:00:45 AM] Building project '/a/b/project2.tsconfig.json'... -[12:00:57 AM] Found 0 errors. Watching for file changes. +[12:00:55 AM] Found 0 errors. Watching for file changes. @@ -135,7 +135,7 @@ declare let y: number; //// [/a/b/project1.tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./commonfile1.ts","./commonfile2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2167136208-let x = 1","signature":"2842409786-declare let x: number;\n","affectsGlobalScope":true},{"version":"2168322129-let y = 1","signature":"784887931-declare let y: number;\n","affectsGlobalScope":true}],"options":{"composite":true,"strict":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,3,1],"dtsChangeTime":31000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./commonfile1.ts","./commonfile2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2167136208-let x = 1","signature":"2842409786-declare let x: number;\n","affectsGlobalScope":true},{"version":"2168322129-let y = 1","signature":"784887931-declare let y: number;\n","affectsGlobalScope":true}],"options":{"composite":true,"strict":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,3,1],"latestChangedDtsFile":"./commonFile2.d.ts"},"version":"FakeTSVersion"} //// [/a/b/project1.tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -173,10 +173,10 @@ declare let y: number; "./commonfile2.ts", "../lib/lib.d.ts" ], - "dtsChangeTime": 31000 + "latestChangedDtsFile": "./commonFile2.d.ts" }, "version": "FakeTSVersion", - "size": 888 + "size": 910 } //// [/a/b/other.js] @@ -189,7 +189,7 @@ declare let z: number; //// [/a/b/project2.tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2874288940-let z = 0;","signature":"-1272633924-declare let z: number;\n","affectsGlobalScope":true}],"options":{"composite":true,"strict":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1],"dtsChangeTime":47000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2874288940-let z = 0;","signature":"-1272633924-declare let z: number;\n","affectsGlobalScope":true}],"options":{"composite":true,"strict":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/a/b/project2.tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -220,10 +220,10 @@ declare let z: number; "./other.ts", "../lib/lib.d.ts" ], - "dtsChangeTime": 47000 + "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 753 + "size": 769 } @@ -236,9 +236,9 @@ Input:: Output:: >> Screen clear -[12:01:00 AM] File change detected. Starting incremental compilation... +[12:00:58 AM] File change detected. Starting incremental compilation... -[12:01:01 AM] Found 0 errors. Watching for file changes. +[12:00:59 AM] Found 0 errors. Watching for file changes. diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js b/tests/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js index d06dc979a36..84c9d4532a8 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js @@ -47,11 +47,11 @@ Output:: [12:00:28 AM] Building project '/a/b/project1.tsconfig.json'... -[12:00:43 AM] Project 'project2.tsconfig.json' is out of date because output file 'project2.tsconfig.tsbuildinfo' does not exist +[12:00:42 AM] Project 'project2.tsconfig.json' is out of date because output file 'project2.tsconfig.tsbuildinfo' does not exist -[12:00:44 AM] Building project '/a/b/project2.tsconfig.json'... +[12:00:43 AM] Building project '/a/b/project2.tsconfig.json'... -[12:00:55 AM] Found 0 errors. Watching for file changes. +[12:00:53 AM] Found 0 errors. Watching for file changes. @@ -127,7 +127,7 @@ declare let y: number; //// [/a/b/project1.tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./commonfile1.ts","./commonfile2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2167136208-let x = 1","signature":"2842409786-declare let x: number;\n","affectsGlobalScope":true},{"version":"2168322129-let y = 1","signature":"784887931-declare let y: number;\n","affectsGlobalScope":true}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,3,1],"dtsChangeTime":29000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./commonfile1.ts","./commonfile2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2167136208-let x = 1","signature":"2842409786-declare let x: number;\n","affectsGlobalScope":true},{"version":"2168322129-let y = 1","signature":"784887931-declare let y: number;\n","affectsGlobalScope":true}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,3,1],"latestChangedDtsFile":"./commonFile2.d.ts"},"version":"FakeTSVersion"} //// [/a/b/project1.tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -164,10 +164,10 @@ declare let y: number; "./commonfile2.ts", "../lib/lib.d.ts" ], - "dtsChangeTime": 29000 + "latestChangedDtsFile": "./commonFile2.d.ts" }, "version": "FakeTSVersion", - "size": 874 + "size": 896 } //// [/a/b/other.js] @@ -179,7 +179,7 @@ declare let z: number; //// [/a/b/project2.tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2874288940-let z = 0;","signature":"-1272633924-declare let z: number;\n","affectsGlobalScope":true}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1],"dtsChangeTime":45000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2874288940-let z = 0;","signature":"-1272633924-declare let z: number;\n","affectsGlobalScope":true}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/a/b/project2.tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -209,10 +209,10 @@ declare let z: number; "./other.ts", "../lib/lib.d.ts" ], - "dtsChangeTime": 45000 + "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 739 + "size": 755 } @@ -225,11 +225,11 @@ Input:: Output:: >> Screen clear -[12:00:59 AM] File change detected. Starting incremental compilation... +[12:00:57 AM] File change detected. Starting incremental compilation... -[12:01:00 AM] Project 'project1.tsconfig.json' is out of date because output 'project1.tsconfig.tsbuildinfo' is older than input 'alpha.tsconfig.json' +[12:00:58 AM] Project 'project1.tsconfig.json' is out of date because output 'project1.tsconfig.tsbuildinfo' is older than input 'alpha.tsconfig.json' -[12:01:01 AM] Building project '/a/b/project1.tsconfig.json'... +[12:00:59 AM] Building project '/a/b/project1.tsconfig.json'... @@ -275,15 +275,13 @@ exitCode:: ExitStatus.undefined var x = 1; -//// [/a/b/commonFile1.d.ts] file written with same contents //// [/a/b/commonFile2.js] "use strict"; var y = 1; -//// [/a/b/commonFile2.d.ts] file written with same contents //// [/a/b/project1.tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./commonfile1.ts","./commonfile2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2167136208-let x = 1","signature":"2842409786-declare let x: number;\n","affectsGlobalScope":true},{"version":"2168322129-let y = 1","signature":"784887931-declare let y: number;\n","affectsGlobalScope":true}],"options":{"composite":true,"strict":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,3,1],"dtsChangeTime":29000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./commonfile1.ts","./commonfile2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2167136208-let x = 1","signature":"2842409786-declare let x: number;\n","affectsGlobalScope":true},{"version":"2168322129-let y = 1","signature":"784887931-declare let y: number;\n","affectsGlobalScope":true}],"options":{"composite":true,"strict":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,3,1],"latestChangedDtsFile":"./commonFile2.d.ts"},"version":"FakeTSVersion"} //// [/a/b/project1.tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -321,10 +319,10 @@ var y = 1; "./commonfile2.ts", "../lib/lib.d.ts" ], - "dtsChangeTime": 29000 + "latestChangedDtsFile": "./commonFile2.d.ts" }, "version": "FakeTSVersion", - "size": 888 + "size": 910 } @@ -333,11 +331,11 @@ Change:: Build project 2 Input:: Output:: -[12:01:21 AM] Project 'project2.tsconfig.json' is out of date because output 'project2.tsconfig.tsbuildinfo' is older than input 'alpha.tsconfig.json' +[12:01:13 AM] Project 'project2.tsconfig.json' is out of date because output 'project2.tsconfig.tsbuildinfo' is older than input 'alpha.tsconfig.json' -[12:01:22 AM] Building project '/a/b/project2.tsconfig.json'... +[12:01:14 AM] Building project '/a/b/project2.tsconfig.json'... -[12:01:36 AM] Found 0 errors. Watching for file changes. +[12:01:25 AM] Found 0 errors. Watching for file changes. @@ -381,9 +379,8 @@ exitCode:: ExitStatus.undefined var z = 0; -//// [/a/b/other.d.ts] file written with same contents //// [/a/b/project2.tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2874288940-let z = 0;","signature":"-1272633924-declare let z: number;\n","affectsGlobalScope":true}],"options":{"composite":true,"strict":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1],"dtsChangeTime":45000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2874288940-let z = 0;","signature":"-1272633924-declare let z: number;\n","affectsGlobalScope":true}],"options":{"composite":true,"strict":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/a/b/project2.tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -414,10 +411,10 @@ var z = 0; "./other.ts", "../lib/lib.d.ts" ], - "dtsChangeTime": 45000 + "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 753 + "size": 769 } @@ -430,13 +427,13 @@ Input:: Output:: >> Screen clear -[12:01:40 AM] File change detected. Starting incremental compilation... +[12:01:29 AM] File change detected. Starting incremental compilation... -[12:01:41 AM] Project 'project2.tsconfig.json' is out of date because output 'project2.tsconfig.tsbuildinfo' is older than input 'bravo.tsconfig.json' +[12:01:30 AM] Project 'project2.tsconfig.json' is out of date because output 'project2.tsconfig.tsbuildinfo' is older than input 'bravo.tsconfig.json' -[12:01:42 AM] Building project '/a/b/project2.tsconfig.json'... +[12:01:31 AM] Building project '/a/b/project2.tsconfig.json'... -[12:01:56 AM] Found 0 errors. Watching for file changes. +[12:01:42 AM] Found 0 errors. Watching for file changes. @@ -479,9 +476,8 @@ exitCode:: ExitStatus.undefined var z = 0; -//// [/a/b/other.d.ts] file written with same contents //// [/a/b/project2.tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2874288940-let z = 0;","signature":"-1272633924-declare let z: number;\n","affectsGlobalScope":true}],"options":{"composite":true,"strict":false},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1],"dtsChangeTime":45000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2874288940-let z = 0;","signature":"-1272633924-declare let z: number;\n","affectsGlobalScope":true}],"options":{"composite":true,"strict":false},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/a/b/project2.tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -512,10 +508,10 @@ var z = 0; "./other.ts", "../lib/lib.d.ts" ], - "dtsChangeTime": 45000 + "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 754 + "size": 770 } @@ -528,13 +524,13 @@ Input:: Output:: >> Screen clear -[12:02:00 AM] File change detected. Starting incremental compilation... +[12:01:46 AM] File change detected. Starting incremental compilation... -[12:02:01 AM] Project 'project2.tsconfig.json' is out of date because output 'commonFile1.js' is older than input 'project2.tsconfig.json' +[12:01:47 AM] Project 'project2.tsconfig.json' is out of date because output 'commonFile1.js' is older than input 'project2.tsconfig.json' -[12:02:02 AM] Building project '/a/b/project2.tsconfig.json'... +[12:01:48 AM] Building project '/a/b/project2.tsconfig.json'... -[12:02:13 AM] Found 0 errors. Watching for file changes. +[12:01:59 AM] Found 0 errors. Watching for file changes. @@ -597,11 +593,11 @@ Input:: Output:: >> Screen clear -[12:02:18 AM] File change detected. Starting incremental compilation... +[12:02:04 AM] File change detected. Starting incremental compilation... -[12:02:19 AM] Project 'project1.tsconfig.json' is out of date because output 'project1.tsconfig.tsbuildinfo' is older than input 'alpha.tsconfig.json' +[12:02:05 AM] Project 'project1.tsconfig.json' is out of date because output 'project1.tsconfig.tsbuildinfo' is older than input 'alpha.tsconfig.json' -[12:02:20 AM] Building project '/a/b/project1.tsconfig.json'... +[12:02:06 AM] Building project '/a/b/project1.tsconfig.json'... @@ -646,14 +642,12 @@ exitCode:: ExitStatus.undefined var x = 1; -//// [/a/b/commonFile1.d.ts] file written with same contents //// [/a/b/commonFile2.js] var y = 1; -//// [/a/b/commonFile2.d.ts] file written with same contents //// [/a/b/project1.tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./commonfile1.ts","./commonfile2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2167136208-let x = 1","signature":"2842409786-declare let x: number;\n","affectsGlobalScope":true},{"version":"2168322129-let y = 1","signature":"784887931-declare let y: number;\n","affectsGlobalScope":true}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,3,1],"dtsChangeTime":29000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./commonfile1.ts","./commonfile2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2167136208-let x = 1","signature":"2842409786-declare let x: number;\n","affectsGlobalScope":true},{"version":"2168322129-let y = 1","signature":"784887931-declare let y: number;\n","affectsGlobalScope":true}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,3,1],"latestChangedDtsFile":"./commonFile2.d.ts"},"version":"FakeTSVersion"} //// [/a/b/project1.tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -690,10 +684,10 @@ var y = 1; "./commonfile2.ts", "../lib/lib.d.ts" ], - "dtsChangeTime": 29000 + "latestChangedDtsFile": "./commonFile2.d.ts" }, "version": "FakeTSVersion", - "size": 874 + "size": 896 } @@ -702,11 +696,11 @@ Change:: Build project 2 Input:: Output:: -[12:02:40 AM] Project 'project2.tsconfig.json' is out of date because output 'commonFile1.js' is older than input 'alpha.tsconfig.json' +[12:02:20 AM] Project 'project2.tsconfig.json' is out of date because output 'commonFile1.js' is older than input 'alpha.tsconfig.json' -[12:02:41 AM] Building project '/a/b/project2.tsconfig.json'... +[12:02:21 AM] Building project '/a/b/project2.tsconfig.json'... -[12:02:52 AM] Found 0 errors. Watching for file changes. +[12:02:32 AM] Found 0 errors. Watching for file changes. diff --git a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-23-projects-in-a-solution.js b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-23-projects-in-a-solution.js index c516025133b..4801d6ac41c 100644 --- a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-23-projects-in-a-solution.js +++ b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-23-projects-in-a-solution.js @@ -189,95 +189,95 @@ Output:: [12:02:40 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... -[12:02:51 AM] Project 'pkg1/tsconfig.json' is out of date because output file 'pkg1/tsconfig.tsbuildinfo' does not exist +[12:02:50 AM] Project 'pkg1/tsconfig.json' is out of date because output file 'pkg1/tsconfig.tsbuildinfo' does not exist -[12:02:52 AM] Building project '/user/username/projects/myproject/pkg1/tsconfig.json'... +[12:02:51 AM] Building project '/user/username/projects/myproject/pkg1/tsconfig.json'... -[12:03:03 AM] Project 'pkg2/tsconfig.json' is out of date because output file 'pkg2/tsconfig.tsbuildinfo' does not exist +[12:03:01 AM] Project 'pkg2/tsconfig.json' is out of date because output file 'pkg2/tsconfig.tsbuildinfo' does not exist -[12:03:04 AM] Building project '/user/username/projects/myproject/pkg2/tsconfig.json'... +[12:03:02 AM] Building project '/user/username/projects/myproject/pkg2/tsconfig.json'... -[12:03:15 AM] Project 'pkg3/tsconfig.json' is out of date because output file 'pkg3/tsconfig.tsbuildinfo' does not exist +[12:03:12 AM] Project 'pkg3/tsconfig.json' is out of date because output file 'pkg3/tsconfig.tsbuildinfo' does not exist -[12:03:16 AM] Building project '/user/username/projects/myproject/pkg3/tsconfig.json'... +[12:03:13 AM] Building project '/user/username/projects/myproject/pkg3/tsconfig.json'... -[12:03:27 AM] Project 'pkg4/tsconfig.json' is out of date because output file 'pkg4/tsconfig.tsbuildinfo' does not exist +[12:03:23 AM] Project 'pkg4/tsconfig.json' is out of date because output file 'pkg4/tsconfig.tsbuildinfo' does not exist -[12:03:28 AM] Building project '/user/username/projects/myproject/pkg4/tsconfig.json'... +[12:03:24 AM] Building project '/user/username/projects/myproject/pkg4/tsconfig.json'... -[12:03:39 AM] Project 'pkg5/tsconfig.json' is out of date because output file 'pkg5/tsconfig.tsbuildinfo' does not exist +[12:03:34 AM] Project 'pkg5/tsconfig.json' is out of date because output file 'pkg5/tsconfig.tsbuildinfo' does not exist -[12:03:40 AM] Building project '/user/username/projects/myproject/pkg5/tsconfig.json'... +[12:03:35 AM] Building project '/user/username/projects/myproject/pkg5/tsconfig.json'... -[12:03:51 AM] Project 'pkg6/tsconfig.json' is out of date because output file 'pkg6/tsconfig.tsbuildinfo' does not exist +[12:03:45 AM] Project 'pkg6/tsconfig.json' is out of date because output file 'pkg6/tsconfig.tsbuildinfo' does not exist -[12:03:52 AM] Building project '/user/username/projects/myproject/pkg6/tsconfig.json'... +[12:03:46 AM] Building project '/user/username/projects/myproject/pkg6/tsconfig.json'... -[12:04:03 AM] Project 'pkg7/tsconfig.json' is out of date because output file 'pkg7/tsconfig.tsbuildinfo' does not exist +[12:03:56 AM] Project 'pkg7/tsconfig.json' is out of date because output file 'pkg7/tsconfig.tsbuildinfo' does not exist -[12:04:04 AM] Building project '/user/username/projects/myproject/pkg7/tsconfig.json'... +[12:03:57 AM] Building project '/user/username/projects/myproject/pkg7/tsconfig.json'... -[12:04:15 AM] Project 'pkg8/tsconfig.json' is out of date because output file 'pkg8/tsconfig.tsbuildinfo' does not exist +[12:04:07 AM] Project 'pkg8/tsconfig.json' is out of date because output file 'pkg8/tsconfig.tsbuildinfo' does not exist -[12:04:16 AM] Building project '/user/username/projects/myproject/pkg8/tsconfig.json'... +[12:04:08 AM] Building project '/user/username/projects/myproject/pkg8/tsconfig.json'... -[12:04:27 AM] Project 'pkg9/tsconfig.json' is out of date because output file 'pkg9/tsconfig.tsbuildinfo' does not exist +[12:04:18 AM] Project 'pkg9/tsconfig.json' is out of date because output file 'pkg9/tsconfig.tsbuildinfo' does not exist -[12:04:28 AM] Building project '/user/username/projects/myproject/pkg9/tsconfig.json'... +[12:04:19 AM] Building project '/user/username/projects/myproject/pkg9/tsconfig.json'... -[12:04:39 AM] Project 'pkg10/tsconfig.json' is out of date because output file 'pkg10/tsconfig.tsbuildinfo' does not exist +[12:04:29 AM] Project 'pkg10/tsconfig.json' is out of date because output file 'pkg10/tsconfig.tsbuildinfo' does not exist -[12:04:40 AM] Building project '/user/username/projects/myproject/pkg10/tsconfig.json'... +[12:04:30 AM] Building project '/user/username/projects/myproject/pkg10/tsconfig.json'... -[12:04:51 AM] Project 'pkg11/tsconfig.json' is out of date because output file 'pkg11/tsconfig.tsbuildinfo' does not exist +[12:04:40 AM] Project 'pkg11/tsconfig.json' is out of date because output file 'pkg11/tsconfig.tsbuildinfo' does not exist -[12:04:52 AM] Building project '/user/username/projects/myproject/pkg11/tsconfig.json'... +[12:04:41 AM] Building project '/user/username/projects/myproject/pkg11/tsconfig.json'... -[12:05:03 AM] Project 'pkg12/tsconfig.json' is out of date because output file 'pkg12/tsconfig.tsbuildinfo' does not exist +[12:04:51 AM] Project 'pkg12/tsconfig.json' is out of date because output file 'pkg12/tsconfig.tsbuildinfo' does not exist -[12:05:04 AM] Building project '/user/username/projects/myproject/pkg12/tsconfig.json'... +[12:04:52 AM] Building project '/user/username/projects/myproject/pkg12/tsconfig.json'... -[12:05:15 AM] Project 'pkg13/tsconfig.json' is out of date because output file 'pkg13/tsconfig.tsbuildinfo' does not exist +[12:05:02 AM] Project 'pkg13/tsconfig.json' is out of date because output file 'pkg13/tsconfig.tsbuildinfo' does not exist -[12:05:16 AM] Building project '/user/username/projects/myproject/pkg13/tsconfig.json'... +[12:05:03 AM] Building project '/user/username/projects/myproject/pkg13/tsconfig.json'... -[12:05:27 AM] Project 'pkg14/tsconfig.json' is out of date because output file 'pkg14/tsconfig.tsbuildinfo' does not exist +[12:05:13 AM] Project 'pkg14/tsconfig.json' is out of date because output file 'pkg14/tsconfig.tsbuildinfo' does not exist -[12:05:28 AM] Building project '/user/username/projects/myproject/pkg14/tsconfig.json'... +[12:05:14 AM] Building project '/user/username/projects/myproject/pkg14/tsconfig.json'... -[12:05:39 AM] Project 'pkg15/tsconfig.json' is out of date because output file 'pkg15/tsconfig.tsbuildinfo' does not exist +[12:05:24 AM] Project 'pkg15/tsconfig.json' is out of date because output file 'pkg15/tsconfig.tsbuildinfo' does not exist -[12:05:40 AM] Building project '/user/username/projects/myproject/pkg15/tsconfig.json'... +[12:05:25 AM] Building project '/user/username/projects/myproject/pkg15/tsconfig.json'... -[12:05:51 AM] Project 'pkg16/tsconfig.json' is out of date because output file 'pkg16/tsconfig.tsbuildinfo' does not exist +[12:05:35 AM] Project 'pkg16/tsconfig.json' is out of date because output file 'pkg16/tsconfig.tsbuildinfo' does not exist -[12:05:52 AM] Building project '/user/username/projects/myproject/pkg16/tsconfig.json'... +[12:05:36 AM] Building project '/user/username/projects/myproject/pkg16/tsconfig.json'... -[12:06:03 AM] Project 'pkg17/tsconfig.json' is out of date because output file 'pkg17/tsconfig.tsbuildinfo' does not exist +[12:05:46 AM] Project 'pkg17/tsconfig.json' is out of date because output file 'pkg17/tsconfig.tsbuildinfo' does not exist -[12:06:04 AM] Building project '/user/username/projects/myproject/pkg17/tsconfig.json'... +[12:05:47 AM] Building project '/user/username/projects/myproject/pkg17/tsconfig.json'... -[12:06:15 AM] Project 'pkg18/tsconfig.json' is out of date because output file 'pkg18/tsconfig.tsbuildinfo' does not exist +[12:05:57 AM] Project 'pkg18/tsconfig.json' is out of date because output file 'pkg18/tsconfig.tsbuildinfo' does not exist -[12:06:16 AM] Building project '/user/username/projects/myproject/pkg18/tsconfig.json'... +[12:05:58 AM] Building project '/user/username/projects/myproject/pkg18/tsconfig.json'... -[12:06:27 AM] Project 'pkg19/tsconfig.json' is out of date because output file 'pkg19/tsconfig.tsbuildinfo' does not exist +[12:06:08 AM] Project 'pkg19/tsconfig.json' is out of date because output file 'pkg19/tsconfig.tsbuildinfo' does not exist -[12:06:28 AM] Building project '/user/username/projects/myproject/pkg19/tsconfig.json'... +[12:06:09 AM] Building project '/user/username/projects/myproject/pkg19/tsconfig.json'... -[12:06:39 AM] Project 'pkg20/tsconfig.json' is out of date because output file 'pkg20/tsconfig.tsbuildinfo' does not exist +[12:06:19 AM] Project 'pkg20/tsconfig.json' is out of date because output file 'pkg20/tsconfig.tsbuildinfo' does not exist -[12:06:40 AM] Building project '/user/username/projects/myproject/pkg20/tsconfig.json'... +[12:06:20 AM] Building project '/user/username/projects/myproject/pkg20/tsconfig.json'... -[12:06:51 AM] Project 'pkg21/tsconfig.json' is out of date because output file 'pkg21/tsconfig.tsbuildinfo' does not exist +[12:06:30 AM] Project 'pkg21/tsconfig.json' is out of date because output file 'pkg21/tsconfig.tsbuildinfo' does not exist -[12:06:52 AM] Building project '/user/username/projects/myproject/pkg21/tsconfig.json'... +[12:06:31 AM] Building project '/user/username/projects/myproject/pkg21/tsconfig.json'... -[12:07:03 AM] Project 'pkg22/tsconfig.json' is out of date because output file 'pkg22/tsconfig.tsbuildinfo' does not exist +[12:06:41 AM] Project 'pkg22/tsconfig.json' is out of date because output file 'pkg22/tsconfig.tsbuildinfo' does not exist -[12:07:04 AM] Building project '/user/username/projects/myproject/pkg22/tsconfig.json'... +[12:06:42 AM] Building project '/user/username/projects/myproject/pkg22/tsconfig.json'... -[12:07:15 AM] Found 0 errors. Watching for file changes. +[12:06:52 AM] Found 0 errors. Watching for file changes. @@ -786,7 +786,7 @@ export declare const pkg0 = 0; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10197922616-export const pkg0 = 0;","signature":"-4821832606-export declare const pkg0 = 0;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":161000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10197922616-export const pkg0 = 0;","signature":"-4821832606-export declare const pkg0 = 0;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -815,10 +815,10 @@ export declare const pkg0 = 0; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 161000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 750 + "size": 765 } //// [/user/username/projects/myproject/pkg1/index.js] @@ -833,7 +833,7 @@ export declare const pkg1 = 1; //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10158787190-export const pkg1 = 1;","signature":"-3530363548-export declare const pkg1 = 1;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":173000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10158787190-export const pkg1 = 1;","signature":"-3530363548-export declare const pkg1 = 1;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -862,10 +862,10 @@ export declare const pkg1 = 1; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 173000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 750 + "size": 765 } //// [/user/username/projects/myproject/pkg2/index.js] @@ -880,7 +880,7 @@ export declare const pkg2 = 2; //// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14414619060-export const pkg2 = 2;","signature":"-6533861786-export declare const pkg2 = 2;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":185000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14414619060-export const pkg2 = 2;","signature":"-6533861786-export declare const pkg2 = 2;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -909,10 +909,10 @@ export declare const pkg2 = 2; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 185000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 750 + "size": 765 } //// [/user/username/projects/myproject/pkg3/index.js] @@ -927,7 +927,7 @@ export declare const pkg3 = 3; //// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14375483634-export const pkg3 = 3;","signature":"-5242392728-export declare const pkg3 = 3;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":197000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14375483634-export const pkg3 = 3;","signature":"-5242392728-export declare const pkg3 = 3;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -956,10 +956,10 @@ export declare const pkg3 = 3; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 197000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 750 + "size": 765 } //// [/user/username/projects/myproject/pkg4/index.js] @@ -974,7 +974,7 @@ export declare const pkg4 = 4; //// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14336348208-export const pkg4 = 4;","signature":"-3950923670-export declare const pkg4 = 4;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":209000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14336348208-export const pkg4 = 4;","signature":"-3950923670-export declare const pkg4 = 4;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1003,10 +1003,10 @@ export declare const pkg4 = 4; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 209000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 750 + "size": 765 } //// [/user/username/projects/myproject/pkg5/index.js] @@ -1021,7 +1021,7 @@ export declare const pkg5 = 5; //// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14297212782-export const pkg5 = 5;","signature":"-2659454612-export declare const pkg5 = 5;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":221000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14297212782-export const pkg5 = 5;","signature":"-2659454612-export declare const pkg5 = 5;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1050,10 +1050,10 @@ export declare const pkg5 = 5; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 221000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 750 + "size": 765 } //// [/user/username/projects/myproject/pkg6/index.js] @@ -1068,7 +1068,7 @@ export declare const pkg6 = 6; //// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14258077356-export const pkg6 = 6;","signature":"-5662952850-export declare const pkg6 = 6;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":233000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14258077356-export const pkg6 = 6;","signature":"-5662952850-export declare const pkg6 = 6;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1097,10 +1097,10 @@ export declare const pkg6 = 6; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 233000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 750 + "size": 765 } //// [/user/username/projects/myproject/pkg7/index.js] @@ -1115,7 +1115,7 @@ export declare const pkg7 = 7; //// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14218941930-export const pkg7 = 7;","signature":"-4371483792-export declare const pkg7 = 7;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":245000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14218941930-export const pkg7 = 7;","signature":"-4371483792-export declare const pkg7 = 7;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1144,10 +1144,10 @@ export declare const pkg7 = 7; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 245000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 750 + "size": 765 } //// [/user/username/projects/myproject/pkg8/index.js] @@ -1162,7 +1162,7 @@ export declare const pkg8 = 8; //// [/user/username/projects/myproject/pkg8/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14179806504-export const pkg8 = 8;","signature":"-3080014734-export declare const pkg8 = 8;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":257000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14179806504-export const pkg8 = 8;","signature":"-3080014734-export declare const pkg8 = 8;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg8/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1191,10 +1191,10 @@ export declare const pkg8 = 8; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 257000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 750 + "size": 765 } //// [/user/username/projects/myproject/pkg9/index.js] @@ -1209,7 +1209,7 @@ export declare const pkg9 = 9; //// [/user/username/projects/myproject/pkg9/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14140671078-export const pkg9 = 9;","signature":"-6083512972-export declare const pkg9 = 9;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":269000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14140671078-export const pkg9 = 9;","signature":"-6083512972-export declare const pkg9 = 9;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg9/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1238,10 +1238,10 @@ export declare const pkg9 = 9; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 269000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 750 + "size": 765 } //// [/user/username/projects/myproject/pkg10/index.js] @@ -1256,7 +1256,7 @@ export declare const pkg10 = 10; //// [/user/username/projects/myproject/pkg10/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-9585933846-export const pkg10 = 10;","signature":"-3553269308-export declare const pkg10 = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":281000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-9585933846-export const pkg10 = 10;","signature":"-3553269308-export declare const pkg10 = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg10/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1285,10 +1285,10 @@ export declare const pkg10 = 10; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 281000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 753 + "size": 768 } //// [/user/username/projects/myproject/pkg11/index.js] @@ -1303,7 +1303,7 @@ export declare const pkg11 = 11; //// [/user/username/projects/myproject/pkg11/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-8294465844-export const pkg11 = 11;","signature":"410469094-export declare const pkg11 = 11;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":293000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-8294465844-export const pkg11 = 11;","signature":"410469094-export declare const pkg11 = 11;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg11/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1332,10 +1332,10 @@ export declare const pkg11 = 11; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 293000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 751 + "size": 766 } //// [/user/username/projects/myproject/pkg12/index.js] @@ -1350,7 +1350,7 @@ export declare const pkg12 = 12; //// [/user/username/projects/myproject/pkg12/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-7002997842-export const pkg12 = 12;","signature":"-4215727096-export declare const pkg12 = 12;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":305000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-7002997842-export const pkg12 = 12;","signature":"-4215727096-export declare const pkg12 = 12;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg12/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1379,10 +1379,10 @@ export declare const pkg12 = 12; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 305000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 753 + "size": 768 } //// [/user/username/projects/myproject/pkg13/index.js] @@ -1397,7 +1397,7 @@ export declare const pkg13 = 13; //// [/user/username/projects/myproject/pkg13/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10006497136-export const pkg13 = 13;","signature":"-4546955990-export declare const pkg13 = 13;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":317000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10006497136-export const pkg13 = 13;","signature":"-4546955990-export declare const pkg13 = 13;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg13/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1426,10 +1426,10 @@ export declare const pkg13 = 13; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 317000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 754 + "size": 769 } //// [/user/username/projects/myproject/pkg14/index.js] @@ -1444,7 +1444,7 @@ export declare const pkg14 = 14; //// [/user/username/projects/myproject/pkg14/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-8715029134-export const pkg14 = 14;","signature":"-583217588-export declare const pkg14 = 14;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":329000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-8715029134-export const pkg14 = 14;","signature":"-583217588-export declare const pkg14 = 14;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg14/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1473,10 +1473,10 @@ export declare const pkg14 = 14; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 329000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 767 } //// [/user/username/projects/myproject/pkg15/index.js] @@ -1491,7 +1491,7 @@ export declare const pkg15 = 15; //// [/user/username/projects/myproject/pkg15/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-7423561132-export const pkg15 = 15;","signature":"-5209413778-export declare const pkg15 = 15;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":341000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-7423561132-export const pkg15 = 15;","signature":"-5209413778-export declare const pkg15 = 15;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg15/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1520,10 +1520,10 @@ export declare const pkg15 = 15; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 341000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 753 + "size": 768 } //// [/user/username/projects/myproject/pkg16/index.js] @@ -1538,7 +1538,7 @@ export declare const pkg16 = 16; //// [/user/username/projects/myproject/pkg16/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-6132093130-export const pkg16 = 16;","signature":"-1245675376-export declare const pkg16 = 16;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":353000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-6132093130-export const pkg16 = 16;","signature":"-1245675376-export declare const pkg16 = 16;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg16/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1567,10 +1567,10 @@ export declare const pkg16 = 16; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 353000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 753 + "size": 768 } //// [/user/username/projects/myproject/pkg17/index.js] @@ -1585,7 +1585,7 @@ export declare const pkg17 = 17; //// [/user/username/projects/myproject/pkg17/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-17725527016-export const pkg17 = 17;","signature":"-1576904270-export declare const pkg17 = 17;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":365000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-17725527016-export const pkg17 = 17;","signature":"-1576904270-export declare const pkg17 = 17;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg17/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1614,10 +1614,10 @@ export declare const pkg17 = 17; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 365000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 754 + "size": 769 } //// [/user/username/projects/myproject/pkg18/index.js] @@ -1632,7 +1632,7 @@ export declare const pkg18 = 18; //// [/user/username/projects/myproject/pkg18/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-16434059014-export const pkg18 = 18;","signature":"-1908133164-export declare const pkg18 = 18;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":377000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-16434059014-export const pkg18 = 18;","signature":"-1908133164-export declare const pkg18 = 18;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg18/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1661,10 +1661,10 @@ export declare const pkg18 = 18; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 377000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 754 + "size": 769 } //// [/user/username/projects/myproject/pkg19/index.js] @@ -1679,7 +1679,7 @@ export declare const pkg19 = 19; //// [/user/username/projects/myproject/pkg19/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-15142591012-export const pkg19 = 19;","signature":"-2239362058-export declare const pkg19 = 19;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":389000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-15142591012-export const pkg19 = 19;","signature":"-2239362058-export declare const pkg19 = 19;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg19/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1708,10 +1708,10 @@ export declare const pkg19 = 19; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 389000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 754 + "size": 769 } //// [/user/username/projects/myproject/pkg20/index.js] @@ -1726,7 +1726,7 @@ export declare const pkg20 = 20; //// [/user/username/projects/myproject/pkg20/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14212130036-export const pkg20 = 20;","signature":"-5893888218-export declare const pkg20 = 20;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":401000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14212130036-export const pkg20 = 20;","signature":"-5893888218-export declare const pkg20 = 20;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg20/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1755,10 +1755,10 @@ export declare const pkg20 = 20; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 401000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 754 + "size": 769 } //// [/user/username/projects/myproject/pkg21/index.js] @@ -1773,7 +1773,7 @@ export declare const pkg21 = 21; //// [/user/username/projects/myproject/pkg21/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-17215629330-export const pkg21 = 21;","signature":"-6225117112-export declare const pkg21 = 21;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":413000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-17215629330-export const pkg21 = 21;","signature":"-6225117112-export declare const pkg21 = 21;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg21/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1802,10 +1802,10 @@ export declare const pkg21 = 21; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 413000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 754 + "size": 769 } //// [/user/username/projects/myproject/pkg22/index.js] @@ -1820,7 +1820,7 @@ export declare const pkg22 = 22; //// [/user/username/projects/myproject/pkg22/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-15924161328-export const pkg22 = 22;","signature":"-6556346006-export declare const pkg22 = 22;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":425000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-15924161328-export const pkg22 = 22;","signature":"-6556346006-export declare const pkg22 = 22;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg22/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1849,10 +1849,10 @@ export declare const pkg22 = 22; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 425000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 754 + "size": 769 } @@ -1865,101 +1865,101 @@ export const pkg0 = 0;const someConst2 = 10; Output:: >> Screen clear -[12:07:18 AM] File change detected. Starting incremental compilation... +[12:06:55 AM] File change detected. Starting incremental compilation... -[12:07:19 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' +[12:06:56 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' -[12:07:20 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... +[12:06:57 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... -[12:07:34 AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:07:08 AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:07:35 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... +[12:07:09 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... -[12:07:37 AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:07:11 AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:07:38 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... +[12:07:12 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... -[12:07:40 AM] Project 'pkg3/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:07:14 AM] Project 'pkg3/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:07:41 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg3/tsconfig.json'... +[12:07:15 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg3/tsconfig.json'... -[12:07:43 AM] Project 'pkg4/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:07:17 AM] Project 'pkg4/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:07:44 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg4/tsconfig.json'... +[12:07:18 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg4/tsconfig.json'... -[12:07:46 AM] Project 'pkg5/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:07:20 AM] Project 'pkg5/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:07:47 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg5/tsconfig.json'... +[12:07:21 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg5/tsconfig.json'... -[12:07:49 AM] Project 'pkg6/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:07:23 AM] Project 'pkg6/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:07:50 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg6/tsconfig.json'... +[12:07:24 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg6/tsconfig.json'... -[12:07:52 AM] Project 'pkg7/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:07:26 AM] Project 'pkg7/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:07:53 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg7/tsconfig.json'... +[12:07:27 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg7/tsconfig.json'... -[12:07:55 AM] Project 'pkg8/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:07:29 AM] Project 'pkg8/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:07:56 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg8/tsconfig.json'... +[12:07:30 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg8/tsconfig.json'... -[12:07:58 AM] Project 'pkg9/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:07:32 AM] Project 'pkg9/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:07:59 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg9/tsconfig.json'... +[12:07:33 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg9/tsconfig.json'... -[12:08:01 AM] Project 'pkg10/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:07:35 AM] Project 'pkg10/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:08:02 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg10/tsconfig.json'... +[12:07:36 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg10/tsconfig.json'... -[12:08:04 AM] Project 'pkg11/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:07:38 AM] Project 'pkg11/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:08:05 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg11/tsconfig.json'... +[12:07:39 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg11/tsconfig.json'... -[12:08:07 AM] Project 'pkg12/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:07:41 AM] Project 'pkg12/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:08:08 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg12/tsconfig.json'... +[12:07:42 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg12/tsconfig.json'... -[12:08:10 AM] Project 'pkg13/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:07:44 AM] Project 'pkg13/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:08:11 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg13/tsconfig.json'... +[12:07:45 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg13/tsconfig.json'... -[12:08:13 AM] Project 'pkg14/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:07:47 AM] Project 'pkg14/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:08:14 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg14/tsconfig.json'... +[12:07:48 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg14/tsconfig.json'... -[12:08:16 AM] Project 'pkg15/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:07:50 AM] Project 'pkg15/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:08:17 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg15/tsconfig.json'... +[12:07:51 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg15/tsconfig.json'... -[12:08:19 AM] Project 'pkg16/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:07:53 AM] Project 'pkg16/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:08:20 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg16/tsconfig.json'... +[12:07:54 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg16/tsconfig.json'... -[12:08:22 AM] Project 'pkg17/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:07:56 AM] Project 'pkg17/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:08:23 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg17/tsconfig.json'... +[12:07:57 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg17/tsconfig.json'... -[12:08:25 AM] Project 'pkg18/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:07:59 AM] Project 'pkg18/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:08:26 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg18/tsconfig.json'... +[12:08:00 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg18/tsconfig.json'... -[12:08:28 AM] Project 'pkg19/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:08:02 AM] Project 'pkg19/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:08:29 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg19/tsconfig.json'... +[12:08:03 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg19/tsconfig.json'... -[12:08:31 AM] Project 'pkg20/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:08:05 AM] Project 'pkg20/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:08:32 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg20/tsconfig.json'... +[12:08:06 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg20/tsconfig.json'... -[12:08:34 AM] Project 'pkg21/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:08:08 AM] Project 'pkg21/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:08:35 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg21/tsconfig.json'... +[12:08:09 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg21/tsconfig.json'... -[12:08:37 AM] Project 'pkg22/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:08:11 AM] Project 'pkg22/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:08:38 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg22/tsconfig.json'... +[12:08:12 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg22/tsconfig.json'... -[12:08:40 AM] Found 0 errors. Watching for file changes. +[12:08:14 AM] Found 0 errors. Watching for file changes. @@ -2132,9 +2132,8 @@ exports.pkg0 = 0; var someConst2 = 10; -//// [/user/username/projects/myproject/pkg0/index.d.ts] file written with same contents //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-7839887915-export const pkg0 = 0;const someConst2 = 10;","signature":"-4821832606-export declare const pkg0 = 0;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":161000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-7839887915-export const pkg0 = 0;const someConst2 = 10;","signature":"-4821832606-export declare const pkg0 = 0;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2163,10 +2162,10 @@ var someConst2 = 10; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 161000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 771 + "size": 786 } //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] file changed its modified time @@ -2356,11 +2355,11 @@ export const pkg0 = 0;const someConst2 = 10;export const someConst = 10; Output:: >> Screen clear -[12:08:43 AM] File change detected. Starting incremental compilation... +[12:08:17 AM] File change detected. Starting incremental compilation... -[12:08:44 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' +[12:08:18 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' -[12:08:45 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... +[12:08:19 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... @@ -2540,7 +2539,7 @@ export declare const someConst = 10; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1748855762-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":526500},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1748855762-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2569,10 +2568,10 @@ export declare const someConst = 10; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 526500 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 836 + "size": 851 } @@ -2581,35 +2580,35 @@ Change:: build pkg1,pkg2,pkg3,pkg4,pkg5 Input:: Output:: -[12:09:00 AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/index.js' is older than input 'pkg0/tsconfig.json' +[12:08:33 AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/index.js' is older than input 'pkg0/tsconfig.json' -[12:09:01 AM] Building project '/user/username/projects/myproject/pkg1/tsconfig.json'... +[12:08:34 AM] Building project '/user/username/projects/myproject/pkg1/tsconfig.json'... -[12:09:02 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... +[12:08:35 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... -[12:09:04 AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/index.js' is older than input 'pkg0/tsconfig.json' +[12:08:37 AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/index.js' is older than input 'pkg0/tsconfig.json' -[12:09:05 AM] Building project '/user/username/projects/myproject/pkg2/tsconfig.json'... +[12:08:38 AM] Building project '/user/username/projects/myproject/pkg2/tsconfig.json'... -[12:09:06 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... +[12:08:39 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... -[12:09:08 AM] Project 'pkg3/tsconfig.json' is out of date because output 'pkg3/index.js' is older than input 'pkg0/tsconfig.json' +[12:08:41 AM] Project 'pkg3/tsconfig.json' is out of date because output 'pkg3/index.js' is older than input 'pkg0/tsconfig.json' -[12:09:09 AM] Building project '/user/username/projects/myproject/pkg3/tsconfig.json'... +[12:08:42 AM] Building project '/user/username/projects/myproject/pkg3/tsconfig.json'... -[12:09:10 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg3/tsconfig.json'... +[12:08:43 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg3/tsconfig.json'... -[12:09:12 AM] Project 'pkg4/tsconfig.json' is out of date because output 'pkg4/index.js' is older than input 'pkg0/tsconfig.json' +[12:08:45 AM] Project 'pkg4/tsconfig.json' is out of date because output 'pkg4/index.js' is older than input 'pkg0/tsconfig.json' -[12:09:13 AM] Building project '/user/username/projects/myproject/pkg4/tsconfig.json'... +[12:08:46 AM] Building project '/user/username/projects/myproject/pkg4/tsconfig.json'... -[12:09:14 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg4/tsconfig.json'... +[12:08:47 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg4/tsconfig.json'... -[12:09:16 AM] Project 'pkg5/tsconfig.json' is out of date because output 'pkg5/index.js' is older than input 'pkg0/tsconfig.json' +[12:08:49 AM] Project 'pkg5/tsconfig.json' is out of date because output 'pkg5/index.js' is older than input 'pkg0/tsconfig.json' -[12:09:17 AM] Building project '/user/username/projects/myproject/pkg5/tsconfig.json'... +[12:08:50 AM] Building project '/user/username/projects/myproject/pkg5/tsconfig.json'... -[12:09:18 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg5/tsconfig.json'... +[12:08:51 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg5/tsconfig.json'... @@ -2827,35 +2826,35 @@ Change:: build pkg6,pkg7,pkg8,pkg9,pkg10 Input:: Output:: -[12:09:20 AM] Project 'pkg6/tsconfig.json' is out of date because output 'pkg6/index.js' is older than input 'pkg0/tsconfig.json' +[12:08:53 AM] Project 'pkg6/tsconfig.json' is out of date because output 'pkg6/index.js' is older than input 'pkg0/tsconfig.json' -[12:09:21 AM] Building project '/user/username/projects/myproject/pkg6/tsconfig.json'... +[12:08:54 AM] Building project '/user/username/projects/myproject/pkg6/tsconfig.json'... -[12:09:22 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg6/tsconfig.json'... +[12:08:55 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg6/tsconfig.json'... -[12:09:24 AM] Project 'pkg7/tsconfig.json' is out of date because output 'pkg7/index.js' is older than input 'pkg0/tsconfig.json' +[12:08:57 AM] Project 'pkg7/tsconfig.json' is out of date because output 'pkg7/index.js' is older than input 'pkg0/tsconfig.json' -[12:09:25 AM] Building project '/user/username/projects/myproject/pkg7/tsconfig.json'... +[12:08:58 AM] Building project '/user/username/projects/myproject/pkg7/tsconfig.json'... -[12:09:26 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg7/tsconfig.json'... +[12:08:59 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg7/tsconfig.json'... -[12:09:28 AM] Project 'pkg8/tsconfig.json' is out of date because output 'pkg8/index.js' is older than input 'pkg0/tsconfig.json' +[12:09:01 AM] Project 'pkg8/tsconfig.json' is out of date because output 'pkg8/index.js' is older than input 'pkg0/tsconfig.json' -[12:09:29 AM] Building project '/user/username/projects/myproject/pkg8/tsconfig.json'... +[12:09:02 AM] Building project '/user/username/projects/myproject/pkg8/tsconfig.json'... -[12:09:30 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg8/tsconfig.json'... +[12:09:03 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg8/tsconfig.json'... -[12:09:32 AM] Project 'pkg9/tsconfig.json' is out of date because output 'pkg9/index.js' is older than input 'pkg0/tsconfig.json' +[12:09:05 AM] Project 'pkg9/tsconfig.json' is out of date because output 'pkg9/index.js' is older than input 'pkg0/tsconfig.json' -[12:09:33 AM] Building project '/user/username/projects/myproject/pkg9/tsconfig.json'... +[12:09:06 AM] Building project '/user/username/projects/myproject/pkg9/tsconfig.json'... -[12:09:34 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg9/tsconfig.json'... +[12:09:07 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg9/tsconfig.json'... -[12:09:36 AM] Project 'pkg10/tsconfig.json' is out of date because output 'pkg10/index.js' is older than input 'pkg0/tsconfig.json' +[12:09:09 AM] Project 'pkg10/tsconfig.json' is out of date because output 'pkg10/index.js' is older than input 'pkg0/tsconfig.json' -[12:09:37 AM] Building project '/user/username/projects/myproject/pkg10/tsconfig.json'... +[12:09:10 AM] Building project '/user/username/projects/myproject/pkg10/tsconfig.json'... -[12:09:38 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg10/tsconfig.json'... +[12:09:11 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg10/tsconfig.json'... @@ -3073,35 +3072,35 @@ Change:: build pkg11,pkg12,pkg13,pkg14,pkg15 Input:: Output:: -[12:09:40 AM] Project 'pkg11/tsconfig.json' is out of date because output 'pkg11/index.js' is older than input 'pkg0/tsconfig.json' +[12:09:13 AM] Project 'pkg11/tsconfig.json' is out of date because output 'pkg11/index.js' is older than input 'pkg0/tsconfig.json' -[12:09:41 AM] Building project '/user/username/projects/myproject/pkg11/tsconfig.json'... +[12:09:14 AM] Building project '/user/username/projects/myproject/pkg11/tsconfig.json'... -[12:09:42 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg11/tsconfig.json'... +[12:09:15 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg11/tsconfig.json'... -[12:09:44 AM] Project 'pkg12/tsconfig.json' is out of date because output 'pkg12/index.js' is older than input 'pkg0/tsconfig.json' +[12:09:17 AM] Project 'pkg12/tsconfig.json' is out of date because output 'pkg12/index.js' is older than input 'pkg0/tsconfig.json' -[12:09:45 AM] Building project '/user/username/projects/myproject/pkg12/tsconfig.json'... +[12:09:18 AM] Building project '/user/username/projects/myproject/pkg12/tsconfig.json'... -[12:09:46 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg12/tsconfig.json'... +[12:09:19 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg12/tsconfig.json'... -[12:09:48 AM] Project 'pkg13/tsconfig.json' is out of date because output 'pkg13/index.js' is older than input 'pkg0/tsconfig.json' +[12:09:21 AM] Project 'pkg13/tsconfig.json' is out of date because output 'pkg13/index.js' is older than input 'pkg0/tsconfig.json' -[12:09:49 AM] Building project '/user/username/projects/myproject/pkg13/tsconfig.json'... +[12:09:22 AM] Building project '/user/username/projects/myproject/pkg13/tsconfig.json'... -[12:09:50 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg13/tsconfig.json'... +[12:09:23 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg13/tsconfig.json'... -[12:09:52 AM] Project 'pkg14/tsconfig.json' is out of date because output 'pkg14/index.js' is older than input 'pkg0/tsconfig.json' +[12:09:25 AM] Project 'pkg14/tsconfig.json' is out of date because output 'pkg14/index.js' is older than input 'pkg0/tsconfig.json' -[12:09:53 AM] Building project '/user/username/projects/myproject/pkg14/tsconfig.json'... +[12:09:26 AM] Building project '/user/username/projects/myproject/pkg14/tsconfig.json'... -[12:09:54 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg14/tsconfig.json'... +[12:09:27 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg14/tsconfig.json'... -[12:09:56 AM] Project 'pkg15/tsconfig.json' is out of date because output 'pkg15/index.js' is older than input 'pkg0/tsconfig.json' +[12:09:29 AM] Project 'pkg15/tsconfig.json' is out of date because output 'pkg15/index.js' is older than input 'pkg0/tsconfig.json' -[12:09:57 AM] Building project '/user/username/projects/myproject/pkg15/tsconfig.json'... +[12:09:30 AM] Building project '/user/username/projects/myproject/pkg15/tsconfig.json'... -[12:09:58 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg15/tsconfig.json'... +[12:09:31 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg15/tsconfig.json'... @@ -3319,35 +3318,35 @@ Change:: build pkg16,pkg17,pkg18,pkg19,pkg20 Input:: Output:: -[12:10:00 AM] Project 'pkg16/tsconfig.json' is out of date because output 'pkg16/index.js' is older than input 'pkg0/tsconfig.json' +[12:09:33 AM] Project 'pkg16/tsconfig.json' is out of date because output 'pkg16/index.js' is older than input 'pkg0/tsconfig.json' -[12:10:01 AM] Building project '/user/username/projects/myproject/pkg16/tsconfig.json'... +[12:09:34 AM] Building project '/user/username/projects/myproject/pkg16/tsconfig.json'... -[12:10:02 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg16/tsconfig.json'... +[12:09:35 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg16/tsconfig.json'... -[12:10:04 AM] Project 'pkg17/tsconfig.json' is out of date because output 'pkg17/index.js' is older than input 'pkg0/tsconfig.json' +[12:09:37 AM] Project 'pkg17/tsconfig.json' is out of date because output 'pkg17/index.js' is older than input 'pkg0/tsconfig.json' -[12:10:05 AM] Building project '/user/username/projects/myproject/pkg17/tsconfig.json'... +[12:09:38 AM] Building project '/user/username/projects/myproject/pkg17/tsconfig.json'... -[12:10:06 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg17/tsconfig.json'... +[12:09:39 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg17/tsconfig.json'... -[12:10:08 AM] Project 'pkg18/tsconfig.json' is out of date because output 'pkg18/index.js' is older than input 'pkg0/tsconfig.json' +[12:09:41 AM] Project 'pkg18/tsconfig.json' is out of date because output 'pkg18/index.js' is older than input 'pkg0/tsconfig.json' -[12:10:09 AM] Building project '/user/username/projects/myproject/pkg18/tsconfig.json'... +[12:09:42 AM] Building project '/user/username/projects/myproject/pkg18/tsconfig.json'... -[12:10:10 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg18/tsconfig.json'... +[12:09:43 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg18/tsconfig.json'... -[12:10:12 AM] Project 'pkg19/tsconfig.json' is out of date because output 'pkg19/index.js' is older than input 'pkg0/tsconfig.json' +[12:09:45 AM] Project 'pkg19/tsconfig.json' is out of date because output 'pkg19/index.js' is older than input 'pkg0/tsconfig.json' -[12:10:13 AM] Building project '/user/username/projects/myproject/pkg19/tsconfig.json'... +[12:09:46 AM] Building project '/user/username/projects/myproject/pkg19/tsconfig.json'... -[12:10:14 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg19/tsconfig.json'... +[12:09:47 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg19/tsconfig.json'... -[12:10:16 AM] Project 'pkg20/tsconfig.json' is out of date because output 'pkg20/index.js' is older than input 'pkg0/tsconfig.json' +[12:09:49 AM] Project 'pkg20/tsconfig.json' is out of date because output 'pkg20/index.js' is older than input 'pkg0/tsconfig.json' -[12:10:17 AM] Building project '/user/username/projects/myproject/pkg20/tsconfig.json'... +[12:09:50 AM] Building project '/user/username/projects/myproject/pkg20/tsconfig.json'... -[12:10:18 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg20/tsconfig.json'... +[12:09:51 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg20/tsconfig.json'... @@ -3565,19 +3564,19 @@ Change:: build pkg21,pkg22,pkg23 Input:: Output:: -[12:10:21 AM] Project 'pkg21/tsconfig.json' is out of date because output 'pkg21/index.js' is older than input 'pkg0/tsconfig.json' +[12:09:54 AM] Project 'pkg21/tsconfig.json' is out of date because output 'pkg21/index.js' is older than input 'pkg0/tsconfig.json' -[12:10:22 AM] Building project '/user/username/projects/myproject/pkg21/tsconfig.json'... +[12:09:55 AM] Building project '/user/username/projects/myproject/pkg21/tsconfig.json'... -[12:10:23 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg21/tsconfig.json'... +[12:09:56 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg21/tsconfig.json'... -[12:10:25 AM] Project 'pkg22/tsconfig.json' is out of date because output 'pkg22/index.js' is older than input 'pkg0/tsconfig.json' +[12:09:58 AM] Project 'pkg22/tsconfig.json' is out of date because output 'pkg22/index.js' is older than input 'pkg0/tsconfig.json' -[12:10:26 AM] Building project '/user/username/projects/myproject/pkg22/tsconfig.json'... +[12:09:59 AM] Building project '/user/username/projects/myproject/pkg22/tsconfig.json'... -[12:10:27 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg22/tsconfig.json'... +[12:10:00 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg22/tsconfig.json'... -[12:10:29 AM] Found 0 errors. Watching for file changes. +[12:10:02 AM] Found 0 errors. Watching for file changes. @@ -3918,11 +3917,11 @@ export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export c Output:: >> Screen clear -[12:10:32 AM] File change detected. Starting incremental compilation... +[12:10:05 AM] File change detected. Starting incremental compilation... -[12:10:33 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' +[12:10:06 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' -[12:10:34 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... +[12:10:07 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... @@ -4104,7 +4103,7 @@ export declare const someConst3 = 10; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"10857255042-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;","signature":"-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":635250},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"10857255042-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;","signature":"-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4133,10 +4132,10 @@ export declare const someConst3 = 10; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 635250 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 906 + "size": 921 } @@ -4145,35 +4144,35 @@ Change:: build pkg1,pkg2,pkg3,pkg4,pkg5 Input:: Output:: -[12:10:49 AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/index.js' is older than input 'pkg0/tsconfig.json' +[12:10:21 AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/index.js' is older than input 'pkg0/tsconfig.json' -[12:10:50 AM] Building project '/user/username/projects/myproject/pkg1/tsconfig.json'... +[12:10:22 AM] Building project '/user/username/projects/myproject/pkg1/tsconfig.json'... -[12:10:51 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... +[12:10:23 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... -[12:10:53 AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/index.js' is older than input 'pkg0/tsconfig.json' +[12:10:25 AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/index.js' is older than input 'pkg0/tsconfig.json' -[12:10:54 AM] Building project '/user/username/projects/myproject/pkg2/tsconfig.json'... +[12:10:26 AM] Building project '/user/username/projects/myproject/pkg2/tsconfig.json'... -[12:10:55 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... +[12:10:27 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... -[12:10:57 AM] Project 'pkg3/tsconfig.json' is out of date because output 'pkg3/index.js' is older than input 'pkg0/tsconfig.json' +[12:10:29 AM] Project 'pkg3/tsconfig.json' is out of date because output 'pkg3/index.js' is older than input 'pkg0/tsconfig.json' -[12:10:58 AM] Building project '/user/username/projects/myproject/pkg3/tsconfig.json'... +[12:10:30 AM] Building project '/user/username/projects/myproject/pkg3/tsconfig.json'... -[12:10:59 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg3/tsconfig.json'... +[12:10:31 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg3/tsconfig.json'... -[12:11:01 AM] Project 'pkg4/tsconfig.json' is out of date because output 'pkg4/index.js' is older than input 'pkg0/tsconfig.json' +[12:10:33 AM] Project 'pkg4/tsconfig.json' is out of date because output 'pkg4/index.js' is older than input 'pkg0/tsconfig.json' -[12:11:02 AM] Building project '/user/username/projects/myproject/pkg4/tsconfig.json'... +[12:10:34 AM] Building project '/user/username/projects/myproject/pkg4/tsconfig.json'... -[12:11:03 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg4/tsconfig.json'... +[12:10:35 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg4/tsconfig.json'... -[12:11:05 AM] Project 'pkg5/tsconfig.json' is out of date because output 'pkg5/index.js' is older than input 'pkg0/tsconfig.json' +[12:10:37 AM] Project 'pkg5/tsconfig.json' is out of date because output 'pkg5/index.js' is older than input 'pkg0/tsconfig.json' -[12:11:06 AM] Building project '/user/username/projects/myproject/pkg5/tsconfig.json'... +[12:10:38 AM] Building project '/user/username/projects/myproject/pkg5/tsconfig.json'... -[12:11:07 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg5/tsconfig.json'... +[12:10:39 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg5/tsconfig.json'... @@ -4391,35 +4390,35 @@ Change:: build pkg6,pkg7,pkg8,pkg9,pkg10 Input:: Output:: -[12:11:09 AM] Project 'pkg6/tsconfig.json' is out of date because output 'pkg6/index.js' is older than input 'pkg0/tsconfig.json' +[12:10:41 AM] Project 'pkg6/tsconfig.json' is out of date because output 'pkg6/index.js' is older than input 'pkg0/tsconfig.json' -[12:11:10 AM] Building project '/user/username/projects/myproject/pkg6/tsconfig.json'... +[12:10:42 AM] Building project '/user/username/projects/myproject/pkg6/tsconfig.json'... -[12:11:11 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg6/tsconfig.json'... +[12:10:43 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg6/tsconfig.json'... -[12:11:13 AM] Project 'pkg7/tsconfig.json' is out of date because output 'pkg7/index.js' is older than input 'pkg0/tsconfig.json' +[12:10:45 AM] Project 'pkg7/tsconfig.json' is out of date because output 'pkg7/index.js' is older than input 'pkg0/tsconfig.json' -[12:11:14 AM] Building project '/user/username/projects/myproject/pkg7/tsconfig.json'... +[12:10:46 AM] Building project '/user/username/projects/myproject/pkg7/tsconfig.json'... -[12:11:15 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg7/tsconfig.json'... +[12:10:47 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg7/tsconfig.json'... -[12:11:17 AM] Project 'pkg8/tsconfig.json' is out of date because output 'pkg8/index.js' is older than input 'pkg0/tsconfig.json' +[12:10:49 AM] Project 'pkg8/tsconfig.json' is out of date because output 'pkg8/index.js' is older than input 'pkg0/tsconfig.json' -[12:11:18 AM] Building project '/user/username/projects/myproject/pkg8/tsconfig.json'... +[12:10:50 AM] Building project '/user/username/projects/myproject/pkg8/tsconfig.json'... -[12:11:19 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg8/tsconfig.json'... +[12:10:51 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg8/tsconfig.json'... -[12:11:21 AM] Project 'pkg9/tsconfig.json' is out of date because output 'pkg9/index.js' is older than input 'pkg0/tsconfig.json' +[12:10:53 AM] Project 'pkg9/tsconfig.json' is out of date because output 'pkg9/index.js' is older than input 'pkg0/tsconfig.json' -[12:11:22 AM] Building project '/user/username/projects/myproject/pkg9/tsconfig.json'... +[12:10:54 AM] Building project '/user/username/projects/myproject/pkg9/tsconfig.json'... -[12:11:23 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg9/tsconfig.json'... +[12:10:55 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg9/tsconfig.json'... -[12:11:25 AM] Project 'pkg10/tsconfig.json' is out of date because output 'pkg10/index.js' is older than input 'pkg0/tsconfig.json' +[12:10:57 AM] Project 'pkg10/tsconfig.json' is out of date because output 'pkg10/index.js' is older than input 'pkg0/tsconfig.json' -[12:11:26 AM] Building project '/user/username/projects/myproject/pkg10/tsconfig.json'... +[12:10:58 AM] Building project '/user/username/projects/myproject/pkg10/tsconfig.json'... -[12:11:27 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg10/tsconfig.json'... +[12:10:59 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg10/tsconfig.json'... @@ -4641,51 +4640,51 @@ export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export c Output:: >> Screen clear -[12:11:31 AM] File change detected. Starting incremental compilation... +[12:11:03 AM] File change detected. Starting incremental compilation... -[12:11:32 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' +[12:11:04 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' -[12:11:33 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... +[12:11:05 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... -[12:11:47 AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:11:16 AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:11:48 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... +[12:11:17 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... -[12:11:50 AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:11:19 AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:11:51 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... +[12:11:20 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... -[12:11:53 AM] Project 'pkg3/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:11:22 AM] Project 'pkg3/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:11:54 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg3/tsconfig.json'... +[12:11:23 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg3/tsconfig.json'... -[12:11:56 AM] Project 'pkg4/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:11:25 AM] Project 'pkg4/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:11:57 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg4/tsconfig.json'... +[12:11:26 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg4/tsconfig.json'... -[12:11:59 AM] Project 'pkg5/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:11:28 AM] Project 'pkg5/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:12:00 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg5/tsconfig.json'... +[12:11:29 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg5/tsconfig.json'... -[12:12:02 AM] Project 'pkg6/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:11:31 AM] Project 'pkg6/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:12:03 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg6/tsconfig.json'... +[12:11:32 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg6/tsconfig.json'... -[12:12:05 AM] Project 'pkg7/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:11:34 AM] Project 'pkg7/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:12:06 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg7/tsconfig.json'... +[12:11:35 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg7/tsconfig.json'... -[12:12:08 AM] Project 'pkg8/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:11:37 AM] Project 'pkg8/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:12:09 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg8/tsconfig.json'... +[12:11:38 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg8/tsconfig.json'... -[12:12:11 AM] Project 'pkg9/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:11:40 AM] Project 'pkg9/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:12:12 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg9/tsconfig.json'... +[12:11:41 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg9/tsconfig.json'... -[12:12:14 AM] Project 'pkg10/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:11:43 AM] Project 'pkg10/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:12:15 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg10/tsconfig.json'... +[12:11:44 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg10/tsconfig.json'... @@ -4861,9 +4860,8 @@ exports.someConst3 = 10; var someConst4 = 10; -//// [/user/username/projects/myproject/pkg0/index.d.ts] file written with same contents //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"27277091473-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;const someConst4 = 10;","signature":"-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":635250},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"27277091473-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;const someConst4 = 10;","signature":"-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4892,10 +4890,10 @@ var someConst4 = 10; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 635250 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 928 + "size": 943 } //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] file changed its modified time @@ -4914,35 +4912,35 @@ Change:: build pkg11,pkg12,pkg13,pkg14,pkg15 Input:: Output:: -[12:12:17 AM] Project 'pkg11/tsconfig.json' is out of date because output 'pkg11/index.js' is older than input 'pkg0/tsconfig.json' +[12:11:46 AM] Project 'pkg11/tsconfig.json' is out of date because output 'pkg11/index.js' is older than input 'pkg0/tsconfig.json' -[12:12:18 AM] Building project '/user/username/projects/myproject/pkg11/tsconfig.json'... +[12:11:47 AM] Building project '/user/username/projects/myproject/pkg11/tsconfig.json'... -[12:12:19 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg11/tsconfig.json'... +[12:11:48 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg11/tsconfig.json'... -[12:12:21 AM] Project 'pkg12/tsconfig.json' is out of date because output 'pkg12/index.js' is older than input 'pkg0/tsconfig.json' +[12:11:50 AM] Project 'pkg12/tsconfig.json' is out of date because output 'pkg12/index.js' is older than input 'pkg0/tsconfig.json' -[12:12:22 AM] Building project '/user/username/projects/myproject/pkg12/tsconfig.json'... +[12:11:51 AM] Building project '/user/username/projects/myproject/pkg12/tsconfig.json'... -[12:12:23 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg12/tsconfig.json'... +[12:11:52 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg12/tsconfig.json'... -[12:12:25 AM] Project 'pkg13/tsconfig.json' is out of date because output 'pkg13/index.js' is older than input 'pkg0/tsconfig.json' +[12:11:54 AM] Project 'pkg13/tsconfig.json' is out of date because output 'pkg13/index.js' is older than input 'pkg0/tsconfig.json' -[12:12:26 AM] Building project '/user/username/projects/myproject/pkg13/tsconfig.json'... +[12:11:55 AM] Building project '/user/username/projects/myproject/pkg13/tsconfig.json'... -[12:12:27 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg13/tsconfig.json'... +[12:11:56 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg13/tsconfig.json'... -[12:12:29 AM] Project 'pkg14/tsconfig.json' is out of date because output 'pkg14/index.js' is older than input 'pkg0/tsconfig.json' +[12:11:58 AM] Project 'pkg14/tsconfig.json' is out of date because output 'pkg14/index.js' is older than input 'pkg0/tsconfig.json' -[12:12:30 AM] Building project '/user/username/projects/myproject/pkg14/tsconfig.json'... +[12:11:59 AM] Building project '/user/username/projects/myproject/pkg14/tsconfig.json'... -[12:12:31 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg14/tsconfig.json'... +[12:12:00 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg14/tsconfig.json'... -[12:12:33 AM] Project 'pkg15/tsconfig.json' is out of date because output 'pkg15/index.js' is older than input 'pkg0/tsconfig.json' +[12:12:02 AM] Project 'pkg15/tsconfig.json' is out of date because output 'pkg15/index.js' is older than input 'pkg0/tsconfig.json' -[12:12:34 AM] Building project '/user/username/projects/myproject/pkg15/tsconfig.json'... +[12:12:03 AM] Building project '/user/username/projects/myproject/pkg15/tsconfig.json'... -[12:12:35 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg15/tsconfig.json'... +[12:12:04 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg15/tsconfig.json'... @@ -5164,11 +5162,11 @@ export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export c Output:: >> Screen clear -[12:12:40 AM] File change detected. Starting incremental compilation... +[12:12:09 AM] File change detected. Starting incremental compilation... -[12:12:41 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' +[12:12:10 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' -[12:12:42 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... +[12:12:11 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... @@ -5353,7 +5351,7 @@ export declare const someConst5 = 10; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"14710086947-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;const someConst4 = 10;export const someConst5 = 10;","signature":"4956132399-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\nexport declare const someConst5 = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":763050},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"14710086947-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;const someConst4 = 10;export const someConst5 = 10;","signature":"4956132399-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\nexport declare const someConst5 = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -5382,10 +5380,10 @@ export declare const someConst5 = 10; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 763050 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 994 + "size": 1009 } @@ -5394,35 +5392,35 @@ Change:: build pkg1,pkg2,pkg3,pkg4,pkg5 Input:: Output:: -[12:12:57 AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/index.js' is older than input 'pkg0/tsconfig.json' +[12:12:25 AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/index.js' is older than input 'pkg0/tsconfig.json' -[12:12:58 AM] Building project '/user/username/projects/myproject/pkg1/tsconfig.json'... +[12:12:26 AM] Building project '/user/username/projects/myproject/pkg1/tsconfig.json'... -[12:12:59 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... +[12:12:27 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... -[12:13:01 AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/index.js' is older than input 'pkg0/tsconfig.json' +[12:12:29 AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/index.js' is older than input 'pkg0/tsconfig.json' -[12:13:02 AM] Building project '/user/username/projects/myproject/pkg2/tsconfig.json'... +[12:12:30 AM] Building project '/user/username/projects/myproject/pkg2/tsconfig.json'... -[12:13:03 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... +[12:12:31 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... -[12:13:05 AM] Project 'pkg3/tsconfig.json' is out of date because output 'pkg3/index.js' is older than input 'pkg0/tsconfig.json' +[12:12:33 AM] Project 'pkg3/tsconfig.json' is out of date because output 'pkg3/index.js' is older than input 'pkg0/tsconfig.json' -[12:13:06 AM] Building project '/user/username/projects/myproject/pkg3/tsconfig.json'... +[12:12:34 AM] Building project '/user/username/projects/myproject/pkg3/tsconfig.json'... -[12:13:07 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg3/tsconfig.json'... +[12:12:35 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg3/tsconfig.json'... -[12:13:09 AM] Project 'pkg4/tsconfig.json' is out of date because output 'pkg4/index.js' is older than input 'pkg0/tsconfig.json' +[12:12:37 AM] Project 'pkg4/tsconfig.json' is out of date because output 'pkg4/index.js' is older than input 'pkg0/tsconfig.json' -[12:13:10 AM] Building project '/user/username/projects/myproject/pkg4/tsconfig.json'... +[12:12:38 AM] Building project '/user/username/projects/myproject/pkg4/tsconfig.json'... -[12:13:11 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg4/tsconfig.json'... +[12:12:39 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg4/tsconfig.json'... -[12:13:13 AM] Project 'pkg5/tsconfig.json' is out of date because output 'pkg5/index.js' is older than input 'pkg0/tsconfig.json' +[12:12:41 AM] Project 'pkg5/tsconfig.json' is out of date because output 'pkg5/index.js' is older than input 'pkg0/tsconfig.json' -[12:13:14 AM] Building project '/user/username/projects/myproject/pkg5/tsconfig.json'... +[12:12:42 AM] Building project '/user/username/projects/myproject/pkg5/tsconfig.json'... -[12:13:15 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg5/tsconfig.json'... +[12:12:43 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg5/tsconfig.json'... @@ -5640,35 +5638,35 @@ Change:: build pkg6,pkg7,pkg8,pkg9,pkg10 Input:: Output:: -[12:13:17 AM] Project 'pkg6/tsconfig.json' is out of date because output 'pkg6/index.js' is older than input 'pkg0/tsconfig.json' +[12:12:45 AM] Project 'pkg6/tsconfig.json' is out of date because output 'pkg6/index.js' is older than input 'pkg0/tsconfig.json' -[12:13:18 AM] Building project '/user/username/projects/myproject/pkg6/tsconfig.json'... +[12:12:46 AM] Building project '/user/username/projects/myproject/pkg6/tsconfig.json'... -[12:13:19 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg6/tsconfig.json'... +[12:12:47 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg6/tsconfig.json'... -[12:13:21 AM] Project 'pkg7/tsconfig.json' is out of date because output 'pkg7/index.js' is older than input 'pkg0/tsconfig.json' +[12:12:49 AM] Project 'pkg7/tsconfig.json' is out of date because output 'pkg7/index.js' is older than input 'pkg0/tsconfig.json' -[12:13:22 AM] Building project '/user/username/projects/myproject/pkg7/tsconfig.json'... +[12:12:50 AM] Building project '/user/username/projects/myproject/pkg7/tsconfig.json'... -[12:13:23 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg7/tsconfig.json'... +[12:12:51 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg7/tsconfig.json'... -[12:13:25 AM] Project 'pkg8/tsconfig.json' is out of date because output 'pkg8/index.js' is older than input 'pkg0/tsconfig.json' +[12:12:53 AM] Project 'pkg8/tsconfig.json' is out of date because output 'pkg8/index.js' is older than input 'pkg0/tsconfig.json' -[12:13:26 AM] Building project '/user/username/projects/myproject/pkg8/tsconfig.json'... +[12:12:54 AM] Building project '/user/username/projects/myproject/pkg8/tsconfig.json'... -[12:13:27 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg8/tsconfig.json'... +[12:12:55 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg8/tsconfig.json'... -[12:13:29 AM] Project 'pkg9/tsconfig.json' is out of date because output 'pkg9/index.js' is older than input 'pkg0/tsconfig.json' +[12:12:57 AM] Project 'pkg9/tsconfig.json' is out of date because output 'pkg9/index.js' is older than input 'pkg0/tsconfig.json' -[12:13:30 AM] Building project '/user/username/projects/myproject/pkg9/tsconfig.json'... +[12:12:58 AM] Building project '/user/username/projects/myproject/pkg9/tsconfig.json'... -[12:13:31 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg9/tsconfig.json'... +[12:12:59 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg9/tsconfig.json'... -[12:13:33 AM] Project 'pkg10/tsconfig.json' is out of date because output 'pkg10/index.js' is older than input 'pkg0/tsconfig.json' +[12:13:01 AM] Project 'pkg10/tsconfig.json' is out of date because output 'pkg10/index.js' is older than input 'pkg0/tsconfig.json' -[12:13:34 AM] Building project '/user/username/projects/myproject/pkg10/tsconfig.json'... +[12:13:02 AM] Building project '/user/username/projects/myproject/pkg10/tsconfig.json'... -[12:13:35 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg10/tsconfig.json'... +[12:13:03 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg10/tsconfig.json'... @@ -5886,35 +5884,35 @@ Change:: build pkg11,pkg12,pkg13,pkg14,pkg15 Input:: Output:: -[12:13:37 AM] Project 'pkg11/tsconfig.json' is out of date because output 'pkg11/index.js' is older than input 'pkg0/tsconfig.json' +[12:13:05 AM] Project 'pkg11/tsconfig.json' is out of date because output 'pkg11/index.js' is older than input 'pkg0/tsconfig.json' -[12:13:38 AM] Building project '/user/username/projects/myproject/pkg11/tsconfig.json'... +[12:13:06 AM] Building project '/user/username/projects/myproject/pkg11/tsconfig.json'... -[12:13:39 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg11/tsconfig.json'... +[12:13:07 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg11/tsconfig.json'... -[12:13:41 AM] Project 'pkg12/tsconfig.json' is out of date because output 'pkg12/index.js' is older than input 'pkg0/tsconfig.json' +[12:13:09 AM] Project 'pkg12/tsconfig.json' is out of date because output 'pkg12/index.js' is older than input 'pkg0/tsconfig.json' -[12:13:42 AM] Building project '/user/username/projects/myproject/pkg12/tsconfig.json'... +[12:13:10 AM] Building project '/user/username/projects/myproject/pkg12/tsconfig.json'... -[12:13:43 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg12/tsconfig.json'... +[12:13:11 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg12/tsconfig.json'... -[12:13:45 AM] Project 'pkg13/tsconfig.json' is out of date because output 'pkg13/index.js' is older than input 'pkg0/tsconfig.json' +[12:13:13 AM] Project 'pkg13/tsconfig.json' is out of date because output 'pkg13/index.js' is older than input 'pkg0/tsconfig.json' -[12:13:46 AM] Building project '/user/username/projects/myproject/pkg13/tsconfig.json'... +[12:13:14 AM] Building project '/user/username/projects/myproject/pkg13/tsconfig.json'... -[12:13:47 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg13/tsconfig.json'... +[12:13:15 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg13/tsconfig.json'... -[12:13:49 AM] Project 'pkg14/tsconfig.json' is out of date because output 'pkg14/index.js' is older than input 'pkg0/tsconfig.json' +[12:13:17 AM] Project 'pkg14/tsconfig.json' is out of date because output 'pkg14/index.js' is older than input 'pkg0/tsconfig.json' -[12:13:50 AM] Building project '/user/username/projects/myproject/pkg14/tsconfig.json'... +[12:13:18 AM] Building project '/user/username/projects/myproject/pkg14/tsconfig.json'... -[12:13:51 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg14/tsconfig.json'... +[12:13:19 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg14/tsconfig.json'... -[12:13:53 AM] Project 'pkg15/tsconfig.json' is out of date because output 'pkg15/index.js' is older than input 'pkg0/tsconfig.json' +[12:13:21 AM] Project 'pkg15/tsconfig.json' is out of date because output 'pkg15/index.js' is older than input 'pkg0/tsconfig.json' -[12:13:54 AM] Building project '/user/username/projects/myproject/pkg15/tsconfig.json'... +[12:13:22 AM] Building project '/user/username/projects/myproject/pkg15/tsconfig.json'... -[12:13:55 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg15/tsconfig.json'... +[12:13:23 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg15/tsconfig.json'... @@ -6132,35 +6130,35 @@ Change:: build pkg16,pkg17,pkg18,pkg19,pkg20 Input:: Output:: -[12:13:57 AM] Project 'pkg16/tsconfig.json' is out of date because output 'pkg16/index.js' is older than input 'pkg0/tsconfig.json' +[12:13:25 AM] Project 'pkg16/tsconfig.json' is out of date because output 'pkg16/index.js' is older than input 'pkg0/tsconfig.json' -[12:13:58 AM] Building project '/user/username/projects/myproject/pkg16/tsconfig.json'... +[12:13:26 AM] Building project '/user/username/projects/myproject/pkg16/tsconfig.json'... -[12:13:59 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg16/tsconfig.json'... +[12:13:27 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg16/tsconfig.json'... -[12:14:01 AM] Project 'pkg17/tsconfig.json' is out of date because output 'pkg17/index.js' is older than input 'pkg0/tsconfig.json' +[12:13:29 AM] Project 'pkg17/tsconfig.json' is out of date because output 'pkg17/index.js' is older than input 'pkg0/tsconfig.json' -[12:14:02 AM] Building project '/user/username/projects/myproject/pkg17/tsconfig.json'... +[12:13:30 AM] Building project '/user/username/projects/myproject/pkg17/tsconfig.json'... -[12:14:03 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg17/tsconfig.json'... +[12:13:31 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg17/tsconfig.json'... -[12:14:05 AM] Project 'pkg18/tsconfig.json' is out of date because output 'pkg18/index.js' is older than input 'pkg0/tsconfig.json' +[12:13:33 AM] Project 'pkg18/tsconfig.json' is out of date because output 'pkg18/index.js' is older than input 'pkg0/tsconfig.json' -[12:14:06 AM] Building project '/user/username/projects/myproject/pkg18/tsconfig.json'... +[12:13:34 AM] Building project '/user/username/projects/myproject/pkg18/tsconfig.json'... -[12:14:07 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg18/tsconfig.json'... +[12:13:35 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg18/tsconfig.json'... -[12:14:09 AM] Project 'pkg19/tsconfig.json' is out of date because output 'pkg19/index.js' is older than input 'pkg0/tsconfig.json' +[12:13:37 AM] Project 'pkg19/tsconfig.json' is out of date because output 'pkg19/index.js' is older than input 'pkg0/tsconfig.json' -[12:14:10 AM] Building project '/user/username/projects/myproject/pkg19/tsconfig.json'... +[12:13:38 AM] Building project '/user/username/projects/myproject/pkg19/tsconfig.json'... -[12:14:11 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg19/tsconfig.json'... +[12:13:39 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg19/tsconfig.json'... -[12:14:13 AM] Project 'pkg20/tsconfig.json' is out of date because output 'pkg20/index.js' is older than input 'pkg0/tsconfig.json' +[12:13:41 AM] Project 'pkg20/tsconfig.json' is out of date because output 'pkg20/index.js' is older than input 'pkg0/tsconfig.json' -[12:14:14 AM] Building project '/user/username/projects/myproject/pkg20/tsconfig.json'... +[12:13:42 AM] Building project '/user/username/projects/myproject/pkg20/tsconfig.json'... -[12:14:15 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg20/tsconfig.json'... +[12:13:43 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg20/tsconfig.json'... @@ -6378,19 +6376,19 @@ Change:: build pkg21,pkg22,pkg23 Input:: Output:: -[12:14:17 AM] Project 'pkg21/tsconfig.json' is out of date because output 'pkg21/index.js' is older than input 'pkg0/tsconfig.json' +[12:13:45 AM] Project 'pkg21/tsconfig.json' is out of date because output 'pkg21/index.js' is older than input 'pkg0/tsconfig.json' -[12:14:18 AM] Building project '/user/username/projects/myproject/pkg21/tsconfig.json'... +[12:13:46 AM] Building project '/user/username/projects/myproject/pkg21/tsconfig.json'... -[12:14:19 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg21/tsconfig.json'... +[12:13:47 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg21/tsconfig.json'... -[12:14:21 AM] Project 'pkg22/tsconfig.json' is out of date because output 'pkg22/index.js' is older than input 'pkg0/tsconfig.json' +[12:13:49 AM] Project 'pkg22/tsconfig.json' is out of date because output 'pkg22/index.js' is older than input 'pkg0/tsconfig.json' -[12:14:22 AM] Building project '/user/username/projects/myproject/pkg22/tsconfig.json'... +[12:13:50 AM] Building project '/user/username/projects/myproject/pkg22/tsconfig.json'... -[12:14:23 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg22/tsconfig.json'... +[12:13:51 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg22/tsconfig.json'... -[12:14:25 AM] Found 0 errors. Watching for file changes. +[12:13:53 AM] Found 0 errors. Watching for file changes. diff --git a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-3-projects-in-a-solution.js b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-3-projects-in-a-solution.js index 98b2cb72cd8..101f50f7716 100644 --- a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-3-projects-in-a-solution.js +++ b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-3-projects-in-a-solution.js @@ -49,15 +49,15 @@ Output:: [12:00:40 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... -[12:00:51 AM] Project 'pkg1/tsconfig.json' is out of date because output file 'pkg1/tsconfig.tsbuildinfo' does not exist +[12:00:50 AM] Project 'pkg1/tsconfig.json' is out of date because output file 'pkg1/tsconfig.tsbuildinfo' does not exist -[12:00:52 AM] Building project '/user/username/projects/myproject/pkg1/tsconfig.json'... +[12:00:51 AM] Building project '/user/username/projects/myproject/pkg1/tsconfig.json'... -[12:01:03 AM] Project 'pkg2/tsconfig.json' is out of date because output file 'pkg2/tsconfig.tsbuildinfo' does not exist +[12:01:01 AM] Project 'pkg2/tsconfig.json' is out of date because output file 'pkg2/tsconfig.tsbuildinfo' does not exist -[12:01:04 AM] Building project '/user/username/projects/myproject/pkg2/tsconfig.json'... +[12:01:02 AM] Building project '/user/username/projects/myproject/pkg2/tsconfig.json'... -[12:01:15 AM] Found 0 errors. Watching for file changes. +[12:01:12 AM] Found 0 errors. Watching for file changes. @@ -146,7 +146,7 @@ export declare const pkg0 = 0; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10197922616-export const pkg0 = 0;","signature":"-4821832606-export declare const pkg0 = 0;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":41000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10197922616-export const pkg0 = 0;","signature":"-4821832606-export declare const pkg0 = 0;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -175,10 +175,10 @@ export declare const pkg0 = 0; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 41000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 749 + "size": 765 } //// [/user/username/projects/myproject/pkg1/index.js] @@ -193,7 +193,7 @@ export declare const pkg1 = 1; //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10158787190-export const pkg1 = 1;","signature":"-3530363548-export declare const pkg1 = 1;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":53000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10158787190-export const pkg1 = 1;","signature":"-3530363548-export declare const pkg1 = 1;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -222,10 +222,10 @@ export declare const pkg1 = 1; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 53000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 749 + "size": 765 } //// [/user/username/projects/myproject/pkg2/index.js] @@ -240,7 +240,7 @@ export declare const pkg2 = 2; //// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14414619060-export const pkg2 = 2;","signature":"-6533861786-export declare const pkg2 = 2;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":65000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14414619060-export const pkg2 = 2;","signature":"-6533861786-export declare const pkg2 = 2;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -269,10 +269,10 @@ export declare const pkg2 = 2; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 65000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 749 + "size": 765 } @@ -285,21 +285,21 @@ export const pkg0 = 0;const someConst2 = 10; Output:: >> Screen clear -[12:01:18 AM] File change detected. Starting incremental compilation... +[12:01:15 AM] File change detected. Starting incremental compilation... -[12:01:19 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' +[12:01:16 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' -[12:01:20 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... +[12:01:17 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... -[12:01:34 AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:28 AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:01:35 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... +[12:01:29 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... -[12:01:37 AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:31 AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:01:38 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... +[12:01:32 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... -[12:01:40 AM] Found 0 errors. Watching for file changes. +[12:01:34 AM] Found 0 errors. Watching for file changes. @@ -352,9 +352,8 @@ exports.pkg0 = 0; var someConst2 = 10; -//// [/user/username/projects/myproject/pkg0/index.d.ts] file written with same contents //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-7839887915-export const pkg0 = 0;const someConst2 = 10;","signature":"-4821832606-export declare const pkg0 = 0;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":41000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-7839887915-export const pkg0 = 0;const someConst2 = 10;","signature":"-4821832606-export declare const pkg0 = 0;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -383,10 +382,10 @@ var someConst2 = 10; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 41000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 770 + "size": 786 } //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] file changed its modified time @@ -436,11 +435,11 @@ export const pkg0 = 0;const someConst2 = 10;export const someConst = 10; Output:: >> Screen clear -[12:01:43 AM] File change detected. Starting incremental compilation... +[12:01:37 AM] File change detected. Starting incremental compilation... -[12:01:44 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' +[12:01:38 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' -[12:01:45 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... +[12:01:39 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... @@ -500,7 +499,7 @@ export declare const someConst = 10; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1748855762-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":106500},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1748855762-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -529,10 +528,10 @@ export declare const someConst = 10; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 106500 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 836 + "size": 851 } @@ -541,19 +540,19 @@ Change:: build pkg1,pkg2 Input:: Output:: -[12:02:00 AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/index.js' is older than input 'pkg0/tsconfig.json' +[12:01:53 AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/index.js' is older than input 'pkg0/tsconfig.json' -[12:02:01 AM] Building project '/user/username/projects/myproject/pkg1/tsconfig.json'... +[12:01:54 AM] Building project '/user/username/projects/myproject/pkg1/tsconfig.json'... -[12:02:02 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... +[12:01:55 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... -[12:02:04 AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/index.js' is older than input 'pkg0/tsconfig.json' +[12:01:57 AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/index.js' is older than input 'pkg0/tsconfig.json' -[12:02:05 AM] Building project '/user/username/projects/myproject/pkg2/tsconfig.json'... +[12:01:58 AM] Building project '/user/username/projects/myproject/pkg2/tsconfig.json'... -[12:02:06 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... +[12:01:59 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... -[12:02:08 AM] Found 0 errors. Watching for file changes. +[12:02:01 AM] Found 0 errors. Watching for file changes. diff --git a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-5-projects-in-a-solution.js b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-5-projects-in-a-solution.js index e921c11bd3a..9713d0cfff6 100644 --- a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-5-projects-in-a-solution.js +++ b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-5-projects-in-a-solution.js @@ -63,23 +63,23 @@ Output:: [12:00:52 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... -[12:01:03 AM] Project 'pkg1/tsconfig.json' is out of date because output file 'pkg1/tsconfig.tsbuildinfo' does not exist +[12:01:02 AM] Project 'pkg1/tsconfig.json' is out of date because output file 'pkg1/tsconfig.tsbuildinfo' does not exist -[12:01:04 AM] Building project '/user/username/projects/myproject/pkg1/tsconfig.json'... +[12:01:03 AM] Building project '/user/username/projects/myproject/pkg1/tsconfig.json'... -[12:01:15 AM] Project 'pkg2/tsconfig.json' is out of date because output file 'pkg2/tsconfig.tsbuildinfo' does not exist +[12:01:13 AM] Project 'pkg2/tsconfig.json' is out of date because output file 'pkg2/tsconfig.tsbuildinfo' does not exist -[12:01:16 AM] Building project '/user/username/projects/myproject/pkg2/tsconfig.json'... +[12:01:14 AM] Building project '/user/username/projects/myproject/pkg2/tsconfig.json'... -[12:01:27 AM] Project 'pkg3/tsconfig.json' is out of date because output file 'pkg3/tsconfig.tsbuildinfo' does not exist +[12:01:24 AM] Project 'pkg3/tsconfig.json' is out of date because output file 'pkg3/tsconfig.tsbuildinfo' does not exist -[12:01:28 AM] Building project '/user/username/projects/myproject/pkg3/tsconfig.json'... +[12:01:25 AM] Building project '/user/username/projects/myproject/pkg3/tsconfig.json'... -[12:01:39 AM] Project 'pkg4/tsconfig.json' is out of date because output file 'pkg4/tsconfig.tsbuildinfo' does not exist +[12:01:35 AM] Project 'pkg4/tsconfig.json' is out of date because output file 'pkg4/tsconfig.tsbuildinfo' does not exist -[12:01:40 AM] Building project '/user/username/projects/myproject/pkg4/tsconfig.json'... +[12:01:36 AM] Building project '/user/username/projects/myproject/pkg4/tsconfig.json'... -[12:01:51 AM] Found 0 errors. Watching for file changes. +[12:01:46 AM] Found 0 errors. Watching for file changes. @@ -210,7 +210,7 @@ export declare const pkg0 = 0; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10197922616-export const pkg0 = 0;","signature":"-4821832606-export declare const pkg0 = 0;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":53000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10197922616-export const pkg0 = 0;","signature":"-4821832606-export declare const pkg0 = 0;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -239,10 +239,10 @@ export declare const pkg0 = 0; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 53000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 749 + "size": 765 } //// [/user/username/projects/myproject/pkg1/index.js] @@ -257,7 +257,7 @@ export declare const pkg1 = 1; //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10158787190-export const pkg1 = 1;","signature":"-3530363548-export declare const pkg1 = 1;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":65000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10158787190-export const pkg1 = 1;","signature":"-3530363548-export declare const pkg1 = 1;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -286,10 +286,10 @@ export declare const pkg1 = 1; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 65000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 749 + "size": 765 } //// [/user/username/projects/myproject/pkg2/index.js] @@ -304,7 +304,7 @@ export declare const pkg2 = 2; //// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14414619060-export const pkg2 = 2;","signature":"-6533861786-export declare const pkg2 = 2;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":77000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14414619060-export const pkg2 = 2;","signature":"-6533861786-export declare const pkg2 = 2;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -333,10 +333,10 @@ export declare const pkg2 = 2; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 77000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 749 + "size": 765 } //// [/user/username/projects/myproject/pkg3/index.js] @@ -351,7 +351,7 @@ export declare const pkg3 = 3; //// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14375483634-export const pkg3 = 3;","signature":"-5242392728-export declare const pkg3 = 3;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":89000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14375483634-export const pkg3 = 3;","signature":"-5242392728-export declare const pkg3 = 3;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -380,10 +380,10 @@ export declare const pkg3 = 3; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 89000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 749 + "size": 765 } //// [/user/username/projects/myproject/pkg4/index.js] @@ -398,7 +398,7 @@ export declare const pkg4 = 4; //// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14336348208-export const pkg4 = 4;","signature":"-3950923670-export declare const pkg4 = 4;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":101000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14336348208-export const pkg4 = 4;","signature":"-3950923670-export declare const pkg4 = 4;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -427,10 +427,10 @@ export declare const pkg4 = 4; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 101000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 750 + "size": 765 } @@ -443,29 +443,29 @@ export const pkg0 = 0;const someConst2 = 10; Output:: >> Screen clear -[12:01:54 AM] File change detected. Starting incremental compilation... +[12:01:49 AM] File change detected. Starting incremental compilation... -[12:01:55 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' +[12:01:50 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' -[12:01:56 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... +[12:01:51 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... -[12:02:10 AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:02:02 AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:02:11 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... +[12:02:03 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... -[12:02:13 AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:02:05 AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:02:14 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... +[12:02:06 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... -[12:02:16 AM] Project 'pkg3/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:02:08 AM] Project 'pkg3/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:02:17 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg3/tsconfig.json'... +[12:02:09 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg3/tsconfig.json'... -[12:02:19 AM] Project 'pkg4/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:02:11 AM] Project 'pkg4/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:02:20 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg4/tsconfig.json'... +[12:02:12 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg4/tsconfig.json'... -[12:02:22 AM] Found 0 errors. Watching for file changes. +[12:02:14 AM] Found 0 errors. Watching for file changes. @@ -530,9 +530,8 @@ exports.pkg0 = 0; var someConst2 = 10; -//// [/user/username/projects/myproject/pkg0/index.d.ts] file written with same contents //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-7839887915-export const pkg0 = 0;const someConst2 = 10;","signature":"-4821832606-export declare const pkg0 = 0;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":53000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-7839887915-export const pkg0 = 0;const someConst2 = 10;","signature":"-4821832606-export declare const pkg0 = 0;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -561,10 +560,10 @@ var someConst2 = 10; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 53000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 770 + "size": 786 } //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] file changed its modified time @@ -628,11 +627,11 @@ export const pkg0 = 0;const someConst2 = 10;export const someConst = 10; Output:: >> Screen clear -[12:02:25 AM] File change detected. Starting incremental compilation... +[12:02:17 AM] File change detected. Starting incremental compilation... -[12:02:26 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' +[12:02:18 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' -[12:02:27 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... +[12:02:19 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... @@ -704,7 +703,7 @@ export declare const someConst = 10; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1748855762-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":148500},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1748855762-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -733,10 +732,10 @@ export declare const someConst = 10; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 148500 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 836 + "size": 851 } @@ -745,31 +744,31 @@ Change:: build pkg1,pkg2,pkg3,pkg4 Input:: Output:: -[12:02:42 AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/index.js' is older than input 'pkg0/tsconfig.json' +[12:02:33 AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/index.js' is older than input 'pkg0/tsconfig.json' -[12:02:43 AM] Building project '/user/username/projects/myproject/pkg1/tsconfig.json'... +[12:02:34 AM] Building project '/user/username/projects/myproject/pkg1/tsconfig.json'... -[12:02:44 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... +[12:02:35 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... -[12:02:46 AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/index.js' is older than input 'pkg0/tsconfig.json' +[12:02:37 AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/index.js' is older than input 'pkg0/tsconfig.json' -[12:02:47 AM] Building project '/user/username/projects/myproject/pkg2/tsconfig.json'... +[12:02:38 AM] Building project '/user/username/projects/myproject/pkg2/tsconfig.json'... -[12:02:48 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... +[12:02:39 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... -[12:02:50 AM] Project 'pkg3/tsconfig.json' is out of date because output 'pkg3/index.js' is older than input 'pkg0/tsconfig.json' +[12:02:41 AM] Project 'pkg3/tsconfig.json' is out of date because output 'pkg3/index.js' is older than input 'pkg0/tsconfig.json' -[12:02:51 AM] Building project '/user/username/projects/myproject/pkg3/tsconfig.json'... +[12:02:42 AM] Building project '/user/username/projects/myproject/pkg3/tsconfig.json'... -[12:02:52 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg3/tsconfig.json'... +[12:02:43 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg3/tsconfig.json'... -[12:02:54 AM] Project 'pkg4/tsconfig.json' is out of date because output 'pkg4/index.js' is older than input 'pkg0/tsconfig.json' +[12:02:45 AM] Project 'pkg4/tsconfig.json' is out of date because output 'pkg4/index.js' is older than input 'pkg0/tsconfig.json' -[12:02:55 AM] Building project '/user/username/projects/myproject/pkg4/tsconfig.json'... +[12:02:46 AM] Building project '/user/username/projects/myproject/pkg4/tsconfig.json'... -[12:02:56 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg4/tsconfig.json'... +[12:02:47 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg4/tsconfig.json'... -[12:02:58 AM] Found 0 errors. Watching for file changes. +[12:02:49 AM] Found 0 errors. Watching for file changes. diff --git a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-8-projects-in-a-solution.js b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-8-projects-in-a-solution.js index af872894f99..eac0eb81ab8 100644 --- a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-8-projects-in-a-solution.js +++ b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-8-projects-in-a-solution.js @@ -84,35 +84,35 @@ Output:: [12:01:10 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... -[12:01:21 AM] Project 'pkg1/tsconfig.json' is out of date because output file 'pkg1/tsconfig.tsbuildinfo' does not exist +[12:01:20 AM] Project 'pkg1/tsconfig.json' is out of date because output file 'pkg1/tsconfig.tsbuildinfo' does not exist -[12:01:22 AM] Building project '/user/username/projects/myproject/pkg1/tsconfig.json'... +[12:01:21 AM] Building project '/user/username/projects/myproject/pkg1/tsconfig.json'... -[12:01:33 AM] Project 'pkg2/tsconfig.json' is out of date because output file 'pkg2/tsconfig.tsbuildinfo' does not exist +[12:01:31 AM] Project 'pkg2/tsconfig.json' is out of date because output file 'pkg2/tsconfig.tsbuildinfo' does not exist -[12:01:34 AM] Building project '/user/username/projects/myproject/pkg2/tsconfig.json'... +[12:01:32 AM] Building project '/user/username/projects/myproject/pkg2/tsconfig.json'... -[12:01:45 AM] Project 'pkg3/tsconfig.json' is out of date because output file 'pkg3/tsconfig.tsbuildinfo' does not exist +[12:01:42 AM] Project 'pkg3/tsconfig.json' is out of date because output file 'pkg3/tsconfig.tsbuildinfo' does not exist -[12:01:46 AM] Building project '/user/username/projects/myproject/pkg3/tsconfig.json'... +[12:01:43 AM] Building project '/user/username/projects/myproject/pkg3/tsconfig.json'... -[12:01:57 AM] Project 'pkg4/tsconfig.json' is out of date because output file 'pkg4/tsconfig.tsbuildinfo' does not exist +[12:01:53 AM] Project 'pkg4/tsconfig.json' is out of date because output file 'pkg4/tsconfig.tsbuildinfo' does not exist -[12:01:58 AM] Building project '/user/username/projects/myproject/pkg4/tsconfig.json'... +[12:01:54 AM] Building project '/user/username/projects/myproject/pkg4/tsconfig.json'... -[12:02:09 AM] Project 'pkg5/tsconfig.json' is out of date because output file 'pkg5/tsconfig.tsbuildinfo' does not exist +[12:02:04 AM] Project 'pkg5/tsconfig.json' is out of date because output file 'pkg5/tsconfig.tsbuildinfo' does not exist -[12:02:10 AM] Building project '/user/username/projects/myproject/pkg5/tsconfig.json'... +[12:02:05 AM] Building project '/user/username/projects/myproject/pkg5/tsconfig.json'... -[12:02:21 AM] Project 'pkg6/tsconfig.json' is out of date because output file 'pkg6/tsconfig.tsbuildinfo' does not exist +[12:02:15 AM] Project 'pkg6/tsconfig.json' is out of date because output file 'pkg6/tsconfig.tsbuildinfo' does not exist -[12:02:22 AM] Building project '/user/username/projects/myproject/pkg6/tsconfig.json'... +[12:02:16 AM] Building project '/user/username/projects/myproject/pkg6/tsconfig.json'... -[12:02:33 AM] Project 'pkg7/tsconfig.json' is out of date because output file 'pkg7/tsconfig.tsbuildinfo' does not exist +[12:02:26 AM] Project 'pkg7/tsconfig.json' is out of date because output file 'pkg7/tsconfig.tsbuildinfo' does not exist -[12:02:34 AM] Building project '/user/username/projects/myproject/pkg7/tsconfig.json'... +[12:02:27 AM] Building project '/user/username/projects/myproject/pkg7/tsconfig.json'... -[12:02:45 AM] Found 0 errors. Watching for file changes. +[12:02:37 AM] Found 0 errors. Watching for file changes. @@ -306,7 +306,7 @@ export declare const pkg0 = 0; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10197922616-export const pkg0 = 0;","signature":"-4821832606-export declare const pkg0 = 0;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":71000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10197922616-export const pkg0 = 0;","signature":"-4821832606-export declare const pkg0 = 0;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -335,10 +335,10 @@ export declare const pkg0 = 0; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 71000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 749 + "size": 765 } //// [/user/username/projects/myproject/pkg1/index.js] @@ -353,7 +353,7 @@ export declare const pkg1 = 1; //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10158787190-export const pkg1 = 1;","signature":"-3530363548-export declare const pkg1 = 1;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":83000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10158787190-export const pkg1 = 1;","signature":"-3530363548-export declare const pkg1 = 1;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -382,10 +382,10 @@ export declare const pkg1 = 1; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 83000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 749 + "size": 765 } //// [/user/username/projects/myproject/pkg2/index.js] @@ -400,7 +400,7 @@ export declare const pkg2 = 2; //// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14414619060-export const pkg2 = 2;","signature":"-6533861786-export declare const pkg2 = 2;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":95000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14414619060-export const pkg2 = 2;","signature":"-6533861786-export declare const pkg2 = 2;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -429,10 +429,10 @@ export declare const pkg2 = 2; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 95000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 749 + "size": 765 } //// [/user/username/projects/myproject/pkg3/index.js] @@ -447,7 +447,7 @@ export declare const pkg3 = 3; //// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14375483634-export const pkg3 = 3;","signature":"-5242392728-export declare const pkg3 = 3;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":107000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14375483634-export const pkg3 = 3;","signature":"-5242392728-export declare const pkg3 = 3;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -476,10 +476,10 @@ export declare const pkg3 = 3; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 107000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 750 + "size": 765 } //// [/user/username/projects/myproject/pkg4/index.js] @@ -494,7 +494,7 @@ export declare const pkg4 = 4; //// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14336348208-export const pkg4 = 4;","signature":"-3950923670-export declare const pkg4 = 4;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":119000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14336348208-export const pkg4 = 4;","signature":"-3950923670-export declare const pkg4 = 4;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -523,10 +523,10 @@ export declare const pkg4 = 4; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 119000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 750 + "size": 765 } //// [/user/username/projects/myproject/pkg5/index.js] @@ -541,7 +541,7 @@ export declare const pkg5 = 5; //// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14297212782-export const pkg5 = 5;","signature":"-2659454612-export declare const pkg5 = 5;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":131000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14297212782-export const pkg5 = 5;","signature":"-2659454612-export declare const pkg5 = 5;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -570,10 +570,10 @@ export declare const pkg5 = 5; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 131000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 750 + "size": 765 } //// [/user/username/projects/myproject/pkg6/index.js] @@ -588,7 +588,7 @@ export declare const pkg6 = 6; //// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14258077356-export const pkg6 = 6;","signature":"-5662952850-export declare const pkg6 = 6;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":143000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14258077356-export const pkg6 = 6;","signature":"-5662952850-export declare const pkg6 = 6;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -617,10 +617,10 @@ export declare const pkg6 = 6; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 143000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 750 + "size": 765 } //// [/user/username/projects/myproject/pkg7/index.js] @@ -635,7 +635,7 @@ export declare const pkg7 = 7; //// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14218941930-export const pkg7 = 7;","signature":"-4371483792-export declare const pkg7 = 7;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":155000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14218941930-export const pkg7 = 7;","signature":"-4371483792-export declare const pkg7 = 7;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -664,10 +664,10 @@ export declare const pkg7 = 7; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 155000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 750 + "size": 765 } @@ -680,41 +680,41 @@ export const pkg0 = 0;const someConst2 = 10; Output:: >> Screen clear -[12:02:48 AM] File change detected. Starting incremental compilation... +[12:02:40 AM] File change detected. Starting incremental compilation... -[12:02:49 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' +[12:02:41 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' -[12:02:50 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... +[12:02:42 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... -[12:03:04 AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:02:53 AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:03:05 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... +[12:02:54 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... -[12:03:07 AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:02:56 AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:03:08 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... +[12:02:57 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... -[12:03:10 AM] Project 'pkg3/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:02:59 AM] Project 'pkg3/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:03:11 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg3/tsconfig.json'... +[12:03:00 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg3/tsconfig.json'... -[12:03:13 AM] Project 'pkg4/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:03:02 AM] Project 'pkg4/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:03:14 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg4/tsconfig.json'... +[12:03:03 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg4/tsconfig.json'... -[12:03:16 AM] Project 'pkg5/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:03:05 AM] Project 'pkg5/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:03:17 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg5/tsconfig.json'... +[12:03:06 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg5/tsconfig.json'... -[12:03:19 AM] Project 'pkg6/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:03:08 AM] Project 'pkg6/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:03:20 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg6/tsconfig.json'... +[12:03:09 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg6/tsconfig.json'... -[12:03:22 AM] Project 'pkg7/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:03:11 AM] Project 'pkg7/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:03:23 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg7/tsconfig.json'... +[12:03:12 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg7/tsconfig.json'... -[12:03:25 AM] Found 0 errors. Watching for file changes. +[12:03:14 AM] Found 0 errors. Watching for file changes. @@ -797,9 +797,8 @@ exports.pkg0 = 0; var someConst2 = 10; -//// [/user/username/projects/myproject/pkg0/index.d.ts] file written with same contents //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-7839887915-export const pkg0 = 0;const someConst2 = 10;","signature":"-4821832606-export declare const pkg0 = 0;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":71000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-7839887915-export const pkg0 = 0;const someConst2 = 10;","signature":"-4821832606-export declare const pkg0 = 0;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -828,10 +827,10 @@ var someConst2 = 10; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 71000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 770 + "size": 786 } //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] file changed its modified time @@ -916,11 +915,11 @@ export const pkg0 = 0;const someConst2 = 10;export const someConst = 10; Output:: >> Screen clear -[12:03:28 AM] File change detected. Starting incremental compilation... +[12:03:17 AM] File change detected. Starting incremental compilation... -[12:03:29 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' +[12:03:18 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' -[12:03:30 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... +[12:03:19 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... @@ -1010,7 +1009,7 @@ export declare const someConst = 10; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1748855762-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":211500},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1748855762-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1039,10 +1038,10 @@ export declare const someConst = 10; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 211500 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 836 + "size": 851 } @@ -1051,35 +1050,35 @@ Change:: build pkg1,pkg2,pkg3,pkg4,pkg5 Input:: Output:: -[12:03:45 AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/index.js' is older than input 'pkg0/tsconfig.json' +[12:03:33 AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/index.js' is older than input 'pkg0/tsconfig.json' -[12:03:46 AM] Building project '/user/username/projects/myproject/pkg1/tsconfig.json'... +[12:03:34 AM] Building project '/user/username/projects/myproject/pkg1/tsconfig.json'... -[12:03:47 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... +[12:03:35 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... -[12:03:49 AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/index.js' is older than input 'pkg0/tsconfig.json' +[12:03:37 AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/index.js' is older than input 'pkg0/tsconfig.json' -[12:03:50 AM] Building project '/user/username/projects/myproject/pkg2/tsconfig.json'... +[12:03:38 AM] Building project '/user/username/projects/myproject/pkg2/tsconfig.json'... -[12:03:51 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... +[12:03:39 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... -[12:03:53 AM] Project 'pkg3/tsconfig.json' is out of date because output 'pkg3/index.js' is older than input 'pkg0/tsconfig.json' +[12:03:41 AM] Project 'pkg3/tsconfig.json' is out of date because output 'pkg3/index.js' is older than input 'pkg0/tsconfig.json' -[12:03:54 AM] Building project '/user/username/projects/myproject/pkg3/tsconfig.json'... +[12:03:42 AM] Building project '/user/username/projects/myproject/pkg3/tsconfig.json'... -[12:03:55 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg3/tsconfig.json'... +[12:03:43 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg3/tsconfig.json'... -[12:03:57 AM] Project 'pkg4/tsconfig.json' is out of date because output 'pkg4/index.js' is older than input 'pkg0/tsconfig.json' +[12:03:45 AM] Project 'pkg4/tsconfig.json' is out of date because output 'pkg4/index.js' is older than input 'pkg0/tsconfig.json' -[12:03:58 AM] Building project '/user/username/projects/myproject/pkg4/tsconfig.json'... +[12:03:46 AM] Building project '/user/username/projects/myproject/pkg4/tsconfig.json'... -[12:03:59 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg4/tsconfig.json'... +[12:03:47 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg4/tsconfig.json'... -[12:04:01 AM] Project 'pkg5/tsconfig.json' is out of date because output 'pkg5/index.js' is older than input 'pkg0/tsconfig.json' +[12:03:49 AM] Project 'pkg5/tsconfig.json' is out of date because output 'pkg5/index.js' is older than input 'pkg0/tsconfig.json' -[12:04:02 AM] Building project '/user/username/projects/myproject/pkg5/tsconfig.json'... +[12:03:50 AM] Building project '/user/username/projects/myproject/pkg5/tsconfig.json'... -[12:04:03 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg5/tsconfig.json'... +[12:03:51 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg5/tsconfig.json'... @@ -1207,19 +1206,19 @@ Change:: build pkg6,pkg7 Input:: Output:: -[12:04:05 AM] Project 'pkg6/tsconfig.json' is out of date because output 'pkg6/index.js' is older than input 'pkg0/tsconfig.json' +[12:03:53 AM] Project 'pkg6/tsconfig.json' is out of date because output 'pkg6/index.js' is older than input 'pkg0/tsconfig.json' -[12:04:06 AM] Building project '/user/username/projects/myproject/pkg6/tsconfig.json'... +[12:03:54 AM] Building project '/user/username/projects/myproject/pkg6/tsconfig.json'... -[12:04:07 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg6/tsconfig.json'... +[12:03:55 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg6/tsconfig.json'... -[12:04:09 AM] Project 'pkg7/tsconfig.json' is out of date because output 'pkg7/index.js' is older than input 'pkg0/tsconfig.json' +[12:03:57 AM] Project 'pkg7/tsconfig.json' is out of date because output 'pkg7/index.js' is older than input 'pkg0/tsconfig.json' -[12:04:10 AM] Building project '/user/username/projects/myproject/pkg7/tsconfig.json'... +[12:03:58 AM] Building project '/user/username/projects/myproject/pkg7/tsconfig.json'... -[12:04:11 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg7/tsconfig.json'... +[12:03:59 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg7/tsconfig.json'... -[12:04:13 AM] Found 0 errors. Watching for file changes. +[12:04:01 AM] Found 0 errors. Watching for file changes. @@ -1380,11 +1379,11 @@ export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export c Output:: >> Screen clear -[12:04:16 AM] File change detected. Starting incremental compilation... +[12:04:04 AM] File change detected. Starting incremental compilation... -[12:04:17 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' +[12:04:05 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' -[12:04:18 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... +[12:04:06 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... @@ -1476,7 +1475,7 @@ export declare const someConst3 = 10; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"10857255042-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;","signature":"-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":259950},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"10857255042-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;","signature":"-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1505,10 +1504,10 @@ export declare const someConst3 = 10; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 259950 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 906 + "size": 921 } @@ -1517,35 +1516,35 @@ Change:: build pkg1,pkg2,pkg3,pkg4,pkg5 Input:: Output:: -[12:04:34 AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/index.js' is older than input 'pkg0/tsconfig.json' +[12:04:21 AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/index.js' is older than input 'pkg0/tsconfig.json' -[12:04:35 AM] Building project '/user/username/projects/myproject/pkg1/tsconfig.json'... +[12:04:22 AM] Building project '/user/username/projects/myproject/pkg1/tsconfig.json'... -[12:04:36 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... +[12:04:23 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... -[12:04:38 AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/index.js' is older than input 'pkg0/tsconfig.json' +[12:04:25 AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/index.js' is older than input 'pkg0/tsconfig.json' -[12:04:39 AM] Building project '/user/username/projects/myproject/pkg2/tsconfig.json'... +[12:04:26 AM] Building project '/user/username/projects/myproject/pkg2/tsconfig.json'... -[12:04:40 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... +[12:04:27 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... -[12:04:42 AM] Project 'pkg3/tsconfig.json' is out of date because output 'pkg3/index.js' is older than input 'pkg0/tsconfig.json' +[12:04:29 AM] Project 'pkg3/tsconfig.json' is out of date because output 'pkg3/index.js' is older than input 'pkg0/tsconfig.json' -[12:04:43 AM] Building project '/user/username/projects/myproject/pkg3/tsconfig.json'... +[12:04:30 AM] Building project '/user/username/projects/myproject/pkg3/tsconfig.json'... -[12:04:44 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg3/tsconfig.json'... +[12:04:31 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg3/tsconfig.json'... -[12:04:46 AM] Project 'pkg4/tsconfig.json' is out of date because output 'pkg4/index.js' is older than input 'pkg0/tsconfig.json' +[12:04:33 AM] Project 'pkg4/tsconfig.json' is out of date because output 'pkg4/index.js' is older than input 'pkg0/tsconfig.json' -[12:04:47 AM] Building project '/user/username/projects/myproject/pkg4/tsconfig.json'... +[12:04:34 AM] Building project '/user/username/projects/myproject/pkg4/tsconfig.json'... -[12:04:48 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg4/tsconfig.json'... +[12:04:35 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg4/tsconfig.json'... -[12:04:50 AM] Project 'pkg5/tsconfig.json' is out of date because output 'pkg5/index.js' is older than input 'pkg0/tsconfig.json' +[12:04:37 AM] Project 'pkg5/tsconfig.json' is out of date because output 'pkg5/index.js' is older than input 'pkg0/tsconfig.json' -[12:04:51 AM] Building project '/user/username/projects/myproject/pkg5/tsconfig.json'... +[12:04:38 AM] Building project '/user/username/projects/myproject/pkg5/tsconfig.json'... -[12:04:52 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg5/tsconfig.json'... +[12:04:39 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg5/tsconfig.json'... @@ -1677,31 +1676,31 @@ export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export c Output:: >> Screen clear -[12:04:56 AM] File change detected. Starting incremental compilation... +[12:04:43 AM] File change detected. Starting incremental compilation... -[12:04:57 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' +[12:04:44 AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' -[12:04:58 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... +[12:04:45 AM] Building project '/user/username/projects/myproject/pkg0/tsconfig.json'... -[12:05:12 AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:04:56 AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:05:13 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... +[12:04:57 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg1/tsconfig.json'... -[12:05:15 AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:04:59 AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:05:16 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... +[12:05:00 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg2/tsconfig.json'... -[12:05:18 AM] Project 'pkg3/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:05:02 AM] Project 'pkg3/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:05:19 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg3/tsconfig.json'... +[12:05:03 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg3/tsconfig.json'... -[12:05:21 AM] Project 'pkg4/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:05:05 AM] Project 'pkg4/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:05:22 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg4/tsconfig.json'... +[12:05:06 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg4/tsconfig.json'... -[12:05:24 AM] Project 'pkg5/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:05:08 AM] Project 'pkg5/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:05:25 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg5/tsconfig.json'... +[12:05:09 AM] Updating output timestamps of project '/user/username/projects/myproject/pkg5/tsconfig.json'... @@ -1787,9 +1786,8 @@ exports.someConst3 = 10; var someConst4 = 10; -//// [/user/username/projects/myproject/pkg0/index.d.ts] file written with same contents //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"27277091473-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;const someConst4 = 10;","signature":"-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":259950},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"27277091473-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;const someConst4 = 10;","signature":"-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1818,10 +1816,10 @@ var someConst4 = 10; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 259950 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 928 + "size": 943 } //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] file changed its modified time @@ -1835,19 +1833,19 @@ Change:: build pkg6,pkg7 Input:: Output:: -[12:05:27 AM] Project 'pkg6/tsconfig.json' is out of date because output 'pkg6/index.js' is older than input 'pkg0/tsconfig.json' +[12:05:11 AM] Project 'pkg6/tsconfig.json' is out of date because output 'pkg6/index.js' is older than input 'pkg0/tsconfig.json' -[12:05:28 AM] Building project '/user/username/projects/myproject/pkg6/tsconfig.json'... +[12:05:12 AM] Building project '/user/username/projects/myproject/pkg6/tsconfig.json'... -[12:05:29 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg6/tsconfig.json'... +[12:05:13 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg6/tsconfig.json'... -[12:05:31 AM] Project 'pkg7/tsconfig.json' is out of date because output 'pkg7/index.js' is older than input 'pkg0/tsconfig.json' +[12:05:15 AM] Project 'pkg7/tsconfig.json' is out of date because output 'pkg7/index.js' is older than input 'pkg0/tsconfig.json' -[12:05:32 AM] Building project '/user/username/projects/myproject/pkg7/tsconfig.json'... +[12:05:16 AM] Building project '/user/username/projects/myproject/pkg7/tsconfig.json'... -[12:05:33 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg7/tsconfig.json'... +[12:05:17 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/pkg7/tsconfig.json'... -[12:05:35 AM] Found 0 errors. Watching for file changes. +[12:05:19 AM] Found 0 errors. Watching for file changes. diff --git a/tests/baselines/reference/tsbuildWatch/publicApi/with-custom-transformers.js b/tests/baselines/reference/tsbuildWatch/publicApi/with-custom-transformers.js index eabeccf6ce7..420610c1c75 100644 --- a/tests/baselines/reference/tsbuildWatch/publicApi/with-custom-transformers.js +++ b/tests/baselines/reference/tsbuildWatch/publicApi/with-custom-transformers.js @@ -47,11 +47,11 @@ Output:: [12:00:33 AM] Building project '/user/username/projects/myproject/shared/tsconfig.json'... -[12:00:44 AM] Project 'webpack/tsconfig.json' is out of date because output file 'webpack/tsconfig.tsbuildinfo' does not exist +[12:00:43 AM] Project 'webpack/tsconfig.json' is out of date because output file 'webpack/tsconfig.tsbuildinfo' does not exist -[12:00:45 AM] Building project '/user/username/projects/myproject/webpack/tsconfig.json'... +[12:00:44 AM] Building project '/user/username/projects/myproject/webpack/tsconfig.json'... -[12:00:56 AM] Found 0 errors. Watching for file changes. +[12:00:54 AM] Found 0 errors. Watching for file changes. @@ -141,7 +141,7 @@ export declare function f2(): void; //// [/user/username/projects/myproject/shared/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"8649344783-export function f1() { }\nexport class c { }\nexport enum e { }\n// leading\nexport function f2() { } // trailing"],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"emitSignatures":[[2,"-9393727241-export declare function f1(): void;\nexport declare class c {\n}\nexport declare enum e {\n}\nexport declare function f2(): void;\n"]],"dtsChangeTime":34000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"8649344783-export function f1() { }\nexport class c { }\nexport enum e { }\n// leading\nexport function f2() { } // trailing"],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"emitSignatures":[[2,"-9393727241-export declare function f1(): void;\nexport declare class c {\n}\nexport declare enum e {\n}\nexport declare function f2(): void;\n"]],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/shared/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,10 +176,10 @@ export declare function f2(): void; "-9393727241-export declare function f1(): void;\nexport declare class c {\n}\nexport declare enum e {\n}\nexport declare function f2(): void;\n" ] ], - "dtsChangeTime": 34000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 936 + "size": 952 } //// [/user/username/projects/myproject/webpack/index.js] @@ -216,7 +216,7 @@ export declare function f22(): void; //// [/user/username/projects/myproject/webpack/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"20140662566-export function f2() { }\nexport class c2 { }\nexport enum e2 { }\n// leading\nexport function f22() { } // trailing"],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"emitSignatures":[[2,"-2037002130-export declare function f2(): void;\nexport declare class c2 {\n}\nexport declare enum e2 {\n}\nexport declare function f22(): void;\n"]],"dtsChangeTime":46000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"20140662566-export function f2() { }\nexport class c2 { }\nexport enum e2 { }\n// leading\nexport function f22() { } // trailing"],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"emitSignatures":[[2,"-2037002130-export declare function f2(): void;\nexport declare class c2 {\n}\nexport declare enum e2 {\n}\nexport declare function f22(): void;\n"]],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/webpack/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -251,10 +251,10 @@ export declare function f22(): void; "-2037002130-export declare function f2(): void;\nexport declare class c2 {\n}\nexport declare enum e2 {\n}\nexport declare function f22(): void;\n" ] ], - "dtsChangeTime": 46000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 943 + "size": 959 } @@ -271,19 +271,19 @@ export function f2() { } // trailing Output:: >> Screen clear -[12:00:59 AM] File change detected. Starting incremental compilation... +[12:00:57 AM] File change detected. Starting incremental compilation... -[12:01:00 AM] Project 'shared/tsconfig.json' is out of date because output 'shared/tsconfig.tsbuildinfo' is older than input 'shared/index.ts' +[12:00:58 AM] Project 'shared/tsconfig.json' is out of date because output 'shared/tsconfig.tsbuildinfo' is older than input 'shared/index.ts' -[12:01:01 AM] Building project '/user/username/projects/myproject/shared/tsconfig.json'... +[12:00:59 AM] Building project '/user/username/projects/myproject/shared/tsconfig.json'... -[12:01:16 AM] Project 'webpack/tsconfig.json' is out of date because output 'webpack/index.js' is older than input 'shared/tsconfig.json' +[12:01:13 AM] Project 'webpack/tsconfig.json' is out of date because output 'webpack/index.js' is older than input 'shared/tsconfig.json' -[12:01:17 AM] Building project '/user/username/projects/myproject/webpack/tsconfig.json'... +[12:01:14 AM] Building project '/user/username/projects/myproject/webpack/tsconfig.json'... -[12:01:18 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/webpack/tsconfig.json'... +[12:01:15 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/webpack/tsconfig.json'... -[12:01:20 AM] Found 0 errors. Watching for file changes. +[12:01:17 AM] Found 0 errors. Watching for file changes. @@ -371,7 +371,7 @@ export declare function f2(): void; //// [/user/username/projects/myproject/shared/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"14127205977-export function fooBar() {}export function f1() { }\nexport class c { }\nexport enum e { }\n// leading\nexport function f2() { } // trailing","signature":"1966424426-export declare function fooBar(): void;\nexport declare function f1(): void;\nexport declare class c {\n}\nexport declare enum e {\n}\nexport declare function f2(): void;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":62250},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"14127205977-export function fooBar() {}export function f1() { }\nexport class c { }\nexport enum e { }\n// leading\nexport function f2() { } // trailing","signature":"1966424426-export declare function fooBar(): void;\nexport declare function f1(): void;\nexport declare class c {\n}\nexport declare enum e {\n}\nexport declare function f2(): void;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/shared/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -400,10 +400,10 @@ export declare function f2(): void; "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 62250 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1005 + "size": 1021 } //// [/user/username/projects/myproject/webpack/tsconfig.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js b/tests/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js index 2fc9074ba20..521216bae3b 100644 --- a/tests/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js +++ b/tests/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js @@ -78,11 +78,11 @@ Output:: [12:00:38 AM] Building project '/user/username/projects/reexport/src/pure/tsconfig.json'... -[12:00:58 AM] Project 'src/main/tsconfig.json' is out of date because output file 'out/main/index.js' does not exist +[12:00:57 AM] Project 'src/main/tsconfig.json' is out of date because output file 'out/main/index.js' does not exist -[12:00:59 AM] Building project '/user/username/projects/reexport/src/main/tsconfig.json'... +[12:00:58 AM] Building project '/user/username/projects/reexport/src/main/tsconfig.json'... -[12:01:06 AM] Found 0 errors. Watching for file changes. +[12:01:05 AM] Found 0 errors. Watching for file changes. @@ -187,7 +187,7 @@ export * from "./session"; //// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5375279855-export interface Session {\n foo: number;\n // bar: number;\n}\n","signature":"-1218067212-export interface Session {\n foo: number;\n}\n"},"-5356193041-export * from \"./session\";\n"],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"dtsChangeTime":39000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5375279855-export interface Session {\n foo: number;\n // bar: number;\n}\n","signature":"-1218067212-export interface Session {\n foo: number;\n}\n"},"-5356193041-export * from \"./session\";\n"],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -237,10 +237,10 @@ export * from "./session"; "../../src/pure/index.ts", "../../src/pure/session.ts" ], - "dtsChangeTime": 39000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1045 + "size": 1061 } //// [/user/username/projects/reexport/out/main/index.js] @@ -266,15 +266,15 @@ export interface Session { Output:: >> Screen clear -[12:01:10 AM] File change detected. Starting incremental compilation... +[12:01:09 AM] File change detected. Starting incremental compilation... -[12:01:11 AM] Project 'src/pure/tsconfig.json' is out of date because output 'out/pure/tsconfig.tsbuildinfo' is older than input 'src/pure/session.ts' +[12:01:10 AM] Project 'src/pure/tsconfig.json' is out of date because output 'out/pure/tsconfig.tsbuildinfo' is older than input 'src/pure/session.ts' -[12:01:12 AM] Building project '/user/username/projects/reexport/src/pure/tsconfig.json'... +[12:01:11 AM] Building project '/user/username/projects/reexport/src/pure/tsconfig.json'... -[12:01:33 AM] Project 'src/main/tsconfig.json' is out of date because output 'out/main/index.js' is older than input 'src/pure/tsconfig.json' +[12:01:28 AM] Project 'src/main/tsconfig.json' is out of date because output 'out/main/index.js' is older than input 'src/pure/tsconfig.json' -[12:01:34 AM] Building project '/user/username/projects/reexport/src/main/tsconfig.json'... +[12:01:29 AM] Building project '/user/username/projects/reexport/src/main/tsconfig.json'... src/main/index.ts:3:14 - error TS2741: Property 'bar' is missing in type '{ foo: number; }' but required in type 'Session'. @@ -286,7 +286,7 @@ Output::    ~~~ 'bar' is declared here. -[12:01:35 AM] Found 1 error. Watching for file changes. +[12:01:30 AM] Found 1 error. Watching for file changes. @@ -360,9 +360,8 @@ export interface Session { //// [/user/username/projects/reexport/out/pure/index.js] file written with same contents -//// [/user/username/projects/reexport/out/pure/index.d.ts] file written with same contents //// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"4223553457-export interface Session {\n foo: number;\n bar: number;\n}\n","signature":"309257137-export interface Session {\n foo: number;\n bar: number;\n}\n"},"-5356193041-export * from \"./session\";\n"],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"dtsChangeTime":73250},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"4223553457-export interface Session {\n foo: number;\n bar: number;\n}\n","signature":"309257137-export interface Session {\n foo: number;\n bar: number;\n}\n"},"-5356193041-export * from \"./session\";\n"],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./session.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -412,10 +411,10 @@ export interface Session { "../../src/pure/index.ts", "../../src/pure/session.ts" ], - "dtsChangeTime": 73250 + "latestChangedDtsFile": "./session.d.ts" }, "version": "FakeTSVersion", - "size": 1058 + "size": 1076 } @@ -432,19 +431,19 @@ export interface Session { Output:: >> Screen clear -[12:01:39 AM] File change detected. Starting incremental compilation... +[12:01:34 AM] File change detected. Starting incremental compilation... -[12:01:40 AM] Project 'src/pure/tsconfig.json' is out of date because output 'out/pure/tsconfig.tsbuildinfo' is older than input 'src/pure/session.ts' +[12:01:35 AM] Project 'src/pure/tsconfig.json' is out of date because output 'out/pure/tsconfig.tsbuildinfo' is older than input 'src/pure/session.ts' -[12:01:41 AM] Building project '/user/username/projects/reexport/src/pure/tsconfig.json'... +[12:01:36 AM] Building project '/user/username/projects/reexport/src/pure/tsconfig.json'... -[12:02:02 AM] Failed to parse file 'src/main/tsconfig.json': Semantic errors. +[12:01:53 AM] Failed to parse file 'src/main/tsconfig.json': Semantic errors. -[12:02:03 AM] Building project '/user/username/projects/reexport/src/main/tsconfig.json'... +[12:01:54 AM] Building project '/user/username/projects/reexport/src/main/tsconfig.json'... -[12:02:04 AM] Updating unchanged output timestamps of project '/user/username/projects/reexport/src/main/tsconfig.json'... +[12:01:55 AM] Updating unchanged output timestamps of project '/user/username/projects/reexport/src/main/tsconfig.json'... -[12:02:06 AM] Found 0 errors. Watching for file changes. +[12:01:57 AM] Found 0 errors. Watching for file changes. @@ -517,9 +516,8 @@ export interface Session { //// [/user/username/projects/reexport/out/pure/index.js] file written with same contents -//// [/user/username/projects/reexport/out/pure/index.d.ts] file written with same contents //// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5375279855-export interface Session {\n foo: number;\n // bar: number;\n}\n","signature":"-1218067212-export interface Session {\n foo: number;\n}\n"},"-5356193041-export * from \"./session\";\n"],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"dtsChangeTime":102600},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5375279855-export interface Session {\n foo: number;\n // bar: number;\n}\n","signature":"-1218067212-export interface Session {\n foo: number;\n}\n"},"-5356193041-export * from \"./session\";\n"],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./session.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -569,10 +567,10 @@ export interface Session { "../../src/pure/index.ts", "../../src/pure/session.ts" ], - "dtsChangeTime": 102600 + "latestChangedDtsFile": "./session.d.ts" }, "version": "FakeTSVersion", - "size": 1046 + "size": 1063 } //// [/user/username/projects/reexport/out/main/index.js] file changed its modified time diff --git a/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field-with-declaration-emit-enabled.js b/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field-with-declaration-emit-enabled.js index cea58e7453a..b85622f2cb5 100644 --- a/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field-with-declaration-emit-enabled.js +++ b/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field-with-declaration-emit-enabled.js @@ -59,7 +59,7 @@ declare const wrapper: () => { message: string; }; }; -declare type MessageablePerson = InstanceType>; +type MessageablePerson = InstanceType>; export default MessageablePerson; @@ -78,7 +78,7 @@ var wrapper = function () { return Messageable(); }; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./messageableperson.ts","./main.ts"],"fileInfos":[{"version":"5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;","affectsGlobalScope":true},{"version":"31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"-13324779423-declare const wrapper: () => {\r\n new (): {\r\n message: string;\r\n };\r\n};\r\ndeclare type MessageablePerson = InstanceType>;\r\nexport default MessageablePerson;\r\n"},{"version":"4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"-4882119183-export {};\r\n"}],"options":{"declaration":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./messageableperson.ts","./main.ts"],"fileInfos":[{"version":"5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;","affectsGlobalScope":true},{"version":"31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"-26007269167-declare const wrapper: () => {\r\n new (): {\r\n message: string;\r\n };\r\n};\r\ntype MessageablePerson = InstanceType>;\r\nexport default MessageablePerson;\r\n"},{"version":"4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"-4882119183-export {};\r\n"}],"options":{"declaration":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,7 +101,7 @@ var wrapper = function () { return Messageable(); }; }, "./messageableperson.ts": { "version": "31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "-13324779423-declare const wrapper: () => {\r\n new (): {\r\n message: string;\r\n };\r\n};\r\ndeclare type MessageablePerson = InstanceType>;\r\nexport default MessageablePerson;\r\n" + "signature": "-26007269167-declare const wrapper: () => {\r\n new (): {\r\n message: string;\r\n };\r\n};\r\ntype MessageablePerson = InstanceType>;\r\nexport default MessageablePerson;\r\n" }, "./main.ts": { "version": "4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", @@ -124,7 +124,7 @@ var wrapper = function () { return Messageable(); }; ] }, "version": "FakeTSVersion", - "size": 1693 + "size": 1685 } @@ -168,7 +168,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped //// [/src/project/main.js] file written with same contents //// [/src/project/MessageablePerson.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./messageableperson.ts","./main.ts"],"fileInfos":[{"version":"5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;","affectsGlobalScope":true},{"version":"3462418372-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"-4323958125-declare const wrapper: () => {\r\n new (): {\r\n message: string;\r\n };\r\n};\r\ndeclare type MessageablePerson = InstanceType>;\r\nexport default MessageablePerson;\r\n(116,7)Error4094: Property 'message' of exported class expression may not be private or protected."},{"version":"4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"-4882119183-export {};\r\n"}],"options":{"declaration":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./main.ts","start":131,"length":7,"messageText":"Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses.","category":1,"code":2445}]],2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./messageableperson.ts","./main.ts"],"fileInfos":[{"version":"5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;","affectsGlobalScope":true},{"version":"3462418372-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"-16190189821-declare const wrapper: () => {\r\n new (): {\r\n message: string;\r\n };\r\n};\r\ntype MessageablePerson = InstanceType>;\r\nexport default MessageablePerson;\r\n(116,7)Error4094: Property 'message' of exported class expression may not be private or protected."},{"version":"4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"-4882119183-export {};\r\n"}],"options":{"declaration":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./main.ts","start":131,"length":7,"messageText":"Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses.","category":1,"code":2445}]],2]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -191,7 +191,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped }, "./messageableperson.ts": { "version": "3462418372-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "-4323958125-declare const wrapper: () => {\r\n new (): {\r\n message: string;\r\n };\r\n};\r\ndeclare type MessageablePerson = InstanceType>;\r\nexport default MessageablePerson;\r\n(116,7)Error4094: Property 'message' of exported class expression may not be private or protected." + "signature": "-16190189821-declare const wrapper: () => {\r\n new (): {\r\n message: string;\r\n };\r\n};\r\ntype MessageablePerson = InstanceType>;\r\nexport default MessageablePerson;\r\n(116,7)Error4094: Property 'message' of exported class expression may not be private or protected." }, "./main.ts": { "version": "4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", @@ -226,7 +226,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped ] }, "version": "FakeTSVersion", - "size": 1985 + "size": 1978 } @@ -255,7 +255,7 @@ exitCode:: ExitStatus.Success //// [/src/project/MessageablePerson.d.ts] file written with same contents //// [/src/project/MessageablePerson.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./messageableperson.ts","./main.ts"],"fileInfos":[{"version":"5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;","affectsGlobalScope":true},{"version":"31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"-13324779423-declare const wrapper: () => {\r\n new (): {\r\n message: string;\r\n };\r\n};\r\ndeclare type MessageablePerson = InstanceType>;\r\nexport default MessageablePerson;\r\n"},{"version":"4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"-4882119183-export {};\r\n"}],"options":{"declaration":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./messageableperson.ts","./main.ts"],"fileInfos":[{"version":"5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;","affectsGlobalScope":true},{"version":"31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"-26007269167-declare const wrapper: () => {\r\n new (): {\r\n message: string;\r\n };\r\n};\r\ntype MessageablePerson = InstanceType>;\r\nexport default MessageablePerson;\r\n"},{"version":"4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"-4882119183-export {};\r\n"}],"options":{"declaration":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -278,7 +278,7 @@ exitCode:: ExitStatus.Success }, "./messageableperson.ts": { "version": "31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "-13324779423-declare const wrapper: () => {\r\n new (): {\r\n message: string;\r\n };\r\n};\r\ndeclare type MessageablePerson = InstanceType>;\r\nexport default MessageablePerson;\r\n" + "signature": "-26007269167-declare const wrapper: () => {\r\n new (): {\r\n message: string;\r\n };\r\n};\r\ntype MessageablePerson = InstanceType>;\r\nexport default MessageablePerson;\r\n" }, "./main.ts": { "version": "4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", @@ -301,6 +301,6 @@ exitCode:: ExitStatus.Success ] }, "version": "FakeTSVersion", - "size": 1693 + "size": 1685 } diff --git a/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field.js b/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field.js index 922df600ea4..ecf784da731 100644 --- a/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field.js +++ b/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field.js @@ -149,7 +149,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated //// [/src/project/main.js] file written with same contents //// [/src/project/MessageablePerson.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./messageableperson.ts","./main.ts"],"fileInfos":[{"version":"5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;","affectsGlobalScope":true},{"version":"3462418372-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"-4323958125-declare const wrapper: () => {\r\n new (): {\r\n message: string;\r\n };\r\n};\r\ndeclare type MessageablePerson = InstanceType>;\r\nexport default MessageablePerson;\r\n(116,7)Error4094: Property 'message' of exported class expression may not be private or protected."},{"version":"4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"-4882119183-export {};\r\n"}],"options":{"declaration":false},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./main.ts","start":131,"length":7,"messageText":"Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses.","category":1,"code":2445}]],2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./messageableperson.ts","./main.ts"],"fileInfos":[{"version":"5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;","affectsGlobalScope":true},{"version":"3462418372-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"-16190189821-declare const wrapper: () => {\r\n new (): {\r\n message: string;\r\n };\r\n};\r\ntype MessageablePerson = InstanceType>;\r\nexport default MessageablePerson;\r\n(116,7)Error4094: Property 'message' of exported class expression may not be private or protected."},{"version":"4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"-4882119183-export {};\r\n"}],"options":{"declaration":false},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./main.ts","start":131,"length":7,"messageText":"Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses.","category":1,"code":2445}]],2]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -172,7 +172,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated }, "./messageableperson.ts": { "version": "3462418372-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "-4323958125-declare const wrapper: () => {\r\n new (): {\r\n message: string;\r\n };\r\n};\r\ndeclare type MessageablePerson = InstanceType>;\r\nexport default MessageablePerson;\r\n(116,7)Error4094: Property 'message' of exported class expression may not be private or protected." + "signature": "-16190189821-declare const wrapper: () => {\r\n new (): {\r\n message: string;\r\n };\r\n};\r\ntype MessageablePerson = InstanceType>;\r\nexport default MessageablePerson;\r\n(116,7)Error4094: Property 'message' of exported class expression may not be private or protected." }, "./main.ts": { "version": "4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", @@ -207,7 +207,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated ] }, "version": "FakeTSVersion", - "size": 1986 + "size": 1979 } @@ -234,7 +234,7 @@ exitCode:: ExitStatus.Success //// [/src/project/main.js] file written with same contents //// [/src/project/MessageablePerson.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./messageableperson.ts","./main.ts"],"fileInfos":[{"version":"5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;","affectsGlobalScope":true},{"version":"31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"-13324779423-declare const wrapper: () => {\r\n new (): {\r\n message: string;\r\n };\r\n};\r\ndeclare type MessageablePerson = InstanceType>;\r\nexport default MessageablePerson;\r\n"},{"version":"4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"-4882119183-export {};\r\n"}],"options":{"declaration":false},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./messageableperson.ts","./main.ts"],"fileInfos":[{"version":"5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;","affectsGlobalScope":true},{"version":"31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"-26007269167-declare const wrapper: () => {\r\n new (): {\r\n message: string;\r\n };\r\n};\r\ntype MessageablePerson = InstanceType>;\r\nexport default MessageablePerson;\r\n"},{"version":"4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"-4882119183-export {};\r\n"}],"options":{"declaration":false},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -257,7 +257,7 @@ exitCode:: ExitStatus.Success }, "./messageableperson.ts": { "version": "31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "-13324779423-declare const wrapper: () => {\r\n new (): {\r\n message: string;\r\n };\r\n};\r\ndeclare type MessageablePerson = InstanceType>;\r\nexport default MessageablePerson;\r\n" + "signature": "-26007269167-declare const wrapper: () => {\r\n new (): {\r\n message: string;\r\n };\r\n};\r\ntype MessageablePerson = InstanceType>;\r\nexport default MessageablePerson;\r\n" }, "./main.ts": { "version": "4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", @@ -280,6 +280,6 @@ exitCode:: ExitStatus.Success ] }, "version": "FakeTSVersion", - "size": 1694 + "size": 1686 } diff --git a/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js b/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js index 21da0508118..60f75818c63 100644 --- a/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js +++ b/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js @@ -81,7 +81,7 @@ __createBinding(exports, constants_1, "default", "ConstantNumber"); //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./class1.ts","./constants.ts","./reexport.ts","./types.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"4085502068-const a: MagicNumber = 1;\nconsole.log(a);","signature":"-4973073251-declare const a = 1;\r\n","affectsGlobalScope":true},{"version":"-2659799048-export default 1;","signature":"-5298367302-declare const _default: 1;\r\nexport default _default;\r\n"},{"version":"-1476032387-export { default as ConstantNumber } from \"./constants\"","signature":"-1329721329-export { default as ConstantNumber } from \"./constants\";\r\n"},{"version":"2093085814-type MagicNumber = typeof import('./reexport').ConstantNumber","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3],[4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"dtsChangeTime":18000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./class1.ts","./constants.ts","./reexport.ts","./types.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"4085502068-const a: MagicNumber = 1;\nconsole.log(a);","signature":"-4973073251-declare const a = 1;\r\n","affectsGlobalScope":true},{"version":"-2659799048-export default 1;","signature":"-5298367302-declare const _default: 1;\r\nexport default _default;\r\n"},{"version":"-1476032387-export { default as ConstantNumber } from \"./constants\"","signature":"-1329721329-export { default as ConstantNumber } from \"./constants\";\r\n"},{"version":"2093085814-type MagicNumber = typeof import('./reexport').ConstantNumber","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3],[4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./reexport.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -152,10 +152,10 @@ __createBinding(exports, constants_1, "default", "ConstantNumber"); "./reexport.ts", "./types.d.ts" ], - "dtsChangeTime": 18000 + "latestChangedDtsFile": "./reexport.d.ts" }, "version": "FakeTSVersion", - "size": 1370 + "size": 1389 } @@ -195,10 +195,9 @@ exports.__esModule = true; exports["default"] = 2; -//// [/src/project/reexport.d.ts] file written with same contents //// [/src/project/reexport.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./class1.ts","./constants.ts","./reexport.ts","./types.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"4085502068-const a: MagicNumber = 1;\nconsole.log(a);","signature":"-4973037314-declare const a = 2;\r\n","affectsGlobalScope":true},{"version":"-2659799015-export default 2;","signature":"1573564507-declare const _default: 2;\r\nexport default _default;\r\n"},{"version":"-1476032387-export { default as ConstantNumber } from \"./constants\"","signature":"-1329721329-export { default as ConstantNumber } from \"./constants\";\r\n"},{"version":"2093085814-type MagicNumber = typeof import('./reexport').ConstantNumber","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3],[4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./class1.ts","start":6,"length":1,"code":2322,"category":1,"messageText":"Type '1' is not assignable to type '2'."}]],3,4,5],"dtsChangeTime":27000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./class1.ts","./constants.ts","./reexport.ts","./types.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"4085502068-const a: MagicNumber = 1;\nconsole.log(a);","signature":"-4973037314-declare const a = 2;\r\n","affectsGlobalScope":true},{"version":"-2659799015-export default 2;","signature":"1573564507-declare const _default: 2;\r\nexport default _default;\r\n"},{"version":"-1476032387-export { default as ConstantNumber } from \"./constants\"","signature":"-1329721329-export { default as ConstantNumber } from \"./constants\";\r\n"},{"version":"2093085814-type MagicNumber = typeof import('./reexport').ConstantNumber","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3],[4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./class1.ts","start":6,"length":1,"code":2322,"category":1,"messageText":"Type '1' is not assignable to type '2'."}]],3,4,5],"latestChangedDtsFile":"./constants.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -281,9 +280,9 @@ exports["default"] = 2; "./reexport.ts", "./types.d.ts" ], - "dtsChangeTime": 27000 + "latestChangedDtsFile": "./constants.d.ts" }, "version": "FakeTSVersion", - "size": 1498 + "size": 1518 } diff --git a/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js b/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js index 75a605246b9..986c92eb9ff 100644 --- a/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js +++ b/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js @@ -55,7 +55,7 @@ exports["default"] = 1; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./class1.ts","./constants.ts","./types.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"4085502068-const a: MagicNumber = 1;\nconsole.log(a);","signature":"-4973073251-declare const a = 1;\r\n","affectsGlobalScope":true},{"version":"-2659799048-export default 1;","signature":"-5298367302-declare const _default: 1;\r\nexport default _default;\r\n"},{"version":"-2080821236-type MagicNumber = typeof import('./constants').default","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":15000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./class1.ts","./constants.ts","./types.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"4085502068-const a: MagicNumber = 1;\nconsole.log(a);","signature":"-4973073251-declare const a = 1;\r\n","affectsGlobalScope":true},{"version":"-2659799048-export default 1;","signature":"-5298367302-declare const _default: 1;\r\nexport default _default;\r\n"},{"version":"-2080821236-type MagicNumber = typeof import('./constants').default","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./constants.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -111,10 +111,10 @@ exports["default"] = 1; "./constants.ts", "./types.d.ts" ], - "dtsChangeTime": 15000 + "latestChangedDtsFile": "./constants.d.ts" }, "version": "FakeTSVersion", - "size": 1158 + "size": 1178 } @@ -155,7 +155,7 @@ exports["default"] = 2; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./class1.ts","./constants.ts","./types.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"4085502068-const a: MagicNumber = 1;\nconsole.log(a);","signature":"-4973037314-declare const a = 2;\r\n","affectsGlobalScope":true},{"version":"-2659799015-export default 2;","signature":"1573564507-declare const _default: 2;\r\nexport default _default;\r\n"},{"version":"-2080821236-type MagicNumber = typeof import('./constants').default","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./class1.ts","start":6,"length":1,"code":2322,"category":1,"messageText":"Type '1' is not assignable to type '2'."}]],3,4],"dtsChangeTime":22000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./class1.ts","./constants.ts","./types.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"4085502068-const a: MagicNumber = 1;\nconsole.log(a);","signature":"-4973037314-declare const a = 2;\r\n","affectsGlobalScope":true},{"version":"-2659799015-export default 2;","signature":"1573564507-declare const _default: 2;\r\nexport default _default;\r\n"},{"version":"-2080821236-type MagicNumber = typeof import('./constants').default","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./class1.ts","start":6,"length":1,"code":2322,"category":1,"messageText":"Type '1' is not assignable to type '2'."}]],3,4],"latestChangedDtsFile":"./constants.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -223,9 +223,9 @@ exports["default"] = 2; "./constants.ts", "./types.d.ts" ], - "dtsChangeTime": 22000 + "latestChangedDtsFile": "./constants.d.ts" }, "version": "FakeTSVersion", - "size": 1286 + "size": 1306 } diff --git a/tests/baselines/reference/tsc/incremental/noEmit-changes-composite-discrepancies.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-composite-discrepancies.js index 26053e3cb38..4509dc61570 100644 --- a/tests/baselines/reference/tsc/incremental/noEmit-changes-composite-discrepancies.js +++ b/tests/baselines/reference/tsc/incremental/noEmit-changes-composite-discrepancies.js @@ -1,8 +1,8 @@ 0:: No Change run with noEmit Incremental build did not emit and has .ts as signature so exports has all imported modules/referenced files Clean build always uses d.ts for signature for testing thus does not contain non exported modules/referenced files that arent needed -Clean build will not have dtsChangeTime as there was no emit and emitSignatures as undefined for files -Incremental will store the past dtsChangeTime and emitSignatures +Clean build will not have latestChangedDtsFile as there was no emit and emitSignatures as undefined for files +Incremental will store the past latestChangedDtsFile and emitSignatures TsBuild info text without affectedFilesPendingEmit:: /src/project/tsconfig.tsbuildinfo.readable.baseline.txt:: CleanBuild: { @@ -143,15 +143,15 @@ IncrementalBuild: ] ] ], - "dtsChangeTime": "FakeTime" + "latestChangedDtsFile": "FakeFileName" }, "version": "FakeTSVersion" } 1:: No Change run with noEmit Incremental build did not emit and has .ts as signature so exports has all imported modules/referenced files Clean build always uses d.ts for signature for testing thus does not contain non exported modules/referenced files that arent needed -Clean build will not have dtsChangeTime as there was no emit and emitSignatures as undefined for files -Incremental will store the past dtsChangeTime and emitSignatures +Clean build will not have latestChangedDtsFile as there was no emit and emitSignatures as undefined for files +Incremental will store the past latestChangedDtsFile and emitSignatures TsBuild info text without affectedFilesPendingEmit:: /src/project/tsconfig.tsbuildinfo.readable.baseline.txt:: CleanBuild: { @@ -292,15 +292,15 @@ IncrementalBuild: ] ] ], - "dtsChangeTime": "FakeTime" + "latestChangedDtsFile": "FakeFileName" }, "version": "FakeTSVersion" } 2:: Introduce error but still noEmit Incremental build did not emit and has .ts as signature so exports has all imported modules/referenced files Clean build always uses d.ts for signature for testing thus does not contain non exported modules/referenced files that arent needed -Clean build will not have dtsChangeTime as there was no emit and emitSignatures as undefined for files -Incremental will store the past dtsChangeTime and emitSignatures +Clean build will not have latestChangedDtsFile as there was no emit and emitSignatures as undefined for files +Incremental will store the past latestChangedDtsFile and emitSignatures TsBuild info text without affectedFilesPendingEmit:: /src/project/tsconfig.tsbuildinfo.readable.baseline.txt:: CleanBuild: { @@ -543,7 +543,7 @@ IncrementalBuild: "-4882119183-export {};\r\n" ] ], - "dtsChangeTime": "FakeTime" + "latestChangedDtsFile": "FakeFileName" }, "version": "FakeTSVersion" } @@ -567,8 +567,8 @@ Clean: { 5:: No Change run with noEmit Incremental build did not emit and has .ts as signature so exports has all imported modules/referenced files Clean build always uses d.ts for signature for testing thus does not contain non exported modules/referenced files that arent needed -Clean build will not have dtsChangeTime as there was no emit and emitSignatures as undefined for files -Incremental will store the past dtsChangeTime and emitSignatures +Clean build will not have latestChangedDtsFile as there was no emit and emitSignatures as undefined for files +Incremental will store the past latestChangedDtsFile and emitSignatures TsBuild info text without affectedFilesPendingEmit:: /src/project/tsconfig.tsbuildinfo.readable.baseline.txt:: CleanBuild: { @@ -709,15 +709,15 @@ IncrementalBuild: ] ] ], - "dtsChangeTime": "FakeTime" + "latestChangedDtsFile": "FakeFileName" }, "version": "FakeTSVersion" } 6:: No Change run with noEmit Incremental build did not emit and has .ts as signature so exports has all imported modules/referenced files Clean build always uses d.ts for signature for testing thus does not contain non exported modules/referenced files that arent needed -Clean build will not have dtsChangeTime as there was no emit and emitSignatures as undefined for files -Incremental will store the past dtsChangeTime and emitSignatures +Clean build will not have latestChangedDtsFile as there was no emit and emitSignatures as undefined for files +Incremental will store the past latestChangedDtsFile and emitSignatures TsBuild info text without affectedFilesPendingEmit:: /src/project/tsconfig.tsbuildinfo.readable.baseline.txt:: CleanBuild: { @@ -858,15 +858,15 @@ IncrementalBuild: ] ] ], - "dtsChangeTime": "FakeTime" + "latestChangedDtsFile": "FakeFileName" }, "version": "FakeTSVersion" } 10:: No Change run with noEmit Incremental build did not emit and has .ts as signature so exports has all imported modules/referenced files Clean build always uses d.ts for signature for testing thus does not contain non exported modules/referenced files that arent needed -Clean build will not have dtsChangeTime as there was no emit and emitSignatures as undefined for files -Incremental will store the past dtsChangeTime and emitSignatures +Clean build will not have latestChangedDtsFile as there was no emit and emitSignatures as undefined for files +Incremental will store the past latestChangedDtsFile and emitSignatures TsBuild info text without affectedFilesPendingEmit:: /src/project/tsconfig.tsbuildinfo.readable.baseline.txt:: CleanBuild: { @@ -1095,15 +1095,15 @@ IncrementalBuild: ] ] ], - "dtsChangeTime": "FakeTime" + "latestChangedDtsFile": "FakeFileName" }, "version": "FakeTSVersion" } 11:: No Change run with noEmit Incremental build did not emit and has .ts as signature so exports has all imported modules/referenced files Clean build always uses d.ts for signature for testing thus does not contain non exported modules/referenced files that arent needed -Clean build will not have dtsChangeTime as there was no emit and emitSignatures as undefined for files -Incremental will store the past dtsChangeTime and emitSignatures +Clean build will not have latestChangedDtsFile as there was no emit and emitSignatures as undefined for files +Incremental will store the past latestChangedDtsFile and emitSignatures TsBuild info text without affectedFilesPendingEmit:: /src/project/tsconfig.tsbuildinfo.readable.baseline.txt:: CleanBuild: { @@ -1332,15 +1332,15 @@ IncrementalBuild: ] ] ], - "dtsChangeTime": "FakeTime" + "latestChangedDtsFile": "FakeFileName" }, "version": "FakeTSVersion" } 13:: Fix error and no emit Incremental build did not emit and has .ts as signature so exports has all imported modules/referenced files Clean build always uses d.ts for signature for testing thus does not contain non exported modules/referenced files that arent needed -Clean build will not have dtsChangeTime as there was no emit and emitSignatures as undefined for files -Incremental will store the past dtsChangeTime and emitSignatures +Clean build will not have latestChangedDtsFile as there was no emit and emitSignatures as undefined for files +Incremental will store the past latestChangedDtsFile and emitSignatures TsBuild info text without affectedFilesPendingEmit:: /src/project/tsconfig.tsbuildinfo.readable.baseline.txt:: CleanBuild: { @@ -1495,7 +1495,7 @@ IncrementalBuild: "-4882119183-export {};\r\n" ] ], - "dtsChangeTime": "FakeTime" + "latestChangedDtsFile": "FakeFileName" }, "version": "FakeTSVersion" } @@ -1519,8 +1519,8 @@ Clean: { 15:: No Change run with noEmit Incremental build did not emit and has .ts as signature so exports has all imported modules/referenced files Clean build always uses d.ts for signature for testing thus does not contain non exported modules/referenced files that arent needed -Clean build will not have dtsChangeTime as there was no emit and emitSignatures as undefined for files -Incremental will store the past dtsChangeTime and emitSignatures +Clean build will not have latestChangedDtsFile as there was no emit and emitSignatures as undefined for files +Incremental will store the past latestChangedDtsFile and emitSignatures TsBuild info text without affectedFilesPendingEmit:: /src/project/tsconfig.tsbuildinfo.readable.baseline.txt:: CleanBuild: { @@ -1661,15 +1661,15 @@ IncrementalBuild: ] ] ], - "dtsChangeTime": "FakeTime" + "latestChangedDtsFile": "FakeFileName" }, "version": "FakeTSVersion" } 16:: No Change run with noEmit Incremental build did not emit and has .ts as signature so exports has all imported modules/referenced files Clean build always uses d.ts for signature for testing thus does not contain non exported modules/referenced files that arent needed -Clean build will not have dtsChangeTime as there was no emit and emitSignatures as undefined for files -Incremental will store the past dtsChangeTime and emitSignatures +Clean build will not have latestChangedDtsFile as there was no emit and emitSignatures as undefined for files +Incremental will store the past latestChangedDtsFile and emitSignatures TsBuild info text without affectedFilesPendingEmit:: /src/project/tsconfig.tsbuildinfo.readable.baseline.txt:: CleanBuild: { @@ -1810,7 +1810,7 @@ IncrementalBuild: ] ] ], - "dtsChangeTime": "FakeTime" + "latestChangedDtsFile": "FakeFileName" }, "version": "FakeTSVersion" } \ No newline at end of file diff --git a/tests/baselines/reference/tsc/incremental/noEmit-changes-composite.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-composite.js index 0e8bf98af29..662244a6973 100644 --- a/tests/baselines/reference/tsc/incremental/noEmit-changes-composite.js +++ b/tests/baselines/reference/tsc/incremental/noEmit-changes-composite.js @@ -148,7 +148,7 @@ function someFunc(arguments) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-6712382238-export declare class classC {\r\n prop: number;\r\n}\r\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"-9860349972-import { classC } from './class';\r\nexport declare class indirectClass {\r\n classC: classC;\r\n}\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8117292349-export declare function writeLog(s: string): void;\r\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-4920141752-declare function someFunc(arguments: boolean, ...rest: any[]): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"exportedModulesMap":[[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"dtsChangeTime":27000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-6712382238-export declare class classC {\r\n prop: number;\r\n}\r\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"-9860349972-import { classC } from './class';\r\nexport declare class indirectClass {\r\n classC: classC;\r\n}\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8117292349-export declare function writeLog(s: string): void;\r\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-4920141752-declare function someFunc(arguments: boolean, ...rest: any[]): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"exportedModulesMap":[[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -243,10 +243,10 @@ function someFunc(arguments) { ] ] ], - "dtsChangeTime": 27000 + "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts" }, "version": "FakeTSVersion", - "size": 2200 + "size": 2248 } @@ -314,7 +314,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-3790894605-export declare class classC {\r\n prop1: number;\r\n}\r\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"-9860349972-import { classC } from './class';\r\nexport declare class indirectClass {\r\n classC: classC;\r\n}\r\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8117292349-export declare function writeLog(s: string): void;\r\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-4920141752-declare function someFunc(arguments: boolean, ...rest: any[]): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"exportedModulesMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/directuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],3,[5,[{"file":"./src/indirectuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[[2,1],[4,0],[3,1],[5,0]],"emitSignatures":[[2,"-6712382238-export declare class classC {\r\n prop: number;\r\n}\r\n"],[4,"-4882119183-export {};\r\n"],[5,"-4882119183-export {};\r\n"]],"dtsChangeTime":27000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-3790894605-export declare class classC {\r\n prop1: number;\r\n}\r\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"-9860349972-import { classC } from './class';\r\nexport declare class indirectClass {\r\n classC: classC;\r\n}\r\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8117292349-export declare function writeLog(s: string): void;\r\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-4920141752-declare function someFunc(arguments: boolean, ...rest: any[]): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"exportedModulesMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/directuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],3,[5,[{"file":"./src/indirectuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[[2,1],[4,0],[3,1],[5,0]],"emitSignatures":[[2,"-6712382238-export declare class classC {\r\n prop: number;\r\n}\r\n"],[4,"-4882119183-export {};\r\n"],[5,"-4882119183-export {};\r\n"]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -491,10 +491,10 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated "-4882119183-export {};\r\n" ] ], - "dtsChangeTime": 27000 + "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts" }, "version": "FakeTSVersion", - "size": 2939 + "size": 2987 } @@ -521,14 +521,10 @@ Found 1 error in src/project/src/noChangeFileWithEmitSpecificError.ts:1 exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -//// [/src/project/src/class.d.ts] file written with same contents //// [/src/project/src/class.js] file written with same contents -//// [/src/project/src/directUse.d.ts] file written with same contents -//// [/src/project/src/indirectClass.d.ts] file written with same contents //// [/src/project/src/indirectClass.js] file written with same contents -//// [/src/project/src/indirectUse.d.ts] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-6712382238-export declare class classC {\r\n prop: number;\r\n}\r\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"-9860349972-import { classC } from './class';\r\nexport declare class indirectClass {\r\n classC: classC;\r\n}\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8117292349-export declare function writeLog(s: string): void;\r\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-4920141752-declare function someFunc(arguments: boolean, ...rest: any[]): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"exportedModulesMap":[[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"dtsChangeTime":27000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-6712382238-export declare class classC {\r\n prop: number;\r\n}\r\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"-9860349972-import { classC } from './class';\r\nexport declare class indirectClass {\r\n classC: classC;\r\n}\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8117292349-export declare function writeLog(s: string): void;\r\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-4920141752-declare function someFunc(arguments: boolean, ...rest: any[]): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"exportedModulesMap":[[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -623,10 +619,10 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated ] ] ], - "dtsChangeTime": 27000 + "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts" }, "version": "FakeTSVersion", - "size": 2200 + "size": 2248 } @@ -756,12 +752,9 @@ var classC = /** @class */ (function () { exports.classC = classC; -//// [/src/project/src/directUse.d.ts] file written with same contents -//// [/src/project/src/indirectClass.d.ts] file written with same contents //// [/src/project/src/indirectClass.js] file written with same contents -//// [/src/project/src/indirectUse.d.ts] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-3790894605-export declare class classC {\r\n prop1: number;\r\n}\r\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"-9860349972-import { classC } from './class';\r\nexport declare class indirectClass {\r\n classC: classC;\r\n}\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8117292349-export declare function writeLog(s: string): void;\r\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-4920141752-declare function someFunc(arguments: boolean, ...rest: any[]): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"exportedModulesMap":[[3,2]],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/directuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],3,[5,[{"file":"./src/indirectuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"dtsChangeTime":49000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-3790894605-export declare class classC {\r\n prop1: number;\r\n}\r\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"-9860349972-import { classC } from './class';\r\nexport declare class indirectClass {\r\n classC: classC;\r\n}\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8117292349-export declare function writeLog(s: string): void;\r\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-4920141752-declare function someFunc(arguments: boolean, ...rest: any[]): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"exportedModulesMap":[[3,2]],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/directuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],3,[5,[{"file":"./src/indirectuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"latestChangedDtsFile":"./src/class.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -900,10 +893,10 @@ exports.classC = classC; ] ] ], - "dtsChangeTime": 49000 + "latestChangedDtsFile": "./src/class.d.ts" }, "version": "FakeTSVersion", - "size": 2817 + "size": 2837 } @@ -1083,7 +1076,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-6712382238-export declare class classC {\r\n prop: number;\r\n}\r\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"-9860349972-import { classC } from './class';\r\nexport declare class indirectClass {\r\n classC: classC;\r\n}\r\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8117292349-export declare function writeLog(s: string): void;\r\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-4920141752-declare function someFunc(arguments: boolean, ...rest: any[]): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"exportedModulesMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[[2,1],[4,0],[3,1],[5,0]],"emitSignatures":[[2,"-3790894605-export declare class classC {\r\n prop1: number;\r\n}\r\n"],[4,"-4882119183-export {};\r\n"],[5,"-4882119183-export {};\r\n"]],"dtsChangeTime":49000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-6712382238-export declare class classC {\r\n prop: number;\r\n}\r\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"-9860349972-import { classC } from './class';\r\nexport declare class indirectClass {\r\n classC: classC;\r\n}\r\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8117292349-export declare function writeLog(s: string): void;\r\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-4920141752-declare function someFunc(arguments: boolean, ...rest: any[]): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"exportedModulesMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[[2,1],[4,0],[3,1],[5,0]],"emitSignatures":[[2,"-3790894605-export declare class classC {\r\n prop1: number;\r\n}\r\n"],[4,"-4882119183-export {};\r\n"],[5,"-4882119183-export {};\r\n"]],"latestChangedDtsFile":"./src/class.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1216,10 +1209,10 @@ exitCode:: ExitStatus.Success "-4882119183-export {};\r\n" ] ], - "dtsChangeTime": 49000 + "latestChangedDtsFile": "./src/class.d.ts" }, "version": "FakeTSVersion", - "size": 2323 + "size": 2343 } @@ -1260,12 +1253,9 @@ var classC = /** @class */ (function () { exports.classC = classC; -//// [/src/project/src/directUse.d.ts] file written with same contents -//// [/src/project/src/indirectClass.d.ts] file written with same contents //// [/src/project/src/indirectClass.js] file written with same contents -//// [/src/project/src/indirectUse.d.ts] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-6712382238-export declare class classC {\r\n prop: number;\r\n}\r\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"-9860349972-import { classC } from './class';\r\nexport declare class indirectClass {\r\n classC: classC;\r\n}\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8117292349-export declare function writeLog(s: string): void;\r\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-4920141752-declare function someFunc(arguments: boolean, ...rest: any[]): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"exportedModulesMap":[[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"dtsChangeTime":61000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-6712382238-export declare class classC {\r\n prop: number;\r\n}\r\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"-9860349972-import { classC } from './class';\r\nexport declare class indirectClass {\r\n classC: classC;\r\n}\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8117292349-export declare function writeLog(s: string): void;\r\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-4920141752-declare function someFunc(arguments: boolean, ...rest: any[]): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"exportedModulesMap":[[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"latestChangedDtsFile":"./src/class.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1360,10 +1350,10 @@ exports.classC = classC; ] ] ], - "dtsChangeTime": 61000 + "latestChangedDtsFile": "./src/class.d.ts" }, "version": "FakeTSVersion", - "size": 2200 + "size": 2220 } diff --git a/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite-discrepancies.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite-discrepancies.js index c7d4bb1444b..3447c61815e 100644 --- a/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite-discrepancies.js +++ b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite-discrepancies.js @@ -1,8 +1,8 @@ 2:: Fix error and no emit Incremental build did not emit and has .ts as signature so exports has all imported modules/referenced files Clean build always uses d.ts for signature for testing thus does not contain non exported modules/referenced files that arent needed -Clean build will not have dtsChangeTime as there was no emit and emitSignatures as undefined for files -Incremental will store the past dtsChangeTime and emitSignatures +Clean build will not have latestChangedDtsFile as there was no emit and emitSignatures as undefined for files +Incremental will store the past latestChangedDtsFile and emitSignatures TsBuild info text without affectedFilesPendingEmit:: /src/project/tsconfig.tsbuildinfo.readable.baseline.txt:: CleanBuild: { @@ -157,7 +157,7 @@ IncrementalBuild: "-4882119183-export {};\r\n" ] ], - "dtsChangeTime": "FakeTime" + "latestChangedDtsFile": "FakeFileName" }, "version": "FakeTSVersion" } diff --git a/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite.js index a5f67ba4c15..c81f84d66dc 100644 --- a/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite.js +++ b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite.js @@ -300,7 +300,7 @@ function someFunc(arguments) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-6712382238-export declare class classC {\r\n prop: number;\r\n}\r\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"-9860349972-import { classC } from './class';\r\nexport declare class indirectClass {\r\n classC: classC;\r\n}\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8117292349-export declare function writeLog(s: string): void;\r\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-4920141752-declare function someFunc(arguments: boolean, ...rest: any[]): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"exportedModulesMap":[[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"dtsChangeTime":29000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-6712382238-export declare class classC {\r\n prop: number;\r\n}\r\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"-9860349972-import { classC } from './class';\r\nexport declare class indirectClass {\r\n classC: classC;\r\n}\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8117292349-export declare function writeLog(s: string): void;\r\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-4920141752-declare function someFunc(arguments: boolean, ...rest: any[]): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"exportedModulesMap":[[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -395,10 +395,10 @@ function someFunc(arguments) { ] ] ], - "dtsChangeTime": 29000 + "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts" }, "version": "FakeTSVersion", - "size": 2200 + "size": 2248 } @@ -468,12 +468,9 @@ var classC = /** @class */ (function () { exports.classC = classC; -//// [/src/project/src/directUse.d.ts] file written with same contents -//// [/src/project/src/indirectClass.d.ts] file written with same contents //// [/src/project/src/indirectClass.js] file written with same contents -//// [/src/project/src/indirectUse.d.ts] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-3790894605-export declare class classC {\r\n prop1: number;\r\n}\r\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"-9860349972-import { classC } from './class';\r\nexport declare class indirectClass {\r\n classC: classC;\r\n}\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8117292349-export declare function writeLog(s: string): void;\r\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-4920141752-declare function someFunc(arguments: boolean, ...rest: any[]): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"exportedModulesMap":[[3,2]],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/directuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],3,[5,[{"file":"./src/indirectuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"dtsChangeTime":39000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-3790894605-export declare class classC {\r\n prop1: number;\r\n}\r\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"-9860349972-import { classC } from './class';\r\nexport declare class indirectClass {\r\n classC: classC;\r\n}\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8117292349-export declare function writeLog(s: string): void;\r\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-4920141752-declare function someFunc(arguments: boolean, ...rest: any[]): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"exportedModulesMap":[[3,2]],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/directuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],3,[5,[{"file":"./src/indirectuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"latestChangedDtsFile":"./src/class.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -612,10 +609,10 @@ exports.classC = classC; ] ] ], - "dtsChangeTime": 39000 + "latestChangedDtsFile": "./src/class.d.ts" }, "version": "FakeTSVersion", - "size": 2817 + "size": 2837 } @@ -635,7 +632,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-6712382238-export declare class classC {\r\n prop: number;\r\n}\r\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"-9860349972-import { classC } from './class';\r\nexport declare class indirectClass {\r\n classC: classC;\r\n}\r\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8117292349-export declare function writeLog(s: string): void;\r\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-4920141752-declare function someFunc(arguments: boolean, ...rest: any[]): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"exportedModulesMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[[2,1],[4,0],[3,1],[5,0]],"emitSignatures":[[2,"-3790894605-export declare class classC {\r\n prop1: number;\r\n}\r\n"],[4,"-4882119183-export {};\r\n"],[5,"-4882119183-export {};\r\n"]],"dtsChangeTime":39000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-6712382238-export declare class classC {\r\n prop: number;\r\n}\r\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"-9860349972-import { classC } from './class';\r\nexport declare class indirectClass {\r\n classC: classC;\r\n}\r\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8117292349-export declare function writeLog(s: string): void;\r\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-4920141752-declare function someFunc(arguments: boolean, ...rest: any[]): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"exportedModulesMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[[2,1],[4,0],[3,1],[5,0]],"emitSignatures":[[2,"-3790894605-export declare class classC {\r\n prop1: number;\r\n}\r\n"],[4,"-4882119183-export {};\r\n"],[5,"-4882119183-export {};\r\n"]],"latestChangedDtsFile":"./src/class.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -768,10 +765,10 @@ exitCode:: ExitStatus.Success "-4882119183-export {};\r\n" ] ], - "dtsChangeTime": 39000 + "latestChangedDtsFile": "./src/class.d.ts" }, "version": "FakeTSVersion", - "size": 2323 + "size": 2343 } @@ -812,12 +809,9 @@ var classC = /** @class */ (function () { exports.classC = classC; -//// [/src/project/src/directUse.d.ts] file written with same contents -//// [/src/project/src/indirectClass.d.ts] file written with same contents //// [/src/project/src/indirectClass.js] file written with same contents -//// [/src/project/src/indirectUse.d.ts] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-6712382238-export declare class classC {\r\n prop: number;\r\n}\r\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"-9860349972-import { classC } from './class';\r\nexport declare class indirectClass {\r\n classC: classC;\r\n}\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8117292349-export declare function writeLog(s: string): void;\r\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-4920141752-declare function someFunc(arguments: boolean, ...rest: any[]): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"exportedModulesMap":[[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"dtsChangeTime":51000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-6712382238-export declare class classC {\r\n prop: number;\r\n}\r\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"-9860349972-import { classC } from './class';\r\nexport declare class indirectClass {\r\n classC: classC;\r\n}\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-4882119183-export {};\r\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8117292349-export declare function writeLog(s: string): void;\r\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-4920141752-declare function someFunc(arguments: boolean, ...rest: any[]): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"exportedModulesMap":[[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"latestChangedDtsFile":"./src/class.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -912,9 +906,9 @@ exports.classC = classC; ] ] ], - "dtsChangeTime": 51000 + "latestChangedDtsFile": "./src/class.d.ts" }, "version": "FakeTSVersion", - "size": 2200 + "size": 2220 } diff --git a/tests/baselines/reference/tsc/incremental/tsbuildinfo-has-error.js b/tests/baselines/reference/tsc/incremental/tsbuildinfo-has-error.js new file mode 100644 index 00000000000..52eb81cd0ed --- /dev/null +++ b/tests/baselines/reference/tsc/incremental/tsbuildinfo-has-error.js @@ -0,0 +1,90 @@ +Input:: +//// [/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/src/project/main.ts] +export const x = 10; + +//// [/src/project/tsconfig.json] +{} + +//// [/src/project/tsconfig.tsbuildinfo] +Some random string + + + +Output:: +/lib/tsc --p src/project -i +exitCode:: ExitStatus.Success + + +//// [/src/project/main.js] +"use strict"; +exports.__esModule = true; +exports.x = void 0; +exports.x = 10; + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;"],"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./main.ts" + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./main.ts": { + "version": "-10726455937-export const x = 10;", + "signature": "-10726455937-export const x = 10;" + } + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./main.ts" + ] + }, + "version": "FakeTSVersion", + "size": 693 +} + + + +Change:: tsbuildinfo written has error +Input:: +//// [/src/project/tsconfig.tsbuildinfo] +Some random string{"program":{"fileNames":["../../lib/lib.d.ts","./main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;"],"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} + + + +Output:: +/lib/tsc --p src/project -i +exitCode:: ExitStatus.Success + + +//// [/src/project/main.js] file written with same contents +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;"],"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js b/tests/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js index df13cc62f0b..2c7718d34e0 100644 --- a/tests/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js +++ b/tests/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js @@ -106,7 +106,7 @@ function main() { } //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilewithsamereferenes.ts","./src/main.ts","./src/filenotfound.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12346563362-function something() { return 10; }","signature":"-2893492081-declare function something(): number;\r\n","affectsGlobalScope":true},{"version":"-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n","signature":"5108835150-/// \r\ndeclare function anotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"-21256825585-/// \n/// \nfunction main() { }\n","signature":"-7575087679-/// \r\ndeclare function main(): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[2,5]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":18000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilewithsamereferenes.ts","./src/main.ts","./src/filenotfound.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12346563362-function something() { return 10; }","signature":"-2893492081-declare function something(): number;\r\n","affectsGlobalScope":true},{"version":"-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n","signature":"5108835150-/// \r\ndeclare function anotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"-21256825585-/// \n/// \nfunction main() { }\n","signature":"-7575087679-/// \r\ndeclare function main(): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[2,5]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./src/main.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -166,10 +166,10 @@ function main() { } "./src/filepresent.ts", "./src/main.ts" ], - "dtsChangeTime": 18000 + "latestChangedDtsFile": "./src/main.d.ts" }, "version": "FakeTSVersion", - "size": 1584 + "size": 1603 } @@ -258,7 +258,6 @@ Shape signatures in builder refreshed for:: /src/project/src/main.ts (computed .d.ts) -//// [/src/project/src/main.d.ts] file written with same contents //// [/src/project/src/main.js] /// /// @@ -267,7 +266,7 @@ something(); //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilewithsamereferenes.ts","./src/main.ts","./src/filenotfound.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12346563362-function something() { return 10; }","signature":"-2893492081-declare function something(): number;\r\n","affectsGlobalScope":true},{"version":"-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n","signature":"5108835150-/// \r\ndeclare function anotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"-24702349751-/// \n/// \nfunction main() { }\nsomething();","signature":"-7575087679-/// \r\ndeclare function main(): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[2,5]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":18000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilewithsamereferenes.ts","./src/main.ts","./src/filenotfound.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12346563362-function something() { return 10; }","signature":"-2893492081-declare function something(): number;\r\n","affectsGlobalScope":true},{"version":"-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n","signature":"5108835150-/// \r\ndeclare function anotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"-24702349751-/// \n/// \nfunction main() { }\nsomething();","signature":"-7575087679-/// \r\ndeclare function main(): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[2,5]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./src/main.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -327,10 +326,10 @@ something(); "./src/filepresent.ts", "./src/main.ts" ], - "dtsChangeTime": 18000 + "latestChangedDtsFile": "./src/main.d.ts" }, "version": "FakeTSVersion", - "size": 1596 + "size": 1615 } @@ -380,7 +379,6 @@ Shape signatures in builder refreshed for:: /src/project/src/main.ts (computed .d.ts) -//// [/src/project/src/main.d.ts] file written with same contents //// [/src/project/src/main.js] /// /// @@ -390,7 +388,7 @@ something(); //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilewithsamereferenes.ts","./src/main.ts","./src/filenotfound.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12346563362-function something() { return 10; }","signature":"-2893492081-declare function something(): number;\r\n","affectsGlobalScope":true},{"version":"-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n","signature":"5108835150-/// \r\ndeclare function anotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"-20086051197-/// \n/// \nfunction main() { }\nsomething();something();","signature":"-7575087679-/// \r\ndeclare function main(): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[2,5]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":18000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilewithsamereferenes.ts","./src/main.ts","./src/filenotfound.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12346563362-function something() { return 10; }","signature":"-2893492081-declare function something(): number;\r\n","affectsGlobalScope":true},{"version":"-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n","signature":"5108835150-/// \r\ndeclare function anotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"-20086051197-/// \n/// \nfunction main() { }\nsomething();something();","signature":"-7575087679-/// \r\ndeclare function main(): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[2,5]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./src/main.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -450,10 +448,10 @@ something(); "./src/filepresent.ts", "./src/main.ts" ], - "dtsChangeTime": 18000 + "latestChangedDtsFile": "./src/main.d.ts" }, "version": "FakeTSVersion", - "size": 1608 + "size": 1627 } @@ -515,9 +513,7 @@ Shape signatures in builder refreshed for:: /src/project/src/main.ts (computed .d.ts) -//// [/src/project/src/anotherFileWithSameReferenes.d.ts] file written with same contents //// [/src/project/src/anotherFileWithSameReferenes.js] file written with same contents -//// [/src/project/src/filePresent.d.ts] file written with same contents //// [/src/project/src/filePresent.js] file written with same contents //// [/src/project/src/main.d.ts] /// @@ -544,7 +540,7 @@ function foo() { return 20; } //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilewithsamereferenes.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12346563362-function something() { return 10; }","signature":"-2893492081-declare function something(): number;\r\n","affectsGlobalScope":true},{"version":"-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n","signature":"5108835150-/// \r\ndeclare function anotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"5451387573-function foo() { return 20; }","signature":"-94503195-declare function foo(): number;\r\n","affectsGlobalScope":true},{"version":"-3581559188-/// \n/// \n/// \nfunction main() { }\nsomething();something();foo();","signature":"23846498620-/// \r\n/// \r\ndeclare function main(): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[2,6],[2,4,6]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2,5,4],"dtsChangeTime":42000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilewithsamereferenes.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12346563362-function something() { return 10; }","signature":"-2893492081-declare function something(): number;\r\n","affectsGlobalScope":true},{"version":"-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n","signature":"5108835150-/// \r\ndeclare function anotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"5451387573-function foo() { return 20; }","signature":"-94503195-declare function foo(): number;\r\n","affectsGlobalScope":true},{"version":"-3581559188-/// \n/// \n/// \nfunction main() { }\nsomething();something();foo();","signature":"23846498620-/// \r\n/// \r\ndeclare function main(): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[2,6],[2,4,6]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2,5,4],"latestChangedDtsFile":"./src/main.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -617,10 +613,10 @@ function foo() { return 20; } "./src/main.ts", "./src/newfile.ts" ], - "dtsChangeTime": 42000 + "latestChangedDtsFile": "./src/main.d.ts" }, "version": "FakeTSVersion", - "size": 1866 + "size": 1885 } @@ -677,7 +673,6 @@ declare function something2(): number; function something2() { return 20; } -//// [/src/project/src/filePresent.d.ts] file written with same contents //// [/src/project/src/filePresent.js] file written with same contents //// [/src/project/src/main.d.ts] /// @@ -687,10 +682,9 @@ declare function main(): void; //// [/src/project/src/main.js] file written with same contents -//// [/src/project/src/newFile.d.ts] file written with same contents //// [/src/project/src/newFile.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilewithsamereferenes.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12346563362-function something() { return 10; }","signature":"-2893492081-declare function something(): number;\r\n","affectsGlobalScope":true},{"version":"-9011934479-function something2() { return 20; }","signature":"-11552458975-declare function something2(): number;\r\n","affectsGlobalScope":true},{"version":"-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n","signature":"-13698947860-/// \r\n/// \r\ndeclare function anotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"5451387573-function foo() { return 20; }","signature":"-94503195-declare function foo(): number;\r\n","affectsGlobalScope":true},{"version":"-3581559188-/// \n/// \n/// \nfunction main() { }\nsomething();something();foo();","signature":"25064093018-/// \r\n/// \r\n/// \r\ndeclare function main(): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"dtsChangeTime":56000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilewithsamereferenes.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12346563362-function something() { return 10; }","signature":"-2893492081-declare function something(): number;\r\n","affectsGlobalScope":true},{"version":"-9011934479-function something2() { return 20; }","signature":"-11552458975-declare function something2(): number;\r\n","affectsGlobalScope":true},{"version":"-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n","signature":"-13698947860-/// \r\n/// \r\ndeclare function anotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"5451387573-function foo() { return 20; }","signature":"-94503195-declare function foo(): number;\r\n","affectsGlobalScope":true},{"version":"-3581559188-/// \n/// \n/// \nfunction main() { }\nsomething();something();foo();","signature":"25064093018-/// \r\n/// \r\n/// \r\ndeclare function main(): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"latestChangedDtsFile":"./src/main.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -769,10 +763,10 @@ declare function main(): void; "./src/main.ts", "./src/newfile.ts" ], - "dtsChangeTime": 56000 + "latestChangedDtsFile": "./src/main.d.ts" }, "version": "FakeTSVersion", - "size": 2125 + "size": 2144 } @@ -809,7 +803,6 @@ Shape signatures in builder refreshed for:: /src/project/src/main.ts (computed .d.ts) -//// [/src/project/src/main.d.ts] file written with same contents //// [/src/project/src/main.js] /// /// @@ -822,7 +815,7 @@ something(); //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilewithsamereferenes.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12346563362-function something() { return 10; }","signature":"-2893492081-declare function something(): number;\r\n","affectsGlobalScope":true},{"version":"-9011934479-function something2() { return 20; }","signature":"-11552458975-declare function something2(): number;\r\n","affectsGlobalScope":true},{"version":"-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n","signature":"-13698947860-/// \r\n/// \r\ndeclare function anotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"5451387573-function foo() { return 20; }","signature":"-94503195-declare function foo(): number;\r\n","affectsGlobalScope":true},{"version":"3987942182-/// \n/// \n/// \nfunction main() { }\nsomething();something();foo();something();","signature":"25064093018-/// \r\n/// \r\n/// \r\ndeclare function main(): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"dtsChangeTime":56000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilewithsamereferenes.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12346563362-function something() { return 10; }","signature":"-2893492081-declare function something(): number;\r\n","affectsGlobalScope":true},{"version":"-9011934479-function something2() { return 20; }","signature":"-11552458975-declare function something2(): number;\r\n","affectsGlobalScope":true},{"version":"-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n","signature":"-13698947860-/// \r\n/// \r\ndeclare function anotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"5451387573-function foo() { return 20; }","signature":"-94503195-declare function foo(): number;\r\n","affectsGlobalScope":true},{"version":"3987942182-/// \n/// \n/// \nfunction main() { }\nsomething();something();foo();something();","signature":"25064093018-/// \r\n/// \r\n/// \r\ndeclare function main(): void;\r\n","affectsGlobalScope":true}],"options":{"composite":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"latestChangedDtsFile":"./src/main.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -901,9 +894,9 @@ something(); "./src/main.ts", "./src/newfile.ts" ], - "dtsChangeTime": 56000 + "latestChangedDtsFile": "./src/main.d.ts" }, "version": "FakeTSVersion", - "size": 2136 + "size": 2155 } diff --git a/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project-discrepancies.js b/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project-discrepancies.js index 462e4cd1946..fe7e217ee30 100644 --- a/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project-discrepancies.js +++ b/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project-discrepancies.js @@ -23,7 +23,7 @@ CleanBuild: "composite": true, "module": 0 }, - "dtsChangeTime": "FakeTime" + "latestChangedDtsFile": "FakeFileName" }, "version": "FakeTSVersion" } @@ -53,7 +53,7 @@ IncrementalBuild: "../project1/class1.d.ts", "./class2.ts" ], - "dtsChangeTime": "FakeTime" + "latestChangedDtsFile": "FakeFileName" }, "version": "FakeTSVersion" } @@ -82,7 +82,7 @@ CleanBuild: "composite": true, "module": 0 }, - "dtsChangeTime": "FakeTime" + "latestChangedDtsFile": "FakeFileName" }, "version": "FakeTSVersion" } @@ -110,7 +110,7 @@ IncrementalBuild: "semanticDiagnosticsPerFile": [ "../../../lib/lib.d.ts" ], - "dtsChangeTime": "FakeTime" + "latestChangedDtsFile": "FakeFileName" }, "version": "FakeTSVersion" } \ No newline at end of file diff --git a/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js b/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js index 5eaa85aec82..b5f3c9b4fd6 100644 --- a/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js +++ b/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js @@ -50,7 +50,7 @@ var class2 = /** @class */ (function () { //// [/src/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2390931783-declare class class2 {\r\n}\r\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":16000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2390931783-declare class class2 {\r\n}\r\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/src/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -86,10 +86,10 @@ var class2 = /** @class */ (function () { "../project1/class1.d.ts", "./class2.ts" ], - "dtsChangeTime": 16000 + "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 909 + "size": 926 } @@ -132,10 +132,9 @@ Output:: exitCode:: ExitStatus.Success -//// [/src/projects/project2/class2.d.ts] file written with same contents //// [/src/projects/project2/class2.js] file written with same contents //// [/src/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2390931783-declare class class2 {\r\n}\r\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":16000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2390931783-declare class class2 {\r\n}\r\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/src/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -178,10 +177,10 @@ exitCode:: ExitStatus.Success "../project1/class3.d.ts", "./class2.ts" ], - "dtsChangeTime": 16000 + "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 1013 + "size": 1030 } @@ -222,10 +221,9 @@ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -//// [/src/projects/project2/class2.d.ts] file written with same contents //// [/src/projects/project2/class2.js] file written with same contents //// [/src/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2390931783-declare class class2 {\r\n}\r\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1],"dtsChangeTime":16000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2390931783-declare class class2 {\r\n}\r\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/src/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -259,10 +257,10 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated "semanticDiagnosticsPerFile": [ "../../../lib/lib.d.ts" ], - "dtsChangeTime": 16000 + "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 905 + "size": 922 } @@ -279,10 +277,9 @@ Output:: exitCode:: ExitStatus.Success -//// [/src/projects/project2/class2.d.ts] file written with same contents //// [/src/projects/project2/class2.js] file written with same contents //// [/src/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2390931783-declare class class2 {\r\n}\r\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":16000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2390931783-declare class class2 {\r\n}\r\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/src/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -325,9 +322,9 @@ exitCode:: ExitStatus.Success "../project1/class3.d.ts", "./class2.ts" ], - "dtsChangeTime": 16000 + "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 1013 + "size": 1030 } diff --git a/tests/baselines/reference/tscWatch/incremental/tsbuildinfo-has-error.js b/tests/baselines/reference/tscWatch/incremental/tsbuildinfo-has-error.js new file mode 100644 index 00000000000..8a8d25e9d7c --- /dev/null +++ b/tests/baselines/reference/tscWatch/incremental/tsbuildinfo-has-error.js @@ -0,0 +1,105 @@ +Input:: +//// [/src/project/main.ts] +export const x = 10; + +//// [/src/project/tsconfig.json] +{} + +//// [/src/project/tsconfig.tsbuildinfo] +Some random string + +//// [/a/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + + +/a/lib/tsc.js --p src/project -i -w +Output:: +>> Screen clear +[12:00:19 AM] Starting compilation in watch mode... + +[12:00:25 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/src/project/main.ts"] +Program options: {"project":"/src/project","incremental":true,"watch":true,"configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/src/project/main.ts + +Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/src/project/main.ts + +Shape signatures in builder refreshed for:: +/a/lib/lib.d.ts (used version) +/src/project/main.ts (used version) + +WatchedFiles:: +/src/project/tsconfig.json: + {"fileName":"/src/project/tsconfig.json","pollingInterval":250} +/src/project/main.ts: + {"fileName":"/src/project/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/src/project/node_modules/@types: + {"fileName":"/src/project/node_modules/@types","pollingInterval":500} + +FsWatches:: + +FsWatchesRecursive:: +/src/project: + {"directoryName":"/src/project"} + +exitCode:: ExitStatus.undefined + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../a/lib/lib.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-10726455937-export const x = 10;"],"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} + +//// [/src/project/main.js] +"use strict"; +exports.__esModule = true; +exports.x = void 0; +exports.x = 10; + + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../a/lib/lib.d.ts", + "./main.ts" + ], + "fileInfos": { + "../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./main.ts": { + "version": "-10726455937-export const x = 10;", + "signature": "-10726455937-export const x = 10;" + } + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../a/lib/lib.d.ts", + "./main.ts" + ] + }, + "version": "FakeTSVersion", + "size": 615 +} + diff --git a/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js b/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js new file mode 100644 index 00000000000..6600ce5333e --- /dev/null +++ b/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js @@ -0,0 +1,96 @@ +Input:: +//// [/user/username/projects/myproject/tsconfig.json] +{"compilerOptions":{"moduleResolution":"nodenext","outDir":"./dist","declaration":true,"declarationDir":"./types"}} + +//// [/user/username/projects/myproject/package.json] +{"name":"@this/package","type":"module","exports":{".":{"default":"./dist/index.js","types":"./types/index.d.ts"}}} + +//// [/user/username/projects/myproject/index.ts] +import * as me from "@this/package"; +me.thing() +export function thing(): void {} + + +//// [/a/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + + +/a/lib/tsc.js -w --traceResolution +Output:: +>> Screen clear +[12:00:23 AM] Starting compilation in watch mode... + +Found 'package.json' at '/user/username/projects/myproject/package.json'. +'package.json' does not have a 'typesVersions' field. +======== Resolving module '@this/package' from '/user/username/projects/myproject/index.ts'. ======== +Explicitly specified module resolution kind: 'NodeNext'. +File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. +File '/user/username/projects/myproject/index.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/index.ts', result '/user/username/projects/myproject/index.ts'. +======== Module name '@this/package' was successfully resolved to '/user/username/projects/myproject/index.ts'. ======== +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. +error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file '/user/username/projects/myproject/package.json'. Supply the `rootDir` compiler option to disambiguate. + +[12:00:34 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/index.ts"] +Program options: {"moduleResolution":99,"outDir":"/user/username/projects/myproject/dist","declaration":true,"declarationDir":"/user/username/projects/myproject/types","watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/index.ts + +No cached semantic diagnostics in the builder:: + +Shape signatures in builder refreshed for:: +/a/lib/lib.d.ts (used version) +/user/username/projects/myproject/index.ts (computed .d.ts during emit) + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/index.ts: + {"fileName":"/user/username/projects/myproject/index.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types: + {"fileName":"/user/username/projects/myproject/node_modules/@types","pollingInterval":500} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject"} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/dist/index.js] +"use strict"; +exports.__esModule = true; +exports.thing = void 0; +var me = require("@this/package"); +me.thing(); +function thing() { } +exports.thing = thing; + + +//// [/user/username/projects/myproject/types/index.d.ts] +export declare function thing(): void; + + diff --git a/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js b/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js new file mode 100644 index 00000000000..05e00afe066 --- /dev/null +++ b/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js @@ -0,0 +1,640 @@ +Input:: +//// [/user/username/projects/myproject/src/tsconfig.json] +{"compilerOptions":{"target":"es2016","module":"Node16","outDir":"../out"}} + +//// [/user/username/projects/myproject/src/fileA.ts] +import { foo } from "./fileB.mjs"; +foo(); + + +//// [/user/username/projects/myproject/project/src/fileB.mts] +export function foo() { +} + + +//// [/user/username/projects/myproject/package.json] +{"name":"app","version":"1.0.0","type":"module"} + +//// [/a/lib/lib.es2016.full.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + + +/a/lib/tsc.js --w --p src --extendedDiagnostics -traceResolution --explainFiles +Output:: +[12:00:31 AM] Starting compilation in watch mode... + +Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/tsconfig.json 2000 undefined Config file +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/fileA.ts"] + options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +File '/user/username/projects/myproject/src/package.json' does not exist. +Found 'package.json' at '/user/username/projects/myproject/package.json'. +'package.json' does not have a 'typesVersions' field. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileA.ts 250 undefined Source file +======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. +File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/user/username/projects/myproject/src/fileB.mts' does not exist. +File '/user/username/projects/myproject/src/fileB.d.mts' does not exist. +Directory '/user/username/projects/myproject/src/fileB.mjs' does not exist, skipping all lookups in it. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'JavaScript'. +File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/user/username/projects/myproject/src/fileB.mjs' does not exist. +Directory '/user/username/projects/myproject/src/fileB.mjs' does not exist, skipping all lookups in it. +======== Module name './fileB.mjs' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Failed Lookup Locations +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. +FileWatcher:: Added:: WatchInfo: /a/lib/lib.es2016.full.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Type roots +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +src/fileA.ts:1:21 - error TS2307: Cannot find module './fileB.mjs' or its corresponding type declarations. + +1 import { foo } from "./fileB.mjs"; +   ~~~~~~~~~~~~~ + +../../../../a/lib/lib.es2016.full.d.ts + Default library for target 'es2016' +src/fileA.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" +[12:00:37 AM] Found 1 error. Watching for file changes. + +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory + + +Program root files: ["/user/username/projects/myproject/src/fileA.ts"] +Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.es2016.full.d.ts +/user/username/projects/myproject/src/fileA.ts + +Semantic diagnostics in builder refreshed for:: +/a/lib/lib.es2016.full.d.ts +/user/username/projects/myproject/src/fileA.ts + +Shape signatures in builder refreshed for:: +/a/lib/lib.es2016.full.d.ts (used version) +/user/username/projects/myproject/src/filea.ts (used version) + +WatchedFiles:: +/user/username/projects/myproject/src/tsconfig.json: + {"fileName":"/user/username/projects/myproject/src/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filea.ts: + {"fileName":"/user/username/projects/myproject/src/fileA.ts","pollingInterval":250} +/a/lib/lib.es2016.full.d.ts: + {"fileName":"/a/lib/lib.es2016.full.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/package.json: + {"fileName":"/user/username/projects/myproject/src/package.json","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} +/user/username/projects/myproject/src/node_modules/@types: + {"fileName":"/user/username/projects/myproject/src/node_modules/@types","pollingInterval":500} +/user/username/projects/myproject/node_modules/@types: + {"fileName":"/user/username/projects/myproject/node_modules/@types","pollingInterval":500} + +FsWatches:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src"} + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src"} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/out/fileA.js] +import { foo } from "./fileB.mjs"; +foo(); + + + +Change:: Modify package.json file to remove type module + +Input:: +//// [/user/username/projects/myproject/package.json] +{"name":"app","version":"1.0.0"} + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +Scheduling invalidateFailedLookup +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +Scheduling update +Synchronizing program +[12:00:41 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/fileA.ts"] + options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Found 'package.json' at '/user/username/projects/myproject/package.json'. +'package.json' does not have a 'typesVersions' field. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. +======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. +File '/user/username/projects/myproject/src/fileB.mjs.ts' does not exist. +File '/user/username/projects/myproject/src/fileB.mjs.tsx' does not exist. +File '/user/username/projects/myproject/src/fileB.mjs.d.ts' does not exist. +File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/user/username/projects/myproject/src/fileB.mts' does not exist. +File '/user/username/projects/myproject/src/fileB.d.mts' does not exist. +Directory '/user/username/projects/myproject/src/fileB.mjs' does not exist, skipping all lookups in it. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'JavaScript'. +File '/user/username/projects/myproject/src/fileB.mjs.js' does not exist. +File '/user/username/projects/myproject/src/fileB.mjs.jsx' does not exist. +File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/user/username/projects/myproject/src/fileB.mjs' does not exist. +Directory '/user/username/projects/myproject/src/fileB.mjs' does not exist, skipping all lookups in it. +======== Module name './fileB.mjs' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileB.mjs 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileB.mjs 1 undefined Failed Lookup Locations +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +src/fileA.ts:1:21 - error TS2307: Cannot find module './fileB.mjs' or its corresponding type declarations. + +1 import { foo } from "./fileB.mjs"; +   ~~~~~~~~~~~~~ + +../../../../a/lib/lib.es2016.full.d.ts + Default library for target 'es2016' +src/fileA.ts + Matched by default include pattern '**/*' + File is CommonJS module because 'package.json' does not have field "type" +[12:00:45 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/fileA.ts"] +Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.es2016.full.d.ts +/user/username/projects/myproject/src/fileA.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/fileA.ts + +Shape signatures in builder refreshed for:: +/user/username/projects/myproject/src/filea.ts (computed .d.ts) + +WatchedFiles:: +/user/username/projects/myproject/src/tsconfig.json: + {"fileName":"/user/username/projects/myproject/src/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filea.ts: + {"fileName":"/user/username/projects/myproject/src/fileA.ts","pollingInterval":250} +/a/lib/lib.es2016.full.d.ts: + {"fileName":"/a/lib/lib.es2016.full.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/package.json: + {"fileName":"/user/username/projects/myproject/src/package.json","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} +/user/username/projects/myproject/src/node_modules/@types: + {"fileName":"/user/username/projects/myproject/src/node_modules/@types","pollingInterval":500} +/user/username/projects/myproject/node_modules/@types: + {"fileName":"/user/username/projects/myproject/node_modules/@types","pollingInterval":500} +/user/username/projects/myproject/src/fileb.mjs: + {"fileName":"/user/username/projects/myproject/src/fileB.mjs","pollingInterval":500} + +FsWatches:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src"} + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src"} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/out/fileA.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const fileB_mjs_1 = require("./fileB.mjs"); +(0, fileB_mjs_1.foo)(); + + + +Change:: Modify package json file to add type module + +Input:: +//// [/user/username/projects/myproject/package.json] +{"name":"app","version":"1.0.0","type":"module"} + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +Scheduling invalidateFailedLookup +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +Scheduling update +Synchronizing program +[12:00:50 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/fileA.ts"] + options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Found 'package.json' at '/user/username/projects/myproject/package.json'. +'package.json' does not have a 'typesVersions' field. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. +======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. +File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/user/username/projects/myproject/src/fileB.mts' does not exist. +File '/user/username/projects/myproject/src/fileB.d.mts' does not exist. +Directory '/user/username/projects/myproject/src/fileB.mjs' does not exist, skipping all lookups in it. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'JavaScript'. +File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/user/username/projects/myproject/src/fileB.mjs' does not exist. +Directory '/user/username/projects/myproject/src/fileB.mjs' does not exist, skipping all lookups in it. +======== Module name './fileB.mjs' was not resolved. ======== +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileB.mjs 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileB.mjs 1 undefined Failed Lookup Locations +src/fileA.ts:1:21 - error TS2307: Cannot find module './fileB.mjs' or its corresponding type declarations. + +1 import { foo } from "./fileB.mjs"; +   ~~~~~~~~~~~~~ + +../../../../a/lib/lib.es2016.full.d.ts + Default library for target 'es2016' +src/fileA.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" +[12:00:54 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/fileA.ts"] +Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.es2016.full.d.ts +/user/username/projects/myproject/src/fileA.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/fileA.ts + +Shape signatures in builder refreshed for:: +/user/username/projects/myproject/src/filea.ts (computed .d.ts) + +WatchedFiles:: +/user/username/projects/myproject/src/tsconfig.json: + {"fileName":"/user/username/projects/myproject/src/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filea.ts: + {"fileName":"/user/username/projects/myproject/src/fileA.ts","pollingInterval":250} +/a/lib/lib.es2016.full.d.ts: + {"fileName":"/a/lib/lib.es2016.full.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/package.json: + {"fileName":"/user/username/projects/myproject/src/package.json","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} +/user/username/projects/myproject/src/node_modules/@types: + {"fileName":"/user/username/projects/myproject/src/node_modules/@types","pollingInterval":500} +/user/username/projects/myproject/node_modules/@types: + {"fileName":"/user/username/projects/myproject/node_modules/@types","pollingInterval":500} + +FsWatches:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src"} + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src"} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/out/fileA.js] +import { foo } from "./fileB.mjs"; +foo(); + + + +Change:: Delete package.json + +Input:: +//// [/user/username/projects/myproject/package.json] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +Scheduling invalidateFailedLookup +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +Scheduling update +Synchronizing program +[12:00:56 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/fileA.ts"] + options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. +File '/user/username/projects/myproject/src/fileB.mjs.ts' does not exist. +File '/user/username/projects/myproject/src/fileB.mjs.tsx' does not exist. +File '/user/username/projects/myproject/src/fileB.mjs.d.ts' does not exist. +File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/user/username/projects/myproject/src/fileB.mts' does not exist. +File '/user/username/projects/myproject/src/fileB.d.mts' does not exist. +Directory '/user/username/projects/myproject/src/fileB.mjs' does not exist, skipping all lookups in it. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'JavaScript'. +File '/user/username/projects/myproject/src/fileB.mjs.js' does not exist. +File '/user/username/projects/myproject/src/fileB.mjs.jsx' does not exist. +File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/user/username/projects/myproject/src/fileB.mjs' does not exist. +Directory '/user/username/projects/myproject/src/fileB.mjs' does not exist, skipping all lookups in it. +======== Module name './fileB.mjs' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileB.mjs 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileB.mjs 1 undefined Failed Lookup Locations +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined File location affecting resolution +src/fileA.ts:1:21 - error TS2307: Cannot find module './fileB.mjs' or its corresponding type declarations. + +1 import { foo } from "./fileB.mjs"; +   ~~~~~~~~~~~~~ + +../../../../a/lib/lib.es2016.full.d.ts + Default library for target 'es2016' +src/fileA.ts + Matched by default include pattern '**/*' + File is CommonJS module because 'package.json' was not found +[12:01:00 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/fileA.ts"] +Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.es2016.full.d.ts +/user/username/projects/myproject/src/fileA.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/fileA.ts + +Shape signatures in builder refreshed for:: +/user/username/projects/myproject/src/filea.ts (computed .d.ts) + +WatchedFiles:: +/user/username/projects/myproject/src/tsconfig.json: + {"fileName":"/user/username/projects/myproject/src/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filea.ts: + {"fileName":"/user/username/projects/myproject/src/fileA.ts","pollingInterval":250} +/a/lib/lib.es2016.full.d.ts: + {"fileName":"/a/lib/lib.es2016.full.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/package.json: + {"fileName":"/user/username/projects/myproject/src/package.json","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} +/user/username/projects/myproject/src/node_modules/@types: + {"fileName":"/user/username/projects/myproject/src/node_modules/@types","pollingInterval":500} +/user/username/projects/myproject/node_modules/@types: + {"fileName":"/user/username/projects/myproject/node_modules/@types","pollingInterval":500} +/user/username/projects/myproject/src/fileb.mjs: + {"fileName":"/user/username/projects/myproject/src/fileB.mjs","pollingInterval":500} +/user/username/projects/package.json: + {"fileName":"/user/username/projects/package.json","pollingInterval":250} + +FsWatches:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src"} + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src"} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/out/fileA.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const fileB_mjs_1 = require("./fileB.mjs"); +(0, fileB_mjs_1.foo)(); + + + +Change:: Modify package json file to without type module + +Input:: +//// [/user/username/projects/myproject/package.json] +{"name":"app","version":"1.0.0"} + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 0:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +Scheduling invalidateFailedLookup +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 0:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +Scheduling update +Synchronizing program +[12:01:04 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/fileA.ts"] + options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Found 'package.json' at '/user/username/projects/myproject/package.json'. +'package.json' does not have a 'typesVersions' field. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. +Reusing resolution of module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts' of old program, it was not resolved. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined File location affecting resolution +src/fileA.ts:1:21 - error TS2307: Cannot find module './fileB.mjs' or its corresponding type declarations. + +1 import { foo } from "./fileB.mjs"; +   ~~~~~~~~~~~~~ + +../../../../a/lib/lib.es2016.full.d.ts + Default library for target 'es2016' +src/fileA.ts + Matched by default include pattern '**/*' + File is CommonJS module because 'package.json' does not have field "type" +[12:01:05 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/fileA.ts"] +Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.es2016.full.d.ts +/user/username/projects/myproject/src/fileA.ts + +Semantic diagnostics in builder refreshed for:: + +No shapes updated in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/src/tsconfig.json: + {"fileName":"/user/username/projects/myproject/src/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filea.ts: + {"fileName":"/user/username/projects/myproject/src/fileA.ts","pollingInterval":250} +/a/lib/lib.es2016.full.d.ts: + {"fileName":"/a/lib/lib.es2016.full.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/package.json: + {"fileName":"/user/username/projects/myproject/src/package.json","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} +/user/username/projects/myproject/src/node_modules/@types: + {"fileName":"/user/username/projects/myproject/src/node_modules/@types","pollingInterval":500} +/user/username/projects/myproject/node_modules/@types: + {"fileName":"/user/username/projects/myproject/node_modules/@types","pollingInterval":500} +/user/username/projects/myproject/src/fileb.mjs: + {"fileName":"/user/username/projects/myproject/src/fileB.mjs","pollingInterval":500} + +FsWatches:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src"} + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src"} + +exitCode:: ExitStatus.undefined + + +Change:: Delete package.json + +Input:: +//// [/user/username/projects/myproject/package.json] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +Scheduling invalidateFailedLookup +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +Scheduling update +Synchronizing program +[12:01:07 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/fileA.ts"] + options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Reusing resolution of module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts' of old program, it was not resolved. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined File location affecting resolution +src/fileA.ts:1:21 - error TS2307: Cannot find module './fileB.mjs' or its corresponding type declarations. + +1 import { foo } from "./fileB.mjs"; +   ~~~~~~~~~~~~~ + +../../../../a/lib/lib.es2016.full.d.ts + Default library for target 'es2016' +src/fileA.ts + Matched by default include pattern '**/*' + File is CommonJS module because 'package.json' was not found +[12:01:08 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/fileA.ts"] +Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.es2016.full.d.ts +/user/username/projects/myproject/src/fileA.ts + +Semantic diagnostics in builder refreshed for:: + +No shapes updated in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/src/tsconfig.json: + {"fileName":"/user/username/projects/myproject/src/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filea.ts: + {"fileName":"/user/username/projects/myproject/src/fileA.ts","pollingInterval":250} +/a/lib/lib.es2016.full.d.ts: + {"fileName":"/a/lib/lib.es2016.full.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/package.json: + {"fileName":"/user/username/projects/myproject/src/package.json","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} +/user/username/projects/myproject/src/node_modules/@types: + {"fileName":"/user/username/projects/myproject/src/node_modules/@types","pollingInterval":500} +/user/username/projects/myproject/node_modules/@types: + {"fileName":"/user/username/projects/myproject/node_modules/@types","pollingInterval":500} +/user/username/projects/myproject/src/fileb.mjs: + {"fileName":"/user/username/projects/myproject/src/fileB.mjs","pollingInterval":500} +/user/username/projects/package.json: + {"fileName":"/user/username/projects/package.json","pollingInterval":250} + +FsWatches:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src"} + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src"} + +exitCode:: ExitStatus.undefined + diff --git a/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited.js b/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited.js new file mode 100644 index 00000000000..08d9d945361 --- /dev/null +++ b/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited.js @@ -0,0 +1,669 @@ +Input:: +//// [/user/username/projects/myproject/src/tsconfig.json] +{"compilerOptions":{"target":"es2016","module":"Node16","outDir":"../out"}} + +//// [/user/username/projects/myproject/src/fileA.ts] +import { foo } from "./fileB.mjs"; +foo(); + + +//// [/user/username/projects/myproject/project/src/fileB.mts] +export function foo() { +} + + +//// [/user/username/projects/myproject/package.json] +{"name":"app","version":"1.0.0"} + +//// [/a/lib/lib.es2016.full.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + + +/a/lib/tsc.js --w --p src --extendedDiagnostics -traceResolution --explainFiles +Output:: +[12:00:31 AM] Starting compilation in watch mode... + +Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/tsconfig.json 2000 undefined Config file +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/fileA.ts"] + options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +File '/user/username/projects/myproject/src/package.json' does not exist. +Found 'package.json' at '/user/username/projects/myproject/package.json'. +'package.json' does not have a 'typesVersions' field. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileA.ts 250 undefined Source file +======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. +File '/user/username/projects/myproject/src/fileB.mjs.ts' does not exist. +File '/user/username/projects/myproject/src/fileB.mjs.tsx' does not exist. +File '/user/username/projects/myproject/src/fileB.mjs.d.ts' does not exist. +File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/user/username/projects/myproject/src/fileB.mts' does not exist. +File '/user/username/projects/myproject/src/fileB.d.mts' does not exist. +Directory '/user/username/projects/myproject/src/fileB.mjs' does not exist, skipping all lookups in it. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'JavaScript'. +File '/user/username/projects/myproject/src/fileB.mjs.js' does not exist. +File '/user/username/projects/myproject/src/fileB.mjs.jsx' does not exist. +File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/user/username/projects/myproject/src/fileB.mjs' does not exist. +Directory '/user/username/projects/myproject/src/fileB.mjs' does not exist, skipping all lookups in it. +======== Module name './fileB.mjs' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileB.mjs 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileB.mjs 1 undefined Failed Lookup Locations +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Failed Lookup Locations +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. +FileWatcher:: Added:: WatchInfo: /a/lib/lib.es2016.full.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Type roots +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +src/fileA.ts:1:21 - error TS2307: Cannot find module './fileB.mjs' or its corresponding type declarations. + +1 import { foo } from "./fileB.mjs"; +   ~~~~~~~~~~~~~ + +../../../../a/lib/lib.es2016.full.d.ts + Default library for target 'es2016' +src/fileA.ts + Matched by default include pattern '**/*' + File is CommonJS module because 'package.json' does not have field "type" +[12:00:37 AM] Found 1 error. Watching for file changes. + +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory + + +Program root files: ["/user/username/projects/myproject/src/fileA.ts"] +Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.es2016.full.d.ts +/user/username/projects/myproject/src/fileA.ts + +Semantic diagnostics in builder refreshed for:: +/a/lib/lib.es2016.full.d.ts +/user/username/projects/myproject/src/fileA.ts + +Shape signatures in builder refreshed for:: +/a/lib/lib.es2016.full.d.ts (used version) +/user/username/projects/myproject/src/filea.ts (used version) + +WatchedFiles:: +/user/username/projects/myproject/src/tsconfig.json: + {"fileName":"/user/username/projects/myproject/src/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filea.ts: + {"fileName":"/user/username/projects/myproject/src/fileA.ts","pollingInterval":250} +/user/username/projects/myproject/src/fileb.mjs: + {"fileName":"/user/username/projects/myproject/src/fileB.mjs","pollingInterval":500} +/a/lib/lib.es2016.full.d.ts: + {"fileName":"/a/lib/lib.es2016.full.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/package.json: + {"fileName":"/user/username/projects/myproject/src/package.json","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} +/user/username/projects/myproject/src/node_modules/@types: + {"fileName":"/user/username/projects/myproject/src/node_modules/@types","pollingInterval":500} +/user/username/projects/myproject/node_modules/@types: + {"fileName":"/user/username/projects/myproject/node_modules/@types","pollingInterval":500} + +FsWatches:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src"} + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src"} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/out/fileA.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const fileB_mjs_1 = require("./fileB.mjs"); +(0, fileB_mjs_1.foo)(); + + + +Change:: Modify package json file to add type module + +Input:: +//// [/user/username/projects/myproject/package.json] +{"name":"app","version":"1.0.0","type":"module"} + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +Scheduling invalidateFailedLookup +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +Scheduling update +Synchronizing program +[12:00:41 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/fileA.ts"] + options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Found 'package.json' at '/user/username/projects/myproject/package.json'. +'package.json' does not have a 'typesVersions' field. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. +======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. +File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/user/username/projects/myproject/src/fileB.mts' does not exist. +File '/user/username/projects/myproject/src/fileB.d.mts' does not exist. +Directory '/user/username/projects/myproject/src/fileB.mjs' does not exist, skipping all lookups in it. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'JavaScript'. +File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/user/username/projects/myproject/src/fileB.mjs' does not exist. +Directory '/user/username/projects/myproject/src/fileB.mjs' does not exist, skipping all lookups in it. +======== Module name './fileB.mjs' was not resolved. ======== +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileB.mjs 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileB.mjs 1 undefined Failed Lookup Locations +src/fileA.ts:1:21 - error TS2307: Cannot find module './fileB.mjs' or its corresponding type declarations. + +1 import { foo } from "./fileB.mjs"; +   ~~~~~~~~~~~~~ + +../../../../a/lib/lib.es2016.full.d.ts + Default library for target 'es2016' +src/fileA.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" +[12:00:45 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/fileA.ts"] +Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.es2016.full.d.ts +/user/username/projects/myproject/src/fileA.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/fileA.ts + +Shape signatures in builder refreshed for:: +/user/username/projects/myproject/src/filea.ts (computed .d.ts) + +WatchedFiles:: +/user/username/projects/myproject/src/tsconfig.json: + {"fileName":"/user/username/projects/myproject/src/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filea.ts: + {"fileName":"/user/username/projects/myproject/src/fileA.ts","pollingInterval":250} +/a/lib/lib.es2016.full.d.ts: + {"fileName":"/a/lib/lib.es2016.full.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/package.json: + {"fileName":"/user/username/projects/myproject/src/package.json","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} +/user/username/projects/myproject/src/node_modules/@types: + {"fileName":"/user/username/projects/myproject/src/node_modules/@types","pollingInterval":500} +/user/username/projects/myproject/node_modules/@types: + {"fileName":"/user/username/projects/myproject/node_modules/@types","pollingInterval":500} + +FsWatches:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src"} + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src"} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/out/fileA.js] +import { foo } from "./fileB.mjs"; +foo(); + + + +Change:: Modify package.json file to remove type module + +Input:: +//// [/user/username/projects/myproject/package.json] +{"name":"app","version":"1.0.0"} + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +Scheduling invalidateFailedLookup +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +Scheduling update +Synchronizing program +[12:00:50 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/fileA.ts"] + options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Found 'package.json' at '/user/username/projects/myproject/package.json'. +'package.json' does not have a 'typesVersions' field. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. +======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. +File '/user/username/projects/myproject/src/fileB.mjs.ts' does not exist. +File '/user/username/projects/myproject/src/fileB.mjs.tsx' does not exist. +File '/user/username/projects/myproject/src/fileB.mjs.d.ts' does not exist. +File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/user/username/projects/myproject/src/fileB.mts' does not exist. +File '/user/username/projects/myproject/src/fileB.d.mts' does not exist. +Directory '/user/username/projects/myproject/src/fileB.mjs' does not exist, skipping all lookups in it. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'JavaScript'. +File '/user/username/projects/myproject/src/fileB.mjs.js' does not exist. +File '/user/username/projects/myproject/src/fileB.mjs.jsx' does not exist. +File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/user/username/projects/myproject/src/fileB.mjs' does not exist. +Directory '/user/username/projects/myproject/src/fileB.mjs' does not exist, skipping all lookups in it. +======== Module name './fileB.mjs' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileB.mjs 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileB.mjs 1 undefined Failed Lookup Locations +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +src/fileA.ts:1:21 - error TS2307: Cannot find module './fileB.mjs' or its corresponding type declarations. + +1 import { foo } from "./fileB.mjs"; +   ~~~~~~~~~~~~~ + +../../../../a/lib/lib.es2016.full.d.ts + Default library for target 'es2016' +src/fileA.ts + Matched by default include pattern '**/*' + File is CommonJS module because 'package.json' does not have field "type" +[12:00:54 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/fileA.ts"] +Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.es2016.full.d.ts +/user/username/projects/myproject/src/fileA.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/fileA.ts + +Shape signatures in builder refreshed for:: +/user/username/projects/myproject/src/filea.ts (computed .d.ts) + +WatchedFiles:: +/user/username/projects/myproject/src/tsconfig.json: + {"fileName":"/user/username/projects/myproject/src/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filea.ts: + {"fileName":"/user/username/projects/myproject/src/fileA.ts","pollingInterval":250} +/a/lib/lib.es2016.full.d.ts: + {"fileName":"/a/lib/lib.es2016.full.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/package.json: + {"fileName":"/user/username/projects/myproject/src/package.json","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} +/user/username/projects/myproject/src/node_modules/@types: + {"fileName":"/user/username/projects/myproject/src/node_modules/@types","pollingInterval":500} +/user/username/projects/myproject/node_modules/@types: + {"fileName":"/user/username/projects/myproject/node_modules/@types","pollingInterval":500} +/user/username/projects/myproject/src/fileb.mjs: + {"fileName":"/user/username/projects/myproject/src/fileB.mjs","pollingInterval":500} + +FsWatches:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src"} + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src"} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/out/fileA.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const fileB_mjs_1 = require("./fileB.mjs"); +(0, fileB_mjs_1.foo)(); + + + +Change:: Delete package.json + +Input:: +//// [/user/username/projects/myproject/package.json] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +Scheduling invalidateFailedLookup +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +Scheduling update +Synchronizing program +[12:00:56 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/fileA.ts"] + options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Reusing resolution of module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts' of old program, it was not resolved. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined File location affecting resolution +src/fileA.ts:1:21 - error TS2307: Cannot find module './fileB.mjs' or its corresponding type declarations. + +1 import { foo } from "./fileB.mjs"; +   ~~~~~~~~~~~~~ + +../../../../a/lib/lib.es2016.full.d.ts + Default library for target 'es2016' +src/fileA.ts + Matched by default include pattern '**/*' + File is CommonJS module because 'package.json' was not found +[12:00:57 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/fileA.ts"] +Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.es2016.full.d.ts +/user/username/projects/myproject/src/fileA.ts + +Semantic diagnostics in builder refreshed for:: + +No shapes updated in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/src/tsconfig.json: + {"fileName":"/user/username/projects/myproject/src/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filea.ts: + {"fileName":"/user/username/projects/myproject/src/fileA.ts","pollingInterval":250} +/a/lib/lib.es2016.full.d.ts: + {"fileName":"/a/lib/lib.es2016.full.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/package.json: + {"fileName":"/user/username/projects/myproject/src/package.json","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} +/user/username/projects/myproject/src/node_modules/@types: + {"fileName":"/user/username/projects/myproject/src/node_modules/@types","pollingInterval":500} +/user/username/projects/myproject/node_modules/@types: + {"fileName":"/user/username/projects/myproject/node_modules/@types","pollingInterval":500} +/user/username/projects/myproject/src/fileb.mjs: + {"fileName":"/user/username/projects/myproject/src/fileB.mjs","pollingInterval":500} +/user/username/projects/package.json: + {"fileName":"/user/username/projects/package.json","pollingInterval":250} + +FsWatches:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src"} + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src"} + +exitCode:: ExitStatus.undefined + + +Change:: Modify package json file to add type module + +Input:: +//// [/user/username/projects/myproject/package.json] +{"name":"app","version":"1.0.0","type":"module"} + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 0:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +Scheduling invalidateFailedLookup +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 0:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +Scheduling update +Synchronizing program +[12:01:01 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/fileA.ts"] + options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Found 'package.json' at '/user/username/projects/myproject/package.json'. +'package.json' does not have a 'typesVersions' field. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. +======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. +File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/user/username/projects/myproject/src/fileB.mts' does not exist. +File '/user/username/projects/myproject/src/fileB.d.mts' does not exist. +Directory '/user/username/projects/myproject/src/fileB.mjs' does not exist, skipping all lookups in it. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'JavaScript'. +File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/user/username/projects/myproject/src/fileB.mjs' does not exist. +Directory '/user/username/projects/myproject/src/fileB.mjs' does not exist, skipping all lookups in it. +======== Module name './fileB.mjs' was not resolved. ======== +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileB.mjs 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileB.mjs 1 undefined Failed Lookup Locations +FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined File location affecting resolution +src/fileA.ts:1:21 - error TS2307: Cannot find module './fileB.mjs' or its corresponding type declarations. + +1 import { foo } from "./fileB.mjs"; +   ~~~~~~~~~~~~~ + +../../../../a/lib/lib.es2016.full.d.ts + Default library for target 'es2016' +src/fileA.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" +[12:01:05 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/fileA.ts"] +Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.es2016.full.d.ts +/user/username/projects/myproject/src/fileA.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/fileA.ts + +Shape signatures in builder refreshed for:: +/user/username/projects/myproject/src/filea.ts (computed .d.ts) + +WatchedFiles:: +/user/username/projects/myproject/src/tsconfig.json: + {"fileName":"/user/username/projects/myproject/src/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filea.ts: + {"fileName":"/user/username/projects/myproject/src/fileA.ts","pollingInterval":250} +/a/lib/lib.es2016.full.d.ts: + {"fileName":"/a/lib/lib.es2016.full.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/package.json: + {"fileName":"/user/username/projects/myproject/src/package.json","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} +/user/username/projects/myproject/src/node_modules/@types: + {"fileName":"/user/username/projects/myproject/src/node_modules/@types","pollingInterval":500} +/user/username/projects/myproject/node_modules/@types: + {"fileName":"/user/username/projects/myproject/node_modules/@types","pollingInterval":500} + +FsWatches:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src"} + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src"} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/out/fileA.js] +import { foo } from "./fileB.mjs"; +foo(); + + + +Change:: Delete package.json + +Input:: +//// [/user/username/projects/myproject/package.json] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +Scheduling invalidateFailedLookup +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +Scheduling update +Synchronizing program +[12:01:07 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/fileA.ts"] + options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. +File '/user/username/projects/myproject/src/fileB.mjs.ts' does not exist. +File '/user/username/projects/myproject/src/fileB.mjs.tsx' does not exist. +File '/user/username/projects/myproject/src/fileB.mjs.d.ts' does not exist. +File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/user/username/projects/myproject/src/fileB.mts' does not exist. +File '/user/username/projects/myproject/src/fileB.d.mts' does not exist. +Directory '/user/username/projects/myproject/src/fileB.mjs' does not exist, skipping all lookups in it. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'JavaScript'. +File '/user/username/projects/myproject/src/fileB.mjs.js' does not exist. +File '/user/username/projects/myproject/src/fileB.mjs.jsx' does not exist. +File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/user/username/projects/myproject/src/fileB.mjs' does not exist. +Directory '/user/username/projects/myproject/src/fileB.mjs' does not exist, skipping all lookups in it. +======== Module name './fileB.mjs' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileB.mjs 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileB.mjs 1 undefined Failed Lookup Locations +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined File location affecting resolution +src/fileA.ts:1:21 - error TS2307: Cannot find module './fileB.mjs' or its corresponding type declarations. + +1 import { foo } from "./fileB.mjs"; +   ~~~~~~~~~~~~~ + +../../../../a/lib/lib.es2016.full.d.ts + Default library for target 'es2016' +src/fileA.ts + Matched by default include pattern '**/*' + File is CommonJS module because 'package.json' was not found +[12:01:11 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/fileA.ts"] +Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.es2016.full.d.ts +/user/username/projects/myproject/src/fileA.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/fileA.ts + +Shape signatures in builder refreshed for:: +/user/username/projects/myproject/src/filea.ts (computed .d.ts) + +WatchedFiles:: +/user/username/projects/myproject/src/tsconfig.json: + {"fileName":"/user/username/projects/myproject/src/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filea.ts: + {"fileName":"/user/username/projects/myproject/src/fileA.ts","pollingInterval":250} +/a/lib/lib.es2016.full.d.ts: + {"fileName":"/a/lib/lib.es2016.full.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/package.json: + {"fileName":"/user/username/projects/myproject/src/package.json","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} +/user/username/projects/myproject/src/node_modules/@types: + {"fileName":"/user/username/projects/myproject/src/node_modules/@types","pollingInterval":500} +/user/username/projects/myproject/node_modules/@types: + {"fileName":"/user/username/projects/myproject/node_modules/@types","pollingInterval":500} +/user/username/projects/myproject/src/fileb.mjs: + {"fileName":"/user/username/projects/myproject/src/fileB.mjs","pollingInterval":500} +/user/username/projects/package.json: + {"fileName":"/user/username/projects/package.json","pollingInterval":250} + +FsWatches:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src"} + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src"} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/out/fileA.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const fileB_mjs_1 = require("./fileB.mjs"); +(0, fileB_mjs_1.foo)(); + + diff --git a/tests/baselines/reference/tscWatch/programUpdates/correctly-parses-wild-card-directories-from-implicit-glob-when-two-keys-differ-only-in-directory-seperator.js b/tests/baselines/reference/tscWatch/programUpdates/correctly-parses-wild-card-directories-from-implicit-glob-when-two-keys-differ-only-in-directory-seperator.js index 9e4f8f4f119..524d0fbf0fd 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/correctly-parses-wild-card-directories-from-implicit-glob-when-two-keys-differ-only-in-directory-seperator.js +++ b/tests/baselines/reference/tscWatch/programUpdates/correctly-parses-wild-card-directories-from-implicit-glob-when-two-keys-differ-only-in-directory-seperator.js @@ -37,7 +37,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/f2.ts 250 und FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots -[12:00:35 AM] Found 0 errors. Watching for file changes. +[12:00:34 AM] Found 0 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory @@ -104,7 +104,7 @@ export declare const y = 1; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./f1.ts","./f2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10906998252-export const x = 1","signature":"-7495133367-export declare const x = 1;\n"},{"version":"-10905812331-export const y = 1","signature":"-6203665398-export declare const y = 1;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":32000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./f1.ts","./f2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10906998252-export const x = 1","signature":"-7495133367-export declare const x = 1;\n"},{"version":"-10905812331-export const y = 1","signature":"-6203665398-export declare const y = 1;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./f2.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -139,10 +139,10 @@ export declare const y = 1; "./f1.ts", "./f2.ts" ], - "dtsChangeTime": 32000 + "latestChangedDtsFile": "./f2.d.ts" }, "version": "FakeTSVersion", - "size": 850 + "size": 863 } @@ -159,7 +159,7 @@ Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/new-file.ts :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory Reloading new file names and options Synchronizing program -[12:00:40 AM] File change detected. Starting incremental compilation... +[12:00:39 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/user/username/projects/myproject/f1.ts","/user/username/projects/myproject/f2.ts","/user/username/projects/myproject/new-file.ts"] @@ -171,7 +171,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/new-file.d.ts :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/new-file.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/new-file.d.ts :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory -[12:00:49 AM] Found 0 errors. Watching for file changes. +[12:00:47 AM] Found 0 errors. Watching for file changes. @@ -213,7 +213,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./f1.ts","./f2.ts","./new-file.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10906998252-export const x = 1","signature":"-7495133367-export declare const x = 1;\n"},{"version":"-10905812331-export const y = 1","signature":"-6203665398-export declare const y = 1;\n"},{"version":"-11960320495-export const z = 1;","signature":"-9207164725-export declare const z = 1;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":45250},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./f1.ts","./f2.ts","./new-file.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10906998252-export const x = 1","signature":"-7495133367-export declare const x = 1;\n"},{"version":"-10905812331-export const y = 1","signature":"-6203665398-export declare const y = 1;\n"},{"version":"-11960320495-export const z = 1;","signature":"-9207164725-export declare const z = 1;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./new-file.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -254,10 +254,10 @@ exitCode:: ExitStatus.undefined "./f2.ts", "./new-file.ts" ], - "dtsChangeTime": 45250 + "latestChangedDtsFile": "./new-file.d.ts" }, "version": "FakeTSVersion", - "size": 971 + "size": 990 } //// [/user/username/projects/myproject/new-file.js] @@ -284,12 +284,12 @@ FileWatcher:: Triggered with /user/username/projects/myproject/f1.ts 1:: WatchIn Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/f1.ts 1:: WatchInfo: /user/username/projects/myproject/f1.ts 250 undefined Source file Synchronizing program -[12:00:55 AM] File change detected. Starting incremental compilation... +[12:00:53 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/user/username/projects/myproject/f1.ts","/user/username/projects/myproject/f2.ts","/user/username/projects/myproject/new-file.ts"] options: {"composite":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -[12:01:05 AM] Found 0 errors. Watching for file changes. +[12:01:00 AM] Found 0 errors. Watching for file changes. @@ -331,9 +331,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/f1.js] file written with same contents -//// [/user/username/projects/myproject/f1.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./new-file.ts","./f1.ts","./f2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-11960320495-export const z = 1;","signature":"-9207164725-export declare const z = 1;\n"},{"version":"1363236232-import { z } from \"./new-file\";export const x = 1","signature":"-7495133367-export declare const x = 1;\n"},{"version":"-10905812331-export const y = 1","signature":"-6203665398-export declare const y = 1;\n"}],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,4,2],"dtsChangeTime":45250},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./new-file.ts","./f1.ts","./f2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-11960320495-export const z = 1;","signature":"-9207164725-export declare const z = 1;\n"},{"version":"1363236232-import { z } from \"./new-file\";export const x = 1","signature":"-7495133367-export declare const x = 1;\n"},{"version":"-10905812331-export const y = 1","signature":"-6203665398-export declare const y = 1;\n"}],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,4,2],"latestChangedDtsFile":"./new-file.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -383,9 +382,9 @@ exitCode:: ExitStatus.undefined "./f2.ts", "./new-file.ts" ], - "dtsChangeTime": 45250 + "latestChangedDtsFile": "./new-file.d.ts" }, "version": "FakeTSVersion", - "size": 1027 + "size": 1046 } diff --git a/tests/baselines/reference/tscWatch/programUpdates/when-new-file-is-added-to-the-referenced-project.js b/tests/baselines/reference/tscWatch/programUpdates/when-new-file-is-added-to-the-referenced-project.js index bcb10685e4c..c6e64a7b34d 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/when-new-file-is-added-to-the-referenced-project.js +++ b/tests/baselines/reference/tscWatch/programUpdates/when-new-file-is-added-to-the-referenced-project.js @@ -52,7 +52,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots -[12:00:41 AM] Found 0 errors. Watching for file changes. +[12:00:40 AM] Found 0 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project2 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project2 1 undefined Wild card directory @@ -118,7 +118,7 @@ declare class class2 { //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":38000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -154,10 +154,10 @@ declare class class2 { "../project1/class1.d.ts", "./class2.ts" ], - "dtsChangeTime": 38000 + "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 836 + "size": 853 } @@ -174,7 +174,7 @@ Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/projects/project1/class3.ts :: WatchInfo: /user/username/projects/myproject/projects/project1 1 undefined Wild card directory of referenced project Synchronizing program Reloading new file names and options -[12:00:46 AM] File change detected. Starting incremental compilation... +[12:00:45 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/user/username/projects/myproject/projects/project2/class2.ts"] @@ -190,7 +190,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj    ~~~~~~~~~~~~~~~~~~~~~~ File is output from referenced project specified here. -[12:00:47 AM] Found 1 error. Watching for file changes. +[12:00:46 AM] Found 1 error. Watching for file changes. @@ -253,14 +253,14 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/projects/pro Project: /user/username/projects/myproject/projects/project1/tsconfig.json Detected output file: /user/username/projects/myproject/projects/project1/class3.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/projects/project1/class3.d.ts :: WatchInfo: /user/username/projects/myproject/projects/project1 1 undefined Wild card directory of referenced project Synchronizing program -[12:00:50 AM] File change detected. Starting incremental compilation... +[12:00:49 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/user/username/projects/myproject/projects/project2/class2.ts"] options: {"module":0,"composite":true,"watch":true,"project":"/user/username/projects/myproject/projects/project2/tsconfig.json","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} projectReferences: [{"path":"/user/username/projects/myproject/projects/project1","originalPath":"../project1"}] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project1/class3.d.ts 250 undefined Source file -[12:01:00 AM] Found 0 errors. Watching for file changes. +[12:00:56 AM] Found 0 errors. Watching for file changes. @@ -315,9 +315,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/projects/project2/class2.js] file written with same contents -//// [/user/username/projects/myproject/projects/project2/class2.d.ts] file written with same contents //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":38000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -360,10 +359,10 @@ exitCode:: ExitStatus.undefined "../project1/class3.d.ts", "./class2.ts" ], - "dtsChangeTime": 38000 + "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 940 + "size": 957 } @@ -427,7 +426,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/projects/pro Project: /user/username/projects/myproject/projects/project1/tsconfig.json Detected output file: /user/username/projects/myproject/projects/project1/class3.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/projects/project1/class3.d.ts :: WatchInfo: /user/username/projects/myproject/projects/project1 1 undefined Wild card directory of referenced project Synchronizing program -[12:01:09 AM] File change detected. Starting incremental compilation... +[12:01:05 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/user/username/projects/myproject/projects/project2/class2.ts"] @@ -444,7 +443,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj    ~~~~~~~~~~~~~~~~~~~~~~ File is output from referenced project specified here. -[12:01:19 AM] Found 1 error. Watching for file changes. +[12:01:12 AM] Found 1 error. Watching for file changes. @@ -495,9 +494,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/projects/project2/class2.js] file written with same contents -//// [/user/username/projects/myproject/projects/project2/class2.d.ts] file written with same contents //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1],"dtsChangeTime":38000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -531,10 +529,10 @@ exitCode:: ExitStatus.undefined "semanticDiagnosticsPerFile": [ "../../../../../../a/lib/lib.d.ts" ], - "dtsChangeTime": 38000 + "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 832 + "size": 849 } @@ -554,14 +552,14 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/projects/pro Project: /user/username/projects/myproject/projects/project1/tsconfig.json Detected output file: /user/username/projects/myproject/projects/project1/class3.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/projects/project1/class3.d.ts :: WatchInfo: /user/username/projects/myproject/projects/project1 1 undefined Wild card directory of referenced project Synchronizing program -[12:01:26 AM] File change detected. Starting incremental compilation... +[12:01:19 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/user/username/projects/myproject/projects/project2/class2.ts"] options: {"module":0,"composite":true,"watch":true,"project":"/user/username/projects/myproject/projects/project2/tsconfig.json","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} projectReferences: [{"path":"/user/username/projects/myproject/projects/project1","originalPath":"../project1"}] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project1/class3.d.ts 250 undefined Source file -[12:01:36 AM] Found 0 errors. Watching for file changes. +[12:01:26 AM] Found 0 errors. Watching for file changes. @@ -616,9 +614,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/projects/project2/class2.js] file written with same contents -//// [/user/username/projects/myproject/projects/project2/class2.d.ts] file written with same contents //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":38000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -661,9 +658,9 @@ exitCode:: ExitStatus.undefined "../project1/class3.d.ts", "./class2.ts" ], - "dtsChangeTime": 38000 + "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 940 + "size": 957 } diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/on-sample-project.js b/tests/baselines/reference/tscWatch/projectsWithReferences/on-sample-project.js index 3a856dc41fc..674bec0450f 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/on-sample-project.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/on-sample-project.js @@ -121,7 +121,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":39000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -166,10 +166,10 @@ export declare function multiply(a: number, b: number): number; "./index.ts", "./some_decl.d.ts" ], - "dtsChangeTime": 39000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1377 + "size": 1393 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -195,7 +195,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":57000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -257,10 +257,10 @@ export declare const m: typeof mod; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 57000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1494 + "size": 1510 } //// [/user/username/projects/sample1/tests/index.js] @@ -281,7 +281,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":69000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -356,19 +356,19 @@ export declare const m: typeof mod; "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 69000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1639 + "size": 1655 } /a/lib/tsc.js -w -p tests Output:: >> Screen clear -[12:01:19 AM] Starting compilation in watch mode... +[12:01:16 AM] Starting compilation in watch mode... -[12:01:20 AM] Found 0 errors. Watching for file changes. +[12:01:17 AM] Found 0 errors. Watching for file changes. @@ -468,9 +468,8 @@ exports.m = mod; function foo() { } //# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.d.ts] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-4111660551-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() { }","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":57000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-4111660551-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() { }","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -532,54 +531,14 @@ function foo() { } "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 57000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1528 } Output:: ->> Screen clear -[12:01:39 AM] File change detected. Starting incremental compilation... - -[12:01:40 AM] Found 0 errors. Watching for file changes. - - - -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"project":"/user/username/projects/sample1/tests","configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} -Program structureReused: Completely -Program files:: -/a/lib/lib.d.ts -/user/username/projects/sample1/core/index.d.ts -/user/username/projects/sample1/core/anotherModule.d.ts -/user/username/projects/sample1/logic/index.d.ts -/user/username/projects/sample1/tests/index.ts - -Semantic diagnostics in builder refreshed for:: - -No shapes updated in the builder:: - -Dependencies for:: -/a/lib/lib.d.ts: - /a/lib/lib.d.ts - /user/username/projects/sample1/core/index.d.ts - /user/username/projects/sample1/core/anotherModule.d.ts - /user/username/projects/sample1/logic/index.d.ts - /user/username/projects/sample1/tests/index.ts -/user/username/projects/sample1/core/index.d.ts: - /user/username/projects/sample1/core/index.d.ts -/user/username/projects/sample1/core/anotherModule.d.ts: - /user/username/projects/sample1/core/anotherModule.d.ts -/user/username/projects/sample1/logic/index.d.ts: - /user/username/projects/sample1/logic/index.d.ts - /user/username/projects/sample1/core/anotherModule.d.ts -/user/username/projects/sample1/tests/index.ts: - /user/username/projects/sample1/tests/index.ts - /user/username/projects/sample1/core/anotherModule.d.ts - /user/username/projects/sample1/logic/index.d.ts - /user/username/projects/sample1/core/index.d.ts WatchedFiles:: /user/username/projects/sample1/tests/tsconfig.json: @@ -653,7 +612,7 @@ export declare function gfoo(): void; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-380817803-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() { }export function gfoo() { }","signature":"-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":103000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-380817803-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() { }export function gfoo() { }","signature":"-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -715,18 +674,18 @@ export declare function gfoo(): void; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 103000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1578 + "size": 1593 } Output:: >> Screen clear -[12:02:00 AM] File change detected. Starting incremental compilation... +[12:01:51 AM] File change detected. Starting incremental compilation... -[12:02:10 AM] Found 0 errors. Watching for file changes. +[12:01:58 AM] Found 0 errors. Watching for file changes. @@ -801,9 +760,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/tests/index.js] file written with same contents -//// [/user/username/projects/sample1/tests/index.d.ts] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":69000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -878,10 +836,10 @@ exitCode:: ExitStatus.undefined "../logic/index.d.ts", "./index.ts" ], - "dtsChangeTime": 69000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1679 + "size": 1695 } @@ -908,7 +866,7 @@ exports.gfoo = gfoo; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-380817803-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() { }export function gfoo() { }","signature":"-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n"}],"options":{"composite":true,"declaration":true,"declarationDir":"./decls"},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":137000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-380817803-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() { }export function gfoo() { }","signature":"-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n"}],"options":{"composite":true,"declaration":true,"declarationDir":"./decls"},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./decls/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -969,10 +927,10 @@ exports.gfoo = gfoo; "../core/index.d.ts", "./index.ts" ], - "dtsChangeTime": 137000 + "latestChangedDtsFile": "./decls/index.d.ts" }, "version": "FakeTSVersion", - "size": 1561 + "size": 1582 } //// [/user/username/projects/sample1/logic/decls/index.d.ts] @@ -985,9 +943,9 @@ export declare function gfoo(): void; Output:: >> Screen clear -[12:02:33 AM] File change detected. Starting incremental compilation... +[12:02:20 AM] File change detected. Starting incremental compilation... -[12:02:43 AM] Found 0 errors. Watching for file changes. +[12:02:27 AM] Found 0 errors. Watching for file changes. @@ -1062,9 +1020,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/tests/index.js] file written with same contents -//// [/user/username/projects/sample1/tests/index.d.ts] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/decls/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"dtsChangeTime":69000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/decls/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1139,9 +1096,9 @@ exitCode:: ExitStatus.undefined "../logic/decls/index.d.ts", "./index.ts" ], - "dtsChangeTime": 69000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1685 + "size": 1701 } diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders-with-no-files-clause.js b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders-with-no-files-clause.js index 592f1be3218..3a254f55bdd 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders-with-no-files-clause.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders-with-no-files-clause.js @@ -57,7 +57,7 @@ export declare class A { //// [/user/username/projects/transitiveReferences/a/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-7264743946-export class A {}","signature":"-8728835846-export declare class A {\n}\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":39000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-7264743946-export class A {}","signature":"-8728835846-export declare class A {\n}\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/a/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -86,10 +86,10 @@ export declare class A { "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 39000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 740 + "size": 756 } //// [/user/username/projects/transitiveReferences/b/index.js] @@ -106,7 +106,7 @@ export declare const b: A; //// [/user/username/projects/transitiveReferences/b/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../a/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-2591036212-import {A} from '@ref/a';\nexport const b = new A();","signature":"-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n"}],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":49000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../a/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-2591036212-import {A} from '@ref/a';\nexport const b = new A();","signature":"-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n"}],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/b/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -154,10 +154,10 @@ export declare const b: A; "../a/index.d.ts", "./index.ts" ], - "dtsChangeTime": 49000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 897 + "size": 913 } //// [/user/username/projects/transitiveReferences/c/index.js] @@ -173,9 +173,9 @@ a_1.X; /a/lib/tsc.js -w -p c Output:: >> Screen clear -[12:01:01 AM] Starting compilation in watch mode... +[12:00:59 AM] Starting compilation in watch mode... -[12:01:05 AM] Found 0 errors. Watching for file changes. +[12:01:03 AM] Found 0 errors. Watching for file changes. @@ -289,7 +289,7 @@ export declare function gfoo(): void; //// [/user/username/projects/transitiveReferences/b/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../a/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"1841609480-import {A} from '@ref/a';\nexport const b = new A();export function gfoo() { }","signature":"4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n"}],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":68000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../a/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"1841609480-import {A} from '@ref/a';\nexport const b = new A();export function gfoo() { }","signature":"4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n"}],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/b/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -337,18 +337,18 @@ export declare function gfoo(): void; "../a/index.d.ts", "./index.ts" ], - "dtsChangeTime": 68000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 960 + "size": 976 } Output:: >> Screen clear -[12:01:22 AM] File change detected. Starting incremental compilation... +[12:01:19 AM] File change detected. Starting incremental compilation... -[12:01:26 AM] Found 0 errors. Watching for file changes. +[12:01:23 AM] Found 0 errors. Watching for file changes. @@ -446,9 +446,9 @@ export class A {} Output:: >> Screen clear -[12:01:34 AM] File change detected. Starting incremental compilation... +[12:01:31 AM] File change detected. Starting incremental compilation... -[12:01:38 AM] Found 0 errors. Watching for file changes. +[12:01:35 AM] Found 0 errors. Watching for file changes. @@ -541,9 +541,9 @@ Input:: Output:: >> Screen clear -[12:01:42 AM] File change detected. Starting incremental compilation... +[12:01:39 AM] File change detected. Starting incremental compilation... -[12:01:46 AM] Found 0 errors. Watching for file changes. +[12:01:43 AM] Found 0 errors. Watching for file changes. @@ -636,9 +636,9 @@ Input:: Output:: >> Screen clear -[12:01:50 AM] File change detected. Starting incremental compilation... +[12:01:47 AM] File change detected. Starting incremental compilation... -[12:01:51 AM] Found 0 errors. Watching for file changes. +[12:01:48 AM] Found 0 errors. Watching for file changes. @@ -731,9 +731,9 @@ Input:: Output:: >> Screen clear -[12:01:56 AM] File change detected. Starting incremental compilation... +[12:01:53 AM] File change detected. Starting incremental compilation... -[12:01:57 AM] Found 0 errors. Watching for file changes. +[12:01:54 AM] Found 0 errors. Watching for file changes. @@ -813,14 +813,14 @@ Input:: Output:: >> Screen clear -[12:01:59 AM] File change detected. Starting incremental compilation... +[12:01:56 AM] File change detected. Starting incremental compilation... c/tsconfig.json:1:84 - error TS6053: File '/user/username/projects/transitiveReferences/b' not found. 1 {"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"references":[{"path":"../b"}]}    ~~~~~~~~~~~~~~~ -[12:02:06 AM] Found 1 error. Watching for file changes. +[12:02:03 AM] Found 1 error. Watching for file changes. @@ -901,9 +901,9 @@ Input:: Output:: >> Screen clear -[12:02:09 AM] File change detected. Starting incremental compilation... +[12:02:06 AM] File change detected. Starting incremental compilation... -[12:02:13 AM] Found 0 errors. Watching for file changes. +[12:02:10 AM] Found 0 errors. Watching for file changes. @@ -996,14 +996,14 @@ Input:: Output:: >> Screen clear -[12:02:15 AM] File change detected. Starting incremental compilation... +[12:02:12 AM] File change detected. Starting incremental compilation... b/tsconfig.json:1:96 - error TS6053: File '/user/username/projects/transitiveReferences/a' not found. 1 {"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"references":[{"path":"../a"}]}    ~~~~~~~~~~~~~~~ -[12:02:19 AM] Found 1 error. Watching for file changes. +[12:02:16 AM] Found 1 error. Watching for file changes. @@ -1095,9 +1095,9 @@ Input:: Output:: >> Screen clear -[12:02:23 AM] File change detected. Starting incremental compilation... +[12:02:20 AM] File change detected. Starting incremental compilation... -[12:02:24 AM] Found 0 errors. Watching for file changes. +[12:02:21 AM] Found 0 errors. Watching for file changes. diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders.js b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders.js index b8333e23cda..75a0658cf9a 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders.js @@ -57,7 +57,7 @@ export declare class A { //// [/user/username/projects/transitiveReferences/a/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-7264743946-export class A {}","signature":"-8728835846-export declare class A {\n}\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":39000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-7264743946-export class A {}","signature":"-8728835846-export declare class A {\n}\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/a/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -86,10 +86,10 @@ export declare class A { "../../../../../a/lib/lib.d.ts", "./index.ts" ], - "dtsChangeTime": 39000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 740 + "size": 756 } //// [/user/username/projects/transitiveReferences/b/index.js] @@ -106,7 +106,7 @@ export declare const b: A; //// [/user/username/projects/transitiveReferences/b/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../a/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-2591036212-import {A} from '@ref/a';\nexport const b = new A();","signature":"-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n"}],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":49000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../a/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-2591036212-import {A} from '@ref/a';\nexport const b = new A();","signature":"-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n"}],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/b/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -154,10 +154,10 @@ export declare const b: A; "../a/index.d.ts", "./index.ts" ], - "dtsChangeTime": 49000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 897 + "size": 913 } //// [/user/username/projects/transitiveReferences/c/index.js] @@ -173,9 +173,9 @@ a_1.X; /a/lib/tsc.js -w -p c Output:: >> Screen clear -[12:01:01 AM] Starting compilation in watch mode... +[12:00:59 AM] Starting compilation in watch mode... -[12:01:05 AM] Found 0 errors. Watching for file changes. +[12:01:03 AM] Found 0 errors. Watching for file changes. @@ -285,7 +285,7 @@ export declare function gfoo(): void; //// [/user/username/projects/transitiveReferences/b/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../a/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"1841609480-import {A} from '@ref/a';\nexport const b = new A();export function gfoo() { }","signature":"4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n"}],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":68000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../a/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"1841609480-import {A} from '@ref/a';\nexport const b = new A();export function gfoo() { }","signature":"4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n"}],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/b/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -333,18 +333,18 @@ export declare function gfoo(): void; "../a/index.d.ts", "./index.ts" ], - "dtsChangeTime": 68000 + "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 960 + "size": 976 } Output:: >> Screen clear -[12:01:22 AM] File change detected. Starting incremental compilation... +[12:01:19 AM] File change detected. Starting incremental compilation... -[12:01:26 AM] Found 0 errors. Watching for file changes. +[12:01:23 AM] Found 0 errors. Watching for file changes. @@ -438,9 +438,9 @@ export class A {} Output:: >> Screen clear -[12:01:34 AM] File change detected. Starting incremental compilation... +[12:01:31 AM] File change detected. Starting incremental compilation... -[12:01:38 AM] Found 0 errors. Watching for file changes. +[12:01:35 AM] Found 0 errors. Watching for file changes. @@ -529,9 +529,9 @@ Input:: Output:: >> Screen clear -[12:01:42 AM] File change detected. Starting incremental compilation... +[12:01:39 AM] File change detected. Starting incremental compilation... -[12:01:46 AM] Found 0 errors. Watching for file changes. +[12:01:43 AM] Found 0 errors. Watching for file changes. @@ -620,9 +620,9 @@ Input:: Output:: >> Screen clear -[12:01:50 AM] File change detected. Starting incremental compilation... +[12:01:47 AM] File change detected. Starting incremental compilation... -[12:01:51 AM] Found 0 errors. Watching for file changes. +[12:01:48 AM] Found 0 errors. Watching for file changes. @@ -710,9 +710,9 @@ Input:: Output:: >> Screen clear -[12:01:56 AM] File change detected. Starting incremental compilation... +[12:01:53 AM] File change detected. Starting incremental compilation... -[12:01:57 AM] Found 0 errors. Watching for file changes. +[12:01:54 AM] Found 0 errors. Watching for file changes. @@ -787,14 +787,14 @@ Input:: Output:: >> Screen clear -[12:01:59 AM] File change detected. Starting incremental compilation... +[12:01:56 AM] File change detected. Starting incremental compilation... c/tsconfig.json:1:105 - error TS6053: File '/user/username/projects/transitiveReferences/b' not found. 1 {"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"files":["index.ts"],"references":[{"path":"../b"}]}    ~~~~~~~~~~~~~~~ -[12:02:06 AM] Found 1 error. Watching for file changes. +[12:02:03 AM] Found 1 error. Watching for file changes. @@ -873,9 +873,9 @@ Input:: Output:: >> Screen clear -[12:02:09 AM] File change detected. Starting incremental compilation... +[12:02:06 AM] File change detected. Starting incremental compilation... -[12:02:13 AM] Found 0 errors. Watching for file changes. +[12:02:10 AM] Found 0 errors. Watching for file changes. @@ -964,14 +964,14 @@ Input:: Output:: >> Screen clear -[12:02:15 AM] File change detected. Starting incremental compilation... +[12:02:12 AM] File change detected. Starting incremental compilation... b/tsconfig.json:1:117 - error TS6053: File '/user/username/projects/transitiveReferences/a' not found. 1 {"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"files":["index.ts"],"references":[{"path":"../a"}]}    ~~~~~~~~~~~~~~~ -[12:02:19 AM] Found 1 error. Watching for file changes. +[12:02:16 AM] Found 1 error. Watching for file changes. @@ -1060,9 +1060,9 @@ Input:: Output:: >> Screen clear -[12:02:23 AM] File change detected. Starting incremental compilation... +[12:02:20 AM] File change detected. Starting incremental compilation... -[12:02:24 AM] Found 0 errors. Watching for file changes. +[12:02:21 AM] Found 0 errors. Watching for file changes. diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references.js b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references.js index a50162ae3dc..5a4b518a984 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references.js @@ -81,7 +81,7 @@ export declare class A { //// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-8566332115-export class A {}\r\n","signature":"-8728835846-export declare class A {\n}\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":33000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-8566332115-export class A {}\r\n","signature":"-8728835846-export declare class A {\n}\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo.readable.baseline.txt] { @@ -110,10 +110,10 @@ export declare class A { "../../../../a/lib/lib.d.ts", "./a.ts" ], - "dtsChangeTime": 33000 + "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 737 + "size": 749 } //// [/user/username/projects/transitiveReferences/b.js] @@ -130,7 +130,7 @@ export declare const b: A; //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-13104686224-import {A} from '@ref/a';\r\nexport const b = new A();\r\n","signature":"-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n"}],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":43000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-13104686224-import {A} from '@ref/a';\r\nexport const b = new A();\r\n","signature":"-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n"}],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo.readable.baseline.txt] { @@ -178,10 +178,10 @@ export declare const b: A; "./a.d.ts", "./b.ts" ], - "dtsChangeTime": 43000 + "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 890 + "size": 902 } //// [/user/username/projects/transitiveReferences/c.js] @@ -197,9 +197,9 @@ a_1.X; /a/lib/tsc.js -w -p tsconfig.c.json Output:: >> Screen clear -[12:00:55 AM] Starting compilation in watch mode... +[12:00:53 AM] Starting compilation in watch mode... -[12:00:59 AM] Found 0 errors. Watching for file changes. +[12:00:57 AM] Found 0 errors. Watching for file changes. @@ -302,7 +302,7 @@ export declare function gfoo(): void; //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-23418138964-import {A} from '@ref/a';\r\nexport const b = new A();\r\nexport function gfoo() { }","signature":"4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n"}],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":62000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-23418138964-import {A} from '@ref/a';\r\nexport const b = new A();\r\nexport function gfoo() { }","signature":"4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n"}],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo.readable.baseline.txt] { @@ -350,18 +350,18 @@ export declare function gfoo(): void; "./a.d.ts", "./b.ts" ], - "dtsChangeTime": 62000 + "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 954 + "size": 966 } Output:: >> Screen clear -[12:01:16 AM] File change detected. Starting incremental compilation... +[12:01:13 AM] File change detected. Starting incremental compilation... -[12:01:20 AM] Found 0 errors. Watching for file changes. +[12:01:17 AM] Found 0 errors. Watching for file changes. @@ -447,9 +447,9 @@ export class A {} Output:: >> Screen clear -[12:01:28 AM] File change detected. Starting incremental compilation... +[12:01:25 AM] File change detected. Starting incremental compilation... -[12:01:32 AM] Found 0 errors. Watching for file changes. +[12:01:29 AM] Found 0 errors. Watching for file changes. @@ -530,9 +530,9 @@ Input:: Output:: >> Screen clear -[12:01:36 AM] File change detected. Starting incremental compilation... +[12:01:33 AM] File change detected. Starting incremental compilation... -[12:01:40 AM] Found 0 errors. Watching for file changes. +[12:01:37 AM] Found 0 errors. Watching for file changes. @@ -613,9 +613,9 @@ Input:: Output:: >> Screen clear -[12:01:44 AM] File change detected. Starting incremental compilation... +[12:01:41 AM] File change detected. Starting incremental compilation... -[12:01:45 AM] Found 0 errors. Watching for file changes. +[12:01:42 AM] Found 0 errors. Watching for file changes. @@ -697,9 +697,9 @@ Input:: Output:: >> Screen clear -[12:01:50 AM] File change detected. Starting incremental compilation... +[12:01:47 AM] File change detected. Starting incremental compilation... -[12:01:51 AM] Found 0 errors. Watching for file changes. +[12:01:48 AM] Found 0 errors. Watching for file changes. @@ -768,14 +768,14 @@ Input:: Output:: >> Screen clear -[12:01:53 AM] File change detected. Starting incremental compilation... +[12:01:50 AM] File change detected. Starting incremental compilation... tsconfig.c.json:1:100 - error TS6053: File '/user/username/projects/transitiveReferences/tsconfig.b.json' not found. 1 {"files":["c.ts"],"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["./refs/*"]}},"references":[{"path":"tsconfig.b.json"}]}    ~~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:02:00 AM] Found 1 error. Watching for file changes. +[12:01:57 AM] Found 1 error. Watching for file changes. @@ -859,9 +859,9 @@ Input:: Output:: >> Screen clear -[12:02:03 AM] File change detected. Starting incremental compilation... +[12:02:00 AM] File change detected. Starting incremental compilation... -[12:02:07 AM] Found 0 errors. Watching for file changes. +[12:02:04 AM] Found 0 errors. Watching for file changes. @@ -942,14 +942,14 @@ Input:: Output:: >> Screen clear -[12:02:09 AM] File change detected. Starting incremental compilation... +[12:02:06 AM] File change detected. Starting incremental compilation... tsconfig.b.json:10:21 - error TS6053: File '/user/username/projects/transitiveReferences/tsconfig.a.json' not found. 10 "references": [ { "path": "tsconfig.a.json" } ]    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:02:13 AM] Found 1 error. Watching for file changes. +[12:02:10 AM] Found 1 error. Watching for file changes. @@ -1031,9 +1031,9 @@ Input:: Output:: >> Screen clear -[12:02:17 AM] File change detected. Starting incremental compilation... +[12:02:14 AM] File change detected. Starting incremental compilation... -[12:02:18 AM] Found 0 errors. Watching for file changes. +[12:02:15 AM] Found 0 errors. Watching for file changes. diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/when-referenced-project-uses-different-module-resolution.js b/tests/baselines/reference/tscWatch/projectsWithReferences/when-referenced-project-uses-different-module-resolution.js index db80640ffeb..0aed757be83 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/when-referenced-project-uses-different-module-resolution.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/when-referenced-project-uses-different-module-resolution.js @@ -68,7 +68,7 @@ export declare class A { //// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-8566332115-export class A {}\r\n","signature":"-8728835846-export declare class A {\n}\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":33000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-8566332115-export class A {}\r\n","signature":"-8728835846-export declare class A {\n}\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo.readable.baseline.txt] { @@ -97,10 +97,10 @@ export declare class A { "../../../../a/lib/lib.d.ts", "./a.ts" ], - "dtsChangeTime": 33000 + "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 737 + "size": 749 } //// [/user/username/projects/transitiveReferences/b.js] @@ -117,7 +117,7 @@ export declare const b: A; //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-19869990292-import {A} from \"a\";export const b = new A();","signature":"1870369234-import { A } from \"a\";\nexport declare const b: A;\n"}],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":43000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-19869990292-import {A} from \"a\";export const b = new A();","signature":"1870369234-import { A } from \"a\";\nexport declare const b: A;\n"}],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo.readable.baseline.txt] { @@ -165,10 +165,10 @@ export declare const b: A; "./a.d.ts", "./b.ts" ], - "dtsChangeTime": 43000 + "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 875 + "size": 887 } //// [/user/username/projects/transitiveReferences/c.js] @@ -184,9 +184,9 @@ a_1.X; /a/lib/tsc.js -w -p tsconfig.c.json Output:: >> Screen clear -[12:00:55 AM] Starting compilation in watch mode... +[12:00:53 AM] Starting compilation in watch mode... -[12:00:59 AM] Found 0 errors. Watching for file changes. +[12:00:57 AM] Found 0 errors. Watching for file changes. diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-when-solution-is-already-built.js index deee09f131d..394859cce51 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-when-solution-is-already-built.js @@ -60,7 +60,7 @@ export declare function foo(): void; //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":43000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -97,10 +97,10 @@ export declare function foo(): void; "./src/bar.ts", "./src/index.ts" ], - "dtsChangeTime": 43000 + "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 931 + "size": 951 } //// [/user/username/projects/myproject/packages/A/lib/index.js] @@ -117,7 +117,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/lib/index.d.ts","../b/lib/bar.d.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"dtsChangeTime":60000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/lib/index.d.ts","../b/lib/bar.d.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -171,19 +171,19 @@ export {}; "../b/lib/bar.d.ts", "../b/lib/index.d.ts" ], - "dtsChangeTime": 60000 + "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 1002 + "size": 1022 } /a/lib/tsc.js --w --p /user/username/projects/myproject/packages/A/tsconfig.json Output:: >> Screen clear -[12:01:13 AM] Starting compilation in watch mode... +[12:01:11 AM] Starting compilation in watch mode... -[12:01:23 AM] Found 0 errors. Watching for file changes. +[12:01:18 AM] Found 0 errors. Watching for file changes. @@ -246,9 +246,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/packages/A/lib/index.js] file written with same contents -//// [/user/username/projects/myproject/packages/A/lib/index.d.ts] file written with same contents //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"dtsChangeTime":60000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -302,9 +301,9 @@ exitCode:: ExitStatus.undefined "../b/src/bar.ts", "../b/src/index.ts" ], - "dtsChangeTime": 60000 + "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 970 + "size": 990 } diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks-when-solution-is-already-built.js index 8011b5cda4b..b78327f3d20 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks-when-solution-is-already-built.js @@ -60,7 +60,7 @@ export declare function foo(): void; //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":43000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -97,10 +97,10 @@ export declare function foo(): void; "./src/bar.ts", "./src/index.ts" ], - "dtsChangeTime": 43000 + "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 931 + "size": 951 } //// [/user/username/projects/myproject/packages/A/lib/index.js] @@ -117,7 +117,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../node_modules/b/lib/index.d.ts","../../node_modules/b/lib/bar.d.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":60000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../node_modules/b/lib/index.d.ts","../../node_modules/b/lib/bar.d.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -171,19 +171,19 @@ export {}; "../../node_modules/b/lib/index.d.ts", "./src/index.ts" ], - "dtsChangeTime": 60000 + "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 1034 + "size": 1054 } /a/lib/tsc.js --w --p /user/username/projects/myproject/packages/A/tsconfig.json Output:: >> Screen clear -[12:01:13 AM] Starting compilation in watch mode... +[12:01:11 AM] Starting compilation in watch mode... -[12:01:23 AM] Found 0 errors. Watching for file changes. +[12:01:18 AM] Found 0 errors. Watching for file changes. @@ -246,9 +246,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/packages/A/lib/index.js] file written with same contents -//// [/user/username/projects/myproject/packages/A/lib/index.d.ts] file written with same contents //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"dtsChangeTime":60000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -302,9 +301,9 @@ exitCode:: ExitStatus.undefined "../b/src/bar.ts", "../b/src/index.ts" ], - "dtsChangeTime": 60000 + "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 970 + "size": 990 } diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks.js index bf2695a5b28..31d01715353 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks.js @@ -41,7 +41,7 @@ Output:: >> Screen clear [12:00:43 AM] Starting compilation in watch mode... -[12:00:54 AM] Found 0 errors. Watching for file changes. +[12:00:53 AM] Found 0 errors. Watching for file changes. @@ -119,7 +119,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"dtsChangeTime":51000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -173,9 +173,9 @@ export {}; "../b/src/bar.ts", "../b/src/index.ts" ], - "dtsChangeTime": 51000 + "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 970 + "size": 990 } diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-when-solution-is-already-built.js index b13ea23e518..e8aaaabe636 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-when-solution-is-already-built.js @@ -60,7 +60,7 @@ export declare function foo(): void; //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":45000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -97,10 +97,10 @@ export declare function foo(): void; "./src/bar.ts", "./src/index.ts" ], - "dtsChangeTime": 45000 + "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 931 + "size": 951 } //// [/user/username/projects/myproject/packages/A/lib/index.js] @@ -117,7 +117,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/lib/index.d.ts","../b/lib/bar.d.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"dtsChangeTime":62000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/lib/index.d.ts","../b/lib/bar.d.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -171,19 +171,19 @@ export {}; "../b/lib/bar.d.ts", "../b/lib/index.d.ts" ], - "dtsChangeTime": 62000 + "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 1016 + "size": 1036 } /a/lib/tsc.js --w --p /user/username/projects/myproject/packages/A/tsconfig.json Output:: >> Screen clear -[12:01:15 AM] Starting compilation in watch mode... +[12:01:13 AM] Starting compilation in watch mode... -[12:01:25 AM] Found 0 errors. Watching for file changes. +[12:01:20 AM] Found 0 errors. Watching for file changes. @@ -246,9 +246,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/packages/A/lib/index.js] file written with same contents -//// [/user/username/projects/myproject/packages/A/lib/index.d.ts] file written with same contents //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"dtsChangeTime":62000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -302,9 +301,9 @@ exitCode:: ExitStatus.undefined "../b/src/bar.ts", "../b/src/index.ts" ], - "dtsChangeTime": 62000 + "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 984 + "size": 1004 } diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js index a2e0bda6f81..2e22ee7ae0e 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js @@ -60,7 +60,7 @@ export declare function foo(): void; //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":45000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -97,10 +97,10 @@ export declare function foo(): void; "./src/bar.ts", "./src/index.ts" ], - "dtsChangeTime": 45000 + "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 931 + "size": 951 } //// [/user/username/projects/myproject/packages/A/lib/index.js] @@ -117,7 +117,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../node_modules/@issue/b/lib/index.d.ts","../../node_modules/@issue/b/lib/bar.d.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":62000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../node_modules/@issue/b/lib/index.d.ts","../../node_modules/@issue/b/lib/bar.d.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -171,19 +171,19 @@ export {}; "../../node_modules/@issue/b/lib/index.d.ts", "./src/index.ts" ], - "dtsChangeTime": 62000 + "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 1062 + "size": 1082 } /a/lib/tsc.js --w --p /user/username/projects/myproject/packages/A/tsconfig.json Output:: >> Screen clear -[12:01:15 AM] Starting compilation in watch mode... +[12:01:13 AM] Starting compilation in watch mode... -[12:01:25 AM] Found 0 errors. Watching for file changes. +[12:01:20 AM] Found 0 errors. Watching for file changes. @@ -246,9 +246,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/packages/A/lib/index.js] file written with same contents -//// [/user/username/projects/myproject/packages/A/lib/index.d.ts] file written with same contents //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"dtsChangeTime":62000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -302,9 +301,9 @@ exitCode:: ExitStatus.undefined "../b/src/bar.ts", "../b/src/index.ts" ], - "dtsChangeTime": 62000 + "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 984 + "size": 1004 } diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks.js index ed2667c10d2..62dca346c17 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks.js @@ -41,7 +41,7 @@ Output:: >> Screen clear [12:00:45 AM] Starting compilation in watch mode... -[12:00:56 AM] Found 0 errors. Watching for file changes. +[12:00:55 AM] Found 0 errors. Watching for file changes. @@ -119,7 +119,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"dtsChangeTime":53000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -173,9 +173,9 @@ export {}; "../b/src/bar.ts", "../b/src/index.ts" ], - "dtsChangeTime": 53000 + "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 984 + "size": 1004 } diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package.js index 8e715c5dabd..fdee02c04ff 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package.js @@ -41,7 +41,7 @@ Output:: >> Screen clear [12:00:45 AM] Starting compilation in watch mode... -[12:00:56 AM] Found 0 errors. Watching for file changes. +[12:00:55 AM] Found 0 errors. Watching for file changes. @@ -119,7 +119,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"dtsChangeTime":53000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -173,9 +173,9 @@ export {}; "../b/src/bar.ts", "../b/src/index.ts" ], - "dtsChangeTime": 53000 + "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 984 + "size": 1004 } diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field.js index 5325806724e..f6c7790fa7d 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field.js @@ -41,7 +41,7 @@ Output:: >> Screen clear [12:00:43 AM] Starting compilation in watch mode... -[12:00:54 AM] Found 0 errors. Watching for file changes. +[12:00:53 AM] Found 0 errors. Watching for file changes. @@ -119,7 +119,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"dtsChangeTime":51000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -173,9 +173,9 @@ export {}; "../b/src/bar.ts", "../b/src/index.ts" ], - "dtsChangeTime": 51000 + "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 970 + "size": 990 } diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-when-solution-is-already-built.js index 4b5c7b89c88..89f01e8b505 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-when-solution-is-already-built.js @@ -60,7 +60,7 @@ export declare function bar(): void; //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/foo.ts","./src/bar/foo.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"dtsChangeTime":45000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/foo.ts","./src/bar/foo.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./lib/bar/foo.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -97,10 +97,10 @@ export declare function bar(): void; "./src/bar/foo.ts", "./src/foo.ts" ], - "dtsChangeTime": 45000 + "latestChangedDtsFile": "./lib/bar/foo.d.ts" }, "version": "FakeTSVersion", - "size": 933 + "size": 955 } //// [/user/username/projects/myproject/packages/A/lib/test.js] @@ -117,7 +117,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/lib/foo.d.ts","../b/lib/bar/foo.d.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"dtsChangeTime":65000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/lib/foo.d.ts","../b/lib/bar/foo.d.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -171,19 +171,19 @@ export {}; "../b/lib/bar/foo.d.ts", "../b/lib/foo.d.ts" ], - "dtsChangeTime": 65000 + "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 1016 + "size": 1035 } /a/lib/tsc.js --w --p /user/username/projects/myproject/packages/A/tsconfig.json Output:: >> Screen clear -[12:01:18 AM] Starting compilation in watch mode... +[12:01:16 AM] Starting compilation in watch mode... -[12:01:28 AM] Found 0 errors. Watching for file changes. +[12:01:23 AM] Found 0 errors. Watching for file changes. @@ -246,9 +246,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/packages/A/lib/test.js] file written with same contents -//// [/user/username/projects/myproject/packages/A/lib/test.d.ts] file written with same contents //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"dtsChangeTime":65000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -302,9 +301,9 @@ exitCode:: ExitStatus.undefined "../b/src/bar/foo.ts", "../b/src/foo.ts" ], - "dtsChangeTime": 65000 + "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 984 + "size": 1003 } diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks-when-solution-is-already-built.js index 85136ac0a90..60e19c98dfb 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks-when-solution-is-already-built.js @@ -60,7 +60,7 @@ export declare function bar(): void; //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/foo.ts","./src/bar/foo.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"dtsChangeTime":45000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/foo.ts","./src/bar/foo.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./lib/bar/foo.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -97,10 +97,10 @@ export declare function bar(): void; "./src/bar/foo.ts", "./src/foo.ts" ], - "dtsChangeTime": 45000 + "latestChangedDtsFile": "./lib/bar/foo.d.ts" }, "version": "FakeTSVersion", - "size": 933 + "size": 955 } //// [/user/username/projects/myproject/packages/A/lib/test.js] @@ -117,7 +117,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../node_modules/b/lib/foo.d.ts","../../node_modules/b/lib/bar/foo.d.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":65000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../node_modules/b/lib/foo.d.ts","../../node_modules/b/lib/bar/foo.d.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -171,19 +171,19 @@ export {}; "../../node_modules/b/lib/foo.d.ts", "./src/test.ts" ], - "dtsChangeTime": 65000 + "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 1048 + "size": 1067 } /a/lib/tsc.js --w --p /user/username/projects/myproject/packages/A/tsconfig.json Output:: >> Screen clear -[12:01:18 AM] Starting compilation in watch mode... +[12:01:16 AM] Starting compilation in watch mode... -[12:01:28 AM] Found 0 errors. Watching for file changes. +[12:01:23 AM] Found 0 errors. Watching for file changes. @@ -246,9 +246,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/packages/A/lib/test.js] file written with same contents -//// [/user/username/projects/myproject/packages/A/lib/test.d.ts] file written with same contents //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"dtsChangeTime":65000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -302,9 +301,9 @@ exitCode:: ExitStatus.undefined "../b/src/bar/foo.ts", "../b/src/foo.ts" ], - "dtsChangeTime": 65000 + "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 984 + "size": 1003 } diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks.js index 969ddf9d4a5..8d777c5dc70 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks.js @@ -41,7 +41,7 @@ Output:: >> Screen clear [12:00:45 AM] Starting compilation in watch mode... -[12:00:56 AM] Found 0 errors. Watching for file changes. +[12:00:55 AM] Found 0 errors. Watching for file changes. @@ -119,7 +119,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"dtsChangeTime":53000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -173,9 +173,9 @@ export {}; "../b/src/bar/foo.ts", "../b/src/foo.ts" ], - "dtsChangeTime": 53000 + "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 984 + "size": 1003 } diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-when-solution-is-already-built.js index e3e868d3e87..7d64d991434 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-when-solution-is-already-built.js @@ -60,7 +60,7 @@ export declare function bar(): void; //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/foo.ts","./src/bar/foo.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"dtsChangeTime":47000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/foo.ts","./src/bar/foo.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./lib/bar/foo.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -97,10 +97,10 @@ export declare function bar(): void; "./src/bar/foo.ts", "./src/foo.ts" ], - "dtsChangeTime": 47000 + "latestChangedDtsFile": "./lib/bar/foo.d.ts" }, "version": "FakeTSVersion", - "size": 933 + "size": 955 } //// [/user/username/projects/myproject/packages/A/lib/test.js] @@ -117,7 +117,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/lib/foo.d.ts","../b/lib/bar/foo.d.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"dtsChangeTime":67000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/lib/foo.d.ts","../b/lib/bar/foo.d.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -171,19 +171,19 @@ export {}; "../b/lib/bar/foo.d.ts", "../b/lib/foo.d.ts" ], - "dtsChangeTime": 67000 + "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 1031 + "size": 1050 } /a/lib/tsc.js --w --p /user/username/projects/myproject/packages/A/tsconfig.json Output:: >> Screen clear -[12:01:20 AM] Starting compilation in watch mode... +[12:01:18 AM] Starting compilation in watch mode... -[12:01:30 AM] Found 0 errors. Watching for file changes. +[12:01:25 AM] Found 0 errors. Watching for file changes. @@ -246,9 +246,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/packages/A/lib/test.js] file written with same contents -//// [/user/username/projects/myproject/packages/A/lib/test.d.ts] file written with same contents //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"dtsChangeTime":67000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -302,9 +301,9 @@ exitCode:: ExitStatus.undefined "../b/src/bar/foo.ts", "../b/src/foo.ts" ], - "dtsChangeTime": 67000 + "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 999 + "size": 1018 } diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js index 9124b7c5474..77a5f48c23a 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js @@ -60,7 +60,7 @@ export declare function bar(): void; //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/foo.ts","./src/bar/foo.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"dtsChangeTime":47000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/foo.ts","./src/bar/foo.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./lib/bar/foo.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -97,10 +97,10 @@ export declare function bar(): void; "./src/bar/foo.ts", "./src/foo.ts" ], - "dtsChangeTime": 47000 + "latestChangedDtsFile": "./lib/bar/foo.d.ts" }, "version": "FakeTSVersion", - "size": 933 + "size": 955 } //// [/user/username/projects/myproject/packages/A/lib/test.js] @@ -117,7 +117,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../node_modules/@issue/b/lib/foo.d.ts","../../node_modules/@issue/b/lib/bar/foo.d.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2,4],"dtsChangeTime":67000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../node_modules/@issue/b/lib/foo.d.ts","../../node_modules/@issue/b/lib/bar/foo.d.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -171,19 +171,19 @@ export {}; "../../node_modules/@issue/b/lib/foo.d.ts", "./src/test.ts" ], - "dtsChangeTime": 67000 + "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1096 } /a/lib/tsc.js --w --p /user/username/projects/myproject/packages/A/tsconfig.json Output:: >> Screen clear -[12:01:20 AM] Starting compilation in watch mode... +[12:01:18 AM] Starting compilation in watch mode... -[12:01:30 AM] Found 0 errors. Watching for file changes. +[12:01:25 AM] Found 0 errors. Watching for file changes. @@ -246,9 +246,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/packages/A/lib/test.js] file written with same contents -//// [/user/username/projects/myproject/packages/A/lib/test.d.ts] file written with same contents //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"dtsChangeTime":67000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -302,9 +301,9 @@ exitCode:: ExitStatus.undefined "../b/src/bar/foo.ts", "../b/src/foo.ts" ], - "dtsChangeTime": 67000 + "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 999 + "size": 1018 } diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks.js index bcaedf68a17..4add531da66 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks.js @@ -41,7 +41,7 @@ Output:: >> Screen clear [12:00:47 AM] Starting compilation in watch mode... -[12:00:58 AM] Found 0 errors. Watching for file changes. +[12:00:57 AM] Found 0 errors. Watching for file changes. @@ -119,7 +119,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"dtsChangeTime":55000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -173,9 +173,9 @@ export {}; "../b/src/bar/foo.ts", "../b/src/foo.ts" ], - "dtsChangeTime": 55000 + "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 999 + "size": 1018 } diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package.js index d1d8b7b5700..a3efb115885 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package.js @@ -41,7 +41,7 @@ Output:: >> Screen clear [12:00:47 AM] Starting compilation in watch mode... -[12:00:58 AM] Found 0 errors. Watching for file changes. +[12:00:57 AM] Found 0 errors. Watching for file changes. @@ -119,7 +119,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"dtsChangeTime":55000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -173,9 +173,9 @@ export {}; "../b/src/bar/foo.ts", "../b/src/foo.ts" ], - "dtsChangeTime": 55000 + "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 999 + "size": 1018 } diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder.js index 4d6f2bc7793..53b01c1cc69 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder.js @@ -41,7 +41,7 @@ Output:: >> Screen clear [12:00:45 AM] Starting compilation in watch mode... -[12:00:56 AM] Found 0 errors. Watching for file changes. +[12:00:55 AM] Found 0 errors. Watching for file changes. @@ -119,7 +119,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"dtsChangeTime":53000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -173,9 +173,9 @@ export {}; "../b/src/bar/foo.ts", "../b/src/foo.ts" ], - "dtsChangeTime": 53000 + "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 984 + "size": 1003 } diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project-when-solution-is-already-built.js index dabd6c88d8d..760b3e5c7f2 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project-when-solution-is-already-built.js @@ -122,7 +122,7 @@ export declare function lastElementOf(arr: T[]): T | undefined; //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"dtsChangeTime":35000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./utilities.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -161,10 +161,10 @@ export declare function lastElementOf(arr: T[]): T | undefined; "../../../../../../a/lib/lib.d.ts", "../../core/utilities.ts" ], - "dtsChangeTime": 35000 + "latestChangedDtsFile": "./utilities.d.ts" }, "version": "FakeTSVersion", - "size": 1341 + "size": 1361 } //// [/user/username/projects/demo/lib/animals/animal.js] @@ -173,7 +173,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); //// [/user/username/projects/demo/lib/animals/animal.d.ts] -export declare type Size = "small" | "medium" | "large"; +export type Size = "small" | "medium" | "large"; export default interface Animal { size: Size; } @@ -221,7 +221,7 @@ export declare function createDog(): Dog; //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n","signature":"-10510161654-export declare type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n"},{"version":"-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"dtsChangeTime":50000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n","signature":"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n"},{"version":"-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -254,7 +254,7 @@ export declare function createDog(): Dog; }, "../../animals/animal.ts": { "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", - "signature": "-10510161654-export declare type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" + "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" }, "../../animals/index.ts": { "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", @@ -308,19 +308,19 @@ export declare function createDog(): Dog; "../../animals/index.ts", "../core/utilities.d.ts" ], - "dtsChangeTime": 50000 + "latestChangedDtsFile": "./dog.d.ts" }, "version": "FakeTSVersion", - "size": 2445 + "size": 2450 } /a/lib/tsc.js --w --p /user/username/projects/demo/animals/tsconfig.json Output:: >> Screen clear -[12:01:11 AM] Starting compilation in watch mode... +[12:01:09 AM] Starting compilation in watch mode... -[12:01:21 AM] Found 0 errors. Watching for file changes. +[12:01:16 AM] Found 0 errors. Watching for file changes. @@ -377,9 +377,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/demo/lib/animals/dog.js] file written with same contents -//// [/user/username/projects/demo/lib/animals/dog.d.ts] file written with same contents //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../../core/utilities.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n","signature":"-10510161654-export declare type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n"},{"version":"-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},{"version":"25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"},{"version":"-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"dtsChangeTime":50000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../../core/utilities.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n","signature":"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n"},{"version":"-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},{"version":"25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"},{"version":"-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -412,7 +411,7 @@ exitCode:: ExitStatus.undefined }, "../../animals/animal.ts": { "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", - "signature": "-10510161654-export declare type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" + "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" }, "../../animals/index.ts": { "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", @@ -466,9 +465,9 @@ exitCode:: ExitStatus.undefined "../../animals/index.ts", "../../core/utilities.ts" ], - "dtsChangeTime": 50000 + "latestChangedDtsFile": "./dog.d.ts" }, "version": "FakeTSVersion", - "size": 2717 + "size": 2722 } diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project.js index 77ca3c00e5e..311d03dc487 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project.js @@ -106,7 +106,7 @@ Output:: >> Screen clear [12:00:35 AM] Starting compilation in watch mode... -[12:00:56 AM] Found 0 errors. Watching for file changes. +[12:00:55 AM] Found 0 errors. Watching for file changes. @@ -174,7 +174,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); //// [/user/username/projects/demo/lib/animals/animal.d.ts] -export declare type Size = "small" | "medium" | "large"; +export type Size = "small" | "medium" | "large"; export default interface Animal { size: Size; } @@ -222,7 +222,7 @@ export declare function createDog(): Dog; //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../../core/utilities.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n","signature":"-10510161654-export declare type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n"},{"version":"-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},"25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n",{"version":"-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"dtsChangeTime":53000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../../core/utilities.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n","signature":"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n"},{"version":"-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},"25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n",{"version":"-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -255,7 +255,7 @@ export declare function createDog(): Dog; }, "../../animals/animal.ts": { "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", - "signature": "-10510161654-export declare type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" + "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" }, "../../animals/index.ts": { "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", @@ -309,9 +309,9 @@ export declare function createDog(): Dog; "../../animals/index.ts", "../../core/utilities.ts" ], - "dtsChangeTime": 53000 + "latestChangedDtsFile": "./dog.d.ts" }, "version": "FakeTSVersion", - "size": 2558 + "size": 2563 } diff --git a/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-emit-builder.js b/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-emit-builder.js index 6d0a9f5a768..07655e7e14e 100644 --- a/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-emit-builder.js +++ b/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-emit-builder.js @@ -130,7 +130,7 @@ Output:: >> Screen clear [12:00:29 AM] Starting compilation in watch mode... -[12:00:42 AM] Found 0 errors. Watching for file changes. +[12:00:41 AM] Found 0 errors. Watching for file changes. @@ -167,7 +167,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":38000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -202,10 +202,10 @@ exitCode:: ExitStatus.undefined "./main.ts", "./other.ts" ], - "dtsChangeTime": 38000 + "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 861 + "size": 877 } //// [/user/username/projects/myproject/main.js] @@ -242,9 +242,9 @@ export const x = 10; tsc --w --noEmit Output:: >> Screen clear -[12:00:48 AM] Starting compilation in watch mode... +[12:00:47 AM] Starting compilation in watch mode... -[12:00:52 AM] Found 0 errors. Watching for file changes. +[12:00:51 AM] Found 0 errors. Watching for file changes. @@ -283,7 +283,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14918944530-export const x = 10;\n// SomeComment","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[[2,1]],"dtsChangeTime":38000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14918944530-export const x = 10;\n// SomeComment","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[[2,1]],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -324,19 +324,19 @@ exitCode:: ExitStatus.undefined "Full" ] ], - "dtsChangeTime": 38000 + "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 912 + "size": 928 } tsc --w Output:: >> Screen clear -[12:00:56 AM] Starting compilation in watch mode... +[12:00:55 AM] Starting compilation in watch mode... -[12:01:06 AM] Found 0 errors. Watching for file changes. +[12:01:02 AM] Found 0 errors. Watching for file changes. @@ -373,7 +373,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14918944530-export const x = 10;\n// SomeComment","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":38000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14918944530-export const x = 10;\n// SomeComment","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -408,10 +408,10 @@ exitCode:: ExitStatus.undefined "./main.ts", "./other.ts" ], - "dtsChangeTime": 38000 + "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 877 + "size": 893 } //// [/user/username/projects/myproject/main.js] @@ -422,7 +422,6 @@ exports.x = 10; // SomeComment -//// [/user/username/projects/myproject/main.d.ts] file written with same contents Change:: Add comment @@ -436,9 +435,9 @@ export const x = 10; tsc --w Output:: >> Screen clear -[12:01:12 AM] Starting compilation in watch mode... +[12:01:08 AM] Starting compilation in watch mode... -[12:01:22 AM] Found 0 errors. Watching for file changes. +[12:01:15 AM] Found 0 errors. Watching for file changes. @@ -477,7 +476,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-16105752451-export const x = 10;\n// SomeComment\n// SomeComment","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":38000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-16105752451-export const x = 10;\n// SomeComment\n// SomeComment","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -512,10 +511,10 @@ exitCode:: ExitStatus.undefined "./main.ts", "./other.ts" ], - "dtsChangeTime": 38000 + "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 893 + "size": 909 } //// [/user/username/projects/myproject/main.js] @@ -527,4 +526,3 @@ exports.x = 10; // SomeComment -//// [/user/username/projects/myproject/main.d.ts] file written with same contents diff --git a/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-semantic-builder.js b/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-semantic-builder.js index 00bc7424481..40ea1799d22 100644 --- a/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-semantic-builder.js +++ b/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-semantic-builder.js @@ -137,7 +137,7 @@ Output:: >> Screen clear [12:00:29 AM] Starting compilation in watch mode... -[12:00:42 AM] Found 0 errors. Watching for file changes. +[12:00:41 AM] Found 0 errors. Watching for file changes. @@ -174,7 +174,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":38000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -209,10 +209,10 @@ exitCode:: ExitStatus.undefined "./main.ts", "./other.ts" ], - "dtsChangeTime": 38000 + "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 861 + "size": 877 } //// [/user/username/projects/myproject/main.js] @@ -256,9 +256,9 @@ export const x = 10; tsc --w --noEmit Output:: >> Screen clear -[12:00:48 AM] Starting compilation in watch mode... +[12:00:47 AM] Starting compilation in watch mode... -[12:00:52 AM] Found 0 errors. Watching for file changes. +[12:00:51 AM] Found 0 errors. Watching for file changes. @@ -297,7 +297,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14918944530-export const x = 10;\n// SomeComment","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[[2,1]],"dtsChangeTime":38000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14918944530-export const x = 10;\n// SomeComment","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[[2,1]],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -338,10 +338,10 @@ exitCode:: ExitStatus.undefined "Full" ] ], - "dtsChangeTime": 38000 + "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 912 + "size": 928 } @@ -355,9 +355,9 @@ Output file text for /user/username/projects/myproject/tsconfig.tsbuildinfo is s tsc --w Output:: >> Screen clear -[12:00:56 AM] Starting compilation in watch mode... +[12:00:55 AM] Starting compilation in watch mode... -[12:01:06 AM] Found 0 errors. Watching for file changes. +[12:01:02 AM] Found 0 errors. Watching for file changes. @@ -394,7 +394,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14918944530-export const x = 10;\n// SomeComment","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":38000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14918944530-export const x = 10;\n// SomeComment","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -429,10 +429,10 @@ exitCode:: ExitStatus.undefined "./main.ts", "./other.ts" ], - "dtsChangeTime": 38000 + "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 877 + "size": 893 } //// [/user/username/projects/myproject/main.js] @@ -443,7 +443,6 @@ exports.x = 10; // SomeComment -//// [/user/username/projects/myproject/main.d.ts] file written with same contents Checking if output is same as EmitAndSemanticDiagnosticsBuilderProgram:: Output file text for /user/username/projects/myproject/main.js is same:: true @@ -464,9 +463,9 @@ export const x = 10; tsc --w Output:: >> Screen clear -[12:01:12 AM] Starting compilation in watch mode... +[12:01:08 AM] Starting compilation in watch mode... -[12:01:28 AM] Found 0 errors. Watching for file changes. +[12:01:18 AM] Found 0 errors. Watching for file changes. @@ -505,7 +504,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-16105752451-export const x = 10;\n// SomeComment\n// SomeComment","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":38000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-16105752451-export const x = 10;\n// SomeComment\n// SomeComment","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -540,10 +539,10 @@ exitCode:: ExitStatus.undefined "./main.ts", "./other.ts" ], - "dtsChangeTime": 38000 + "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 893 + "size": 909 } //// [/user/username/projects/myproject/main.js] @@ -555,9 +554,7 @@ exports.x = 10; // SomeComment -//// [/user/username/projects/myproject/main.d.ts] file written with same contents //// [/user/username/projects/myproject/other.js] file written with same contents -//// [/user/username/projects/myproject/other.d.ts] file written with same contents Checking if output is same as EmitAndSemanticDiagnosticsBuilderProgram:: Output file text for /user/username/projects/myproject/main.js is same:: true diff --git a/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-emit-builder.js b/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-emit-builder.js index dd8d581ea69..3e829149ac9 100644 --- a/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-emit-builder.js +++ b/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-emit-builder.js @@ -280,7 +280,7 @@ Output:: >> Screen clear [12:00:42 AM] Starting compilation in watch mode... -[12:00:55 AM] Found 0 errors. Watching for file changes. +[12:00:54 AM] Found 0 errors. Watching for file changes. @@ -319,7 +319,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":51000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -355,10 +355,10 @@ exitCode:: ExitStatus.undefined "./main.ts", "./other.ts" ], - "dtsChangeTime": 51000 + "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 882 + "size": 898 } //// [/user/username/projects/myproject/main.js] diff --git a/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-semantic-builder.js b/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-semantic-builder.js index 6937067bd60..ddde27cb671 100644 --- a/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-semantic-builder.js +++ b/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-semantic-builder.js @@ -294,7 +294,7 @@ Output:: >> Screen clear [12:00:42 AM] Starting compilation in watch mode... -[12:00:55 AM] Found 0 errors. Watching for file changes. +[12:00:54 AM] Found 0 errors. Watching for file changes. @@ -333,7 +333,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":51000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -369,10 +369,10 @@ exitCode:: ExitStatus.undefined "./main.ts", "./other.ts" ], - "dtsChangeTime": 51000 + "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 882 + "size": 898 } //// [/user/username/projects/myproject/main.js] diff --git a/tests/baselines/reference/tscWatch/watchApi/semantic-builder-emitOnlyDts.js b/tests/baselines/reference/tscWatch/watchApi/semantic-builder-emitOnlyDts.js index ec89cb2faff..06a1ed29408 100644 --- a/tests/baselines/reference/tscWatch/watchApi/semantic-builder-emitOnlyDts.js +++ b/tests/baselines/reference/tscWatch/watchApi/semantic-builder-emitOnlyDts.js @@ -154,7 +154,7 @@ Output:: >> Screen clear [12:00:32 AM] Starting compilation in watch mode... -[12:00:41 AM] Found 0 errors. Watching for file changes. +[12:00:40 AM] Found 0 errors. Watching for file changes. @@ -193,7 +193,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[[2,1],[3,1]],"dtsChangeTime":37000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[[2,1],[3,1]],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -239,10 +239,10 @@ exitCode:: ExitStatus.undefined "Full" ] ], - "dtsChangeTime": 37000 + "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 923 + "size": 939 } //// [/user/username/projects/myproject/main.d.ts] diff --git a/tests/baselines/reference/tscWatch/watchApi/verify-that-module-resolution-with-json-extension-works-when-returned-without-extension.js b/tests/baselines/reference/tscWatch/watchApi/verify-that-module-resolution-with-json-extension-works-when-returned-without-extension.js index 8cf3621e0c5..0e85dbe7067 100644 --- a/tests/baselines/reference/tscWatch/watchApi/verify-that-module-resolution-with-json-extension-works-when-returned-without-extension.js +++ b/tests/baselines/reference/tscWatch/watchApi/verify-that-module-resolution-with-json-extension-works-when-returned-without-extension.js @@ -35,7 +35,7 @@ Output:: settings.json:1:1 1 {"content":"Print this"}   ~ - This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. + This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. [12:00:26 AM] Found 1 error. Watching for file changes. diff --git a/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine-without-implementing-useSourceOfProjectReferenceRedirect.js b/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine-without-implementing-useSourceOfProjectReferenceRedirect.js index 6d0fbc08152..104a0d79a65 100644 --- a/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine-without-implementing-useSourceOfProjectReferenceRedirect.js +++ b/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine-without-implementing-useSourceOfProjectReferenceRedirect.js @@ -52,7 +52,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots -[12:00:41 AM] Found 0 errors. Watching for file changes. +[12:00:40 AM] Found 0 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project2 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project2 1 undefined Wild card directory @@ -118,7 +118,7 @@ declare class class2 { //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":38000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -154,10 +154,10 @@ declare class class2 { "../project1/class1.d.ts", "./class2.ts" ], - "dtsChangeTime": 38000 + "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 836 + "size": 853 } @@ -174,7 +174,7 @@ Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/projects/project1/class3.ts :: WatchInfo: /user/username/projects/myproject/projects/project1 1 undefined Wild card directory of referenced project Synchronizing program Loading config file: /user/username/projects/myproject/projects/project1/tsconfig.json -[12:00:46 AM] File change detected. Starting incremental compilation... +[12:00:45 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/user/username/projects/myproject/projects/project2/class2.ts"] @@ -190,7 +190,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj    ~~~~~~~~~~~~~~~~~~~~~~ File is output from referenced project specified here. -[12:00:47 AM] Found 1 error. Watching for file changes. +[12:00:46 AM] Found 1 error. Watching for file changes. @@ -253,14 +253,14 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/projects/pro Project: /user/username/projects/myproject/projects/project1/tsconfig.json Detected output file: /user/username/projects/myproject/projects/project1/class3.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/projects/project1/class3.d.ts :: WatchInfo: /user/username/projects/myproject/projects/project1 1 undefined Wild card directory of referenced project Synchronizing program -[12:00:50 AM] File change detected. Starting incremental compilation... +[12:00:49 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/user/username/projects/myproject/projects/project2/class2.ts"] options: {"module":0,"composite":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} projectReferences: [{"path":"/user/username/projects/myproject/projects/project1","originalPath":"../project1"}] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project1/class3.d.ts 250 undefined Source file -[12:01:00 AM] Found 0 errors. Watching for file changes. +[12:00:56 AM] Found 0 errors. Watching for file changes. @@ -315,9 +315,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/projects/project2/class2.js] file written with same contents -//// [/user/username/projects/myproject/projects/project2/class2.d.ts] file written with same contents //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":38000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -360,10 +359,10 @@ exitCode:: ExitStatus.undefined "../project1/class3.d.ts", "./class2.ts" ], - "dtsChangeTime": 38000 + "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 940 + "size": 957 } @@ -427,7 +426,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/projects/pro Project: /user/username/projects/myproject/projects/project1/tsconfig.json Detected output file: /user/username/projects/myproject/projects/project1/class3.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/projects/project1/class3.d.ts :: WatchInfo: /user/username/projects/myproject/projects/project1 1 undefined Wild card directory of referenced project Synchronizing program -[12:01:09 AM] File change detected. Starting incremental compilation... +[12:01:05 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/user/username/projects/myproject/projects/project2/class2.ts"] @@ -444,7 +443,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj    ~~~~~~~~~~~~~~~~~~~~~~ File is output from referenced project specified here. -[12:01:19 AM] Found 1 error. Watching for file changes. +[12:01:12 AM] Found 1 error. Watching for file changes. @@ -495,9 +494,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/projects/project2/class2.js] file written with same contents -//// [/user/username/projects/myproject/projects/project2/class2.d.ts] file written with same contents //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1],"dtsChangeTime":38000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -531,10 +529,10 @@ exitCode:: ExitStatus.undefined "semanticDiagnosticsPerFile": [ "../../../../../../a/lib/lib.d.ts" ], - "dtsChangeTime": 38000 + "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 832 + "size": 849 } @@ -554,14 +552,14 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/projects/pro Project: /user/username/projects/myproject/projects/project1/tsconfig.json Detected output file: /user/username/projects/myproject/projects/project1/class3.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/projects/project1/class3.d.ts :: WatchInfo: /user/username/projects/myproject/projects/project1 1 undefined Wild card directory of referenced project Synchronizing program -[12:01:26 AM] File change detected. Starting incremental compilation... +[12:01:19 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/user/username/projects/myproject/projects/project2/class2.ts"] options: {"module":0,"composite":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} projectReferences: [{"path":"/user/username/projects/myproject/projects/project1","originalPath":"../project1"}] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project1/class3.d.ts 250 undefined Source file -[12:01:36 AM] Found 0 errors. Watching for file changes. +[12:01:26 AM] Found 0 errors. Watching for file changes. @@ -616,9 +614,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/projects/project2/class2.js] file written with same contents -//// [/user/username/projects/myproject/projects/project2/class2.d.ts] file written with same contents //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":38000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -661,9 +658,9 @@ exitCode:: ExitStatus.undefined "../project1/class3.d.ts", "./class2.ts" ], - "dtsChangeTime": 38000 + "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 940 + "size": 957 } diff --git a/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine.js b/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine.js index ae88414a401..1cbeb5cd806 100644 --- a/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine.js +++ b/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine.js @@ -52,7 +52,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots -[12:00:41 AM] Found 0 errors. Watching for file changes. +[12:00:40 AM] Found 0 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project2 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project2 1 undefined Wild card directory @@ -118,7 +118,7 @@ declare class class2 { //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"777933178-class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3],"dtsChangeTime":38000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"777933178-class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -154,10 +154,10 @@ declare class class2 { "../project1/class1.ts", "./class2.ts" ], - "dtsChangeTime": 38000 + "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 824 + "size": 841 } @@ -174,14 +174,14 @@ Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/projects/project1/class3.ts :: WatchInfo: /user/username/projects/myproject/projects/project1 1 undefined Wild card directory of referenced project Synchronizing program Loading config file: /user/username/projects/myproject/projects/project1/tsconfig.json -[12:00:46 AM] File change detected. Starting incremental compilation... +[12:00:45 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/user/username/projects/myproject/projects/project2/class2.ts"] options: {"module":0,"composite":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} projectReferences: [{"path":"/user/username/projects/myproject/projects/project1","originalPath":"../project1"}] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project1/class3.ts 250 undefined Source file -[12:00:56 AM] Found 0 errors. Watching for file changes. +[12:00:52 AM] Found 0 errors. Watching for file changes. @@ -236,9 +236,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/projects/project2/class2.js] file written with same contents -//// [/user/username/projects/myproject/projects/project2/class2.d.ts] file written with same contents //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.ts","../project1/class3.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"777933178-class class1 {}","signature":"-2723220098-declare class class1 {\n}\n","affectsGlobalScope":true},{"version":"778005052-class class3 {}","signature":"-2644949312-declare class class3 {\n}\n","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"dtsChangeTime":38000},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.ts","../project1/class3.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"777933178-class class1 {}","signature":"-2723220098-declare class class1 {\n}\n","affectsGlobalScope":true},{"version":"778005052-class class3 {}","signature":"-2644949312-declare class class3 {\n}\n","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -281,10 +280,10 @@ exitCode:: ExitStatus.undefined "../project1/class3.ts", "./class2.ts" ], - "dtsChangeTime": 38000 + "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 1024 + "size": 1041 } diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/npm-install-works-when-timeout-occurs-after-installation.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/npm-install-works-when-timeout-occurs-after-installation.js index bc82c047910..789422f0920 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/npm-install-works-when-timeout-occurs-after-installation.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/npm-install-works-when-timeout-occurs-after-installation.js @@ -624,8 +624,8 @@ Running: /user/username/rootfolder/otherfolder/a/b/tsconfig.json Starting updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache -FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules/lodash/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: package.json file -FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules/@types/lodash/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules/lodash/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules/@types/lodash/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: Failed Lookup Locations diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/npm-install-works-when-timeout-occurs-inbetween-installation.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/npm-install-works-when-timeout-occurs-inbetween-installation.js index 0373ae80131..9534e9fccd3 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/npm-install-works-when-timeout-occurs-inbetween-installation.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/npm-install-works-when-timeout-occurs-inbetween-installation.js @@ -672,8 +672,8 @@ Running: /user/username/rootfolder/otherfolder/a/b/tsconfig.json Starting updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache -FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules/lodash/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: package.json file -FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules/@types/lodash/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules/lodash/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules/@types/lodash/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: Failed Lookup Locations diff --git a/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js b/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js new file mode 100644 index 00000000000..4394f0a610f --- /dev/null +++ b/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js @@ -0,0 +1,393 @@ +Provided types map file "/a/lib/typesMap.json" doesn't exist +request:{"seq":0,"type":"request","command":"open","arguments":{"file":"/user/username/projects/myproject/src/fileA.ts"}} +Search path: /user/username/projects/myproject/src +For info: /user/username/projects/myproject/src/fileA.ts :: Config file name: /user/username/projects/myproject/src/tsconfig.json +Creating configuration project /user/username/projects/myproject/src/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Config file +event: + {"seq":0,"type":"event","event":"projectLoadingStart","body":{"projectName":"/user/username/projects/myproject/src/tsconfig.json","reason":"Creating possible configured project for /user/username/projects/myproject/src/fileA.ts to open"}} +Config: /user/username/projects/myproject/src/tsconfig.json : { + "rootNames": [ + "/user/username/projects/myproject/src/fileA.ts", + "/user/username/projects/myproject/src/fileB.mts" + ], + "options": { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" + } +} +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/src/tsconfig.json WatchType: Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/src/tsconfig.json WatchType: Wild card directory +Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileB.mts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json +File '/user/username/projects/myproject/src/package.json' does not exist. +Found 'package.json' at '/user/username/projects/myproject/package.json'. +'package.json' does not have a 'typesVersions' field. +======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. +File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/user/username/projects/myproject/src/fileB.mts' exist - use it as a name resolution result. +======== Module name './fileB.mjs' was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. ======== +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. +FileWatcher:: Added:: WatchInfo: /a/lib/lib.es2016.full.d.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots +Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) + Files (3) + /a/lib/lib.es2016.full.d.ts + /user/username/projects/myproject/src/fileB.mts + /user/username/projects/myproject/src/fileA.ts + + + ../../../../../a/lib/lib.es2016.full.d.ts + Default library for target 'es2016' + fileB.mts + Imported via "./fileB.mjs" from file 'fileA.ts' + Matched by default include pattern '**/*' + fileA.ts + Matched by default include pattern '**/*' + File is ECMAScript module because '../package.json' has field "type" with value "module" + +----------------------------------------------- +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +event: + {"seq":0,"type":"event","event":"projectLoadingFinish","body":{"projectName":"/user/username/projects/myproject/src/tsconfig.json"}} +event: + {"seq":0,"type":"event","event":"telemetry","body":{"telemetryEventName":"projectInfo","payload":{"projectId":"f026568af42c61ce0537de8ee0fa07c9359a76dcfb046248ed49dc76c91e4a37","fileStats":{"js":0,"jsSize":0,"jsx":0,"jsxSize":0,"ts":2,"tsSize":68,"tsx":0,"tsxSize":0,"dts":1,"dtsSize":334,"deferred":0,"deferredSize":0},"compilerOptions":{"target":"es2016","module":"node16","outDir":"","traceResolution":true},"typeAcquisition":{"enable":false,"include":false,"exclude":false},"extends":false,"files":false,"include":false,"exclude":false,"compileOnSave":false,"configFileName":"tsconfig.json","projectType":"configured","languageServiceEnabled":true,"version":"FakeVersion"}}} +event: + {"seq":0,"type":"event","event":"configFileDiag","body":{"triggerFile":"/user/username/projects/myproject/src/fileA.ts","configFile":"/user/username/projects/myproject/src/tsconfig.json","diagnostics":[]}} +Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/src/tsconfig.json +response:{"responseRequired":false} +Modify package json file to remove type module +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Scheduled: /user/username/projects/myproject/src/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Running: /user/username/projects/myproject/src/tsconfig.json +Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Found 'package.json' at '/user/username/projects/myproject/package.json'. +'package.json' does not have a 'typesVersions' field. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. +======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. +File '/user/username/projects/myproject/src/fileB.mjs.ts' does not exist. +File '/user/username/projects/myproject/src/fileB.mjs.tsx' does not exist. +File '/user/username/projects/myproject/src/fileB.mjs.d.ts' does not exist. +File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/user/username/projects/myproject/src/fileB.mts' exist - use it as a name resolution result. +======== Module name './fileB.mjs' was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Different program with same set of files +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/src/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/src/tsconfig.json +got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts +event: + {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/projects/myproject/src/fileA.ts"]}} +request:{"command":"geterr","arguments":{"delay":0,"files":["/user/username/projects/myproject/src/fileA.ts"]},"seq":1,"type":"request"} +response:{"responseRequired":false} +event: + {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} +event: + {"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[{"start":{"line":1,"offset":21},"end":{"line":1,"offset":34},"text":"The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `\"type\": \"module\"` to '/user/username/projects/myproject/package.json'.","code":1479,"category":"error"}]}} +event: + {"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} +event: + {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":1}} +Modify package json file to add type module +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Scheduled: /user/username/projects/myproject/src/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Running: /user/username/projects/myproject/src/tsconfig.json +Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Found 'package.json' at '/user/username/projects/myproject/package.json'. +'package.json' does not have a 'typesVersions' field. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. +======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. +File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/user/username/projects/myproject/src/fileB.mts' exist - use it as a name resolution result. +======== Module name './fileB.mjs' was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. ======== +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Different program with same set of files +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/src/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/src/tsconfig.json +got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts +event: + {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/projects/myproject/src/fileA.ts"]}} +request:{"command":"geterr","arguments":{"delay":0,"files":["/user/username/projects/myproject/src/fileA.ts"]},"seq":2,"type":"request"} +response:{"responseRequired":false} +event: + {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} +event: + {"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} +event: + {"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} +event: + {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":2}} +Delete package.json +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Scheduled: /user/username/projects/myproject/src/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Running: /user/username/projects/myproject/src/tsconfig.json +Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 4 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Different program with same set of files +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/src/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/src/tsconfig.json +got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts +event: + {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/projects/myproject/src/fileA.ts"]}} +request:{"command":"geterr","arguments":{"delay":0,"files":["/user/username/projects/myproject/src/fileA.ts"]},"seq":3,"type":"request"} +response:{"responseRequired":false} +event: + {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} +event: + {"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[{"start":{"line":1,"offset":21},"end":{"line":1,"offset":34},"text":"The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ \"type\": \"module\" }`.","code":1479,"category":"error"}]}} +event: + {"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} +event: + {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":3}} +Modify package json file to without type module +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 0:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 0:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Scheduled: /user/username/projects/myproject/src/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Running: /user/username/projects/myproject/src/tsconfig.json +Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Found 'package.json' at '/user/username/projects/myproject/package.json'. +'package.json' does not have a 'typesVersions' field. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. +======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. +File '/user/username/projects/myproject/src/fileB.mjs.ts' does not exist. +File '/user/username/projects/myproject/src/fileB.mjs.tsx' does not exist. +File '/user/username/projects/myproject/src/fileB.mjs.d.ts' does not exist. +File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/user/username/projects/myproject/src/fileB.mts' exist - use it as a name resolution result. +======== Module name './fileB.mjs' was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 5 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Different program with same set of files +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/src/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/src/tsconfig.json +got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts +event: + {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/projects/myproject/src/fileA.ts"]}} +request:{"command":"geterr","arguments":{"delay":0,"files":["/user/username/projects/myproject/src/fileA.ts"]},"seq":4,"type":"request"} +response:{"responseRequired":false} +event: + {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} +event: + {"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[{"start":{"line":1,"offset":21},"end":{"line":1,"offset":34},"text":"The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `\"type\": \"module\"` to '/user/username/projects/myproject/package.json'.","code":1479,"category":"error"}]}} +event: + {"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} +event: + {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":4}} +Delete package.json +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Scheduled: /user/username/projects/myproject/src/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Running: /user/username/projects/myproject/src/tsconfig.json +Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Reusing resolution of module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 6 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Different program with same set of files +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/src/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/src/tsconfig.json +got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts +event: + {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/projects/myproject/src/fileA.ts"]}} +request:{"command":"geterr","arguments":{"delay":0,"files":["/user/username/projects/myproject/src/fileA.ts"]},"seq":5,"type":"request"} +response:{"responseRequired":false} +event: + {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} +event: + {"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[{"start":{"line":1,"offset":21},"end":{"line":1,"offset":34},"text":"The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ \"type\": \"module\" }`.","code":1479,"category":"error"}]}} +event: + {"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} +event: + {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":5}} \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited.js b/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited.js new file mode 100644 index 00000000000..2761d4dd8de --- /dev/null +++ b/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited.js @@ -0,0 +1,387 @@ +Provided types map file "/a/lib/typesMap.json" doesn't exist +request:{"seq":0,"type":"request","command":"open","arguments":{"file":"/user/username/projects/myproject/src/fileA.ts"}} +Search path: /user/username/projects/myproject/src +For info: /user/username/projects/myproject/src/fileA.ts :: Config file name: /user/username/projects/myproject/src/tsconfig.json +Creating configuration project /user/username/projects/myproject/src/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Config file +event: + {"seq":0,"type":"event","event":"projectLoadingStart","body":{"projectName":"/user/username/projects/myproject/src/tsconfig.json","reason":"Creating possible configured project for /user/username/projects/myproject/src/fileA.ts to open"}} +Config: /user/username/projects/myproject/src/tsconfig.json : { + "rootNames": [ + "/user/username/projects/myproject/src/fileA.ts", + "/user/username/projects/myproject/src/fileB.mts" + ], + "options": { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" + } +} +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/src/tsconfig.json WatchType: Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/src/tsconfig.json WatchType: Wild card directory +Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileB.mts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json +File '/user/username/projects/myproject/src/package.json' does not exist. +Found 'package.json' at '/user/username/projects/myproject/package.json'. +'package.json' does not have a 'typesVersions' field. +======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. +File '/user/username/projects/myproject/src/fileB.mjs.ts' does not exist. +File '/user/username/projects/myproject/src/fileB.mjs.tsx' does not exist. +File '/user/username/projects/myproject/src/fileB.mjs.d.ts' does not exist. +File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/user/username/projects/myproject/src/fileB.mts' exist - use it as a name resolution result. +======== Module name './fileB.mjs' was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. +FileWatcher:: Added:: WatchInfo: /a/lib/lib.es2016.full.d.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots +Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) + Files (3) + /a/lib/lib.es2016.full.d.ts + /user/username/projects/myproject/src/fileB.mts + /user/username/projects/myproject/src/fileA.ts + + + ../../../../../a/lib/lib.es2016.full.d.ts + Default library for target 'es2016' + fileB.mts + Imported via "./fileB.mjs" from file 'fileA.ts' + Matched by default include pattern '**/*' + fileA.ts + Matched by default include pattern '**/*' + File is CommonJS module because '../package.json' does not have field "type" + +----------------------------------------------- +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +event: + {"seq":0,"type":"event","event":"projectLoadingFinish","body":{"projectName":"/user/username/projects/myproject/src/tsconfig.json"}} +event: + {"seq":0,"type":"event","event":"telemetry","body":{"telemetryEventName":"projectInfo","payload":{"projectId":"f026568af42c61ce0537de8ee0fa07c9359a76dcfb046248ed49dc76c91e4a37","fileStats":{"js":0,"jsSize":0,"jsx":0,"jsxSize":0,"ts":2,"tsSize":68,"tsx":0,"tsxSize":0,"dts":1,"dtsSize":334,"deferred":0,"deferredSize":0},"compilerOptions":{"target":"es2016","module":"node16","outDir":"","traceResolution":true},"typeAcquisition":{"enable":false,"include":false,"exclude":false},"extends":false,"files":false,"include":false,"exclude":false,"compileOnSave":false,"configFileName":"tsconfig.json","projectType":"configured","languageServiceEnabled":true,"version":"FakeVersion"}}} +event: + {"seq":0,"type":"event","event":"configFileDiag","body":{"triggerFile":"/user/username/projects/myproject/src/fileA.ts","configFile":"/user/username/projects/myproject/src/tsconfig.json","diagnostics":[]}} +Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/src/tsconfig.json +response:{"responseRequired":false} +Modify package json file to add type module +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Scheduled: /user/username/projects/myproject/src/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Running: /user/username/projects/myproject/src/tsconfig.json +Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Found 'package.json' at '/user/username/projects/myproject/package.json'. +'package.json' does not have a 'typesVersions' field. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. +======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. +File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/user/username/projects/myproject/src/fileB.mts' exist - use it as a name resolution result. +======== Module name './fileB.mjs' was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. ======== +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Different program with same set of files +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/src/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/src/tsconfig.json +got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts +event: + {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/projects/myproject/src/fileA.ts"]}} +request:{"command":"geterr","arguments":{"delay":0,"files":["/user/username/projects/myproject/src/fileA.ts"]},"seq":1,"type":"request"} +response:{"responseRequired":false} +event: + {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} +event: + {"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} +event: + {"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} +event: + {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":1}} +Modify package json file to remove type module +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Scheduled: /user/username/projects/myproject/src/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Running: /user/username/projects/myproject/src/tsconfig.json +Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Found 'package.json' at '/user/username/projects/myproject/package.json'. +'package.json' does not have a 'typesVersions' field. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. +======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. +File '/user/username/projects/myproject/src/fileB.mjs.ts' does not exist. +File '/user/username/projects/myproject/src/fileB.mjs.tsx' does not exist. +File '/user/username/projects/myproject/src/fileB.mjs.d.ts' does not exist. +File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/user/username/projects/myproject/src/fileB.mts' exist - use it as a name resolution result. +======== Module name './fileB.mjs' was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Different program with same set of files +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/src/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/src/tsconfig.json +got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts +event: + {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/projects/myproject/src/fileA.ts"]}} +request:{"command":"geterr","arguments":{"delay":0,"files":["/user/username/projects/myproject/src/fileA.ts"]},"seq":2,"type":"request"} +response:{"responseRequired":false} +event: + {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} +event: + {"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[{"start":{"line":1,"offset":21},"end":{"line":1,"offset":34},"text":"The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `\"type\": \"module\"` to '/user/username/projects/myproject/package.json'.","code":1479,"category":"error"}]}} +event: + {"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} +event: + {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":2}} +Delete package.json +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Scheduled: /user/username/projects/myproject/src/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Running: /user/username/projects/myproject/src/tsconfig.json +Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Reusing resolution of module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 4 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Different program with same set of files +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/src/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/src/tsconfig.json +got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts +event: + {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/projects/myproject/src/fileA.ts"]}} +request:{"command":"geterr","arguments":{"delay":0,"files":["/user/username/projects/myproject/src/fileA.ts"]},"seq":3,"type":"request"} +response:{"responseRequired":false} +event: + {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} +event: + {"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[{"start":{"line":1,"offset":21},"end":{"line":1,"offset":34},"text":"The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ \"type\": \"module\" }`.","code":1479,"category":"error"}]}} +event: + {"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} +event: + {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":3}} +Modify package json file to add type module +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 0:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 0:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Scheduled: /user/username/projects/myproject/src/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Running: /user/username/projects/myproject/src/tsconfig.json +Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Found 'package.json' at '/user/username/projects/myproject/package.json'. +'package.json' does not have a 'typesVersions' field. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 5 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Different program with same set of files +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/src/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/src/tsconfig.json +got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts +event: + {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/projects/myproject/src/fileA.ts"]}} +request:{"command":"geterr","arguments":{"delay":0,"files":["/user/username/projects/myproject/src/fileA.ts"]},"seq":4,"type":"request"} +response:{"responseRequired":false} +event: + {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} +event: + {"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} +event: + {"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} +event: + {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":4}} +Delete package.json +FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Scheduled: /user/username/projects/myproject/src/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Running: /user/username/projects/myproject/src/tsconfig.json +Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 6 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Different program with same set of files +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/src/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/src/tsconfig.json +got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts +event: + {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/projects/myproject/src/fileA.ts"]}} +request:{"command":"geterr","arguments":{"delay":0,"files":["/user/username/projects/myproject/src/fileA.ts"]},"seq":5,"type":"request"} +response:{"responseRequired":false} +event: + {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} +event: + {"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[{"start":{"line":1,"offset":21},"end":{"line":1,"offset":34},"text":"The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ \"type\": \"module\" }`.","code":1479,"category":"error"}]}} +event: + {"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} +event: + {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":5}} \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built-with-disableSourceOfProjectReferenceRedirect.js b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built-with-disableSourceOfProjectReferenceRedirect.js index 90799048b60..e2f607c25f8 100644 --- a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built-with-disableSourceOfProjectReferenceRedirect.js +++ b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built-with-disableSourceOfProjectReferenceRedirect.js @@ -50,7 +50,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/shared/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/shared/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built.js b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built.js index 7e976e5d310..1a7c9ceb247 100644 --- a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built.js @@ -49,7 +49,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/shared/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/shared/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project.js b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project.js index 7e976e5d310..1a7c9ceb247 100644 --- a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project.js +++ b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project.js @@ -49,7 +49,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/shared/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/shared/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js index 1006781dd04..34e977b37de 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js @@ -55,7 +55,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js index 5b3fb431bc8..3ca8760aa3c 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js @@ -53,7 +53,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js index 1006781dd04..34e977b37de 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js @@ -55,7 +55,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js index 5b3fb431bc8..3ca8760aa3c 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js @@ -53,7 +53,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js index f0820671cc4..77c159c06c2 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js @@ -55,7 +55,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js index 4679e049728..c28fd528110 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js @@ -53,7 +53,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js index f0820671cc4..77c159c06c2 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js @@ -55,7 +55,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js index 4679e049728..c28fd528110 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js @@ -53,7 +53,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built-with-preserveSymlinks.js index 9b06cd0e8cf..c3868336343 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built-with-preserveSymlinks.js @@ -55,7 +55,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built.js index 632b07fd362..8387cf807e2 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built.js @@ -53,7 +53,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built-with-preserveSymlinks.js index 9b06cd0e8cf..c3868336343 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built-with-preserveSymlinks.js @@ -55,7 +55,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built.js index 632b07fd362..8387cf807e2 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built.js @@ -53,7 +53,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js index 7bcb493184c..48a4b7557da 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js @@ -55,7 +55,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built.js index 8eae6b27d79..c3d7bc15a00 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built.js @@ -53,7 +53,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js index 7bcb493184c..48a4b7557da 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js @@ -55,7 +55,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built.js index 8eae6b27d79..c3d7bc15a00 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built.js @@ -53,7 +53,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js b/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js index 368b18130fc..cfb4d61a8f0 100644 --- a/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js @@ -54,7 +54,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/emit-composite/package.json 2000 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/emit-composite/package.json 2000 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/consumer/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/consumer/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js index 959ef13e82b..2435e9c0be0 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js @@ -91,7 +91,7 @@ Scheduled: *ensureProjectForOpenFiles* Running: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json Starting updateGraphWorker: Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/recognizers-text.d.ts 500 undefined WatchType: Closed Script info -FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations @@ -143,4 +143,77 @@ event: event: {"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts","diagnostics":[]}} event: - {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":3}} \ No newline at end of file + {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":3}} +FileWatcher:: Triggered with /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 1:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Config file +Scheduled: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms FileWatcher:: Triggered with /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 1:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Config file +Running: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json +Reloading configured project /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json +event: + {"seq":0,"type":"event","event":"projectLoadingStart","body":{"projectName":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json","reason":"Change in config file detected"}} +Config: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json : { + "rootNames": [ + "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" + ], + "options": { + "resolveJsonModule": true, + "configFilePath": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" + } +} +DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations +DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations +FileWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded +Starting updateGraphWorker: Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json +DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations +DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations +FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +Finishing updateGraphWorker: Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json Version: 3 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Different program with same set of files +event: + {"seq":0,"type":"event","event":"projectLoadingFinish","body":{"projectName":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json"}} +event: + {"seq":0,"type":"event","event":"configFileDiag","body":{"triggerFile":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json","configFile":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json","diagnostics":[]}} +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts ProjectRootPath: /users/username/projects/myproject + Projects: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json +After ensureProjectForOpenFiles: +Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts ProjectRootPath: /users/username/projects/myproject + Projects: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json +got projects updated in background, updating diagnostics for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts +event: + {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts"]}} +event: + {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts","diagnostics":[]}} \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js index 568c78469c4..7daefea97da 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js @@ -29,7 +29,7 @@ DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascr Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js index 5be028272c2..0df920f2679 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js @@ -24,7 +24,7 @@ DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascr Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-compiles-from-sources.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-compiles-from-sources.js index a0ac4a76bb6..c06a80f5526 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-compiles-from-sources.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-compiles-from-sources.js @@ -41,7 +41,7 @@ DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascr Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots @@ -168,4 +168,81 @@ event: event: {"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts","diagnostics":[]}} event: - {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":3}} \ No newline at end of file + {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":3}} +FileWatcher:: Triggered with /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 1:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Config file +Scheduled: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms FileWatcher:: Triggered with /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 1:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Config file +Running: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json +Reloading configured project /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json +event: + {"seq":0,"type":"event","event":"projectLoadingStart","body":{"projectName":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json","reason":"Change in config file detected"}} +Config: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json : { + "rootNames": [ + "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" + ], + "options": { + "rootDir": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src", + "baseUrl": "/users/username/projects/myproject/javascript/packages/recognizers-date-time", + "paths": { + "@microsoft/*": [ + "../*" + ] + }, + "resolveJsonModule": true, + "pathsBasePath": "/users/username/projects/myproject/javascript/packages/recognizers-date-time", + "configFilePath": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" + } +} +DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages 0 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages 0 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations +FileWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded +Starting updateGraphWorker: Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json +DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages 0 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages 0 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations +FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots +Finishing updateGraphWorker: Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json Version: 3 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Different program with same set of files +event: + {"seq":0,"type":"event","event":"projectLoadingFinish","body":{"projectName":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json"}} +event: + {"seq":0,"type":"event","event":"configFileDiag","body":{"triggerFile":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json","configFile":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json","diagnostics":[]}} +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts ProjectRootPath: /users/username/projects/myproject + Projects: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json +After ensureProjectForOpenFiles: +Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured) + Files (3) + +----------------------------------------------- +Open files: + FileName: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts ProjectRootPath: /users/username/projects/myproject + Projects: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json +got projects updated in background, updating diagnostics for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts +event: + {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts"]}} +event: + {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts","diagnostics":[]}} \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js index f8bfc0a50e4..b824b87612f 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js @@ -41,7 +41,7 @@ DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascr Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-recompiles-after-deleting-generated-folders.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-recompiles-after-deleting-generated-folders.js index d26f008eea3..d1ab321bf93 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-recompiles-after-deleting-generated-folders.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-recompiles-after-deleting-generated-folders.js @@ -30,7 +30,7 @@ FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/p FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages 0 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages 0 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: package.json file +FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots diff --git a/tests/baselines/reference/typeAliasDeclarationEmit.js b/tests/baselines/reference/typeAliasDeclarationEmit.js index 2106e1498d3..f2f223bf44b 100644 --- a/tests/baselines/reference/typeAliasDeclarationEmit.js +++ b/tests/baselines/reference/typeAliasDeclarationEmit.js @@ -11,5 +11,5 @@ define(["require", "exports"], function (require, exports) { //// [typeAliasDeclarationEmit.d.ts] -export declare type callback = () => T; -export declare type CallbackArray = () => T; +export type callback = () => T; +export type CallbackArray = () => T; diff --git a/tests/baselines/reference/typeAliasDeclarationEmit2.js b/tests/baselines/reference/typeAliasDeclarationEmit2.js index cf890a46798..2cef2e975f2 100644 --- a/tests/baselines/reference/typeAliasDeclarationEmit2.js +++ b/tests/baselines/reference/typeAliasDeclarationEmit2.js @@ -9,6 +9,6 @@ define(["require", "exports"], function (require, exports) { //// [typeAliasDeclarationEmit2.d.ts] -export declare type A = { +export type A = { value: a; }; diff --git a/tests/baselines/reference/typePredicateFreshLiteralWidening.js b/tests/baselines/reference/typePredicateFreshLiteralWidening.js new file mode 100644 index 00000000000..f8b747e77ab --- /dev/null +++ b/tests/baselines/reference/typePredicateFreshLiteralWidening.js @@ -0,0 +1,44 @@ +//// [typePredicateFreshLiteralWidening.ts] +type Narrowable = string | number | bigint | boolean; + +type Narrow = (A extends Narrowable ? A : never) | ({ + [K in keyof A]: Narrow; +}); + +const satisfies = + () => + (narrow: Narrow) => + narrow; + +/* ========================================================================== */ + +const isNotNull = (value: T | null): value is T => value !== null; + +type Item = { value: string | null }; + +const item1 = satisfies()({ value: "1" }); +const item2 = satisfies()({ value: "2" }); +const item3 = satisfies()({ value: null }); + +const values2: Array<"1" | "2" | null> = ["1", "2", null]; +const filteredValues2 = values2.filter(isNotNull); + +const values1 = [item1, item2, item3].map(item => item.value); +const filteredValues1 = values1.filter(isNotNull); + + +//// [typePredicateFreshLiteralWidening.js] +var satisfies = function () { + return function (narrow) { + return narrow; + }; +}; +/* ========================================================================== */ +var isNotNull = function (value) { return value !== null; }; +var item1 = satisfies()({ value: "1" }); +var item2 = satisfies()({ value: "2" }); +var item3 = satisfies()({ value: null }); +var values2 = ["1", "2", null]; +var filteredValues2 = values2.filter(isNotNull); +var values1 = [item1, item2, item3].map(function (item) { return item.value; }); +var filteredValues1 = values1.filter(isNotNull); diff --git a/tests/baselines/reference/typePredicateFreshLiteralWidening.symbols b/tests/baselines/reference/typePredicateFreshLiteralWidening.symbols new file mode 100644 index 00000000000..f9d7e9fd879 --- /dev/null +++ b/tests/baselines/reference/typePredicateFreshLiteralWidening.symbols @@ -0,0 +1,99 @@ +=== tests/cases/compiler/typePredicateFreshLiteralWidening.ts === +type Narrowable = string | number | bigint | boolean; +>Narrowable : Symbol(Narrowable, Decl(typePredicateFreshLiteralWidening.ts, 0, 0)) + +type Narrow = (A extends Narrowable ? A : never) | ({ +>Narrow : Symbol(Narrow, Decl(typePredicateFreshLiteralWidening.ts, 0, 53)) +>A : Symbol(A, Decl(typePredicateFreshLiteralWidening.ts, 2, 12)) +>A : Symbol(A, Decl(typePredicateFreshLiteralWidening.ts, 2, 12)) +>Narrowable : Symbol(Narrowable, Decl(typePredicateFreshLiteralWidening.ts, 0, 0)) +>A : Symbol(A, Decl(typePredicateFreshLiteralWidening.ts, 2, 12)) + + [K in keyof A]: Narrow; +>K : Symbol(K, Decl(typePredicateFreshLiteralWidening.ts, 3, 5)) +>A : Symbol(A, Decl(typePredicateFreshLiteralWidening.ts, 2, 12)) +>Narrow : Symbol(Narrow, Decl(typePredicateFreshLiteralWidening.ts, 0, 53)) +>A : Symbol(A, Decl(typePredicateFreshLiteralWidening.ts, 2, 12)) +>K : Symbol(K, Decl(typePredicateFreshLiteralWidening.ts, 3, 5)) + +}); + +const satisfies = +>satisfies : Symbol(satisfies, Decl(typePredicateFreshLiteralWidening.ts, 6, 5)) + + () => +>TWide : Symbol(TWide, Decl(typePredicateFreshLiteralWidening.ts, 7, 3)) + + (narrow: Narrow) => +>TNarrow : Symbol(TNarrow, Decl(typePredicateFreshLiteralWidening.ts, 8, 3)) +>TWide : Symbol(TWide, Decl(typePredicateFreshLiteralWidening.ts, 7, 3)) +>narrow : Symbol(narrow, Decl(typePredicateFreshLiteralWidening.ts, 8, 26)) +>Narrow : Symbol(Narrow, Decl(typePredicateFreshLiteralWidening.ts, 0, 53)) +>TNarrow : Symbol(TNarrow, Decl(typePredicateFreshLiteralWidening.ts, 8, 3)) + + narrow; +>narrow : Symbol(narrow, Decl(typePredicateFreshLiteralWidening.ts, 8, 26)) + +/* ========================================================================== */ + +const isNotNull = (value: T | null): value is T => value !== null; +>isNotNull : Symbol(isNotNull, Decl(typePredicateFreshLiteralWidening.ts, 13, 5)) +>T : Symbol(T, Decl(typePredicateFreshLiteralWidening.ts, 13, 19)) +>value : Symbol(value, Decl(typePredicateFreshLiteralWidening.ts, 13, 23)) +>T : Symbol(T, Decl(typePredicateFreshLiteralWidening.ts, 13, 19)) +>value : Symbol(value, Decl(typePredicateFreshLiteralWidening.ts, 13, 23)) +>T : Symbol(T, Decl(typePredicateFreshLiteralWidening.ts, 13, 19)) +>value : Symbol(value, Decl(typePredicateFreshLiteralWidening.ts, 13, 23)) + +type Item = { value: string | null }; +>Item : Symbol(Item, Decl(typePredicateFreshLiteralWidening.ts, 13, 70)) +>value : Symbol(value, Decl(typePredicateFreshLiteralWidening.ts, 15, 13)) + +const item1 = satisfies()({ value: "1" }); +>item1 : Symbol(item1, Decl(typePredicateFreshLiteralWidening.ts, 17, 5)) +>satisfies : Symbol(satisfies, Decl(typePredicateFreshLiteralWidening.ts, 6, 5)) +>Item : Symbol(Item, Decl(typePredicateFreshLiteralWidening.ts, 13, 70)) +>value : Symbol(value, Decl(typePredicateFreshLiteralWidening.ts, 17, 33)) + +const item2 = satisfies()({ value: "2" }); +>item2 : Symbol(item2, Decl(typePredicateFreshLiteralWidening.ts, 18, 5)) +>satisfies : Symbol(satisfies, Decl(typePredicateFreshLiteralWidening.ts, 6, 5)) +>Item : Symbol(Item, Decl(typePredicateFreshLiteralWidening.ts, 13, 70)) +>value : Symbol(value, Decl(typePredicateFreshLiteralWidening.ts, 18, 33)) + +const item3 = satisfies()({ value: null }); +>item3 : Symbol(item3, Decl(typePredicateFreshLiteralWidening.ts, 19, 5)) +>satisfies : Symbol(satisfies, Decl(typePredicateFreshLiteralWidening.ts, 6, 5)) +>Item : Symbol(Item, Decl(typePredicateFreshLiteralWidening.ts, 13, 70)) +>value : Symbol(value, Decl(typePredicateFreshLiteralWidening.ts, 19, 33)) + +const values2: Array<"1" | "2" | null> = ["1", "2", null]; +>values2 : Symbol(values2, Decl(typePredicateFreshLiteralWidening.ts, 21, 5)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + +const filteredValues2 = values2.filter(isNotNull); +>filteredValues2 : Symbol(filteredValues2, Decl(typePredicateFreshLiteralWidening.ts, 22, 5)) +>values2.filter : Symbol(Array.filter, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>values2 : Symbol(values2, Decl(typePredicateFreshLiteralWidening.ts, 21, 5)) +>filter : Symbol(Array.filter, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>isNotNull : Symbol(isNotNull, Decl(typePredicateFreshLiteralWidening.ts, 13, 5)) + +const values1 = [item1, item2, item3].map(item => item.value); +>values1 : Symbol(values1, Decl(typePredicateFreshLiteralWidening.ts, 24, 5)) +>[item1, item2, item3].map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --)) +>item1 : Symbol(item1, Decl(typePredicateFreshLiteralWidening.ts, 17, 5)) +>item2 : Symbol(item2, Decl(typePredicateFreshLiteralWidening.ts, 18, 5)) +>item3 : Symbol(item3, Decl(typePredicateFreshLiteralWidening.ts, 19, 5)) +>map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --)) +>item : Symbol(item, Decl(typePredicateFreshLiteralWidening.ts, 24, 42)) +>item.value : Symbol(value, Decl(typePredicateFreshLiteralWidening.ts, 17, 33), Decl(typePredicateFreshLiteralWidening.ts, 18, 33), Decl(typePredicateFreshLiteralWidening.ts, 19, 33)) +>item : Symbol(item, Decl(typePredicateFreshLiteralWidening.ts, 24, 42)) +>value : Symbol(value, Decl(typePredicateFreshLiteralWidening.ts, 17, 33), Decl(typePredicateFreshLiteralWidening.ts, 18, 33), Decl(typePredicateFreshLiteralWidening.ts, 19, 33)) + +const filteredValues1 = values1.filter(isNotNull); +>filteredValues1 : Symbol(filteredValues1, Decl(typePredicateFreshLiteralWidening.ts, 25, 5)) +>values1.filter : Symbol(Array.filter, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>values1 : Symbol(values1, Decl(typePredicateFreshLiteralWidening.ts, 24, 5)) +>filter : Symbol(Array.filter, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>isNotNull : Symbol(isNotNull, Decl(typePredicateFreshLiteralWidening.ts, 13, 5)) + diff --git a/tests/baselines/reference/typePredicateFreshLiteralWidening.types b/tests/baselines/reference/typePredicateFreshLiteralWidening.types new file mode 100644 index 00000000000..2cf5bf2b5bf --- /dev/null +++ b/tests/baselines/reference/typePredicateFreshLiteralWidening.types @@ -0,0 +1,105 @@ +=== tests/cases/compiler/typePredicateFreshLiteralWidening.ts === +type Narrowable = string | number | bigint | boolean; +>Narrowable : string | number | bigint | boolean + +type Narrow = (A extends Narrowable ? A : never) | ({ +>Narrow : Narrow + + [K in keyof A]: Narrow; +}); + +const satisfies = +>satisfies : () => (narrow: Narrow) => Narrow + + () => +>() => (narrow: Narrow) => narrow : () => (narrow: Narrow) => Narrow + + (narrow: Narrow) => +>(narrow: Narrow) => narrow : (narrow: Narrow) => Narrow +>narrow : Narrow + + narrow; +>narrow : Narrow + +/* ========================================================================== */ + +const isNotNull = (value: T | null): value is T => value !== null; +>isNotNull : (value: T | null) => value is T +>(value: T | null): value is T => value !== null : (value: T | null) => value is T +>value : T | null +>null : null +>value !== null : boolean +>value : T | null +>null : null + +type Item = { value: string | null }; +>Item : { value: string | null; } +>value : string | null +>null : null + +const item1 = satisfies()({ value: "1" }); +>item1 : { value: "1"; } +>satisfies()({ value: "1" }) : { value: "1"; } +>satisfies() : (narrow: Narrow) => Narrow +>satisfies : () => (narrow: Narrow) => Narrow +>{ value: "1" } : { value: "1"; } +>value : "1" +>"1" : "1" + +const item2 = satisfies()({ value: "2" }); +>item2 : { value: "2"; } +>satisfies()({ value: "2" }) : { value: "2"; } +>satisfies() : (narrow: Narrow) => Narrow +>satisfies : () => (narrow: Narrow) => Narrow +>{ value: "2" } : { value: "2"; } +>value : "2" +>"2" : "2" + +const item3 = satisfies()({ value: null }); +>item3 : { value: null; } +>satisfies()({ value: null }) : { value: null; } +>satisfies() : (narrow: Narrow) => Narrow +>satisfies : () => (narrow: Narrow) => Narrow +>{ value: null } : { value: null; } +>value : null +>null : null + +const values2: Array<"1" | "2" | null> = ["1", "2", null]; +>values2 : ("1" | "2" | null)[] +>null : null +>["1", "2", null] : ("1" | "2" | null)[] +>"1" : "1" +>"2" : "2" +>null : null + +const filteredValues2 = values2.filter(isNotNull); +>filteredValues2 : ("1" | "2")[] +>values2.filter(isNotNull) : ("1" | "2")[] +>values2.filter : { (predicate: (value: "1" | "2" | null, index: number, array: ("1" | "2" | null)[]) => value is S, thisArg?: any): S[]; (predicate: (value: "1" | "2" | null, index: number, array: ("1" | "2" | null)[]) => unknown, thisArg?: any): ("1" | "2" | null)[]; } +>values2 : ("1" | "2" | null)[] +>filter : { (predicate: (value: "1" | "2" | null, index: number, array: ("1" | "2" | null)[]) => value is S, thisArg?: any): S[]; (predicate: (value: "1" | "2" | null, index: number, array: ("1" | "2" | null)[]) => unknown, thisArg?: any): ("1" | "2" | null)[]; } +>isNotNull : (value: T | null) => value is T + +const values1 = [item1, item2, item3].map(item => item.value); +>values1 : ("1" | "2" | null)[] +>[item1, item2, item3].map(item => item.value) : ("1" | "2" | null)[] +>[item1, item2, item3].map : (callbackfn: (value: { value: "1"; } | { value: "2"; } | { value: null; }, index: number, array: ({ value: "1"; } | { value: "2"; } | { value: null; })[]) => U, thisArg?: any) => U[] +>[item1, item2, item3] : ({ value: "1"; } | { value: "2"; } | { value: null; })[] +>item1 : { value: "1"; } +>item2 : { value: "2"; } +>item3 : { value: null; } +>map : (callbackfn: (value: { value: "1"; } | { value: "2"; } | { value: null; }, index: number, array: ({ value: "1"; } | { value: "2"; } | { value: null; })[]) => U, thisArg?: any) => U[] +>item => item.value : (item: { value: "1"; } | { value: "2"; } | { value: null; }) => "1" | "2" | null +>item : { value: "1"; } | { value: "2"; } | { value: null; } +>item.value : "1" | "2" | null +>item : { value: "1"; } | { value: "2"; } | { value: null; } +>value : "1" | "2" | null + +const filteredValues1 = values1.filter(isNotNull); +>filteredValues1 : ("1" | "2")[] +>values1.filter(isNotNull) : ("1" | "2")[] +>values1.filter : { (predicate: (value: "1" | "2" | null, index: number, array: ("1" | "2" | null)[]) => value is S, thisArg?: any): S[]; (predicate: (value: "1" | "2" | null, index: number, array: ("1" | "2" | null)[]) => unknown, thisArg?: any): ("1" | "2" | null)[]; } +>values1 : ("1" | "2" | null)[] +>filter : { (predicate: (value: "1" | "2" | null, index: number, array: ("1" | "2" | null)[]) => value is S, thisArg?: any): S[]; (predicate: (value: "1" | "2" | null, index: number, array: ("1" | "2" | null)[]) => unknown, thisArg?: any): ("1" | "2" | null)[]; } +>isNotNull : (value: T | null) => value is T + diff --git a/tests/baselines/reference/typePredicateStructuralMatch.symbols b/tests/baselines/reference/typePredicateStructuralMatch.symbols index 5e4826ebbf2..75fea1027d2 100644 --- a/tests/baselines/reference/typePredicateStructuralMatch.symbols +++ b/tests/baselines/reference/typePredicateStructuralMatch.symbols @@ -51,9 +51,9 @@ function getResults1(value: Results | { data: Results }): Results { return isResponseInData(value) ? value.data : value; >isResponseInData : Symbol(isResponseInData, Decl(typePredicateStructuralMatch.ts, 9, 24)) >value : Symbol(value, Decl(typePredicateStructuralMatch.ts, 15, 21)) ->value.data : Symbol(data, Decl(typePredicateStructuralMatch.ts, 15, 39)) +>value.data : Symbol(data, Decl(typePredicateStructuralMatch.ts, 11, 63)) >value : Symbol(value, Decl(typePredicateStructuralMatch.ts, 15, 21)) ->data : Symbol(data, Decl(typePredicateStructuralMatch.ts, 15, 39)) +>data : Symbol(data, Decl(typePredicateStructuralMatch.ts, 11, 63)) >value : Symbol(value, Decl(typePredicateStructuralMatch.ts, 15, 21)) } diff --git a/tests/baselines/reference/typeTagOnFunctionReferencesGeneric.js b/tests/baselines/reference/typeTagOnFunctionReferencesGeneric.js new file mode 100644 index 00000000000..d7f54faade7 --- /dev/null +++ b/tests/baselines/reference/typeTagOnFunctionReferencesGeneric.js @@ -0,0 +1,41 @@ +//// [typeTagOnFunctionReferencesGeneric.js] +/** + * @typedef {(m : T) => T} IFn + */ + +/**@type {IFn}*/ +export function inJs(l) { + return l; +} +inJs(1); // lints error. Why? + +/**@type {IFn}*/ +const inJsArrow = (j) => { + return j; +} +inJsArrow(2); // no error gets linted as expected + + +//// [typeTagOnFunctionReferencesGeneric.js] +"use strict"; +/** + * @typedef {(m : T) => T} IFn + */ +exports.__esModule = true; +exports.inJs = void 0; +/**@type {IFn}*/ +function inJs(l) { + return l; +} +exports.inJs = inJs; +inJs(1); // lints error. Why? +/**@type {IFn}*/ +var inJsArrow = function (j) { + return j; +}; +inJsArrow(2); // no error gets linted as expected + + +//// [typeTagOnFunctionReferencesGeneric.d.ts] +export function inJs(m: T): T; +export type IFn = (m: T) => T; diff --git a/tests/baselines/reference/typeTagOnFunctionReferencesGeneric.symbols b/tests/baselines/reference/typeTagOnFunctionReferencesGeneric.symbols new file mode 100644 index 00000000000..10e9e580697 --- /dev/null +++ b/tests/baselines/reference/typeTagOnFunctionReferencesGeneric.symbols @@ -0,0 +1,27 @@ +=== tests/cases/conformance/salsa/typeTagOnFunctionReferencesGeneric.js === +/** + * @typedef {(m : T) => T} IFn + */ + +/**@type {IFn}*/ +export function inJs(l) { +>inJs : Symbol(inJs, Decl(typeTagOnFunctionReferencesGeneric.js, 0, 0)) +>l : Symbol(l, Decl(typeTagOnFunctionReferencesGeneric.js, 5, 21)) + + return l; +>l : Symbol(l, Decl(typeTagOnFunctionReferencesGeneric.js, 5, 21)) +} +inJs(1); // lints error. Why? +>inJs : Symbol(inJs, Decl(typeTagOnFunctionReferencesGeneric.js, 0, 0)) + +/**@type {IFn}*/ +const inJsArrow = (j) => { +>inJsArrow : Symbol(inJsArrow, Decl(typeTagOnFunctionReferencesGeneric.js, 11, 5)) +>j : Symbol(j, Decl(typeTagOnFunctionReferencesGeneric.js, 11, 19)) + + return j; +>j : Symbol(j, Decl(typeTagOnFunctionReferencesGeneric.js, 11, 19)) +} +inJsArrow(2); // no error gets linted as expected +>inJsArrow : Symbol(inJsArrow, Decl(typeTagOnFunctionReferencesGeneric.js, 11, 5)) + diff --git a/tests/baselines/reference/typeTagOnFunctionReferencesGeneric.types b/tests/baselines/reference/typeTagOnFunctionReferencesGeneric.types new file mode 100644 index 00000000000..d5f8c828039 --- /dev/null +++ b/tests/baselines/reference/typeTagOnFunctionReferencesGeneric.types @@ -0,0 +1,32 @@ +=== tests/cases/conformance/salsa/typeTagOnFunctionReferencesGeneric.js === +/** + * @typedef {(m : T) => T} IFn + */ + +/**@type {IFn}*/ +export function inJs(l) { +>inJs : (m: T) => T +>l : T + + return l; +>l : T +} +inJs(1); // lints error. Why? +>inJs(1) : 1 +>inJs : (m: T) => T +>1 : 1 + +/**@type {IFn}*/ +const inJsArrow = (j) => { +>inJsArrow : IFn +>(j) => { return j;} : (j: T) => T +>j : T + + return j; +>j : T +} +inJsArrow(2); // no error gets linted as expected +>inJsArrow(2) : 2 +>inJsArrow : IFn +>2 : 2 + diff --git a/tests/baselines/reference/typeTagWithGenericSignature.types b/tests/baselines/reference/typeTagWithGenericSignature.types index 585fd49fbf4..a5b92a7db86 100644 --- a/tests/baselines/reference/typeTagWithGenericSignature.types +++ b/tests/baselines/reference/typeTagWithGenericSignature.types @@ -1,7 +1,7 @@ === tests/cases/conformance/jsdoc/bug25618.js === /** @type {(param?: T) => T | undefined} */ function typed(param) { ->typed : (param: T | undefined) => T | undefined +>typed : (param?: T | undefined) => T | undefined >param : T | undefined return param; @@ -11,7 +11,7 @@ function typed(param) { var n = typed(1); >n : number | undefined >typed(1) : 1 | undefined ->typed : (param: T | undefined) => T | undefined +>typed : (param?: T | undefined) => T | undefined >1 : 1 diff --git a/tests/baselines/reference/typeVariableConstraintedToAliasNotAssignableToUnion.errors.txt b/tests/baselines/reference/typeVariableConstraintedToAliasNotAssignableToUnion.errors.txt new file mode 100644 index 00000000000..e137085073a --- /dev/null +++ b/tests/baselines/reference/typeVariableConstraintedToAliasNotAssignableToUnion.errors.txt @@ -0,0 +1,94 @@ +tests/cases/compiler/typeVariableConstraintedToAliasNotAssignableToUnion.ts(21,5): error TS2322: Type 'T' is not assignable to type 'boolean'. + Type 'TableClass' is not assignable to type 'boolean'. +tests/cases/compiler/typeVariableConstraintedToAliasNotAssignableToUnion.ts(22,5): error TS2322: Type 'T' is not assignable to type 'string | number'. + Type 'TableClass' is not assignable to type 'string | number'. +tests/cases/compiler/typeVariableConstraintedToAliasNotAssignableToUnion.ts(23,5): error TS2322: Type 'T' is not assignable to type 'string | Something'. + Type 'TableClass' is not assignable to type 'string | Something'. +tests/cases/compiler/typeVariableConstraintedToAliasNotAssignableToUnion.ts(24,5): error TS2322: Type 'T' is not assignable to type 'Something | SomethingElse'. + Type 'TableClass' is not assignable to type 'Something | SomethingElse'. +tests/cases/compiler/typeVariableConstraintedToAliasNotAssignableToUnion.ts(28,5): error TS2322: Type 'T' is not assignable to type 'boolean'. + Type 'TableClass' is not assignable to type 'boolean'. +tests/cases/compiler/typeVariableConstraintedToAliasNotAssignableToUnion.ts(29,5): error TS2322: Type 'T' is not assignable to type 'string | number'. + Type 'TableClass' is not assignable to type 'string | number'. +tests/cases/compiler/typeVariableConstraintedToAliasNotAssignableToUnion.ts(30,5): error TS2322: Type 'T' is not assignable to type 'string | Something'. + Type 'TableClass' is not assignable to type 'string | Something'. +tests/cases/compiler/typeVariableConstraintedToAliasNotAssignableToUnion.ts(31,5): error TS2322: Type 'T' is not assignable to type 'Something | SomethingElse'. + Type 'TableClass' is not assignable to type 'Something | SomethingElse'. +tests/cases/compiler/typeVariableConstraintedToAliasNotAssignableToUnion.ts(35,1): error TS2322: Type 'Table' is not assignable to type 'boolean'. +tests/cases/compiler/typeVariableConstraintedToAliasNotAssignableToUnion.ts(36,1): error TS2322: Type 'Table' is not assignable to type 'string | number'. +tests/cases/compiler/typeVariableConstraintedToAliasNotAssignableToUnion.ts(37,1): error TS2322: Type 'Table' is not assignable to type 'string | Something'. +tests/cases/compiler/typeVariableConstraintedToAliasNotAssignableToUnion.ts(38,1): error TS2322: Type 'Table' is not assignable to type 'Something | SomethingElse'. + + +==== tests/cases/compiler/typeVariableConstraintedToAliasNotAssignableToUnion.ts (12 errors) ==== + declare class TableClass { + _field: S; + } + + export type Table = TableClass; + + interface Something { + prop: number; + } + + interface SomethingElse { + prop2: string; + } + + declare let aBoolean: boolean; + declare let aStringOrNumber: string | number; + declare let aStringOrSomething: string | Something; + declare let someUnion: Something | SomethingElse; + + function fn(o: T) { + aBoolean = o; + ~~~~~~~~ +!!! error TS2322: Type 'T' is not assignable to type 'boolean'. +!!! error TS2322: Type 'TableClass' is not assignable to type 'boolean'. + aStringOrNumber = o; + ~~~~~~~~~~~~~~~ +!!! error TS2322: Type 'T' is not assignable to type 'string | number'. +!!! error TS2322: Type 'TableClass' is not assignable to type 'string | number'. + aStringOrSomething = o; + ~~~~~~~~~~~~~~~~~~ +!!! error TS2322: Type 'T' is not assignable to type 'string | Something'. +!!! error TS2322: Type 'TableClass' is not assignable to type 'string | Something'. + someUnion = o; + ~~~~~~~~~ +!!! error TS2322: Type 'T' is not assignable to type 'Something | SomethingElse'. +!!! error TS2322: Type 'TableClass' is not assignable to type 'Something | SomethingElse'. + } + + function fn2(o: T) { + aBoolean = o; + ~~~~~~~~ +!!! error TS2322: Type 'T' is not assignable to type 'boolean'. +!!! error TS2322: Type 'TableClass' is not assignable to type 'boolean'. + aStringOrNumber = o; + ~~~~~~~~~~~~~~~ +!!! error TS2322: Type 'T' is not assignable to type 'string | number'. +!!! error TS2322: Type 'TableClass' is not assignable to type 'string | number'. + aStringOrSomething = o; + ~~~~~~~~~~~~~~~~~~ +!!! error TS2322: Type 'T' is not assignable to type 'string | Something'. +!!! error TS2322: Type 'TableClass' is not assignable to type 'string | Something'. + someUnion = o; + ~~~~~~~~~ +!!! error TS2322: Type 'T' is not assignable to type 'Something | SomethingElse'. +!!! error TS2322: Type 'TableClass' is not assignable to type 'Something | SomethingElse'. + } + + declare const o: Table; + aBoolean = o; + ~~~~~~~~ +!!! error TS2322: Type 'Table' is not assignable to type 'boolean'. + aStringOrNumber = o; + ~~~~~~~~~~~~~~~ +!!! error TS2322: Type 'Table' is not assignable to type 'string | number'. + aStringOrSomething = o; + ~~~~~~~~~~~~~~~~~~ +!!! error TS2322: Type 'Table' is not assignable to type 'string | Something'. + someUnion = o; + ~~~~~~~~~ +!!! error TS2322: Type 'Table' is not assignable to type 'Something | SomethingElse'. + \ No newline at end of file diff --git a/tests/baselines/reference/typeVariableConstraintedToAliasNotAssignableToUnion.js b/tests/baselines/reference/typeVariableConstraintedToAliasNotAssignableToUnion.js new file mode 100644 index 00000000000..6384bfa3ce4 --- /dev/null +++ b/tests/baselines/reference/typeVariableConstraintedToAliasNotAssignableToUnion.js @@ -0,0 +1,60 @@ +//// [typeVariableConstraintedToAliasNotAssignableToUnion.ts] +declare class TableClass { + _field: S; +} + +export type Table = TableClass; + +interface Something { + prop: number; +} + +interface SomethingElse { + prop2: string; +} + +declare let aBoolean: boolean; +declare let aStringOrNumber: string | number; +declare let aStringOrSomething: string | Something; +declare let someUnion: Something | SomethingElse; + +function fn(o: T) { + aBoolean = o; + aStringOrNumber = o; + aStringOrSomething = o; + someUnion = o; +} + +function fn2(o: T) { + aBoolean = o; + aStringOrNumber = o; + aStringOrSomething = o; + someUnion = o; +} + +declare const o: Table; +aBoolean = o; +aStringOrNumber = o; +aStringOrSomething = o; +someUnion = o; + + +//// [typeVariableConstraintedToAliasNotAssignableToUnion.js] +"use strict"; +exports.__esModule = true; +function fn(o) { + aBoolean = o; + aStringOrNumber = o; + aStringOrSomething = o; + someUnion = o; +} +function fn2(o) { + aBoolean = o; + aStringOrNumber = o; + aStringOrSomething = o; + someUnion = o; +} +aBoolean = o; +aStringOrNumber = o; +aStringOrSomething = o; +someUnion = o; diff --git a/tests/baselines/reference/typeVariableConstraintedToAliasNotAssignableToUnion.symbols b/tests/baselines/reference/typeVariableConstraintedToAliasNotAssignableToUnion.symbols new file mode 100644 index 00000000000..bb13e96ad7e --- /dev/null +++ b/tests/baselines/reference/typeVariableConstraintedToAliasNotAssignableToUnion.symbols @@ -0,0 +1,111 @@ +=== tests/cases/compiler/typeVariableConstraintedToAliasNotAssignableToUnion.ts === +declare class TableClass { +>TableClass : Symbol(TableClass, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 0, 0)) +>S : Symbol(S, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 0, 25)) + + _field: S; +>_field : Symbol(TableClass._field, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 0, 35)) +>S : Symbol(S, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 0, 25)) +} + +export type Table = TableClass; +>Table : Symbol(Table, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 2, 1)) +>TableClass : Symbol(TableClass, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 0, 0)) + +interface Something { +>Something : Symbol(Something, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 4, 31)) + + prop: number; +>prop : Symbol(Something.prop, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 6, 21)) +} + +interface SomethingElse { +>SomethingElse : Symbol(SomethingElse, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 8, 1)) + + prop2: string; +>prop2 : Symbol(SomethingElse.prop2, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 10, 25)) +} + +declare let aBoolean: boolean; +>aBoolean : Symbol(aBoolean, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 14, 11)) + +declare let aStringOrNumber: string | number; +>aStringOrNumber : Symbol(aStringOrNumber, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 15, 11)) + +declare let aStringOrSomething: string | Something; +>aStringOrSomething : Symbol(aStringOrSomething, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 16, 11)) +>Something : Symbol(Something, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 4, 31)) + +declare let someUnion: Something | SomethingElse; +>someUnion : Symbol(someUnion, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 17, 11)) +>Something : Symbol(Something, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 4, 31)) +>SomethingElse : Symbol(SomethingElse, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 8, 1)) + +function fn(o: T) { +>fn : Symbol(fn, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 17, 49)) +>T : Symbol(T, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 19, 12)) +>Table : Symbol(Table, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 2, 1)) +>o : Symbol(o, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 19, 29)) +>T : Symbol(T, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 19, 12)) + + aBoolean = o; +>aBoolean : Symbol(aBoolean, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 14, 11)) +>o : Symbol(o, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 19, 29)) + + aStringOrNumber = o; +>aStringOrNumber : Symbol(aStringOrNumber, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 15, 11)) +>o : Symbol(o, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 19, 29)) + + aStringOrSomething = o; +>aStringOrSomething : Symbol(aStringOrSomething, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 16, 11)) +>o : Symbol(o, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 19, 29)) + + someUnion = o; +>someUnion : Symbol(someUnion, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 17, 11)) +>o : Symbol(o, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 19, 29)) +} + +function fn2(o: T) { +>fn2 : Symbol(fn2, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 24, 1)) +>T : Symbol(T, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 26, 13)) +>TableClass : Symbol(TableClass, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 0, 0)) +>o : Symbol(o, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 26, 35)) +>T : Symbol(T, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 26, 13)) + + aBoolean = o; +>aBoolean : Symbol(aBoolean, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 14, 11)) +>o : Symbol(o, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 26, 35)) + + aStringOrNumber = o; +>aStringOrNumber : Symbol(aStringOrNumber, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 15, 11)) +>o : Symbol(o, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 26, 35)) + + aStringOrSomething = o; +>aStringOrSomething : Symbol(aStringOrSomething, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 16, 11)) +>o : Symbol(o, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 26, 35)) + + someUnion = o; +>someUnion : Symbol(someUnion, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 17, 11)) +>o : Symbol(o, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 26, 35)) +} + +declare const o: Table; +>o : Symbol(o, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 33, 13)) +>Table : Symbol(Table, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 2, 1)) + +aBoolean = o; +>aBoolean : Symbol(aBoolean, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 14, 11)) +>o : Symbol(o, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 33, 13)) + +aStringOrNumber = o; +>aStringOrNumber : Symbol(aStringOrNumber, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 15, 11)) +>o : Symbol(o, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 33, 13)) + +aStringOrSomething = o; +>aStringOrSomething : Symbol(aStringOrSomething, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 16, 11)) +>o : Symbol(o, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 33, 13)) + +someUnion = o; +>someUnion : Symbol(someUnion, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 17, 11)) +>o : Symbol(o, Decl(typeVariableConstraintedToAliasNotAssignableToUnion.ts, 33, 13)) + diff --git a/tests/baselines/reference/typeVariableConstraintedToAliasNotAssignableToUnion.types b/tests/baselines/reference/typeVariableConstraintedToAliasNotAssignableToUnion.types new file mode 100644 index 00000000000..899df75a152 --- /dev/null +++ b/tests/baselines/reference/typeVariableConstraintedToAliasNotAssignableToUnion.types @@ -0,0 +1,106 @@ +=== tests/cases/compiler/typeVariableConstraintedToAliasNotAssignableToUnion.ts === +declare class TableClass { +>TableClass : TableClass + + _field: S; +>_field : S +} + +export type Table = TableClass; +>Table : TableClass + +interface Something { + prop: number; +>prop : number +} + +interface SomethingElse { + prop2: string; +>prop2 : string +} + +declare let aBoolean: boolean; +>aBoolean : boolean + +declare let aStringOrNumber: string | number; +>aStringOrNumber : string | number + +declare let aStringOrSomething: string | Something; +>aStringOrSomething : string | Something + +declare let someUnion: Something | SomethingElse; +>someUnion : Something | SomethingElse + +function fn(o: T) { +>fn : (o: T) => void +>o : T + + aBoolean = o; +>aBoolean = o : T +>aBoolean : boolean +>o : T + + aStringOrNumber = o; +>aStringOrNumber = o : T +>aStringOrNumber : string | number +>o : T + + aStringOrSomething = o; +>aStringOrSomething = o : T +>aStringOrSomething : string | Something +>o : T + + someUnion = o; +>someUnion = o : T +>someUnion : Something | SomethingElse +>o : T +} + +function fn2(o: T) { +>fn2 : >(o: T) => void +>o : T + + aBoolean = o; +>aBoolean = o : T +>aBoolean : boolean +>o : T + + aStringOrNumber = o; +>aStringOrNumber = o : T +>aStringOrNumber : string | number +>o : T + + aStringOrSomething = o; +>aStringOrSomething = o : T +>aStringOrSomething : string | Something +>o : T + + someUnion = o; +>someUnion = o : T +>someUnion : Something | SomethingElse +>o : T +} + +declare const o: Table; +>o : Table + +aBoolean = o; +>aBoolean = o : Table +>aBoolean : boolean +>o : Table + +aStringOrNumber = o; +>aStringOrNumber = o : Table +>aStringOrNumber : string | number +>o : Table + +aStringOrSomething = o; +>aStringOrSomething = o : Table +>aStringOrSomething : string | Something +>o : Table + +someUnion = o; +>someUnion = o : Table +>someUnion : Something | SomethingElse +>o : Table + diff --git a/tests/baselines/reference/types.asyncGenerators.es2018.1.symbols b/tests/baselines/reference/types.asyncGenerators.es2018.1.symbols index 5cf681477e5..a7e0aa98308 100644 --- a/tests/baselines/reference/types.asyncGenerators.es2018.1.symbols +++ b/tests/baselines/reference/types.asyncGenerators.es2018.1.symbols @@ -16,18 +16,18 @@ async function * inferReturnType4() { >inferReturnType4 : Symbol(inferReturnType4, Decl(types.asyncGenerators.es2018.1.ts, 7, 1)) yield Promise.resolve(1); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) } async function * inferReturnType5() { >inferReturnType5 : Symbol(inferReturnType5, Decl(types.asyncGenerators.es2018.1.ts, 10, 1)) yield 1; yield Promise.resolve(2); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) } async function * inferReturnType6() { >inferReturnType6 : Symbol(inferReturnType6, Decl(types.asyncGenerators.es2018.1.ts, 14, 1)) @@ -38,9 +38,9 @@ async function * inferReturnType7() { >inferReturnType7 : Symbol(inferReturnType7, Decl(types.asyncGenerators.es2018.1.ts, 17, 1)) yield* [Promise.resolve(1)]; ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) } async function * inferReturnType8() { >inferReturnType8 : Symbol(inferReturnType8, Decl(types.asyncGenerators.es2018.1.ts, 20, 1)) @@ -58,9 +58,9 @@ const assignability2: () => AsyncIterableIterator = async function * () >AsyncIterableIterator : Symbol(AsyncIterableIterator, Decl(lib.es2018.asynciterable.d.ts, --, --)) yield Promise.resolve(1); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) }; const assignability3: () => AsyncIterableIterator = async function * () { @@ -74,9 +74,9 @@ const assignability4: () => AsyncIterableIterator = async function * () >AsyncIterableIterator : Symbol(AsyncIterableIterator, Decl(lib.es2018.asynciterable.d.ts, --, --)) yield* [Promise.resolve(1)]; ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) }; const assignability5: () => AsyncIterableIterator = async function * () { @@ -96,9 +96,9 @@ const assignability7: () => AsyncIterable = async function * () { >AsyncIterable : Symbol(AsyncIterable, Decl(lib.es2018.asynciterable.d.ts, --, --)) yield Promise.resolve(1); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) }; const assignability8: () => AsyncIterable = async function * () { @@ -112,9 +112,9 @@ const assignability9: () => AsyncIterable = async function * () { >AsyncIterable : Symbol(AsyncIterable, Decl(lib.es2018.asynciterable.d.ts, --, --)) yield* [Promise.resolve(1)]; ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) }; const assignability10: () => AsyncIterable = async function * () { @@ -134,9 +134,9 @@ const assignability12: () => AsyncIterator = async function * () { >AsyncIterator : Symbol(AsyncIterator, Decl(lib.es2018.asynciterable.d.ts, --, --)) yield Promise.resolve(1); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) }; const assignability13: () => AsyncIterator = async function * () { @@ -150,9 +150,9 @@ const assignability14: () => AsyncIterator = async function * () { >AsyncIterator : Symbol(AsyncIterator, Decl(lib.es2018.asynciterable.d.ts, --, --)) yield* [Promise.resolve(1)]; ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) }; const assignability15: () => AsyncIterator = async function * () { @@ -172,9 +172,9 @@ async function * explicitReturnType2(): AsyncIterableIterator { >AsyncIterableIterator : Symbol(AsyncIterableIterator, Decl(lib.es2018.asynciterable.d.ts, --, --)) yield Promise.resolve(1); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) } async function * explicitReturnType3(): AsyncIterableIterator { >explicitReturnType3 : Symbol(explicitReturnType3, Decl(types.asyncGenerators.es2018.1.ts, 74, 1)) @@ -187,9 +187,9 @@ async function * explicitReturnType4(): AsyncIterableIterator { >AsyncIterableIterator : Symbol(AsyncIterableIterator, Decl(lib.es2018.asynciterable.d.ts, --, --)) yield* [Promise.resolve(1)]; ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) } async function * explicitReturnType5(): AsyncIterableIterator { >explicitReturnType5 : Symbol(explicitReturnType5, Decl(types.asyncGenerators.es2018.1.ts, 80, 1)) @@ -208,9 +208,9 @@ async function * explicitReturnType7(): AsyncIterable { >AsyncIterable : Symbol(AsyncIterable, Decl(lib.es2018.asynciterable.d.ts, --, --)) yield Promise.resolve(1); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) } async function * explicitReturnType8(): AsyncIterable { >explicitReturnType8 : Symbol(explicitReturnType8, Decl(types.asyncGenerators.es2018.1.ts, 89, 1)) @@ -223,9 +223,9 @@ async function * explicitReturnType9(): AsyncIterable { >AsyncIterable : Symbol(AsyncIterable, Decl(lib.es2018.asynciterable.d.ts, --, --)) yield* [Promise.resolve(1)]; ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) } async function * explicitReturnType10(): AsyncIterable { >explicitReturnType10 : Symbol(explicitReturnType10, Decl(types.asyncGenerators.es2018.1.ts, 95, 1)) @@ -244,9 +244,9 @@ async function * explicitReturnType12(): AsyncIterator { >AsyncIterator : Symbol(AsyncIterator, Decl(lib.es2018.asynciterable.d.ts, --, --)) yield Promise.resolve(1); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) } async function * explicitReturnType13(): AsyncIterator { >explicitReturnType13 : Symbol(explicitReturnType13, Decl(types.asyncGenerators.es2018.1.ts, 104, 1)) @@ -259,9 +259,9 @@ async function * explicitReturnType14(): AsyncIterator { >AsyncIterator : Symbol(AsyncIterator, Decl(lib.es2018.asynciterable.d.ts, --, --)) yield* [Promise.resolve(1)]; ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) } async function * explicitReturnType15(): AsyncIterator { >explicitReturnType15 : Symbol(explicitReturnType15, Decl(types.asyncGenerators.es2018.1.ts, 110, 1)) @@ -285,9 +285,9 @@ async function * awaitedType2() { const x = await Promise.resolve(1); >x : Symbol(x, Decl(types.asyncGenerators.es2018.1.ts, 121, 9)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) } async function * nextType1(): { next(...args: [] | [number | PromiseLike]): any } { >nextType1 : Symbol(nextType1, Decl(types.asyncGenerators.es2018.1.ts, 122, 1)) diff --git a/tests/baselines/reference/types.asyncGenerators.es2018.1.types b/tests/baselines/reference/types.asyncGenerators.es2018.1.types index 10f961da0a2..db0c35b27c8 100644 --- a/tests/baselines/reference/types.asyncGenerators.es2018.1.types +++ b/tests/baselines/reference/types.asyncGenerators.es2018.1.types @@ -21,9 +21,9 @@ async function * inferReturnType4() { yield Promise.resolve(1); >yield Promise.resolve(1) : any >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 } async function * inferReturnType5() { @@ -36,9 +36,9 @@ async function * inferReturnType5() { yield Promise.resolve(2); >yield Promise.resolve(2) : any >Promise.resolve(2) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >2 : 2 } async function * inferReturnType6() { @@ -57,9 +57,9 @@ async function * inferReturnType7() { >yield* [Promise.resolve(1)] : any >[Promise.resolve(1)] : Promise[] >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 } async function * inferReturnType8() { @@ -89,9 +89,9 @@ const assignability2: () => AsyncIterableIterator = async function * () yield Promise.resolve(1); >yield Promise.resolve(1) : undefined >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 }; @@ -114,9 +114,9 @@ const assignability4: () => AsyncIterableIterator = async function * () >yield* [Promise.resolve(1)] : any >[Promise.resolve(1)] : Promise[] >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 }; @@ -149,9 +149,9 @@ const assignability7: () => AsyncIterable = async function * () { yield Promise.resolve(1); >yield Promise.resolve(1) : undefined >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 }; @@ -174,9 +174,9 @@ const assignability9: () => AsyncIterable = async function * () { >yield* [Promise.resolve(1)] : any >[Promise.resolve(1)] : Promise[] >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 }; @@ -209,9 +209,9 @@ const assignability12: () => AsyncIterator = async function * () { yield Promise.resolve(1); >yield Promise.resolve(1) : undefined >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 }; @@ -234,9 +234,9 @@ const assignability14: () => AsyncIterator = async function * () { >yield* [Promise.resolve(1)] : any >[Promise.resolve(1)] : Promise[] >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 }; @@ -266,9 +266,9 @@ async function * explicitReturnType2(): AsyncIterableIterator { yield Promise.resolve(1); >yield Promise.resolve(1) : undefined >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 } async function * explicitReturnType3(): AsyncIterableIterator { @@ -287,9 +287,9 @@ async function * explicitReturnType4(): AsyncIterableIterator { >yield* [Promise.resolve(1)] : any >[Promise.resolve(1)] : Promise[] >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 } async function * explicitReturnType5(): AsyncIterableIterator { @@ -316,9 +316,9 @@ async function * explicitReturnType7(): AsyncIterable { yield Promise.resolve(1); >yield Promise.resolve(1) : undefined >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 } async function * explicitReturnType8(): AsyncIterable { @@ -337,9 +337,9 @@ async function * explicitReturnType9(): AsyncIterable { >yield* [Promise.resolve(1)] : any >[Promise.resolve(1)] : Promise[] >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 } async function * explicitReturnType10(): AsyncIterable { @@ -366,9 +366,9 @@ async function * explicitReturnType12(): AsyncIterator { yield Promise.resolve(1); >yield Promise.resolve(1) : undefined >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 } async function * explicitReturnType13(): AsyncIterator { @@ -387,9 +387,9 @@ async function * explicitReturnType14(): AsyncIterator { >yield* [Promise.resolve(1)] : any >[Promise.resolve(1)] : Promise[] >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 } async function * explicitReturnType15(): AsyncIterator { @@ -425,9 +425,9 @@ async function * awaitedType2() { >x : number >await Promise.resolve(1) : number >Promise.resolve(1) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >1 : 1 } async function * nextType1(): { next(...args: [] | [number | PromiseLike]): any } { diff --git a/tests/baselines/reference/types.asyncGenerators.es2018.2.errors.txt b/tests/baselines/reference/types.asyncGenerators.es2018.2.errors.txt index c2b79942f29..520c23ed384 100644 --- a/tests/baselines/reference/types.asyncGenerators.es2018.2.errors.txt +++ b/tests/baselines/reference/types.asyncGenerators.es2018.2.errors.txt @@ -36,7 +36,7 @@ tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts( tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(59,12): error TS2322: Type 'string' is not assignable to type 'number'. tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(62,12): error TS2322: Type 'string' is not assignable to type 'number'. tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(64,42): error TS2741: Property '[Symbol.iterator]' is missing in type 'AsyncGenerator' but required in type 'IterableIterator'. -tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(67,42): error TS2741: Property '[Symbol.iterator]' is missing in type 'AsyncGenerator' but required in type 'Iterable'. +tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(67,42): error TS2741: Property '[Symbol.iterator]' is missing in type 'AsyncGenerator' but required in type 'Iterable'. tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(70,42): error TS2322: Type 'AsyncGenerator' is not assignable to type 'Iterator'. The types returned by 'next(...)' are incompatible between these types. Type 'Promise>' is not assignable to type 'IteratorResult'. @@ -173,7 +173,7 @@ tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts( } async function * explicitReturnType11(): Iterable { ~~~~~~~~~~~~~~~~ -!!! error TS2741: Property '[Symbol.iterator]' is missing in type 'AsyncGenerator' but required in type 'Iterable'. +!!! error TS2741: Property '[Symbol.iterator]' is missing in type 'AsyncGenerator' but required in type 'Iterable'. !!! related TS2728 /.ts/lib.es2015.iterable.d.ts:51:5: '[Symbol.iterator]' is declared here. yield 1; } diff --git a/tests/baselines/reference/types.asyncGenerators.es2018.2.symbols b/tests/baselines/reference/types.asyncGenerators.es2018.2.symbols index 830a4774131..78d8cc65a15 100644 --- a/tests/baselines/reference/types.asyncGenerators.es2018.2.symbols +++ b/tests/baselines/reference/types.asyncGenerators.es2018.2.symbols @@ -14,9 +14,9 @@ async function * inferReturnType3() { >inferReturnType3 : Symbol(inferReturnType3, Decl(types.asyncGenerators.es2018.2.ts, 5, 1)) yield* Promise.resolve([1, 2]); ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) } const assignability1: () => AsyncIterableIterator = async function * () { >assignability1 : Symbol(assignability1, Decl(types.asyncGenerators.es2018.2.ts, 9, 5)) diff --git a/tests/baselines/reference/types.asyncGenerators.es2018.2.types b/tests/baselines/reference/types.asyncGenerators.es2018.2.types index 15e7936ba63..9a2326662fd 100644 --- a/tests/baselines/reference/types.asyncGenerators.es2018.2.types +++ b/tests/baselines/reference/types.asyncGenerators.es2018.2.types @@ -20,9 +20,9 @@ async function * inferReturnType3() { yield* Promise.resolve([1, 2]); >yield* Promise.resolve([1, 2]) : any >Promise.resolve([1, 2]) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >[1, 2] : number[] >1 : 1 >2 : 2 diff --git a/tests/baselines/reference/uncalledFunctionChecksInConditional2.errors.txt b/tests/baselines/reference/uncalledFunctionChecksInConditional2.errors.txt new file mode 100644 index 00000000000..502af9e4eb3 --- /dev/null +++ b/tests/baselines/reference/uncalledFunctionChecksInConditional2.errors.txt @@ -0,0 +1,58 @@ +tests/cases/compiler/uncalledFunctionChecksInConditional2.ts(20,5): error TS2774: This condition will always return true since this function is always defined. Did you mean to call it instead? +tests/cases/compiler/uncalledFunctionChecksInConditional2.ts(38,5): error TS2774: This condition will always return true since this function is always defined. Did you mean to call it instead? + + +==== tests/cases/compiler/uncalledFunctionChecksInConditional2.ts (2 errors) ==== + { + const perf = window.performance + + // Simplified + if ( + perf && + perf.measure && + perf.clearMarks && + perf.clearMeasures + ) { + perf.measure(""); + perf.clearMarks("") + perf.clearMeasures("") + } + + // With || + if ( + perf && + perf.mark && + perf.measure || !!true + ~~~~~~~~~~~~ +!!! error TS2774: This condition will always return true since this function is always defined. Did you mean to call it instead? + ) { + perf.mark(""); + } + }; + + // Original #49192 + declare let inBrowser: boolean; + { + let mark; + let measure; + const perf = inBrowser && window.performance + /* istanbul ignore if */ + if ( + perf && + perf.mark && + perf.measure && + perf.clearMarks && + perf.clearMeasures + ~~~~~~~~~~~~~~~~~~ +!!! error TS2774: This condition will always return true since this function is always defined. Did you mean to call it instead? + ) { + mark = (tag) => perf.mark(tag) + measure = (name, startTag, endTag) => { + perf.measure(name, startTag, endTag) + perf.clearMarks(startTag) + perf.clearMarks(endTag) + // perf.clearMeasures(name) + } + } + }; + \ No newline at end of file diff --git a/tests/baselines/reference/uncalledFunctionChecksInConditional2.js b/tests/baselines/reference/uncalledFunctionChecksInConditional2.js new file mode 100644 index 00000000000..e46674f1b69 --- /dev/null +++ b/tests/baselines/reference/uncalledFunctionChecksInConditional2.js @@ -0,0 +1,91 @@ +//// [uncalledFunctionChecksInConditional2.ts] +{ + const perf = window.performance + + // Simplified + if ( + perf && + perf.measure && + perf.clearMarks && + perf.clearMeasures + ) { + perf.measure(""); + perf.clearMarks("") + perf.clearMeasures("") + } + + // With || + if ( + perf && + perf.mark && + perf.measure || !!true + ) { + perf.mark(""); + } +}; + +// Original #49192 +declare let inBrowser: boolean; +{ + let mark; + let measure; + const perf = inBrowser && window.performance + /* istanbul ignore if */ + if ( + perf && + perf.mark && + perf.measure && + perf.clearMarks && + perf.clearMeasures + ) { + mark = (tag) => perf.mark(tag) + measure = (name, startTag, endTag) => { + perf.measure(name, startTag, endTag) + perf.clearMarks(startTag) + perf.clearMarks(endTag) + // perf.clearMeasures(name) + } + } +}; + + +//// [uncalledFunctionChecksInConditional2.js] +{ + var perf = window.performance; + // Simplified + if (perf && + perf.measure && + perf.clearMarks && + perf.clearMeasures) { + perf.measure(""); + perf.clearMarks(""); + perf.clearMeasures(""); + } + // With || + if (perf && + perf.mark && + perf.measure || !!true) { + perf.mark(""); + } +} +; +{ + var mark = void 0; + var measure = void 0; + var perf_1 = inBrowser && window.performance; + /* istanbul ignore if */ + if (perf_1 && + perf_1.mark && + perf_1.measure && + perf_1.clearMarks && + perf_1.clearMeasures) { + mark = function (tag) { return perf_1.mark(tag); }; + measure = function (name, startTag, endTag) { + perf_1.measure(name, startTag, endTag); + perf_1.clearMarks(startTag); + perf_1.clearMarks(endTag); + // perf.clearMeasures(name) + }; + } +} +; diff --git a/tests/baselines/reference/uncalledFunctionChecksInConditional2.symbols b/tests/baselines/reference/uncalledFunctionChecksInConditional2.symbols new file mode 100644 index 00000000000..adb3dc89653 --- /dev/null +++ b/tests/baselines/reference/uncalledFunctionChecksInConditional2.symbols @@ -0,0 +1,150 @@ +=== tests/cases/compiler/uncalledFunctionChecksInConditional2.ts === +{ + const perf = window.performance +>perf : Symbol(perf, Decl(uncalledFunctionChecksInConditional2.ts, 1, 7)) +>window.performance : Symbol(performance, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) +>window : Symbol(window, Decl(lib.dom.d.ts, --, --)) +>performance : Symbol(performance, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) + + // Simplified + if ( + perf && +>perf : Symbol(perf, Decl(uncalledFunctionChecksInConditional2.ts, 1, 7)) + + perf.measure && +>perf.measure : Symbol(Performance.measure, Decl(lib.dom.d.ts, --, --)) +>perf : Symbol(perf, Decl(uncalledFunctionChecksInConditional2.ts, 1, 7)) +>measure : Symbol(Performance.measure, Decl(lib.dom.d.ts, --, --)) + + perf.clearMarks && +>perf.clearMarks : Symbol(Performance.clearMarks, Decl(lib.dom.d.ts, --, --)) +>perf : Symbol(perf, Decl(uncalledFunctionChecksInConditional2.ts, 1, 7)) +>clearMarks : Symbol(Performance.clearMarks, Decl(lib.dom.d.ts, --, --)) + + perf.clearMeasures +>perf.clearMeasures : Symbol(Performance.clearMeasures, Decl(lib.dom.d.ts, --, --)) +>perf : Symbol(perf, Decl(uncalledFunctionChecksInConditional2.ts, 1, 7)) +>clearMeasures : Symbol(Performance.clearMeasures, Decl(lib.dom.d.ts, --, --)) + + ) { + perf.measure(""); +>perf.measure : Symbol(Performance.measure, Decl(lib.dom.d.ts, --, --)) +>perf : Symbol(perf, Decl(uncalledFunctionChecksInConditional2.ts, 1, 7)) +>measure : Symbol(Performance.measure, Decl(lib.dom.d.ts, --, --)) + + perf.clearMarks("") +>perf.clearMarks : Symbol(Performance.clearMarks, Decl(lib.dom.d.ts, --, --)) +>perf : Symbol(perf, Decl(uncalledFunctionChecksInConditional2.ts, 1, 7)) +>clearMarks : Symbol(Performance.clearMarks, Decl(lib.dom.d.ts, --, --)) + + perf.clearMeasures("") +>perf.clearMeasures : Symbol(Performance.clearMeasures, Decl(lib.dom.d.ts, --, --)) +>perf : Symbol(perf, Decl(uncalledFunctionChecksInConditional2.ts, 1, 7)) +>clearMeasures : Symbol(Performance.clearMeasures, Decl(lib.dom.d.ts, --, --)) + } + + // With || + if ( + perf && +>perf : Symbol(perf, Decl(uncalledFunctionChecksInConditional2.ts, 1, 7)) + + perf.mark && +>perf.mark : Symbol(Performance.mark, Decl(lib.dom.d.ts, --, --)) +>perf : Symbol(perf, Decl(uncalledFunctionChecksInConditional2.ts, 1, 7)) +>mark : Symbol(Performance.mark, Decl(lib.dom.d.ts, --, --)) + + perf.measure || !!true +>perf.measure : Symbol(Performance.measure, Decl(lib.dom.d.ts, --, --)) +>perf : Symbol(perf, Decl(uncalledFunctionChecksInConditional2.ts, 1, 7)) +>measure : Symbol(Performance.measure, Decl(lib.dom.d.ts, --, --)) + + ) { + perf.mark(""); +>perf.mark : Symbol(Performance.mark, Decl(lib.dom.d.ts, --, --)) +>perf : Symbol(perf, Decl(uncalledFunctionChecksInConditional2.ts, 1, 7)) +>mark : Symbol(Performance.mark, Decl(lib.dom.d.ts, --, --)) + } +}; + +// Original #49192 +declare let inBrowser: boolean; +>inBrowser : Symbol(inBrowser, Decl(uncalledFunctionChecksInConditional2.ts, 26, 11)) +{ + let mark; +>mark : Symbol(mark, Decl(uncalledFunctionChecksInConditional2.ts, 28, 5)) + + let measure; +>measure : Symbol(measure, Decl(uncalledFunctionChecksInConditional2.ts, 29, 5)) + + const perf = inBrowser && window.performance +>perf : Symbol(perf, Decl(uncalledFunctionChecksInConditional2.ts, 30, 7)) +>inBrowser : Symbol(inBrowser, Decl(uncalledFunctionChecksInConditional2.ts, 26, 11)) +>window.performance : Symbol(performance, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) +>window : Symbol(window, Decl(lib.dom.d.ts, --, --)) +>performance : Symbol(performance, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) + + /* istanbul ignore if */ + if ( + perf && +>perf : Symbol(perf, Decl(uncalledFunctionChecksInConditional2.ts, 30, 7)) + + perf.mark && +>perf.mark : Symbol(Performance.mark, Decl(lib.dom.d.ts, --, --)) +>perf : Symbol(perf, Decl(uncalledFunctionChecksInConditional2.ts, 30, 7)) +>mark : Symbol(Performance.mark, Decl(lib.dom.d.ts, --, --)) + + perf.measure && +>perf.measure : Symbol(Performance.measure, Decl(lib.dom.d.ts, --, --)) +>perf : Symbol(perf, Decl(uncalledFunctionChecksInConditional2.ts, 30, 7)) +>measure : Symbol(Performance.measure, Decl(lib.dom.d.ts, --, --)) + + perf.clearMarks && +>perf.clearMarks : Symbol(Performance.clearMarks, Decl(lib.dom.d.ts, --, --)) +>perf : Symbol(perf, Decl(uncalledFunctionChecksInConditional2.ts, 30, 7)) +>clearMarks : Symbol(Performance.clearMarks, Decl(lib.dom.d.ts, --, --)) + + perf.clearMeasures +>perf.clearMeasures : Symbol(Performance.clearMeasures, Decl(lib.dom.d.ts, --, --)) +>perf : Symbol(perf, Decl(uncalledFunctionChecksInConditional2.ts, 30, 7)) +>clearMeasures : Symbol(Performance.clearMeasures, Decl(lib.dom.d.ts, --, --)) + + ) { + mark = (tag) => perf.mark(tag) +>mark : Symbol(mark, Decl(uncalledFunctionChecksInConditional2.ts, 28, 5)) +>tag : Symbol(tag, Decl(uncalledFunctionChecksInConditional2.ts, 39, 12)) +>perf.mark : Symbol(Performance.mark, Decl(lib.dom.d.ts, --, --)) +>perf : Symbol(perf, Decl(uncalledFunctionChecksInConditional2.ts, 30, 7)) +>mark : Symbol(Performance.mark, Decl(lib.dom.d.ts, --, --)) +>tag : Symbol(tag, Decl(uncalledFunctionChecksInConditional2.ts, 39, 12)) + + measure = (name, startTag, endTag) => { +>measure : Symbol(measure, Decl(uncalledFunctionChecksInConditional2.ts, 29, 5)) +>name : Symbol(name, Decl(uncalledFunctionChecksInConditional2.ts, 40, 15)) +>startTag : Symbol(startTag, Decl(uncalledFunctionChecksInConditional2.ts, 40, 20)) +>endTag : Symbol(endTag, Decl(uncalledFunctionChecksInConditional2.ts, 40, 30)) + + perf.measure(name, startTag, endTag) +>perf.measure : Symbol(Performance.measure, Decl(lib.dom.d.ts, --, --)) +>perf : Symbol(perf, Decl(uncalledFunctionChecksInConditional2.ts, 30, 7)) +>measure : Symbol(Performance.measure, Decl(lib.dom.d.ts, --, --)) +>name : Symbol(name, Decl(uncalledFunctionChecksInConditional2.ts, 40, 15)) +>startTag : Symbol(startTag, Decl(uncalledFunctionChecksInConditional2.ts, 40, 20)) +>endTag : Symbol(endTag, Decl(uncalledFunctionChecksInConditional2.ts, 40, 30)) + + perf.clearMarks(startTag) +>perf.clearMarks : Symbol(Performance.clearMarks, Decl(lib.dom.d.ts, --, --)) +>perf : Symbol(perf, Decl(uncalledFunctionChecksInConditional2.ts, 30, 7)) +>clearMarks : Symbol(Performance.clearMarks, Decl(lib.dom.d.ts, --, --)) +>startTag : Symbol(startTag, Decl(uncalledFunctionChecksInConditional2.ts, 40, 20)) + + perf.clearMarks(endTag) +>perf.clearMarks : Symbol(Performance.clearMarks, Decl(lib.dom.d.ts, --, --)) +>perf : Symbol(perf, Decl(uncalledFunctionChecksInConditional2.ts, 30, 7)) +>clearMarks : Symbol(Performance.clearMarks, Decl(lib.dom.d.ts, --, --)) +>endTag : Symbol(endTag, Decl(uncalledFunctionChecksInConditional2.ts, 40, 30)) + + // perf.clearMeasures(name) + } + } +}; + diff --git a/tests/baselines/reference/uncalledFunctionChecksInConditional2.types b/tests/baselines/reference/uncalledFunctionChecksInConditional2.types new file mode 100644 index 00000000000..dbb0176fe6d --- /dev/null +++ b/tests/baselines/reference/uncalledFunctionChecksInConditional2.types @@ -0,0 +1,180 @@ +=== tests/cases/compiler/uncalledFunctionChecksInConditional2.ts === +{ + const perf = window.performance +>perf : Performance +>window.performance : Performance +>window : Window & typeof globalThis +>performance : Performance + + // Simplified + if ( + perf && +>perf && perf.measure && perf.clearMarks && perf.clearMeasures : (measureName?: string | undefined) => void +>perf && perf.measure && perf.clearMarks : (markName?: string | undefined) => void +>perf && perf.measure : (measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions | undefined, endMark?: string | undefined) => PerformanceMeasure +>perf : Performance + + perf.measure && +>perf.measure : (measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions | undefined, endMark?: string | undefined) => PerformanceMeasure +>perf : Performance +>measure : (measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions | undefined, endMark?: string | undefined) => PerformanceMeasure + + perf.clearMarks && +>perf.clearMarks : (markName?: string | undefined) => void +>perf : Performance +>clearMarks : (markName?: string | undefined) => void + + perf.clearMeasures +>perf.clearMeasures : (measureName?: string | undefined) => void +>perf : Performance +>clearMeasures : (measureName?: string | undefined) => void + + ) { + perf.measure(""); +>perf.measure("") : PerformanceMeasure +>perf.measure : (measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions | undefined, endMark?: string | undefined) => PerformanceMeasure +>perf : Performance +>measure : (measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions | undefined, endMark?: string | undefined) => PerformanceMeasure +>"" : "" + + perf.clearMarks("") +>perf.clearMarks("") : void +>perf.clearMarks : (markName?: string | undefined) => void +>perf : Performance +>clearMarks : (markName?: string | undefined) => void +>"" : "" + + perf.clearMeasures("") +>perf.clearMeasures("") : void +>perf.clearMeasures : (measureName?: string | undefined) => void +>perf : Performance +>clearMeasures : (measureName?: string | undefined) => void +>"" : "" + } + + // With || + if ( + perf && +>perf && perf.mark && perf.measure || !!true : (measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions | undefined, endMark?: string | undefined) => PerformanceMeasure +>perf && perf.mark && perf.measure : (measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions | undefined, endMark?: string | undefined) => PerformanceMeasure +>perf && perf.mark : (markName: string, markOptions?: PerformanceMarkOptions | undefined) => PerformanceMark +>perf : Performance + + perf.mark && +>perf.mark : (markName: string, markOptions?: PerformanceMarkOptions | undefined) => PerformanceMark +>perf : Performance +>mark : (markName: string, markOptions?: PerformanceMarkOptions | undefined) => PerformanceMark + + perf.measure || !!true +>perf.measure : (measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions | undefined, endMark?: string | undefined) => PerformanceMeasure +>perf : Performance +>measure : (measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions | undefined, endMark?: string | undefined) => PerformanceMeasure +>!!true : true +>!true : false +>true : true + + ) { + perf.mark(""); +>perf.mark("") : PerformanceMark +>perf.mark : (markName: string, markOptions?: PerformanceMarkOptions | undefined) => PerformanceMark +>perf : Performance +>mark : (markName: string, markOptions?: PerformanceMarkOptions | undefined) => PerformanceMark +>"" : "" + } +}; + +// Original #49192 +declare let inBrowser: boolean; +>inBrowser : boolean +{ + let mark; +>mark : any + + let measure; +>measure : any + + const perf = inBrowser && window.performance +>perf : false | Performance +>inBrowser && window.performance : false | Performance +>inBrowser : boolean +>window.performance : Performance +>window : Window & typeof globalThis +>performance : Performance + + /* istanbul ignore if */ + if ( + perf && +>perf && perf.mark && perf.measure && perf.clearMarks && perf.clearMeasures : false | ((measureName?: string | undefined) => void) +>perf && perf.mark && perf.measure && perf.clearMarks : false | ((markName?: string | undefined) => void) +>perf && perf.mark && perf.measure : false | ((measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions | undefined, endMark?: string | undefined) => PerformanceMeasure) +>perf && perf.mark : false | ((markName: string, markOptions?: PerformanceMarkOptions | undefined) => PerformanceMark) +>perf : false | Performance + + perf.mark && +>perf.mark : (markName: string, markOptions?: PerformanceMarkOptions | undefined) => PerformanceMark +>perf : Performance +>mark : (markName: string, markOptions?: PerformanceMarkOptions | undefined) => PerformanceMark + + perf.measure && +>perf.measure : (measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions | undefined, endMark?: string | undefined) => PerformanceMeasure +>perf : Performance +>measure : (measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions | undefined, endMark?: string | undefined) => PerformanceMeasure + + perf.clearMarks && +>perf.clearMarks : (markName?: string | undefined) => void +>perf : Performance +>clearMarks : (markName?: string | undefined) => void + + perf.clearMeasures +>perf.clearMeasures : (measureName?: string | undefined) => void +>perf : Performance +>clearMeasures : (measureName?: string | undefined) => void + + ) { + mark = (tag) => perf.mark(tag) +>mark = (tag) => perf.mark(tag) : (tag: any) => PerformanceMark +>mark : any +>(tag) => perf.mark(tag) : (tag: any) => PerformanceMark +>tag : any +>perf.mark(tag) : PerformanceMark +>perf.mark : (markName: string, markOptions?: PerformanceMarkOptions | undefined) => PerformanceMark +>perf : Performance +>mark : (markName: string, markOptions?: PerformanceMarkOptions | undefined) => PerformanceMark +>tag : any + + measure = (name, startTag, endTag) => { +>measure = (name, startTag, endTag) => { perf.measure(name, startTag, endTag) perf.clearMarks(startTag) perf.clearMarks(endTag) // perf.clearMeasures(name) } : (name: any, startTag: any, endTag: any) => void +>measure : any +>(name, startTag, endTag) => { perf.measure(name, startTag, endTag) perf.clearMarks(startTag) perf.clearMarks(endTag) // perf.clearMeasures(name) } : (name: any, startTag: any, endTag: any) => void +>name : any +>startTag : any +>endTag : any + + perf.measure(name, startTag, endTag) +>perf.measure(name, startTag, endTag) : PerformanceMeasure +>perf.measure : (measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions | undefined, endMark?: string | undefined) => PerformanceMeasure +>perf : Performance +>measure : (measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions | undefined, endMark?: string | undefined) => PerformanceMeasure +>name : any +>startTag : any +>endTag : any + + perf.clearMarks(startTag) +>perf.clearMarks(startTag) : void +>perf.clearMarks : (markName?: string | undefined) => void +>perf : Performance +>clearMarks : (markName?: string | undefined) => void +>startTag : any + + perf.clearMarks(endTag) +>perf.clearMarks(endTag) : void +>perf.clearMarks : (markName?: string | undefined) => void +>perf : Performance +>clearMarks : (markName?: string | undefined) => void +>endTag : any + + // perf.clearMeasures(name) + } + } +}; + diff --git a/tests/baselines/reference/unionAndIntersectionInference1.symbols b/tests/baselines/reference/unionAndIntersectionInference1.symbols index 9b4e7244cfd..815e70ddce1 100644 --- a/tests/baselines/reference/unionAndIntersectionInference1.symbols +++ b/tests/baselines/reference/unionAndIntersectionInference1.symbols @@ -215,9 +215,9 @@ const createTestAsync = (): Promise => Promise.resolve().then(() => ({ na >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) >ITest : Symbol(ITest, Decl(unionAndIntersectionInference1.ts, 71, 18)) >Promise.resolve().then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >name : Symbol(name, Decl(unionAndIntersectionInference1.ts, 79, 77)) diff --git a/tests/baselines/reference/unionAndIntersectionInference1.types b/tests/baselines/reference/unionAndIntersectionInference1.types index 51683684f2a..ec56cbbd1c4 100644 --- a/tests/baselines/reference/unionAndIntersectionInference1.types +++ b/tests/baselines/reference/unionAndIntersectionInference1.types @@ -192,9 +192,9 @@ const createTestAsync = (): Promise => Promise.resolve().then(() => ({ na >Promise.resolve().then(() => ({ name: 'test' })) : Promise >Promise.resolve().then : (onfulfilled?: (value: void) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise >Promise.resolve() : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >then : (onfulfilled?: (value: void) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise >() => ({ name: 'test' }) : () => { name: "test"; } >({ name: 'test' }) : { name: "test"; } diff --git a/tests/baselines/reference/unionTypeWithLeadingOperator.js b/tests/baselines/reference/unionTypeWithLeadingOperator.js index 84572d9430e..d206f5fc7e4 100644 --- a/tests/baselines/reference/unionTypeWithLeadingOperator.js +++ b/tests/baselines/reference/unionTypeWithLeadingOperator.js @@ -17,4 +17,4 @@ exports.__esModule = true; //// [unionTypeWithLeadingOperator.d.ts] -export declare type D = /*leading1*/ 1 | /*leading2*/ 2; +export type D = /*leading1*/ 1 | /*leading2*/ 2; diff --git a/tests/baselines/reference/unionWithIndexSignature.types b/tests/baselines/reference/unionWithIndexSignature.types index 7aa5877e37a..2bc7d0fbe5c 100644 --- a/tests/baselines/reference/unionWithIndexSignature.types +++ b/tests/baselines/reference/unionWithIndexSignature.types @@ -55,7 +55,7 @@ export function flatten(arr: T) { arr[1]; >arr[1] : number ->arr : TypedArray +>arr : Int32Array | Uint8Array >1 : 1 } } diff --git a/tests/baselines/reference/uniqueSymbols.symbols b/tests/baselines/reference/uniqueSymbols.symbols index 2df23f1fc95..6b75247727a 100644 --- a/tests/baselines/reference/uniqueSymbols.symbols +++ b/tests/baselines/reference/uniqueSymbols.symbols @@ -392,9 +392,9 @@ const constInitToLReadonlyNestedTypeWithIndexedAccess: L["nested"]["readonlyNest // type argument inference const promiseForConstCall = Promise.resolve(constCall); >promiseForConstCall : Symbol(promiseForConstCall, Decl(uniqueSymbols.ts, 115, 5)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >constCall : Symbol(constCall, Decl(uniqueSymbols.ts, 1, 5)) const arrayOfConstCall = [constCall]; diff --git a/tests/baselines/reference/uniqueSymbols.types b/tests/baselines/reference/uniqueSymbols.types index aa956c4045c..55b9da33dfe 100644 --- a/tests/baselines/reference/uniqueSymbols.types +++ b/tests/baselines/reference/uniqueSymbols.types @@ -400,9 +400,9 @@ const constInitToLReadonlyNestedTypeWithIndexedAccess: L["nested"]["readonlyNest const promiseForConstCall = Promise.resolve(constCall); >promiseForConstCall : Promise >Promise.resolve(constCall) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >constCall : unique symbol const arrayOfConstCall = [constCall]; diff --git a/tests/baselines/reference/uniqueSymbolsDeclarations.js b/tests/baselines/reference/uniqueSymbolsDeclarations.js index c70a2163e3d..6f121ef9c77 100644 --- a/tests/baselines/reference/uniqueSymbolsDeclarations.js +++ b/tests/baselines/reference/uniqueSymbolsDeclarations.js @@ -470,7 +470,7 @@ declare const i: I; declare const constInitToIReadonlyType: symbol; declare const constInitToIReadonlyTypeWithTypeQuery: typeof i.readonlyType; declare const constInitToIReadonlyTypeWithIndexedAccess: I["readonlyType"]; -declare type L = { +type L = { readonly readonlyType: unique symbol; nested: { readonly readonlyNestedType: unique symbol; diff --git a/tests/baselines/reference/uniqueSymbolsDeclarations.symbols b/tests/baselines/reference/uniqueSymbolsDeclarations.symbols index 56024cf1cfb..8a79338129b 100644 --- a/tests/baselines/reference/uniqueSymbolsDeclarations.symbols +++ b/tests/baselines/reference/uniqueSymbolsDeclarations.symbols @@ -387,9 +387,9 @@ const constInitToLReadonlyNestedTypeWithIndexedAccess: L["nested"]["readonlyNest // type argument inference const promiseForConstCall = Promise.resolve(constCall); >promiseForConstCall : Symbol(promiseForConstCall, Decl(uniqueSymbolsDeclarations.ts, 111, 5)) ->Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) >constCall : Symbol(constCall, Decl(uniqueSymbolsDeclarations.ts, 1, 5)) const arrayOfConstCall = [constCall]; diff --git a/tests/baselines/reference/uniqueSymbolsDeclarations.types b/tests/baselines/reference/uniqueSymbolsDeclarations.types index 018b6d50ad7..596ac0fb81c 100644 --- a/tests/baselines/reference/uniqueSymbolsDeclarations.types +++ b/tests/baselines/reference/uniqueSymbolsDeclarations.types @@ -393,9 +393,9 @@ const constInitToLReadonlyNestedTypeWithIndexedAccess: L["nested"]["readonlyNest const promiseForConstCall = Promise.resolve(constCall); >promiseForConstCall : Promise >Promise.resolve(constCall) : Promise ->Promise.resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor ->resolve : { (): Promise; (value: T | PromiseLike): Promise; } +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >constCall : unique symbol const arrayOfConstCall = [constCall]; diff --git a/tests/baselines/reference/uniqueSymbolsDeclarationsErrors.js b/tests/baselines/reference/uniqueSymbolsDeclarationsErrors.js index 68970221a71..4303204be88 100644 --- a/tests/baselines/reference/uniqueSymbolsDeclarationsErrors.js +++ b/tests/baselines/reference/uniqueSymbolsDeclarationsErrors.js @@ -128,10 +128,10 @@ export interface InterfaceWithPrivateNamedProperties { export interface InterfaceWithPrivateNamedMethods { [s](): any; } -export declare type TypeLiteralWithPrivateNamedProperties = { +export type TypeLiteralWithPrivateNamedProperties = { [s]: any; }; -export declare type TypeLiteralWithPrivateNamedMethods = { +export type TypeLiteralWithPrivateNamedMethods = { [s](): any; }; export declare class ClassWithPrivateNamedProperties { diff --git a/tests/baselines/reference/unknownControlFlow.errors.txt b/tests/baselines/reference/unknownControlFlow.errors.txt index 65108ba2201..7c6db9cbd2c 100644 --- a/tests/baselines/reference/unknownControlFlow.errors.txt +++ b/tests/baselines/reference/unknownControlFlow.errors.txt @@ -1,7 +1,11 @@ tests/cases/conformance/types/unknown/unknownControlFlow.ts(18,9): error TS2322: Type 'unknown' is not assignable to type '{}'. +tests/cases/conformance/types/unknown/unknownControlFlow.ts(283,5): error TS2536: Type 'keyof (T & {})' cannot be used to index type 'T'. +tests/cases/conformance/types/unknown/unknownControlFlow.ts(290,11): error TS2345: Argument of type 'string' is not assignable to parameter of type 'never'. +tests/cases/conformance/types/unknown/unknownControlFlow.ts(291,5): error TS2345: Argument of type 'null' is not assignable to parameter of type 'never'. +tests/cases/conformance/types/unknown/unknownControlFlow.ts(293,5): error TS2345: Argument of type 'null' is not assignable to parameter of type 'never'. -==== tests/cases/conformance/types/unknown/unknownControlFlow.ts (1 errors) ==== +==== tests/cases/conformance/types/unknown/unknownControlFlow.ts (5 errors) ==== type T01 = {} & string; // string type T02 = {} & 'a'; // 'a' type T03 = {} & object; // object @@ -272,4 +276,44 @@ tests/cases/conformance/types/unknown/unknownControlFlow.ts(18,9): error TS2322: y; } } + + // We allow an unconstrained object of a generic type `T` to be indexed by a key of type `keyof T` + // without a check that the object is non-undefined and non-null. This is safe because `keyof T` + // is `never` (meaning no possible keys) for any `T` that includes `undefined` or `null`. + + function ff1(t: T, k: keyof T) { + t[k]; + } + + function ff2(t: T & {}, k: keyof T) { + t[k]; + } + + function ff3(t: T, k: keyof (T & {})) { + t[k]; // Error + ~~~~ +!!! error TS2536: Type 'keyof (T & {})' cannot be used to index type 'T'. + } + + function ff4(t: T & {}, k: keyof (T & {})) { + t[k]; + } + + ff1(null, 'foo'); // Error + ~~~~~ +!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'never'. + ff2(null, 'foo'); // Error + ~~~~ +!!! error TS2345: Argument of type 'null' is not assignable to parameter of type 'never'. + ff3(null, 'foo'); + ff4(null, 'foo'); // Error + ~~~~ +!!! error TS2345: Argument of type 'null' is not assignable to parameter of type 'never'. + + // Repro from #49681 + + type Foo = { [key: string]: unknown }; + type NullableFoo = Foo | undefined; + + type Bar = NonNullable[string]; \ No newline at end of file diff --git a/tests/baselines/reference/unknownControlFlow.js b/tests/baselines/reference/unknownControlFlow.js index d665377767c..8b4681eee07 100644 --- a/tests/baselines/reference/unknownControlFlow.js +++ b/tests/baselines/reference/unknownControlFlow.js @@ -267,6 +267,38 @@ function foo(x: T | null) { y; } } + +// We allow an unconstrained object of a generic type `T` to be indexed by a key of type `keyof T` +// without a check that the object is non-undefined and non-null. This is safe because `keyof T` +// is `never` (meaning no possible keys) for any `T` that includes `undefined` or `null`. + +function ff1(t: T, k: keyof T) { + t[k]; +} + +function ff2(t: T & {}, k: keyof T) { + t[k]; +} + +function ff3(t: T, k: keyof (T & {})) { + t[k]; // Error +} + +function ff4(t: T & {}, k: keyof (T & {})) { + t[k]; +} + +ff1(null, 'foo'); // Error +ff2(null, 'foo'); // Error +ff3(null, 'foo'); +ff4(null, 'foo'); // Error + +// Repro from #49681 + +type Foo = { [key: string]: unknown }; +type NullableFoo = Foo | undefined; + +type Bar = NonNullable[string]; //// [unknownControlFlow.js] @@ -501,24 +533,43 @@ function foo(x) { y; } } +// We allow an unconstrained object of a generic type `T` to be indexed by a key of type `keyof T` +// without a check that the object is non-undefined and non-null. This is safe because `keyof T` +// is `never` (meaning no possible keys) for any `T` that includes `undefined` or `null`. +function ff1(t, k) { + t[k]; +} +function ff2(t, k) { + t[k]; +} +function ff3(t, k) { + t[k]; // Error +} +function ff4(t, k) { + t[k]; +} +ff1(null, 'foo'); // Error +ff2(null, 'foo'); // Error +ff3(null, 'foo'); +ff4(null, 'foo'); // Error //// [unknownControlFlow.d.ts] -declare type T01 = {} & string; -declare type T02 = {} & 'a'; -declare type T03 = {} & object; -declare type T04 = {} & { +type T01 = {} & string; +type T02 = {} & 'a'; +type T03 = {} & object; +type T04 = {} & { x: number; }; -declare type T05 = {} & null; -declare type T06 = {} & undefined; -declare type T07 = undefined & void; -declare type T10 = string & {}; -declare type T11 = number & {}; -declare type T12 = bigint & {}; -declare type ThisNode = {}; -declare type ThatNode = {}; -declare type ThisOrThatNode = ThisNode | ThatNode; +type T05 = {} & null; +type T06 = {} & undefined; +type T07 = undefined & void; +type T10 = string & {}; +type T11 = number & {}; +type T12 = bigint & {}; +type ThisNode = {}; +type ThatNode = {}; +type ThisOrThatNode = ThisNode | ThatNode; declare function f01(u: unknown): void; declare function f10(x: unknown): void; declare function f11(x: T): void; @@ -537,7 +588,16 @@ declare function ensureNotNull(x: T): T & ({} | undefined); declare function ensureNotUndefined(x: T): T & ({} | null); declare function ensureNotNullOrUndefined(x: T): T & {}; declare function f40(a: string | undefined, b: number | null | undefined): void; -declare type QQ = NonNullable>>; +type QQ = NonNullable>>; declare function f41(a: T): void; declare function deepEquals(a: T, b: T): boolean; declare function foo(x: T | null): void; +declare function ff1(t: T, k: keyof T): void; +declare function ff2(t: T & {}, k: keyof T): void; +declare function ff3(t: T, k: keyof (T & {})): void; +declare function ff4(t: T & {}, k: keyof (T & {})): void; +type Foo = { + [key: string]: unknown; +}; +type NullableFoo = Foo | undefined; +type Bar = NonNullable[string]; diff --git a/tests/baselines/reference/unknownControlFlow.symbols b/tests/baselines/reference/unknownControlFlow.symbols index 176df97b145..47b6d4411a5 100644 --- a/tests/baselines/reference/unknownControlFlow.symbols +++ b/tests/baselines/reference/unknownControlFlow.symbols @@ -636,3 +636,88 @@ function foo(x: T | null) { } } +// We allow an unconstrained object of a generic type `T` to be indexed by a key of type `keyof T` +// without a check that the object is non-undefined and non-null. This is safe because `keyof T` +// is `never` (meaning no possible keys) for any `T` that includes `undefined` or `null`. + +function ff1(t: T, k: keyof T) { +>ff1 : Symbol(ff1, Decl(unknownControlFlow.ts, 267, 1)) +>T : Symbol(T, Decl(unknownControlFlow.ts, 273, 13)) +>t : Symbol(t, Decl(unknownControlFlow.ts, 273, 16)) +>T : Symbol(T, Decl(unknownControlFlow.ts, 273, 13)) +>k : Symbol(k, Decl(unknownControlFlow.ts, 273, 21)) +>T : Symbol(T, Decl(unknownControlFlow.ts, 273, 13)) + + t[k]; +>t : Symbol(t, Decl(unknownControlFlow.ts, 273, 16)) +>k : Symbol(k, Decl(unknownControlFlow.ts, 273, 21)) +} + +function ff2(t: T & {}, k: keyof T) { +>ff2 : Symbol(ff2, Decl(unknownControlFlow.ts, 275, 1)) +>T : Symbol(T, Decl(unknownControlFlow.ts, 277, 13)) +>t : Symbol(t, Decl(unknownControlFlow.ts, 277, 16)) +>T : Symbol(T, Decl(unknownControlFlow.ts, 277, 13)) +>k : Symbol(k, Decl(unknownControlFlow.ts, 277, 26)) +>T : Symbol(T, Decl(unknownControlFlow.ts, 277, 13)) + + t[k]; +>t : Symbol(t, Decl(unknownControlFlow.ts, 277, 16)) +>k : Symbol(k, Decl(unknownControlFlow.ts, 277, 26)) +} + +function ff3(t: T, k: keyof (T & {})) { +>ff3 : Symbol(ff3, Decl(unknownControlFlow.ts, 279, 1)) +>T : Symbol(T, Decl(unknownControlFlow.ts, 281, 13)) +>t : Symbol(t, Decl(unknownControlFlow.ts, 281, 16)) +>T : Symbol(T, Decl(unknownControlFlow.ts, 281, 13)) +>k : Symbol(k, Decl(unknownControlFlow.ts, 281, 21)) +>T : Symbol(T, Decl(unknownControlFlow.ts, 281, 13)) + + t[k]; // Error +>t : Symbol(t, Decl(unknownControlFlow.ts, 281, 16)) +>k : Symbol(k, Decl(unknownControlFlow.ts, 281, 21)) +} + +function ff4(t: T & {}, k: keyof (T & {})) { +>ff4 : Symbol(ff4, Decl(unknownControlFlow.ts, 283, 1)) +>T : Symbol(T, Decl(unknownControlFlow.ts, 285, 13)) +>t : Symbol(t, Decl(unknownControlFlow.ts, 285, 16)) +>T : Symbol(T, Decl(unknownControlFlow.ts, 285, 13)) +>k : Symbol(k, Decl(unknownControlFlow.ts, 285, 26)) +>T : Symbol(T, Decl(unknownControlFlow.ts, 285, 13)) + + t[k]; +>t : Symbol(t, Decl(unknownControlFlow.ts, 285, 16)) +>k : Symbol(k, Decl(unknownControlFlow.ts, 285, 26)) +} + +ff1(null, 'foo'); // Error +>ff1 : Symbol(ff1, Decl(unknownControlFlow.ts, 267, 1)) + +ff2(null, 'foo'); // Error +>ff2 : Symbol(ff2, Decl(unknownControlFlow.ts, 275, 1)) + +ff3(null, 'foo'); +>ff3 : Symbol(ff3, Decl(unknownControlFlow.ts, 279, 1)) + +ff4(null, 'foo'); // Error +>ff4 : Symbol(ff4, Decl(unknownControlFlow.ts, 283, 1)) + +// Repro from #49681 + +type Foo = { [key: string]: unknown }; +>Foo : Symbol(Foo, Decl(unknownControlFlow.ts, 292, 17)) +>key : Symbol(key, Decl(unknownControlFlow.ts, 296, 14)) + +type NullableFoo = Foo | undefined; +>NullableFoo : Symbol(NullableFoo, Decl(unknownControlFlow.ts, 296, 38)) +>Foo : Symbol(Foo, Decl(unknownControlFlow.ts, 292, 17)) + +type Bar = NonNullable[string]; +>Bar : Symbol(Bar, Decl(unknownControlFlow.ts, 297, 35)) +>T : Symbol(T, Decl(unknownControlFlow.ts, 299, 9)) +>NullableFoo : Symbol(NullableFoo, Decl(unknownControlFlow.ts, 296, 38)) +>NonNullable : Symbol(NonNullable, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(unknownControlFlow.ts, 299, 9)) + diff --git a/tests/baselines/reference/unknownControlFlow.types b/tests/baselines/reference/unknownControlFlow.types index cfd88dbffc8..bd1d851c5b3 100644 --- a/tests/baselines/reference/unknownControlFlow.types +++ b/tests/baselines/reference/unknownControlFlow.types @@ -718,3 +718,87 @@ function foo(x: T | null) { } } +// We allow an unconstrained object of a generic type `T` to be indexed by a key of type `keyof T` +// without a check that the object is non-undefined and non-null. This is safe because `keyof T` +// is `never` (meaning no possible keys) for any `T` that includes `undefined` or `null`. + +function ff1(t: T, k: keyof T) { +>ff1 : (t: T, k: keyof T) => void +>t : T +>k : keyof T + + t[k]; +>t[k] : T[keyof T] +>t : T +>k : keyof T +} + +function ff2(t: T & {}, k: keyof T) { +>ff2 : (t: T & {}, k: keyof T) => void +>t : T & {} +>k : keyof T + + t[k]; +>t[k] : (T & {})[keyof T] +>t : T & {} +>k : keyof T +} + +function ff3(t: T, k: keyof (T & {})) { +>ff3 : (t: T, k: keyof (T & {})) => void +>t : T +>k : keyof (T & {}) + + t[k]; // Error +>t[k] : any +>t : T +>k : keyof (T & {}) +} + +function ff4(t: T & {}, k: keyof (T & {})) { +>ff4 : (t: T & {}, k: keyof (T & {})) => void +>t : T & {} +>k : keyof (T & {}) + + t[k]; +>t[k] : (T & {})[keyof (T & {})] +>t : T & {} +>k : keyof (T & {}) +} + +ff1(null, 'foo'); // Error +>ff1(null, 'foo') : void +>ff1 : (t: T, k: keyof T) => void +>null : null +>'foo' : "foo" + +ff2(null, 'foo'); // Error +>ff2(null, 'foo') : void +>ff2 : (t: T & {}, k: keyof T) => void +>null : null +>'foo' : "foo" + +ff3(null, 'foo'); +>ff3(null, 'foo') : void +>ff3 : (t: T, k: keyof (T & {})) => void +>null : null +>'foo' : "foo" + +ff4(null, 'foo'); // Error +>ff4(null, 'foo') : void +>ff4 : (t: T & {}, k: keyof (T & {})) => void +>null : null +>'foo' : "foo" + +// Repro from #49681 + +type Foo = { [key: string]: unknown }; +>Foo : { [key: string]: unknown; } +>key : string + +type NullableFoo = Foo | undefined; +>NullableFoo : Foo | undefined + +type Bar = NonNullable[string]; +>Bar : Bar + diff --git a/tests/baselines/reference/unresolvableSelfReferencingAwaitedUnion.errors.txt b/tests/baselines/reference/unresolvableSelfReferencingAwaitedUnion.errors.txt new file mode 100644 index 00000000000..7d7ad42c4d0 --- /dev/null +++ b/tests/baselines/reference/unresolvableSelfReferencingAwaitedUnion.errors.txt @@ -0,0 +1,30 @@ +tests/cases/compiler/unresolvableSelfReferencingAwaitedUnion.ts(9,32): error TS2322: Type 'SimpleType' is not assignable to type 'T'. + 'T' could be instantiated with an arbitrary type which could be unrelated to 'SimpleType'. +tests/cases/compiler/unresolvableSelfReferencingAwaitedUnion.ts(16,19): error TS1062: Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method. + + +==== tests/cases/compiler/unresolvableSelfReferencingAwaitedUnion.ts (2 errors) ==== + // repro #49646 + + type EnvFunction = () => T; + + type SimpleType = string | Promise; + + declare const simple: SimpleType; + + const env: EnvFunction = () => simple; + ~~~~~~ +!!! error TS2322: Type 'SimpleType' is not assignable to type 'T'. +!!! error TS2322: 'T' could be instantiated with an arbitrary type which could be unrelated to 'SimpleType'. +!!! related TS6502 tests/cases/compiler/unresolvableSelfReferencingAwaitedUnion.ts:3:20: The expected type comes from the return type of this signature. + + // repro #49723 + + type T1 = 1 | Promise | T1[]; + + export async function myFunction(param: T1) { + const awaited = await param + ~~~~~~~~~~~ +!!! error TS1062: Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method. + } + \ No newline at end of file diff --git a/tests/baselines/reference/unresolvableSelfReferencingAwaitedUnion.symbols b/tests/baselines/reference/unresolvableSelfReferencingAwaitedUnion.symbols new file mode 100644 index 00000000000..624a339e732 --- /dev/null +++ b/tests/baselines/reference/unresolvableSelfReferencingAwaitedUnion.symbols @@ -0,0 +1,40 @@ +=== tests/cases/compiler/unresolvableSelfReferencingAwaitedUnion.ts === +// repro #49646 + +type EnvFunction = () => T; +>EnvFunction : Symbol(EnvFunction, Decl(unresolvableSelfReferencingAwaitedUnion.ts, 0, 0)) +>T : Symbol(T, Decl(unresolvableSelfReferencingAwaitedUnion.ts, 2, 20)) +>T : Symbol(T, Decl(unresolvableSelfReferencingAwaitedUnion.ts, 2, 20)) + +type SimpleType = string | Promise; +>SimpleType : Symbol(SimpleType, Decl(unresolvableSelfReferencingAwaitedUnion.ts, 2, 30)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --)) +>SimpleType : Symbol(SimpleType, Decl(unresolvableSelfReferencingAwaitedUnion.ts, 2, 30)) + +declare const simple: SimpleType; +>simple : Symbol(simple, Decl(unresolvableSelfReferencingAwaitedUnion.ts, 6, 13)) +>SimpleType : Symbol(SimpleType, Decl(unresolvableSelfReferencingAwaitedUnion.ts, 2, 30)) + +const env: EnvFunction = () => simple; +>env : Symbol(env, Decl(unresolvableSelfReferencingAwaitedUnion.ts, 8, 5)) +>EnvFunction : Symbol(EnvFunction, Decl(unresolvableSelfReferencingAwaitedUnion.ts, 0, 0)) +>simple : Symbol(simple, Decl(unresolvableSelfReferencingAwaitedUnion.ts, 6, 13)) + +// repro #49723 + +type T1 = 1 | Promise | T1[]; +>T1 : Symbol(T1, Decl(unresolvableSelfReferencingAwaitedUnion.ts, 8, 38)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --)) +>T1 : Symbol(T1, Decl(unresolvableSelfReferencingAwaitedUnion.ts, 8, 38)) +>T1 : Symbol(T1, Decl(unresolvableSelfReferencingAwaitedUnion.ts, 8, 38)) + +export async function myFunction(param: T1) { +>myFunction : Symbol(myFunction, Decl(unresolvableSelfReferencingAwaitedUnion.ts, 12, 33)) +>param : Symbol(param, Decl(unresolvableSelfReferencingAwaitedUnion.ts, 14, 33)) +>T1 : Symbol(T1, Decl(unresolvableSelfReferencingAwaitedUnion.ts, 8, 38)) + + const awaited = await param +>awaited : Symbol(awaited, Decl(unresolvableSelfReferencingAwaitedUnion.ts, 15, 7)) +>param : Symbol(param, Decl(unresolvableSelfReferencingAwaitedUnion.ts, 14, 33)) +} + diff --git a/tests/baselines/reference/unresolvableSelfReferencingAwaitedUnion.types b/tests/baselines/reference/unresolvableSelfReferencingAwaitedUnion.types new file mode 100644 index 00000000000..521bfa461e5 --- /dev/null +++ b/tests/baselines/reference/unresolvableSelfReferencingAwaitedUnion.types @@ -0,0 +1,32 @@ +=== tests/cases/compiler/unresolvableSelfReferencingAwaitedUnion.ts === +// repro #49646 + +type EnvFunction = () => T; +>EnvFunction : () => T + +type SimpleType = string | Promise; +>SimpleType : string | Promise + +declare const simple: SimpleType; +>simple : SimpleType + +const env: EnvFunction = () => simple; +>env : EnvFunction +>() => simple : () => SimpleType +>simple : SimpleType + +// repro #49723 + +type T1 = 1 | Promise | T1[]; +>T1 : 1 | Promise | T1[] + +export async function myFunction(param: T1) { +>myFunction : (param: T1) => Promise +>param : T1 + + const awaited = await param +>awaited : 1 | T1[] +>await param : 1 | T1[] +>param : T1 +} + diff --git a/tests/baselines/reference/unspecializedConstraints.errors.txt b/tests/baselines/reference/unspecializedConstraints.errors.txt index a049e508f80..8180b9cb070 100644 --- a/tests/baselines/reference/unspecializedConstraints.errors.txt +++ b/tests/baselines/reference/unspecializedConstraints.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/unspecializedConstraints.ts(84,44): error TS2304: Cannot find name 'TypeParameter'. +tests/cases/compiler/unspecializedConstraints.ts(84,44): error TS2552: Cannot find name 'TypeParameter'. Did you mean 'Parameter'? ==== tests/cases/compiler/unspecializedConstraints.ts (1 errors) ==== @@ -87,7 +87,8 @@ tests/cases/compiler/unspecializedConstraints.ts(84,44): error TS2304: Cannot fi class Signature extends Symbol { constructor(public typeParameters: TypeParameter[], public parameters: Parameter[], public returnType: Type) { ~~~~~~~~~~~~~ -!!! error TS2304: Cannot find name 'TypeParameter'. +!!! error TS2552: Cannot find name 'TypeParameter'. Did you mean 'Parameter'? +!!! related TS2728 tests/cases/compiler/unspecializedConstraints.ts:99:11: 'Parameter' is declared here. super(); } equalsNoReturn(other: Signature): boolean { diff --git a/tests/baselines/reference/user/fp-ts.log b/tests/baselines/reference/user/fp-ts.log new file mode 100644 index 00000000000..202a60ba3dd --- /dev/null +++ b/tests/baselines/reference/user/fp-ts.log @@ -0,0 +1,12 @@ +Exit Code: 1 +Standard output: +src/Task.ts(90,16): error TS2322: Type 'Promise ? U : A>' is not assignable to type 'Promise'. + Type 'A extends PromiseLike ? U : A' is not assignable to type 'A'. + Type 'unknown' is not assignable to type 'A'. +src/Task.ts(99,16): error TS2322: Type 'Promise ? U : A>' is not assignable to type 'Promise'. + Type 'A extends PromiseLike ? U : A' is not assignable to type 'A'. + Type 'unknown' is not assignable to type 'A'. + + + +Standard error: diff --git a/tests/baselines/reference/variadicTuples1.js b/tests/baselines/reference/variadicTuples1.js index 4b8df48890e..443176fc9a4 100644 --- a/tests/baselines/reference/variadicTuples1.js +++ b/tests/baselines/reference/variadicTuples1.js @@ -626,17 +626,17 @@ var data = [false, false]; // Error //// [variadicTuples1.d.ts] -declare type TV0 = [string, ...T]; -declare type TV1 = [string, ...T, number]; -declare type TV2 = [string, ...T, number, ...T]; -declare type TV3 = [string, ...T, ...number[], ...T]; -declare type TN1 = TV1<[boolean, string]>; -declare type TN2 = TV1<[]>; -declare type TN3 = TV1<[boolean?]>; -declare type TN4 = TV1; -declare type TN5 = TV1<[boolean] | [symbol, symbol]>; -declare type TN6 = TV1; -declare type TN7 = TV1; +type TV0 = [string, ...T]; +type TV1 = [string, ...T, number]; +type TV2 = [string, ...T, number, ...T]; +type TV3 = [string, ...T, ...number[], ...T]; +type TN1 = TV1<[boolean, string]>; +type TN2 = TV1<[]>; +type TN3 = TV1<[boolean?]>; +type TN4 = TV1; +type TN5 = TV1<[boolean] | [symbol, symbol]>; +type TN6 = TV1; +type TN7 = TV1; declare function tup2(t: [...T], u: [...U]): readonly [1, ...T, 2, ...U, 3]; declare const t2: readonly [1, string, 2, number, boolean, 3]; declare function concat(t: [...T], u: [...U]): [...T, ...U]; @@ -659,12 +659,12 @@ declare function f0(t: [string, ...T], n: number): void; declare function f1(t: [string, ...T, number], n: number): void; declare function f2(t: [string, ...T]): void; declare function f3(t: [string, ...T, number]): void; -declare type Arrayify = { +type Arrayify = { [P in keyof T]: T[P][]; }; -declare type TM1 = Arrayify; -declare type TP1 = Partial<[string, ...T, number]>; -declare type TP2 = Partial<[string, ...T, ...number[]]>; +type TM1 = Arrayify; +type TP1 = Partial<[string, ...T, number]>; +type TP2 = Partial<[string, ...T, ...number[]]>; declare function fm1(t: Arrayify<[string, number, ...T]>): T; declare let tm1: [boolean, string]; declare function fx1(a: string, ...args: T): T; @@ -677,78 +677,78 @@ declare function f12(t: T, m: [...T], r: readonly declare function f13(t0: T, t1: [...T], t2: [...U]): void; declare function f14(t0: T, t1: [...T], t2: [...U]): void; declare function f15(k0: keyof T, k1: keyof [...T], k2: keyof [...U], k3: keyof [1, 2, ...T]): void; -declare type First = T extends readonly [unknown, ...unknown[]] ? T[0] : T[0] | undefined; -declare type DropFirst = T extends readonly [unknown?, ...infer U] ? U : [...T]; -declare type Last = T extends readonly [...unknown[], infer U] ? U : T extends readonly [unknown, ...unknown[]] ? T[number] : T[number] | undefined; -declare type DropLast = T extends readonly [...infer U, unknown] ? U : [...T]; -declare type T00 = First<[number, symbol, string]>; -declare type T01 = First<[symbol, string]>; -declare type T02 = First<[string]>; -declare type T03 = First<[number, symbol, ...string[]]>; -declare type T04 = First<[symbol, ...string[]]>; -declare type T05 = First<[string?]>; -declare type T06 = First; -declare type T07 = First<[]>; -declare type T08 = First; -declare type T09 = First; -declare type T10 = DropFirst<[number, symbol, string]>; -declare type T11 = DropFirst<[symbol, string]>; -declare type T12 = DropFirst<[string]>; -declare type T13 = DropFirst<[number, symbol, ...string[]]>; -declare type T14 = DropFirst<[symbol, ...string[]]>; -declare type T15 = DropFirst<[string?]>; -declare type T16 = DropFirst; -declare type T17 = DropFirst<[]>; -declare type T18 = DropFirst; -declare type T19 = DropFirst; -declare type T20 = Last<[number, symbol, string]>; -declare type T21 = Last<[symbol, string]>; -declare type T22 = Last<[string]>; -declare type T23 = Last<[number, symbol, ...string[]]>; -declare type T24 = Last<[symbol, ...string[]]>; -declare type T25 = Last<[string?]>; -declare type T26 = Last; -declare type T27 = Last<[]>; -declare type T28 = Last; -declare type T29 = Last; -declare type T30 = DropLast<[number, symbol, string]>; -declare type T31 = DropLast<[symbol, string]>; -declare type T32 = DropLast<[string]>; -declare type T33 = DropLast<[number, symbol, ...string[]]>; -declare type T34 = DropLast<[symbol, ...string[]]>; -declare type T35 = DropLast<[string?]>; -declare type T36 = DropLast; -declare type T37 = DropLast<[]>; -declare type T38 = DropLast; -declare type T39 = DropLast; -declare type R00 = First; -declare type R01 = First; -declare type R02 = First; -declare type R03 = First; -declare type R04 = First; -declare type R05 = First; -declare type R06 = First; -declare type R10 = DropFirst; -declare type R11 = DropFirst; -declare type R12 = DropFirst; -declare type R13 = DropFirst; -declare type R14 = DropFirst; -declare type R15 = DropFirst; -declare type R16 = DropFirst; -declare type R20 = Last; -declare type R21 = Last; -declare type R22 = Last; -declare type R23 = Last; -declare type R24 = Last; -declare type R25 = Last; -declare type R26 = Last; -declare type R30 = DropLast; -declare type R31 = DropLast; -declare type R32 = DropLast; -declare type R33 = DropLast; -declare type R34 = DropLast; -declare type R35 = DropLast; -declare type R36 = DropLast; +type First = T extends readonly [unknown, ...unknown[]] ? T[0] : T[0] | undefined; +type DropFirst = T extends readonly [unknown?, ...infer U] ? U : [...T]; +type Last = T extends readonly [...unknown[], infer U] ? U : T extends readonly [unknown, ...unknown[]] ? T[number] : T[number] | undefined; +type DropLast = T extends readonly [...infer U, unknown] ? U : [...T]; +type T00 = First<[number, symbol, string]>; +type T01 = First<[symbol, string]>; +type T02 = First<[string]>; +type T03 = First<[number, symbol, ...string[]]>; +type T04 = First<[symbol, ...string[]]>; +type T05 = First<[string?]>; +type T06 = First; +type T07 = First<[]>; +type T08 = First; +type T09 = First; +type T10 = DropFirst<[number, symbol, string]>; +type T11 = DropFirst<[symbol, string]>; +type T12 = DropFirst<[string]>; +type T13 = DropFirst<[number, symbol, ...string[]]>; +type T14 = DropFirst<[symbol, ...string[]]>; +type T15 = DropFirst<[string?]>; +type T16 = DropFirst; +type T17 = DropFirst<[]>; +type T18 = DropFirst; +type T19 = DropFirst; +type T20 = Last<[number, symbol, string]>; +type T21 = Last<[symbol, string]>; +type T22 = Last<[string]>; +type T23 = Last<[number, symbol, ...string[]]>; +type T24 = Last<[symbol, ...string[]]>; +type T25 = Last<[string?]>; +type T26 = Last; +type T27 = Last<[]>; +type T28 = Last; +type T29 = Last; +type T30 = DropLast<[number, symbol, string]>; +type T31 = DropLast<[symbol, string]>; +type T32 = DropLast<[string]>; +type T33 = DropLast<[number, symbol, ...string[]]>; +type T34 = DropLast<[symbol, ...string[]]>; +type T35 = DropLast<[string?]>; +type T36 = DropLast; +type T37 = DropLast<[]>; +type T38 = DropLast; +type T39 = DropLast; +type R00 = First; +type R01 = First; +type R02 = First; +type R03 = First; +type R04 = First; +type R05 = First; +type R06 = First; +type R10 = DropFirst; +type R11 = DropFirst; +type R12 = DropFirst; +type R13 = DropFirst; +type R14 = DropFirst; +type R15 = DropFirst; +type R16 = DropFirst; +type R20 = Last; +type R21 = Last; +type R22 = Last; +type R23 = Last; +type R24 = Last; +type R25 = Last; +type R26 = Last; +type R30 = DropLast; +type R31 = DropLast; +type R32 = DropLast; +type R33 = DropLast; +type R34 = DropLast; +type R35 = DropLast; +type R36 = DropLast; declare function curry(f: (...args: [...T, ...U]) => R, ...a: T): (...b: U) => R; declare const fn1: (a: number, b: string, c: boolean, d: string[]) => number; declare const c0: (a: number, b: string, c: boolean, d: string[]) => number; @@ -788,9 +788,9 @@ declare function getOrgUser(id: string, orgId: number, options?: { z?: boolean; }): void; declare function callApi(method: (...args: [...T, object]) => U): (...args_0: T) => U; -declare type Numbers = number[]; -declare type Unbounded = [...Numbers, boolean]; +type Numbers = number[]; +type Unbounded = [...Numbers, boolean]; declare const data: Unbounded; -declare type U1 = [string, ...Numbers, boolean]; -declare type U2 = [...[string, ...Numbers], boolean]; -declare type U3 = [...[string, number], boolean]; +type U1 = [string, ...Numbers, boolean]; +type U2 = [...[string, ...Numbers], boolean]; +type U3 = [...[string, number], boolean]; diff --git a/tests/baselines/reference/variadicTuples2.js b/tests/baselines/reference/variadicTuples2.js index e84d0bb3d85..db69874f71d 100644 --- a/tests/baselines/reference/variadicTuples2.js +++ b/tests/baselines/reference/variadicTuples2.js @@ -229,30 +229,30 @@ var e1 = foo('blah1', 'blah2', 1, 2, 3); // Error //// [variadicTuples2.d.ts] -declare type V00 = [number, ...string[]]; -declare type V01 = [...string[], number]; -declare type V03 = [number, ...string[], number]; -declare type V10 = [number, ...string[], ...boolean[]]; -declare type V11 = [number, ...string[], boolean?]; -declare type V12 = [number, string?, boolean]; -declare type Tup3 = [...T, ...U, ...V]; -declare type V20 = Tup3<[number], string[], [number]>; -declare type V21 = Tup3<[number], [string?], [boolean]>; -declare type V22 = Tup3<[number], string[], boolean[]>; -declare type V23 = Tup3<[number], string[], [boolean?]>; -declare type V24 = Tup3<[number], [boolean?], string[]>; -declare type V25 = Tup3; -declare type V26 = Tup3; -declare type V27 = Tup3<[number?], [string], [boolean?]>; -declare type V30 = Tup3; -declare type V31 = Tup3; -declare type V32 = Tup3; -declare type V40 = Tup3; -declare type V41 = Tup3<[string?], A, number[]>; -declare type V42 = Tup3<[string?], number[], A>; -declare type V50 = Tup3; -declare type V51 = Tup3; -declare type V52 = Tup3; +type V00 = [number, ...string[]]; +type V01 = [...string[], number]; +type V03 = [number, ...string[], number]; +type V10 = [number, ...string[], ...boolean[]]; +type V11 = [number, ...string[], boolean?]; +type V12 = [number, string?, boolean]; +type Tup3 = [...T, ...U, ...V]; +type V20 = Tup3<[number], string[], [number]>; +type V21 = Tup3<[number], [string?], [boolean]>; +type V22 = Tup3<[number], string[], boolean[]>; +type V23 = Tup3<[number], string[], [boolean?]>; +type V24 = Tup3<[number], [boolean?], string[]>; +type V25 = Tup3; +type V26 = Tup3; +type V27 = Tup3<[number?], [string], [boolean?]>; +type V30 = Tup3; +type V31 = Tup3; +type V32 = Tup3; +type V40 = Tup3; +type V41 = Tup3<[string?], A, number[]>; +type V42 = Tup3<[string?], number[], A>; +type V50 = Tup3; +type V51 = Tup3; +type V52 = Tup3; declare let tt1: [...string[], number]; declare function ft1(...args: [...strs: string[], num: number]): void; declare let tt2: [number, ...string[], number]; diff --git a/tests/baselines/reference/varianceAnnotations.js b/tests/baselines/reference/varianceAnnotations.js index aaecab6ac68..d649b6c2361 100644 --- a/tests/baselines/reference/varianceAnnotations.js +++ b/tests/baselines/reference/varianceAnnotations.js @@ -220,66 +220,66 @@ var OuterC = /** @class */ (function () { //// [varianceAnnotations.d.ts] -declare type Covariant = { +type Covariant = { x: T; }; declare let super_covariant: Covariant; declare let sub_covariant: Covariant; -declare type Contravariant = { +type Contravariant = { f: (x: T) => void; }; declare let super_contravariant: Contravariant; declare let sub_contravariant: Contravariant; -declare type Invariant = { +type Invariant = { f: (x: T) => T; }; declare let super_invariant: Invariant; declare let sub_invariant: Invariant; -declare type T10 = T; -declare type T11 = keyof T; -declare type T12 = T[K]; -declare type T13 = T[keyof T]; -declare type Covariant1 = { +type T10 = T; +type T11 = keyof T; +type T12 = T[K]; +type T13 = T[keyof T]; +type Covariant1 = { x: T; }; -declare type Contravariant1 = keyof T; -declare type Contravariant2 = { +type Contravariant1 = keyof T; +type Contravariant2 = { f: (x: T) => void; }; -declare type Invariant1 = { +type Invariant1 = { f: (x: T) => T; }; -declare type Invariant2 = { +type Invariant2 = { f: (x: T) => T; }; -declare type Foo1 = { +type Foo1 = { x: T; f: FooFn1; }; -declare type FooFn1 = (foo: Bar1) => void; -declare type Bar1 = { +type FooFn1 = (foo: Bar1) => void; +type Bar1 = { value: Foo1; }; -declare type Foo2 = { +type Foo2 = { x: T; f: FooFn2; }; -declare type FooFn2 = (foo: Bar2) => void; -declare type Bar2 = { +type FooFn2 = (foo: Bar2) => void; +type Bar2 = { value: Foo2; }; -declare type Foo3 = { +type Foo3 = { x: T; f: FooFn3; }; -declare type FooFn3 = (foo: Bar3) => void; -declare type Bar3 = { +type FooFn3 = (foo: Bar3) => void; +type Bar3 = { value: Foo3; }; -declare type T20 = T; -declare type T21 = T; -declare type T22 = T; -declare type T23 = T; +type T20 = T; +type T21 = T; +type T22 = T; +type T23 = T; declare function f1(x: T): void; declare function f2(): T; declare class C { diff --git a/tests/baselines/reference/varianceAnnotationsWithCircularlyReferencesError.js b/tests/baselines/reference/varianceAnnotationsWithCircularlyReferencesError.js index 8f2cc8a9c38..9d6672ef47d 100644 --- a/tests/baselines/reference/varianceAnnotationsWithCircularlyReferencesError.js +++ b/tests/baselines/reference/varianceAnnotationsWithCircularlyReferencesError.js @@ -7,5 +7,5 @@ type T2 = T2 // Error: circularly references //// [varianceAnnotationsWithCircularlyReferencesError.d.ts] -declare type T1 = T1; -declare type T2 = T2; +type T1 = T1; +type T2 = T2; diff --git a/tests/baselines/reference/weakTypeAndPrimitiveNarrowing.js b/tests/baselines/reference/weakTypeAndPrimitiveNarrowing.js new file mode 100644 index 00000000000..d9736d75f2d --- /dev/null +++ b/tests/baselines/reference/weakTypeAndPrimitiveNarrowing.js @@ -0,0 +1,50 @@ +//// [weakTypeAndPrimitiveNarrowing.ts] +type LiteralsAndWeakTypes = + | 'A' + | 'B' + | { optional?: true } + | { toLowerCase?(): string } + | { toUpperCase?(): string, otherOptionalProp?: number }; + +const g = (arg: LiteralsAndWeakTypes) => { + if (arg === 'A') { + arg; + } else { + arg; + } +} + +type PrimitivesAndWeakTypes = + | string + | number + | { optional?: true } + | { toLowerCase?(): string } + | { toUpperCase?(): string, otherOptionalProp?: number }; + +const h = (arg: PrimitivesAndWeakTypes) => { + if (arg === 'A') { + arg; + } else { + arg; + } +} + + +//// [weakTypeAndPrimitiveNarrowing.js] +"use strict"; +var g = function (arg) { + if (arg === 'A') { + arg; + } + else { + arg; + } +}; +var h = function (arg) { + if (arg === 'A') { + arg; + } + else { + arg; + } +}; diff --git a/tests/baselines/reference/weakTypeAndPrimitiveNarrowing.symbols b/tests/baselines/reference/weakTypeAndPrimitiveNarrowing.symbols new file mode 100644 index 00000000000..0d1f0edab74 --- /dev/null +++ b/tests/baselines/reference/weakTypeAndPrimitiveNarrowing.symbols @@ -0,0 +1,65 @@ +=== tests/cases/compiler/weakTypeAndPrimitiveNarrowing.ts === +type LiteralsAndWeakTypes = +>LiteralsAndWeakTypes : Symbol(LiteralsAndWeakTypes, Decl(weakTypeAndPrimitiveNarrowing.ts, 0, 0)) + + | 'A' + | 'B' + | { optional?: true } +>optional : Symbol(optional, Decl(weakTypeAndPrimitiveNarrowing.ts, 3, 5)) + + | { toLowerCase?(): string } +>toLowerCase : Symbol(toLowerCase, Decl(weakTypeAndPrimitiveNarrowing.ts, 4, 5)) + + | { toUpperCase?(): string, otherOptionalProp?: number }; +>toUpperCase : Symbol(toUpperCase, Decl(weakTypeAndPrimitiveNarrowing.ts, 5, 5)) +>otherOptionalProp : Symbol(otherOptionalProp, Decl(weakTypeAndPrimitiveNarrowing.ts, 5, 29)) + +const g = (arg: LiteralsAndWeakTypes) => { +>g : Symbol(g, Decl(weakTypeAndPrimitiveNarrowing.ts, 7, 5)) +>arg : Symbol(arg, Decl(weakTypeAndPrimitiveNarrowing.ts, 7, 11)) +>LiteralsAndWeakTypes : Symbol(LiteralsAndWeakTypes, Decl(weakTypeAndPrimitiveNarrowing.ts, 0, 0)) + + if (arg === 'A') { +>arg : Symbol(arg, Decl(weakTypeAndPrimitiveNarrowing.ts, 7, 11)) + + arg; +>arg : Symbol(arg, Decl(weakTypeAndPrimitiveNarrowing.ts, 7, 11)) + + } else { + arg; +>arg : Symbol(arg, Decl(weakTypeAndPrimitiveNarrowing.ts, 7, 11)) + } +} + +type PrimitivesAndWeakTypes = +>PrimitivesAndWeakTypes : Symbol(PrimitivesAndWeakTypes, Decl(weakTypeAndPrimitiveNarrowing.ts, 13, 1)) + + | string + | number + | { optional?: true } +>optional : Symbol(optional, Decl(weakTypeAndPrimitiveNarrowing.ts, 18, 5)) + + | { toLowerCase?(): string } +>toLowerCase : Symbol(toLowerCase, Decl(weakTypeAndPrimitiveNarrowing.ts, 19, 5)) + + | { toUpperCase?(): string, otherOptionalProp?: number }; +>toUpperCase : Symbol(toUpperCase, Decl(weakTypeAndPrimitiveNarrowing.ts, 20, 5)) +>otherOptionalProp : Symbol(otherOptionalProp, Decl(weakTypeAndPrimitiveNarrowing.ts, 20, 29)) + +const h = (arg: PrimitivesAndWeakTypes) => { +>h : Symbol(h, Decl(weakTypeAndPrimitiveNarrowing.ts, 22, 5)) +>arg : Symbol(arg, Decl(weakTypeAndPrimitiveNarrowing.ts, 22, 11)) +>PrimitivesAndWeakTypes : Symbol(PrimitivesAndWeakTypes, Decl(weakTypeAndPrimitiveNarrowing.ts, 13, 1)) + + if (arg === 'A') { +>arg : Symbol(arg, Decl(weakTypeAndPrimitiveNarrowing.ts, 22, 11)) + + arg; +>arg : Symbol(arg, Decl(weakTypeAndPrimitiveNarrowing.ts, 22, 11)) + + } else { + arg; +>arg : Symbol(arg, Decl(weakTypeAndPrimitiveNarrowing.ts, 22, 11)) + } +} + diff --git a/tests/baselines/reference/weakTypeAndPrimitiveNarrowing.types b/tests/baselines/reference/weakTypeAndPrimitiveNarrowing.types new file mode 100644 index 00000000000..e0db0a93b8d --- /dev/null +++ b/tests/baselines/reference/weakTypeAndPrimitiveNarrowing.types @@ -0,0 +1,71 @@ +=== tests/cases/compiler/weakTypeAndPrimitiveNarrowing.ts === +type LiteralsAndWeakTypes = +>LiteralsAndWeakTypes : { optional?: true | undefined; } | { toLowerCase?(): string; } | { toUpperCase?(): string; otherOptionalProp?: number | undefined; } | "A" | "B" + + | 'A' + | 'B' + | { optional?: true } +>optional : true | undefined +>true : true + + | { toLowerCase?(): string } +>toLowerCase : (() => string) | undefined + + | { toUpperCase?(): string, otherOptionalProp?: number }; +>toUpperCase : (() => string) | undefined +>otherOptionalProp : number | undefined + +const g = (arg: LiteralsAndWeakTypes) => { +>g : (arg: LiteralsAndWeakTypes) => void +>(arg: LiteralsAndWeakTypes) => { if (arg === 'A') { arg; } else { arg; }} : (arg: LiteralsAndWeakTypes) => void +>arg : LiteralsAndWeakTypes + + if (arg === 'A') { +>arg === 'A' : boolean +>arg : LiteralsAndWeakTypes +>'A' : "A" + + arg; +>arg : { toLowerCase?(): string; } | { toUpperCase?(): string; otherOptionalProp?: number | undefined; } | "A" + + } else { + arg; +>arg : { optional?: true | undefined; } | { toLowerCase?(): string; } | { toUpperCase?(): string; otherOptionalProp?: number | undefined; } | "B" + } +} + +type PrimitivesAndWeakTypes = +>PrimitivesAndWeakTypes : string | number | { optional?: true | undefined; } | { toLowerCase?(): string; } | { toUpperCase?(): string; otherOptionalProp?: number | undefined; } + + | string + | number + | { optional?: true } +>optional : true | undefined +>true : true + + | { toLowerCase?(): string } +>toLowerCase : (() => string) | undefined + + | { toUpperCase?(): string, otherOptionalProp?: number }; +>toUpperCase : (() => string) | undefined +>otherOptionalProp : number | undefined + +const h = (arg: PrimitivesAndWeakTypes) => { +>h : (arg: PrimitivesAndWeakTypes) => void +>(arg: PrimitivesAndWeakTypes) => { if (arg === 'A') { arg; } else { arg; }} : (arg: PrimitivesAndWeakTypes) => void +>arg : PrimitivesAndWeakTypes + + if (arg === 'A') { +>arg === 'A' : boolean +>arg : PrimitivesAndWeakTypes +>'A' : "A" + + arg; +>arg : "A" | { toLowerCase?(): string; } | { toUpperCase?(): string; otherOptionalProp?: number | undefined; } + + } else { + arg; +>arg : PrimitivesAndWeakTypes + } +} + diff --git a/tests/cases/compiler/accessorDeclarationOrder.ts b/tests/cases/compiler/accessorDeclarationOrder.ts new file mode 100644 index 00000000000..ae3ab8e8776 --- /dev/null +++ b/tests/cases/compiler/accessorDeclarationOrder.ts @@ -0,0 +1,35 @@ +// @target: esnext + +class C1 { + #name: string; + + public get name() { + return this.#name; + } + + private set name(name: string) { + this.#name = name; + } +} + +class C2 { + #name: string; + + private set name(name: string) { + this.#name = name; + } + + public get name() { + return this.#name; + } +} + +const c1 = new C1(); +const c2 = new C2(); + + +// no error +c1.name; + +// no error +c2.name; diff --git a/tests/cases/compiler/awaitedType.ts b/tests/cases/compiler/awaitedType.ts index 924bb535589..0a64eed5d31 100644 --- a/tests/cases/compiler/awaitedType.ts +++ b/tests/cases/compiler/awaitedType.ts @@ -162,3 +162,23 @@ async function f16(x: T) { // helps with tests where '.types' just prints out the type alias name type _Expect = TActual; + +// https://github.com/microsoft/TypeScript/issues/48320 +async function f17 Promise>(fn: T) { + const ret: Awaited> = await fn(1, 2, 3); + return ret; +} +async function f17_usage() { + const x = await f17(async () => 123 as const); + return { x }; +} + +// https://github.com/microsoft/TypeScript/issues/47144 +type GenericStructure< + AcceptableKeyType extends string = string +> = Record; + +async function brokenExample(structurePromise: Promise>, key: AcceptableKeyType): Promise { + const structure = await structurePromise; + structure[key] = 1; +} \ No newline at end of file diff --git a/tests/cases/compiler/awaitedTypeJQuery.ts b/tests/cases/compiler/awaitedTypeJQuery.ts new file mode 100644 index 00000000000..a477b7719e4 --- /dev/null +++ b/tests/cases/compiler/awaitedTypeJQuery.ts @@ -0,0 +1,125 @@ +/// + +interface Thenable extends PromiseLike { } + +// JQuery's Promise type +interface PromiseBase { + then( + doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => PromiseBase | Thenable | ARD, + failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => PromiseBase | Thenable | ARF, + progressFilter: (t: TN, u: UN, v: VN, ...s: SN[]) => PromiseBase | Thenable | ANP): PromiseBase; + then( + doneFilter: null, + failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => PromiseBase | Thenable | ARF, + progressFilter: (t: TN, u: UN, v: VN, ...s: SN[]) => PromiseBase | Thenable | ANP): PromiseBase; + then( + doneFilter: null, + failFilter: null, + progressFilter?: (t: TN, u: UN, v: VN, ...s: SN[]) => PromiseBase | Thenable | ANP): PromiseBase; + then( + doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => PromiseBase | Thenable | ARD, + failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => PromiseBase | Thenable | ARF, + progressFilter?: null): PromiseBase; + then( + doneFilter: null, + failFilter: (t: TJ, u: UJ, v: VJ, ...s: SJ[]) => PromiseBase | Thenable | ARF, + progressFilter?: null): PromiseBase; + then( + doneFilter: (t: TR, u: UR, v: VR, ...s: SR[]) => PromiseBase | Thenable | ARD, + failFilter?: null, + progressFilter?: null): PromiseBase; +} + +interface Promise3 extends PromiseBase { } + +type T = Awaited>; // string \ No newline at end of file diff --git a/tests/cases/compiler/classMemberInitializerScoping2.ts b/tests/cases/compiler/classMemberInitializerScoping2.ts new file mode 100644 index 00000000000..583d9f03aae --- /dev/null +++ b/tests/cases/compiler/classMemberInitializerScoping2.ts @@ -0,0 +1,8 @@ +// @target: es2017,esnext +// @useDefineForClassFields: true,false + +const x = 1 +class C { + p = x + constructor(x: string) { } +} diff --git a/tests/cases/compiler/classPropInitializationInferenceWithElementAccess.ts b/tests/cases/compiler/classPropInitializationInferenceWithElementAccess.ts new file mode 100644 index 00000000000..7bd1920a7d6 --- /dev/null +++ b/tests/cases/compiler/classPropInitializationInferenceWithElementAccess.ts @@ -0,0 +1,19 @@ +// @noEmit: true +// @strict: true + +// repro #49339 +export class Cls { + x; + y; + z; + + 0; + + constructor(seed: number) { + this['x'] = [seed]; + this['y'] = { seed }; + this['z'] = `${seed}`; + + this[0] = [seed]; + } +} \ No newline at end of file diff --git a/tests/cases/compiler/contextualTypeFunctionObjectPropertyIntersection.ts b/tests/cases/compiler/contextualTypeFunctionObjectPropertyIntersection.ts deleted file mode 100644 index 2d7e00f32f6..00000000000 --- a/tests/cases/compiler/contextualTypeFunctionObjectPropertyIntersection.ts +++ /dev/null @@ -1,29 +0,0 @@ -// @strict: true - -type Action = (ev: TEvent) => void; - -interface MachineConfig { - schema: { - events: TEvent; - }; - on?: { - [K in TEvent["type"]]?: Action; - } & { - "*"?: Action; - }; -} - -declare function createMachine( - config: MachineConfig -): void; - -createMachine({ - schema: { - events: {} as { type: "FOO" } | { type: "BAR" }, - }, - on: { - FOO: (ev) => { - ev.type; // should be 'FOO' - }, - }, -}); diff --git a/tests/cases/compiler/contextualTypeOnYield1.ts b/tests/cases/compiler/contextualTypeOnYield1.ts new file mode 100644 index 00000000000..de25c1cb7f2 --- /dev/null +++ b/tests/cases/compiler/contextualTypeOnYield1.ts @@ -0,0 +1,8 @@ +// @strict: true +// @target: ES6 + +type FuncOrGeneratorFunc = () => (number | Generator<(arg: number) => void, any, void>) + +const f: FuncOrGeneratorFunc = function*() { + yield (num) => console.log(num); // `num` should be inferred to have type `number`. +} \ No newline at end of file diff --git a/tests/cases/compiler/contextualTypeOnYield2.ts b/tests/cases/compiler/contextualTypeOnYield2.ts new file mode 100644 index 00000000000..e8ff89eec2f --- /dev/null +++ b/tests/cases/compiler/contextualTypeOnYield2.ts @@ -0,0 +1,7 @@ +// @strict: true +// @target: ES6 + +type OrGen = () => (number | Generator void, undefined>); +const g: OrGen = function* () { + return (num) => console.log(num); +} \ No newline at end of file diff --git a/tests/cases/compiler/controlFlowFavorAssertedTypeThroughTypePredicate.ts b/tests/cases/compiler/controlFlowFavorAssertedTypeThroughTypePredicate.ts new file mode 100644 index 00000000000..d14faa3cfc5 --- /dev/null +++ b/tests/cases/compiler/controlFlowFavorAssertedTypeThroughTypePredicate.ts @@ -0,0 +1,40 @@ +// @noEmit: true +// @strict: true + +// repro 49988#issuecomment-1192016929 + +declare function isObject1(value: unknown): value is Record; + +declare const obj1: {}; +if (isObject1(obj1)) { + obj1; + obj1['attr']; +} +// check type after conditional block +obj1; + +declare const obj2: {} | undefined; +if (isObject1(obj2)) { + obj2; + obj2['attr']; +} +// check type after conditional block +obj2; + +declare function isObject2(value: unknown): value is {}; + +declare const obj3: Record; +if (isObject2(obj3)) { + obj3; + obj3['attr']; +} +// check type after conditional block +obj3; + +declare const obj4: Record | undefined; +if (isObject2(obj4)) { + obj4; + obj4['attr']; +} +// check type after conditional block +obj4; diff --git a/tests/cases/compiler/declarationEmitDistributiveConditionalWithInfer.ts b/tests/cases/compiler/declarationEmitDistributiveConditionalWithInfer.ts new file mode 100644 index 00000000000..5f7c8c77f15 --- /dev/null +++ b/tests/cases/compiler/declarationEmitDistributiveConditionalWithInfer.ts @@ -0,0 +1,6 @@ +// @declaration: true +// @lib: es2020 +// This function's type is changed on declaration +export const fun = ( + subFun: () + => FlatArray[]) => { }; diff --git a/tests/cases/compiler/declarationEmitExpressionInExtends6.ts b/tests/cases/compiler/declarationEmitExpressionInExtends6.ts index 876be6ded3c..15069c6fbff 100644 --- a/tests/cases/compiler/declarationEmitExpressionInExtends6.ts +++ b/tests/cases/compiler/declarationEmitExpressionInExtends6.ts @@ -7,9 +7,10 @@ // @Filename: /node_modules/@types/node/index.d.ts declare const require: any; -// @Filename: /a.js +// @Filename: /a.ts export class Foo {} // @Filename: /b.ts -const { Foo } = require("./a"); +import * as A from "./a"; +const { Foo } = A; export default class extends Foo {} diff --git a/tests/cases/compiler/declarationEmitMappedTypeDistributivityPreservesConstraints.ts b/tests/cases/compiler/declarationEmitMappedTypeDistributivityPreservesConstraints.ts new file mode 100644 index 00000000000..4250a1130e8 --- /dev/null +++ b/tests/cases/compiler/declarationEmitMappedTypeDistributivityPreservesConstraints.ts @@ -0,0 +1,18 @@ +// @declaration: true +// @filename: types.ts +type Fns = Record unknown> + +type Map = { [K in keyof T]: T[K]; }; + +type AllArg = { [K in keyof T]: Parameters }; + +function fn }>(sliceIndex: T): AllArg { + return null!; +} + +export default { fn }; + +// @filename: reexport.ts + +import test from "./types"; +export default { test }; \ No newline at end of file diff --git a/tests/cases/compiler/declarationEmitNonExportedBindingPattern.ts b/tests/cases/compiler/declarationEmitNonExportedBindingPattern.ts new file mode 100644 index 00000000000..a01eafc2a5f --- /dev/null +++ b/tests/cases/compiler/declarationEmitNonExportedBindingPattern.ts @@ -0,0 +1,22 @@ +// @declaration: true +// @filename: test.ts + +function getFoo() { + return { foo: { test: 42 } } +} + +const { foo } = getFoo() + +export type AliasType = typeof foo + +const { foo: renamed } = getFoo() + +export type AliasType2 = typeof renamed + +function getNested() { + return { a: { b: { c: 'd' } } } +} + +const { a: { b: { c } } } = getNested() + +export type AliasType3 = typeof c diff --git a/tests/cases/compiler/errorCause.ts b/tests/cases/compiler/errorCause.ts index 9d06fa389bb..6e3274f6268 100644 --- a/tests/cases/compiler/errorCause.ts +++ b/tests/cases/compiler/errorCause.ts @@ -1,9 +1,14 @@ // @target: es2021, es2022, esnext +declare const a: unknown; + let err = new Error("foo", { cause: new Error("bar") }); err.cause; +let anotherErr = new Error("foo", { cause: a }); +anotherErr.cause; new EvalError("foo", { cause: new Error("bar") }); +new EvalError("foo", { cause: a }); new RangeError("foo", { cause: new Error("bar") }); new ReferenceError("foo", { cause: new Error("bar") }); new SyntaxError("foo", { cause: new Error("bar") }); diff --git a/tests/cases/compiler/evolvingArrayResolvedAssert.ts b/tests/cases/compiler/evolvingArrayResolvedAssert.ts new file mode 100644 index 00000000000..7ba37947b04 --- /dev/null +++ b/tests/cases/compiler/evolvingArrayResolvedAssert.ts @@ -0,0 +1,7 @@ +// @strict: true + +var C = []; +for (var a in C) { + if (C.hasOwnProperty(a)) { + } +} diff --git a/tests/cases/compiler/firstMatchRegExpMatchArray.ts b/tests/cases/compiler/firstMatchRegExpMatchArray.ts new file mode 100644 index 00000000000..265d564fc51 --- /dev/null +++ b/tests/cases/compiler/firstMatchRegExpMatchArray.ts @@ -0,0 +1,9 @@ +// @strict: true +// @noUncheckedIndexedAccess: true + +const match = ''.match(/ /) + +if (match !== null) { + const foo: string = match[0] + const bar: string = match[1] +} diff --git a/tests/cases/compiler/freshLiteralInference.ts b/tests/cases/compiler/freshLiteralInference.ts new file mode 100644 index 00000000000..32d895a855a --- /dev/null +++ b/tests/cases/compiler/freshLiteralInference.ts @@ -0,0 +1,14 @@ +declare function f1(x: T): T; + +const value = f1("1"); // regular "1" +let x1 = value; // regular "1" + +declare function f2(x: { value: T }): { value: T }; + +const obj2 = f2({ value: "1" }); // { value: regular "1" } +let x2 = obj2.value; // regular "1" + +declare function f3(obj: T): T; + +const obj3 = f3({ value: "1" }); // before: { value: fresh "1" } +let x3 = obj3.value; // before: string, after: "1" diff --git a/tests/cases/compiler/indexSignatureInOtherFile.ts b/tests/cases/compiler/indexSignatureInOtherFile.ts new file mode 100644 index 00000000000..a5b28bfc67b --- /dev/null +++ b/tests/cases/compiler/indexSignatureInOtherFile.ts @@ -0,0 +1,39 @@ +// @target: es2015 +// @Filename: index.ts +class Test extends Array1 { + [key: symbol]: string +} + +// @Filename: other.ts +interface Array1 { + length: number; + [n: number]: T; +} + +interface ArrayConstructor1 { + new(arrayLength?: number): Array1; +} + +declare var Array1: ArrayConstructor1; + +// iterable.d.ts +interface Array1 { + [Symbol.iterator](): IterableIterator; +} + +// symbol.wellknown.d.ts +interface Array1 { + /** + * Returns an object whose properties have the value 'true' + * when they will be absent when used in a 'with' statement. + */ + [Symbol.unscopables](): { + copyWithin: boolean; + entries: boolean; + fill: boolean; + find: boolean; + findIndex: boolean; + keys: boolean; + values: boolean; + }; +} diff --git a/tests/cases/compiler/indexSignatureInOtherFile1.ts b/tests/cases/compiler/indexSignatureInOtherFile1.ts new file mode 100644 index 00000000000..0edd8b1c457 --- /dev/null +++ b/tests/cases/compiler/indexSignatureInOtherFile1.ts @@ -0,0 +1,39 @@ +// @target: es2015 +// @Filename: other.ts +interface Array1 { + length: number; + [n: number]: T; +} + +interface ArrayConstructor1 { + new(arrayLength?: number): Array1; +} + +declare var Array1: ArrayConstructor1; + +// iterable.d.ts +interface Array1 { + [Symbol.iterator](): IterableIterator; +} + +// symbol.wellknown.d.ts +interface Array1 { + /** + * Returns an object whose properties have the value 'true' + * when they will be absent when used in a 'with' statement. + */ + [Symbol.unscopables](): { + copyWithin: boolean; + entries: boolean; + fill: boolean; + find: boolean; + findIndex: boolean; + keys: boolean; + values: boolean; + }; +} + +// @Filename: index.ts +class Test extends Array1 { + [key: symbol]: string +} \ No newline at end of file diff --git a/tests/cases/compiler/inferTypeConstraintInstantiationCircularity.ts b/tests/cases/compiler/inferTypeConstraintInstantiationCircularity.ts new file mode 100644 index 00000000000..ad489da7083 --- /dev/null +++ b/tests/cases/compiler/inferTypeConstraintInstantiationCircularity.ts @@ -0,0 +1,73 @@ + +type AMappedType = { [KeyType in keyof T]: number }; + +type HasM = { + m: number; +}; + +// Simplified repro from #48059 + +interface X1< + T extends HasM, + Output = AMappedType<{ s: number; } & { [k in keyof T]: number; }> +> { + tee: T; + output: Output; +} + +type F1 = T extends X1 ? U : never; + +// With default inlined + +interface X2< + T extends HasM, + Output +> { + tee: T; + output: Output; +} + +type F2 = T extends X2> ? U : never; + +// Original repro + +type Simplify = {[KeyType in keyof T]: T[KeyType]}; + +type optionalKeys = { + [k in keyof T]: undefined extends T[k] ? k : never; +}[keyof T]; + +type requiredKeys = Exclude>; + +export type addQuestionMarks = { + [k in optionalKeys]?: T[k]; +} & { + [k in requiredKeys]: T[k]; +}; + +type ZodRawShape = { + [k: string]: ZodType; +}; + +interface ZodType { + _type: Output; +} + +interface ZodObject< + T extends ZodRawShape, + Output = Simplify< + { + [k in optionalKeys]?: T[k]; + } & { + [k in requiredKeys]: T[k]; + } + > +> extends ZodType { + readonly _shape: T; +} + +type MyObject = T extends ZodObject + ? U extends ZodRawShape + ? U + : never + : never; \ No newline at end of file diff --git a/tests/cases/compiler/inferenceDoesNotAddUndefinedOrNull.ts b/tests/cases/compiler/inferenceDoesNotAddUndefinedOrNull.ts new file mode 100644 index 00000000000..75f53691a25 --- /dev/null +++ b/tests/cases/compiler/inferenceDoesNotAddUndefinedOrNull.ts @@ -0,0 +1,32 @@ +// @strict: true + +interface NodeArray extends ReadonlyArray {} + +interface Node { + forEachChild(cbNode: (node: Node) => T | undefined, cbNodeArray?: (nodes: NodeArray) => T | undefined): T | undefined; +} + +declare function toArray(value: T | T[]): T[]; +declare function toArray(value: T | readonly T[]): readonly T[]; + +function flatMapChildren(node: Node, cb: (child: Node) => readonly T[] | T | undefined): readonly T[] { + const result: T[] = []; + node.forEachChild(child => { + const value = cb(child); + if (value !== undefined) { + result.push(...toArray(value)); + } + }); + return result; +} + +function flatMapChildren2(node: Node, cb: (child: Node) => readonly T[] | T | null): readonly T[] { + const result: T[] = []; + node.forEachChild(child => { + const value = cb(child); + if (value !== null) { + result.push(...toArray(value)); + } + }); + return result; +} diff --git a/tests/cases/compiler/inferenceOfNullableObjectTypesWithCommonBase.ts b/tests/cases/compiler/inferenceOfNullableObjectTypesWithCommonBase.ts new file mode 100644 index 00000000000..557e243da1b --- /dev/null +++ b/tests/cases/compiler/inferenceOfNullableObjectTypesWithCommonBase.ts @@ -0,0 +1,34 @@ +// @strict: true + +function equal(a: T, b: T) { } + +let v = null!; + +// Object types with common base types + +type B = { foo: string } +type D = { foo: string; bar: number } + +equal(v as B, v as undefined | D) +equal(v as undefined | D, v as B) + +equal(v as B, v as undefined | D) +equal(v as undefined | D, v as B) + +equal(v as B, v as undefined) +equal(v as undefined, v as B) + +equal(v as B, v as D) +equal(v as D, v as B) + +equal(v as B, v as B | undefined) +equal(v as B | undefined, v as B) + +equal(v as 'a' | undefined, v as 'b'); +equal(v as 'a', v as 'b' | undefined); + +equal(v as 'a' | undefined, v as 'b' | null); +equal(v as 'a' | null, v as 'b' | undefined); + +equal(v as string, v as string & { tag: 'foo' } | undefined); +equal(v as string & { tag: 'foo' } | undefined, v as string); diff --git a/tests/cases/compiler/inferredRestTypeFixedOnce.ts b/tests/cases/compiler/inferredRestTypeFixedOnce.ts new file mode 100644 index 00000000000..2424b51a25b --- /dev/null +++ b/tests/cases/compiler/inferredRestTypeFixedOnce.ts @@ -0,0 +1,2 @@ +function wrap(_: (...args: Args) => void) {} +wrap(({ cancelable } = {}) => {}); diff --git a/tests/cases/compiler/instanceofTypeAliasToGenericClass.ts b/tests/cases/compiler/instanceofTypeAliasToGenericClass.ts new file mode 100644 index 00000000000..6c9b4499778 --- /dev/null +++ b/tests/cases/compiler/instanceofTypeAliasToGenericClass.ts @@ -0,0 +1,16 @@ +declare class TableClass { + _field: S; +} + +export type Table = TableClass; + +function fn(o: T) { + return o instanceof TableClass; +} + +function fn2(o: T) { + return o instanceof TableClass; +} + +declare const o: Table; +o instanceof TableClass; diff --git a/tests/cases/compiler/jsxClassAttributeResolution.tsx b/tests/cases/compiler/jsxClassAttributeResolution.tsx new file mode 100644 index 00000000000..32263ecd794 --- /dev/null +++ b/tests/cases/compiler/jsxClassAttributeResolution.tsx @@ -0,0 +1,23 @@ +// @jsx: react-jsx +// @module: nodenext +// @filename: file.tsx +class App {} +export const a = ; +// @filename: node_modules/@types/react/package.json +{ + "name": "@types/react", + "version": "0.0.1", + "main": "", + "types": "index.d.ts", +} +// @filename: node_modules/@types/react/index.d.ts +interface IntrinsicClassAttributesAlias { + ref: T +} +declare namespace JSX { + type IntrinsicClassAttributes = IntrinsicClassAttributesAlias +} +// @filename: node_modules/@types/react/jsx-runtime.d.ts +import './'; +// @filename: node_modules/@types/react/jsx-dev-runtime.d.ts +import './'; diff --git a/tests/cases/compiler/jsxIntrinsicElementsCompatability.tsx b/tests/cases/compiler/jsxIntrinsicElementsCompatability.tsx new file mode 100644 index 00000000000..faaec4fe778 --- /dev/null +++ b/tests/cases/compiler/jsxIntrinsicElementsCompatability.tsx @@ -0,0 +1,12 @@ +// @strict: true +// @jsx: react +/// +import * as React from "react"; +function SomeComponent(props: { element?: T } & JSX.IntrinsicElements[T]): JSX.Element { + // Just so the return value is RectElement, the rendered element doesnt matter + return

+} + +function Test(el: T) { + return +} \ No newline at end of file diff --git a/tests/cases/compiler/mergeMultipleInterfacesReexported.ts b/tests/cases/compiler/mergeMultipleInterfacesReexported.ts new file mode 100644 index 00000000000..4f1164b7ab2 --- /dev/null +++ b/tests/cases/compiler/mergeMultipleInterfacesReexported.ts @@ -0,0 +1,30 @@ +// @filename: index.ts +export * from './eventList'; + +// @filename: test.ts +import { EventList } from "./eventList"; + +declare const p012: "p0" | "p1" | "p2" +const t: keyof EventList = p012 + +// @filename: eventList.ts +export interface EventList { + p0: []; +} + +// @filename: foo.ts +declare module './index' { + interface EventList { + p1: [] + } +} +export {}; + + +// @filename: bar.ts +declare module './index' { + interface EventList { + p2: [] + } +} +export {}; diff --git a/tests/cases/compiler/moduleDetectionIsolatedModulesCjsFileScope.ts b/tests/cases/compiler/moduleDetectionIsolatedModulesCjsFileScope.ts new file mode 100644 index 00000000000..1b37d919466 --- /dev/null +++ b/tests/cases/compiler/moduleDetectionIsolatedModulesCjsFileScope.ts @@ -0,0 +1,9 @@ +// @target: esnext +// @module: esnext +// @declaration: true +// @moduleResolution: node +// @isolatedModules: true +// @filename: filename.cts +const a = 2; +// @filename: filename.mts +const a = 2; \ No newline at end of file diff --git a/tests/cases/compiler/narrowingUnionToUnion.ts b/tests/cases/compiler/narrowingUnionToUnion.ts new file mode 100644 index 00000000000..f28a10060d1 --- /dev/null +++ b/tests/cases/compiler/narrowingUnionToUnion.ts @@ -0,0 +1,214 @@ +// @strict: true +// @declaration: true + +type Falsy = false | 0 | 0n | '' | null | undefined; + +declare function isFalsy(value: unknown): value is Falsy; + +function fx1(x: string | number | undefined) { + if (isFalsy(x)) { + x; // "" | 0 | undefined + } +} + +function fx2(x: T | undefined) { + if (isFalsy(x)) { + x; // T & Falsy | undefined + } +} + +function fx3(x: T) { + if (isFalsy(x)) { + x; // T & "" | T & 0 + } +} + +declare function isA(obj: unknown): obj is { a: false } | { b: 0 }; + +function fx4(obj: { b: number }) { + if (isA(obj)) { + obj; // { b: 0 } + } +} + +declare class X { x: string } +declare class XS extends X { xs: string } + +declare class Y { y: string } +declare class YS extends Y { ys: string } + +declare function isXSorY(obj: unknown): obj is XS | Y; + +function fx5(obj: X | YS, c: typeof XS | typeof Y) { + if (obj instanceof c) { + obj; // XS | YS + } + if (isXSorY(obj)) { + obj; // XS | YS + } +} + +// Repro from #31156 + +declare function isEmptyStrOrUndefined(mixed: any): mixed is "" | undefined; + +function fx10(s: string | undefined) { + if (isEmptyStrOrUndefined(s)) { + s; // "" | undefined + if (s == undefined) { + s; // undefined + } + else { + s; // "" + } + } +} + +// Repro from #37807 + +function f1(x: any): asserts x is number | undefined { } +let v1: number | string | undefined; +f1(v1); +v1; // number | undefined + +function f2(x: any): asserts x is 6 | undefined { } +let v2: number | string | undefined; +f2(v2); +v2; // 6 | undefined + +// #39105 + +declare function isEmptyString(value: string): value is ''; +declare function isMaybeEmptyString(value: string | null | undefined): value is '' | null | undefined; + +declare function isZero(value: number): value is 0; +declare function isMaybeZero(value: number | null | undefined): value is 0 | null | undefined; + +declare function isEmptyArray(value: T[]): value is []; +declare function isMaybeEmptyArray(value: T[] | null | undefined): value is [] | null | undefined; + +const TEST_CASES = [ + (value: string) => { + if (isEmptyString(value)) { + value; // "" + } + else { + value; // string + } + if (isMaybeEmptyString(value)) { + value; // "" + } + else { + value; // string + } + }, + (value?: string) => { + if (isMaybeEmptyString(value)) { + value; // "" | undefined + } + else { + value; // string + } + }, + (value: number) => { + if (isZero(value)) { + value; // 0 + } + else { + value; // number + } + if (isMaybeZero(value)) { + value; // 0 + } + else { + value; // number + } + }, + (value?: number) => { + if (isMaybeZero(value)) { + value; // 0 | undefined + } + else { + value; // number + } + }, + (value: string[]) => { + if (isEmptyArray(value)) { + value; // [] + } + else { + value; // string[] + } + if (isMaybeEmptyArray(value)) { + value; // [] + } + else { + value; // string[] + } + }, + (value?: string[]) => { + if (isMaybeEmptyArray(value)) { + value; // [] | undefined + } + else { + value; // string[] + } + }, +]; + +// Repro from #42101 + +type EmptyString = '' | null | undefined; + +function isEmpty(value: string | EmptyString): value is EmptyString { + return value === '' || value === null || value === undefined; +} + +let test: string | null | undefined; + +if (isEmpty(test)) { + test; // EmptyString +} + +// Repro from #43825 + +declare function assert(value: any): asserts value is T + +function test1(foo: number | string | boolean) { + assert<1 | string>(foo); + foo; // string | 1 +} + +// Repro from #46909 + +function check1(x: unknown): x is (string | 0) { + return typeof x === "string" || x === 0; +} + +function check2(x: unknown): x is ("hello" | 0) { + return x === "hello" || x === 0; +} + +function test3(x: unknown) { + if (typeof x === "string" || x === 0) { + x; // string | 0 + if (x === "hello" || x === 0) { + x; // 0 | "hello" + } + } + if (check1(x)) { + x; // string | 0 + if (check2(x)) { + x; // 0 | "hello" + } + } +} + +// Repro from #49588 + +function assertRelationIsNullOrStringArray(v: (string | number)[] | null): asserts v is string[] | null {} + +function f1x(obj: (string | number)[] | null) { + assertRelationIsNullOrStringArray(obj); + obj; // string[] | null +} diff --git a/tests/cases/compiler/nonInferrableTypePropagation1.ts b/tests/cases/compiler/nonInferrableTypePropagation1.ts new file mode 100644 index 00000000000..d0bf10f8029 --- /dev/null +++ b/tests/cases/compiler/nonInferrableTypePropagation1.ts @@ -0,0 +1,29 @@ +// @strict: true + +type Op = (thing: Thing) => Thing; +type Thing = { + value: T; + pipe( + opA: Op, + opB: Op, + ): Thing; +}; +type Box = { data: V }; + +declare const thing: Thing; + +declare function map(project: (value: T) => R): Op; +declare function tap(next: (value: T) => void): Op; +declare function box(data: V): Box; +declare function createAndUnbox(factory: () => Thing>): Thing; +declare function log(value: any): void; + +const result1 = createAndUnbox(() => thing.pipe( + map((data) => box(data)), + tap((v) => log(v)), +)); + +const result2 = createAndUnbox(() => thing.pipe( + tap((v) => log(v)), + map((data) => box(data)), +)); diff --git a/tests/cases/compiler/nonInferrableTypePropagation2.ts b/tests/cases/compiler/nonInferrableTypePropagation2.ts new file mode 100644 index 00000000000..832323f05df --- /dev/null +++ b/tests/cases/compiler/nonInferrableTypePropagation2.ts @@ -0,0 +1,33 @@ +// @strict: true + +export interface Predicate { + (a: A): boolean +} + +interface Left { + readonly _tag: 'Left' + readonly left: E +} + +interface Right { + readonly _tag: 'Right' + readonly right: A +} + +type Either = Left | Right; + +interface Refinement { + (a: A): a is B +} + +declare const filter: { + (refinement: Refinement): (as: ReadonlyArray) => ReadonlyArray + (predicate: Predicate): (bs: ReadonlyArray) => ReadonlyArray + (predicate: Predicate): (as: ReadonlyArray) => ReadonlyArray +}; + +declare function pipe(a: A, ab: (a: A) => B): B; +declare function exists(predicate: Predicate): (ma: Either) => boolean; + +declare const es: Either[]; +const x = pipe(es, filter(exists((n) => n > 0))) diff --git a/tests/cases/compiler/numberVsBigIntOperations.ts b/tests/cases/compiler/numberVsBigIntOperations.ts index 74b1cea81f2..f53b3a142f9 100644 --- a/tests/cases/compiler/numberVsBigIntOperations.ts +++ b/tests/cases/compiler/numberVsBigIntOperations.ts @@ -93,4 +93,10 @@ else isNumber(zeroOrBigOne); const isOne = (x: 1 | 1n) => x; if (zeroOrBigOne) isOne(zeroOrBigOne); const bigZeroOrOne: 0n | 1; -if (bigZeroOrOne) isOne(bigZeroOrOne); \ No newline at end of file +if (bigZeroOrOne) isOne(bigZeroOrOne); + +type NumberOrBigint = number | bigint; +function getKey(key: S) { + +key; // should error + 0 + key; // should error +} diff --git a/tests/cases/compiler/objectFreezeLiteralsDontWiden.ts b/tests/cases/compiler/objectFreezeLiteralsDontWiden.ts new file mode 100644 index 00000000000..cf639e356c1 --- /dev/null +++ b/tests/cases/compiler/objectFreezeLiteralsDontWiden.ts @@ -0,0 +1,7 @@ +const PUPPETEER_REVISIONS = Object.freeze({ + chromium: '1011831', + firefox: 'latest', +}); + +let preferredRevision = PUPPETEER_REVISIONS.chromium; +preferredRevision = PUPPETEER_REVISIONS.firefox; diff --git a/tests/cases/compiler/objectPropertyAsClass.ts b/tests/cases/compiler/objectPropertyAsClass.ts new file mode 100644 index 00000000000..a4b32acfaae --- /dev/null +++ b/tests/cases/compiler/objectPropertyAsClass.ts @@ -0,0 +1,30 @@ +// @allowJs: true +// @noEmit: true +// @checkJs: true + +// @filename: index.js +const a1 = { + foo() { + this.x = 0; + } +} + +const a2 = { + foo: function() { + this.x = 0; + } +} + +const b1 = { + /** @class */ + foo() { + this.x = 0; + } +} + +const b2 = { + /** @class */ + foo: function() { + this.x = 0; + } +} diff --git a/tests/cases/compiler/parameterPropertyInConstructorWithPrologues.ts b/tests/cases/compiler/parameterPropertyInConstructorWithPrologues.ts index aa6acde1ae9..45b20b363fb 100644 --- a/tests/cases/compiler/parameterPropertyInConstructorWithPrologues.ts +++ b/tests/cases/compiler/parameterPropertyInConstructorWithPrologues.ts @@ -1,5 +1,7 @@ // https://github.com/microsoft/TypeScript/issues/48671 +class C {} + class Foo1 { constructor(private A: string) { "ngInject1"; @@ -42,3 +44,38 @@ class Foo6 { console.log("hi"); } } + +class Foo7 extends C { + constructor( + private member: boolean, + ) { + "ngInject1"; + super(); + console.log("hi"); + } +} + +class Foo8 extends C { + constructor( + private member: boolean, + ) { + "ngInject1"; + super(); + this.m(); + console.log("hi"); + } + + m() {} +} + +class Foo9 extends C { + constructor() { + "ngInject1"; + "ngInject2"; + super(); + this.m(); + console.log("hi"); + } + + m() {} +} diff --git a/tests/cases/compiler/parseAssertEntriesError.ts b/tests/cases/compiler/parseAssertEntriesError.ts new file mode 100644 index 00000000000..37e8ef23bd1 --- /dev/null +++ b/tests/cases/compiler/parseAssertEntriesError.ts @@ -0,0 +1,24 @@ +// @noImplicitReferences: true +// @module: nodenext +// @declaration: true +// @outDir: out +// @filename: /node_modules/pkg/package.json +{ + "name": "pkg", + "version": "0.0.1", + "exports": { + "import": "./import.js", + "require": "./require.js" + } +} +// @filename: /node_modules/pkg/import.d.ts +export interface ImportInterface {} +// @filename: /node_modules/pkg/require.d.ts +export interface RequireInterface {} +// @filename: /index.ts +export type LocalInterface = + & import("pkg", { assert: {1234, "resolution-mode": "require"} }).RequireInterface + & import("pkg", { assert: {1234, "resolution-mode": "import"} }).ImportInterface; + +export const a = (null as any as import("pkg", { assert: {1234, "resolution-mode": "require"} }).RequireInterface); +export const b = (null as any as import("pkg", { assert: {1234, "resolution-mode": "import"} }).ImportInterface); diff --git a/tests/cases/compiler/promiseType.ts b/tests/cases/compiler/promiseType.ts index ba4a7f60413..a61f9bcc654 100644 --- a/tests/cases/compiler/promiseType.ts +++ b/tests/cases/compiler/promiseType.ts @@ -217,3 +217,9 @@ const pc6 = p.then(() => Promise.reject("1"), () => {}); const pc7 = p.then(() => Promise.reject("1"), () => {throw 1}); const pc8 = p.then(() => Promise.reject("1"), () => Promise.resolve(1)); const pc9 = p.then(() => Promise.reject("1"), () => Promise.reject(1)); + +Promise.resolve(undefined as Promise | number); +Promise.resolve(undefined as Promise>); +Promise.resolve(undefined as string | Promise>); +Promise.resolve(undefined as Promise | Promise>); +Promise.resolve(undefined as Promise>>); \ No newline at end of file diff --git a/tests/cases/compiler/relatedViaDiscriminatedTypeNoError.ts b/tests/cases/compiler/relatedViaDiscriminatedTypeNoError.ts new file mode 100644 index 00000000000..4edd82e1b6c --- /dev/null +++ b/tests/cases/compiler/relatedViaDiscriminatedTypeNoError.ts @@ -0,0 +1,10 @@ +class Model { + constructor(public flag: boolean) {} +} + +type DiscriminatedUnion = { flag: true } | { flag: false }; +class A { + constructor(public model: T) { } +} + +class B extends A { } diff --git a/tests/cases/compiler/spreadExpressionContainingObjectExpressionContextualType.ts b/tests/cases/compiler/spreadExpressionContainingObjectExpressionContextualType.ts new file mode 100644 index 00000000000..56c334414d1 --- /dev/null +++ b/tests/cases/compiler/spreadExpressionContainingObjectExpressionContextualType.ts @@ -0,0 +1,15 @@ +// @noEmit: true + +// repro #49585 + +const { value } = (() => ({ + value: "", + ...(true ? {} : {}), +}))(); + +// repro 49684#discussion_r920545763 + +const { value2 } = { + value2: "", + ...(() => true ? {} : {})(), +}; diff --git a/tests/cases/compiler/systemModule18.ts b/tests/cases/compiler/systemModule18.ts new file mode 100644 index 00000000000..ec7206d7067 --- /dev/null +++ b/tests/cases/compiler/systemModule18.ts @@ -0,0 +1,9 @@ +// @module: system + +// @filename: react.ts +export function createElement() {} +export function lazy() {} +export function useState() {} + +// @filename: index.ts +export import React = require("./react.js"); diff --git a/tests/cases/compiler/thisInObjectJs.ts b/tests/cases/compiler/thisInObjectJs.ts new file mode 100644 index 00000000000..631b1b631d1 --- /dev/null +++ b/tests/cases/compiler/thisInObjectJs.ts @@ -0,0 +1,21 @@ +// @allowJs: true +// @outDir: out + +// @filename: index.js +export { } +let obj = { + x: 10, + y: [1], + fun: function() { + this.x = 1 + this/*1*/ + }, + f2: function() { + this.x + this/*2*/ + }, + f3: (function() { + this.x = 1 + this/*3*/ + }), +} diff --git a/tests/cases/compiler/typePredicateFreshLiteralWidening.ts b/tests/cases/compiler/typePredicateFreshLiteralWidening.ts new file mode 100644 index 00000000000..393684d8c4b --- /dev/null +++ b/tests/cases/compiler/typePredicateFreshLiteralWidening.ts @@ -0,0 +1,28 @@ +// @strictNullChecks: true + +type Narrowable = string | number | bigint | boolean; + +type Narrow = (A extends Narrowable ? A : never) | ({ + [K in keyof A]: Narrow; +}); + +const satisfies = + () => + (narrow: Narrow) => + narrow; + +/* ========================================================================== */ + +const isNotNull = (value: T | null): value is T => value !== null; + +type Item = { value: string | null }; + +const item1 = satisfies()({ value: "1" }); +const item2 = satisfies()({ value: "2" }); +const item3 = satisfies()({ value: null }); + +const values2: Array<"1" | "2" | null> = ["1", "2", null]; +const filteredValues2 = values2.filter(isNotNull); + +const values1 = [item1, item2, item3].map(item => item.value); +const filteredValues1 = values1.filter(isNotNull); diff --git a/tests/cases/compiler/typeVariableConstraintedToAliasNotAssignableToUnion.ts b/tests/cases/compiler/typeVariableConstraintedToAliasNotAssignableToUnion.ts new file mode 100644 index 00000000000..89416ee1a27 --- /dev/null +++ b/tests/cases/compiler/typeVariableConstraintedToAliasNotAssignableToUnion.ts @@ -0,0 +1,38 @@ +declare class TableClass { + _field: S; +} + +export type Table = TableClass; + +interface Something { + prop: number; +} + +interface SomethingElse { + prop2: string; +} + +declare let aBoolean: boolean; +declare let aStringOrNumber: string | number; +declare let aStringOrSomething: string | Something; +declare let someUnion: Something | SomethingElse; + +function fn(o: T) { + aBoolean = o; + aStringOrNumber = o; + aStringOrSomething = o; + someUnion = o; +} + +function fn2(o: T) { + aBoolean = o; + aStringOrNumber = o; + aStringOrSomething = o; + someUnion = o; +} + +declare const o: Table; +aBoolean = o; +aStringOrNumber = o; +aStringOrSomething = o; +someUnion = o; diff --git a/tests/cases/compiler/uncalledFunctionChecksInConditional2.ts b/tests/cases/compiler/uncalledFunctionChecksInConditional2.ts new file mode 100644 index 00000000000..c1fdfa71c24 --- /dev/null +++ b/tests/cases/compiler/uncalledFunctionChecksInConditional2.ts @@ -0,0 +1,50 @@ +// @lib: esnext,dom +// @strictNullChecks: true +{ + const perf = window.performance + + // Simplified + if ( + perf && + perf.measure && + perf.clearMarks && + perf.clearMeasures + ) { + perf.measure(""); + perf.clearMarks("") + perf.clearMeasures("") + } + + // With || + if ( + perf && + perf.mark && + perf.measure || !!true + ) { + perf.mark(""); + } +}; + +// Original #49192 +declare let inBrowser: boolean; +{ + let mark; + let measure; + const perf = inBrowser && window.performance + /* istanbul ignore if */ + if ( + perf && + perf.mark && + perf.measure && + perf.clearMarks && + perf.clearMeasures + ) { + mark = (tag) => perf.mark(tag) + measure = (name, startTag, endTag) => { + perf.measure(name, startTag, endTag) + perf.clearMarks(startTag) + perf.clearMarks(endTag) + // perf.clearMeasures(name) + } + } +}; diff --git a/tests/cases/compiler/unresolvableSelfReferencingAwaitedUnion.ts b/tests/cases/compiler/unresolvableSelfReferencingAwaitedUnion.ts new file mode 100644 index 00000000000..f179114ae41 --- /dev/null +++ b/tests/cases/compiler/unresolvableSelfReferencingAwaitedUnion.ts @@ -0,0 +1,19 @@ +// @noEmit: true + +// repro #49646 + +type EnvFunction = () => T; + +type SimpleType = string | Promise; + +declare const simple: SimpleType; + +const env: EnvFunction = () => simple; + +// repro #49723 + +type T1 = 1 | Promise | T1[]; + +export async function myFunction(param: T1) { + const awaited = await param +} diff --git a/tests/cases/compiler/weakTypeAndPrimitiveNarrowing.ts b/tests/cases/compiler/weakTypeAndPrimitiveNarrowing.ts new file mode 100644 index 00000000000..df3d9de530b --- /dev/null +++ b/tests/cases/compiler/weakTypeAndPrimitiveNarrowing.ts @@ -0,0 +1,31 @@ +// @strict: true + +type LiteralsAndWeakTypes = + | 'A' + | 'B' + | { optional?: true } + | { toLowerCase?(): string } + | { toUpperCase?(): string, otherOptionalProp?: number }; + +const g = (arg: LiteralsAndWeakTypes) => { + if (arg === 'A') { + arg; + } else { + arg; + } +} + +type PrimitivesAndWeakTypes = + | string + | number + | { optional?: true } + | { toLowerCase?(): string } + | { toUpperCase?(): string, otherOptionalProp?: number }; + +const h = (arg: PrimitivesAndWeakTypes) => { + if (arg === 'A') { + arg; + } else { + arg; + } +} diff --git a/tests/cases/conformance/classes/members/privateNames/privateNameFieldUnaryMutation.ts b/tests/cases/conformance/classes/members/privateNames/privateNameFieldUnaryMutation.ts index a236a747379..3365994100a 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameFieldUnaryMutation.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameFieldUnaryMutation.ts @@ -13,6 +13,17 @@ class C { const d = --this.#test; for (this.#test = 0; this.#test < 10; ++this.#test) {} for (this.#test = 0; this.#test < 10; this.#test++) {} + + (this.#test)++; + (this.#test)--; + ++(this.#test); + --(this.#test); + const e = (this.#test)++; + const f = (this.#test)--; + const g = ++(this.#test); + const h = --(this.#test); + for (this.#test = 0; this.#test < 10; ++(this.#test)) {} + for (this.#test = 0; this.#test < 10; (this.#test)++) {} } test() { this.getInstance().#test++; @@ -25,6 +36,17 @@ class C { const d = --this.getInstance().#test; for (this.getInstance().#test = 0; this.getInstance().#test < 10; ++this.getInstance().#test) {} for (this.getInstance().#test = 0; this.getInstance().#test < 10; this.getInstance().#test++) {} + + (this.getInstance().#test)++; + (this.getInstance().#test)--; + ++(this.getInstance().#test); + --(this.getInstance().#test); + const e = (this.getInstance().#test)++; + const f = (this.getInstance().#test)--; + const g = ++(this.getInstance().#test); + const h = --(this.getInstance().#test); + for (this.getInstance().#test = 0; this.getInstance().#test < 10; ++(this.getInstance().#test)) {} + for (this.getInstance().#test = 0; this.getInstance().#test < 10; (this.getInstance().#test)++) {} } getInstance() { return new C(); } } diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/accessorsOverrideProperty2.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/accessorsOverrideProperty2.ts index a90b76ad23b..746c571a001 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/accessorsOverrideProperty2.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/accessorsOverrideProperty2.ts @@ -10,4 +10,4 @@ class Derived extends Base { } const obj = new Derived(); // nothing printed -console.log(obj.x); // 1 +console.log(obj.x); // number diff --git a/tests/cases/conformance/controlFlow/controlFlowBindingElement.ts b/tests/cases/conformance/controlFlow/controlFlowBindingElement.ts new file mode 100644 index 00000000000..153666f9433 --- /dev/null +++ b/tests/cases/conformance/controlFlow/controlFlowBindingElement.ts @@ -0,0 +1,90 @@ +// @strictNullChecks: true +// @allowUnreachableCode: false +{ + const data = { param: 'value' }; + + const { + param = (() => { throw new Error('param is not defined') })(), + } = data; + + console.log(param); // should not trigger 'Unreachable code detected.' +} + + +{ + const data = { param: 'value' }; + + let foo: string | undefined = ""; + const { + param = (() => { throw new Error('param is not defined') })(), + } = data; + + foo; // should be string +} + +{ + const data = { param: 'value' }; + + let foo: string | undefined = ""; + const { + param = (() => { foo = undefined })(), + } = data; + + foo; // should be string | undefined +} + +{ + const data = { param: 'value' }; + + let foo: string | undefined = ""; + const { + param = (() => { return "" + 1 })(), + } = data; + + foo; // should be string +} + +{ + interface Window { + window: Window; + } + + let foo: string | undefined; + let window = {} as Window; + window.window = window; + + const { [(() => { foo = ""; return 'window' as const })()]: + { [(() => { return 'window' as const })()]: bar } } = window; + + foo; // should be string +} + +{ + interface Window { + window: Window; + } + + let foo: string | undefined; + let window = {} as Window; + window.window = window; + + const { [(() => { return 'window' as const })()]: + { [(() => { foo = ""; return 'window' as const })()]: bar } } = window; + + foo; // should be string +} + +{ + interface Window { + window: Window; + } + + let foo: string | undefined; + let window = {} as Window; + window.window = window; + + const { [(() => { return 'window' as const })()]: + { [(() => { return 'window' as const })()]: bar = (() => { foo = ""; return window; })() } } = window; + + foo; // should be string | undefined +} diff --git a/tests/cases/conformance/controlFlow/controlFlowBindingPatternOrder.ts b/tests/cases/conformance/controlFlow/controlFlowBindingPatternOrder.ts index 804947c9b70..9bacc6b7eb4 100644 --- a/tests/cases/conformance/controlFlow/controlFlowBindingPatternOrder.ts +++ b/tests/cases/conformance/controlFlow/controlFlowBindingPatternOrder.ts @@ -12,6 +12,11 @@ const [{ [a]: b } = [9, a = 0] as const] = []; const bb: 9 = b; } +{ + let a: 0 | 1 | 2 = 1; + const [{ [a]: b } = [9, a = 0, 5] as const] = []; + const bb: 0 | 9 = b; +} { let a: 0 | 1 = 0; const [{ [(a = 1)]: b } = [9, a] as const] = [[9, 8] as const]; diff --git a/tests/cases/conformance/controlFlow/controlFlowParameter.ts b/tests/cases/conformance/controlFlow/controlFlowParameter.ts new file mode 100644 index 00000000000..09972b5f6e0 --- /dev/null +++ b/tests/cases/conformance/controlFlow/controlFlowParameter.ts @@ -0,0 +1,34 @@ +// @strictNullChecks: true +// @allowUnreachableCode: false +function f1( + required: unknown = (() => { + throw new Error("bad"); + })() +) { + console.log("ok"); // should not trigger 'Unreachable code detected.' +} + +function f2( + a: number | string | undefined, + required: unknown = (() => { + a = 1; + })() +) { + a; // should be number | string | undefined +} + +function f3( + a: number | string | undefined = 1, + required: unknown = (() => { + a = ""; + })() +) { + a; // should be number | string +} + +function f4( + a: number | string | undefined = 1, + { [(a = "")]: b } = {} as any +) { + a; // should be string +} diff --git a/tests/cases/conformance/controlFlow/dependentDestructuredVariables.ts b/tests/cases/conformance/controlFlow/dependentDestructuredVariables.ts index ae11c010fad..c25f3adf08b 100644 --- a/tests/cases/conformance/controlFlow/dependentDestructuredVariables.ts +++ b/tests/cases/conformance/controlFlow/dependentDestructuredVariables.ts @@ -327,3 +327,46 @@ function foo({ test8 = value1.test8, test9 = value1.test9 }) {} + +// Repro from #49772 + +function fa1(x: [true, number] | [false, string]) { + const [guard, value] = x; + if (guard) { + for (;;) { + value; // number + } + } + else { + while (!!true) { + value; // string + } + } +} + +function fa2(x: { guard: true, value: number } | { guard: false, value: string }) { + const { guard, value } = x; + if (guard) { + for (;;) { + value; // number + } + } + else { + while (!!true) { + value; // string + } + } +} + +const fa3: (...args: [true, number] | [false, string]) => void = (guard, value) => { + if (guard) { + for (;;) { + value; // number + } + } + else { + while (!!true) { + value; // string + } + } +} diff --git a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod19.ts b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod19.ts new file mode 100644 index 00000000000..8f293b31f90 --- /dev/null +++ b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod19.ts @@ -0,0 +1,19 @@ +// @target: esnext, es2022, es2015 +// @experimentaldecorators: true +// @emitdecoratormetadata: true + +// https://github.com/microsoft/TypeScript/issues/48515 +declare var decorator: any; + +class C1 { + #x + + @decorator((x: C1) => x.#x) + y() {} +} + +class C2 { + #x + + y(@decorator((x: C2) => x.#x) p) {} +} diff --git a/tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodParameter3.ts b/tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodParameter3.ts new file mode 100644 index 00000000000..ccbf1672e4f --- /dev/null +++ b/tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodParameter3.ts @@ -0,0 +1,11 @@ +// @target: es2015 +// @experimentaldecorators: true + +// https://github.com/microsoft/TypeScript/issues/48509 +declare function dec(a: any): any; +function fn(value: Promise): any { + class Class { + async method(@dec(await value) arg: number) {} + } + return Class +} diff --git a/tests/cases/conformance/es6/destructuring/optionalBindingParameters3.ts b/tests/cases/conformance/es6/destructuring/optionalBindingParameters3.ts new file mode 100644 index 00000000000..0a8e5cf584e --- /dev/null +++ b/tests/cases/conformance/es6/destructuring/optionalBindingParameters3.ts @@ -0,0 +1,14 @@ +// @checkJs: true +// @allowJs: true +// @noEmit: true +// @filename: /a.js + +/** + * @typedef Foo + * @property {string} a + */ + +/** + * @param {Foo} [options] + */ +function f({ a = "a" }) {} diff --git a/tests/cases/conformance/es6/for-ofStatements/for-of16.ts b/tests/cases/conformance/es6/for-ofStatements/for-of16.ts index fe78bae2aef..b63e061425e 100644 --- a/tests/cases/conformance/es6/for-ofStatements/for-of16.ts +++ b/tests/cases/conformance/es6/for-ofStatements/for-of16.ts @@ -6,4 +6,6 @@ class StringIterator { } var v: string; -for (v of new StringIterator) { } // Should fail \ No newline at end of file +for (v of new StringIterator) { } // Should fail + +for (v of new StringIterator) { } // Should still fail (related errors should still be shown even though type is cached). \ No newline at end of file diff --git a/tests/cases/conformance/expressions/optionalChaining/optionalChainingInTypeAssertions.ts b/tests/cases/conformance/expressions/optionalChaining/optionalChainingInTypeAssertions.ts index 3140c2d6ca5..cd92258d3e2 100644 --- a/tests/cases/conformance/expressions/optionalChaining/optionalChainingInTypeAssertions.ts +++ b/tests/cases/conformance/expressions/optionalChaining/optionalChainingInTypeAssertions.ts @@ -11,3 +11,9 @@ const foo = new Foo(); /*a1*/(/*a2*/foo.m as any/*a3*/)/*a4*/?.(); /*b1*/(/*b2*/foo.m/*b3*/)/*b4*/?.(); + +// https://github.com/microsoft/TypeScript/issues/50148 +(foo?.m as any).length; +(foo?.m).length; +(foo?.["m"] as any).length; +(foo?.["m"]).length; \ No newline at end of file diff --git a/tests/cases/conformance/generators/asyncGeneratorGenericNonWrappedReturn.ts b/tests/cases/conformance/generators/asyncGeneratorGenericNonWrappedReturn.ts new file mode 100644 index 00000000000..94222ebffe0 --- /dev/null +++ b/tests/cases/conformance/generators/asyncGeneratorGenericNonWrappedReturn.ts @@ -0,0 +1,9 @@ +// @target: esnext +// @strict: true +// @noEmit: true + +// #48966 + +export async function* test(a: T): AsyncGenerator { + return a // `T` should be allowed here even though the generator's `returnType` is `Awaited` +} diff --git a/tests/cases/conformance/generators/generatorReturnContextualType.ts b/tests/cases/conformance/generators/generatorReturnContextualType.ts index 71090a2c992..8523b7b3a3e 100644 --- a/tests/cases/conformance/generators/generatorReturnContextualType.ts +++ b/tests/cases/conformance/generators/generatorReturnContextualType.ts @@ -7,15 +7,32 @@ function* f1(): Generator { return { x: 'x' }; } +function* g1(): Iterator { + return { x: 'x' }; +} + async function* f2(): AsyncGenerator { return { x: 'x' }; } +async function* g2(): AsyncIterator { + return { x: 'x' }; +} + async function* f3(): AsyncGenerator { return Promise.resolve({ x: 'x' }); } +async function* g3(): AsyncIterator { + return Promise.resolve({ x: 'x' }); +} + async function* f4(): AsyncGenerator { const ret = { x: 'x' }; return Promise.resolve(ret); // Error } + +async function* g4(): AsyncIterator { + const ret = { x: 'x' }; + return Promise.resolve(ret); // Error +} diff --git a/tests/cases/conformance/jsdoc/checkJsdocTypeTag6.ts b/tests/cases/conformance/jsdoc/checkJsdocTypeTag6.ts index 5f629d42b3b..73b387c203e 100644 --- a/tests/cases/conformance/jsdoc/checkJsdocTypeTag6.ts +++ b/tests/cases/conformance/jsdoc/checkJsdocTypeTag6.ts @@ -21,3 +21,20 @@ function add2(a, b) { return a + b; } // TODO: Should be an error since signature doesn't match. /** @type {(a: number, b: number, c: number) => number} */ function add3(a, b) { return a + b; } + +// Confirm initializers are compatible. +// They can't have more parameters than the type/context. + +/** @type {() => void} */ +function funcWithMoreParameters(more) {} // error + +/** @type {() => void} */ +const variableWithMoreParameters = function (more) {}; // error + +/** @type {() => void} */ +const arrowWithMoreParameters = (more) => {}; // error + +({ + /** @type {() => void} */ + methodWithMoreParameters(more) {}, // error +}); diff --git a/tests/cases/conformance/jsdoc/checkJsdocTypeTag7.ts b/tests/cases/conformance/jsdoc/checkJsdocTypeTag7.ts index c65b206a859..2981292ba7e 100644 --- a/tests/cases/conformance/jsdoc/checkJsdocTypeTag7.ts +++ b/tests/cases/conformance/jsdoc/checkJsdocTypeTag7.ts @@ -10,4 +10,7 @@ class C { /** @type {Foo} */ foo(a, b) {} + + /** @type {(optional?) => void} */ + methodWithOptionalParameters() {} } diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypedefFunction.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypedefFunction.ts new file mode 100644 index 00000000000..fed366525c7 --- /dev/null +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypedefFunction.ts @@ -0,0 +1,21 @@ +// @allowJs: true +// @checkJs: true +// @target: esnext +// @outDir: ./out +// @declaration: true +// @filename: foo.js +/** + * @typedef {{ + * [id: string]: [Function, Function]; + * }} ResolveRejectMap + */ + +let id = 0 + +/** + * @param {ResolveRejectMap} handlers + * @returns {Promise} + */ +const send = handlers => new Promise((resolve, reject) => { + handlers[++id] = [resolve, reject] +}) \ No newline at end of file diff --git a/tests/cases/conformance/node/nodeModulesCJSResolvingToESM1_emptyPackageJson.ts b/tests/cases/conformance/node/nodeModulesCJSResolvingToESM1_emptyPackageJson.ts new file mode 100644 index 00000000000..df229c65821 --- /dev/null +++ b/tests/cases/conformance/node/nodeModulesCJSResolvingToESM1_emptyPackageJson.ts @@ -0,0 +1,24 @@ +// @noEmit: true +// @noTypesAndSymbols: true +// @module: node16 +// @allowJs: true +// @checkJs: true +// @jsx: preserve + +// @Filename: /package.json +{} + +// @Filename: /module.mts +export {}; + +// @Filename: /tsExtension.ts +import {} from "./module.mjs"; + +// @Filename: /jsExtension.js +import {} from "./module.mjs"; + +// @Filename: /ctsExtension.cts +import {} from "./module.mjs"; + +// @Filename: /tsxExtension.tsx +import {} from "./module.mjs"; diff --git a/tests/cases/conformance/node/nodeModulesCJSResolvingToESM2_cjsPackageJson.ts b/tests/cases/conformance/node/nodeModulesCJSResolvingToESM2_cjsPackageJson.ts new file mode 100644 index 00000000000..74c609c5f9d --- /dev/null +++ b/tests/cases/conformance/node/nodeModulesCJSResolvingToESM2_cjsPackageJson.ts @@ -0,0 +1,24 @@ +// @noEmit: true +// @noTypesAndSymbols: true +// @module: node16 +// @allowJs: true +// @checkJs: true +// @jsx: preserve + +// @Filename: /package.json +{ "type": "commonjs" } + +// @Filename: /module.mts +export {}; + +// @Filename: /tsExtension.ts +import {} from "./module.mjs"; + +// @Filename: /jsExtension.js +import {} from "./module.mjs"; + +// @Filename: /ctsExtension.cts +import {} from "./module.mjs"; + +// @Filename: /tsxExtension.tsx +import {} from "./module.mjs"; diff --git a/tests/cases/conformance/node/nodeModulesCJSResolvingToESM3_modulePackageJson.ts b/tests/cases/conformance/node/nodeModulesCJSResolvingToESM3_modulePackageJson.ts new file mode 100644 index 00000000000..1a11ae81214 --- /dev/null +++ b/tests/cases/conformance/node/nodeModulesCJSResolvingToESM3_modulePackageJson.ts @@ -0,0 +1,24 @@ +// @noEmit: true +// @noTypesAndSymbols: true +// @module: node16 +// @allowJs: true +// @checkJs: true +// @jsx: preserve + +// @Filename: /package.json +{ "type": "module" } + +// @Filename: /module.mts +export {}; + +// @Filename: /tsExtension.ts +import {} from "./module.mjs"; + +// @Filename: /jsExtension.js +import {} from "./module.mjs"; + +// @Filename: /ctsExtension.cts +import {} from "./module.mjs"; + +// @Filename: /tsxExtension.tsx +import {} from "./module.mjs"; diff --git a/tests/cases/conformance/node/nodeModulesCJSResolvingToESM4_noPackageJson.ts b/tests/cases/conformance/node/nodeModulesCJSResolvingToESM4_noPackageJson.ts new file mode 100644 index 00000000000..b8fdae850eb --- /dev/null +++ b/tests/cases/conformance/node/nodeModulesCJSResolvingToESM4_noPackageJson.ts @@ -0,0 +1,21 @@ +// @noEmit: true +// @noTypesAndSymbols: true +// @module: node16 +// @allowJs: true +// @checkJs: true +// @jsx: preserve + +// @Filename: /module.mts +export {}; + +// @Filename: /tsExtension.ts +import {} from "./module.mjs"; + +// @Filename: /jsExtension.js +import {} from "./module.mjs"; + +// @Filename: /ctsExtension.cts +import {} from "./module.mjs"; + +// @Filename: /tsxExtension.tsx +import {} from "./module.mjs"; diff --git a/tests/cases/conformance/parser/ecmascript5/InterfaceDeclarations/parserInterfaceDeclaration9.ts b/tests/cases/conformance/parser/ecmascript5/InterfaceDeclarations/parserInterfaceDeclaration9.ts new file mode 100644 index 00000000000..2a86e85e107 --- /dev/null +++ b/tests/cases/conformance/parser/ecmascript5/InterfaceDeclarations/parserInterfaceDeclaration9.ts @@ -0,0 +1,14 @@ +interface I1 { + get foo(): number, + set foo(value: number), +} + +interface I2 { + get foo(): number; + set foo(value: number); +} + +interface I3 { + get foo(): number + set foo(value: number) +} diff --git a/tests/cases/conformance/salsa/moduleExportAssignment7.ts b/tests/cases/conformance/salsa/moduleExportAssignment7.ts new file mode 100644 index 00000000000..1e73f7bbb48 --- /dev/null +++ b/tests/cases/conformance/salsa/moduleExportAssignment7.ts @@ -0,0 +1,69 @@ +// @noEmit: true +// @allowJs: true +// @checkJs: true +// @Filename: mod.js +class Thing { x = 1 } +class AnotherThing { y = 2 } +function foo() { return 3 } +function bar() { return 4 } +/** @typedef {() => number} buz */ +module.exports = { + Thing, + AnotherThing, + foo, + qux: bar, + baz() { return 5 }, + literal: "", +} +// @Filename: main.js +/** + * @param {import("./mod").Thing} a + * @param {import("./mod").AnotherThing} b + * @param {import("./mod").foo} c + * @param {import("./mod").qux} d + * @param {import("./mod").baz} e + * @param {import("./mod").buz} f + * @param {import("./mod").literal} g + */ +function jstypes(a, b, c, d, e, f, g) { + return a.x + b.y + c() + d() + e() + f() + g.length +} + +/** + * @param {typeof import("./mod").Thing} a + * @param {typeof import("./mod").AnotherThing} b + * @param {typeof import("./mod").foo} c + * @param {typeof import("./mod").qux} d + * @param {typeof import("./mod").baz} e + * @param {typeof import("./mod").buz} f + * @param {typeof import("./mod").literal} g + */ +function jsvalues(a, b, c, d, e, f, g) { + return a.length + b.length + c() + d() + e() + f() + g.length +} + +// @Filename: index.ts + +function types( + a: import('./mod').Thing, + b: import('./mod').AnotherThing, + c: import('./mod').foo, + d: import('./mod').qux, + e: import('./mod').baz, + f: import('./mod').buz, + g: import('./mod').literal, +) { + return a.x + b.y + c() + d() + e() + f() + g.length +} + +function values( + a: typeof import('./mod').Thing, + b: typeof import('./mod').AnotherThing, + c: typeof import('./mod').foo, + d: typeof import('./mod').qux, + e: typeof import('./mod').baz, + f: typeof import('./mod').buz, + g: typeof import('./mod').literal, +) { + return a.length + b.length + c() + d() + e() + f() + g.length +} diff --git a/tests/cases/conformance/salsa/typeTagOnFunctionReferencesGeneric.ts b/tests/cases/conformance/salsa/typeTagOnFunctionReferencesGeneric.ts new file mode 100644 index 00000000000..945897d3824 --- /dev/null +++ b/tests/cases/conformance/salsa/typeTagOnFunctionReferencesGeneric.ts @@ -0,0 +1,19 @@ +// @checkJs: true +// @declaration: true +// @outDir: out/ +// @filename: typeTagOnFunctionReferencesGeneric.js +/** + * @typedef {(m : T) => T} IFn + */ + +/**@type {IFn}*/ +export function inJs(l) { + return l; +} +inJs(1); // lints error. Why? + +/**@type {IFn}*/ +const inJsArrow = (j) => { + return j; +} +inJsArrow(2); // no error gets linted as expected diff --git a/tests/cases/conformance/types/literal/templateLiteralTypes2.ts b/tests/cases/conformance/types/literal/templateLiteralTypes2.ts index 5e51c5b30b2..e353afa1d5d 100644 --- a/tests/cases/conformance/types/literal/templateLiteralTypes2.ts +++ b/tests/cases/conformance/types/literal/templateLiteralTypes2.ts @@ -2,10 +2,10 @@ // @declaration: true function ft1(s: string, n: number, u: 'foo' | 'bar' | 'baz', t: T) { - const c1 = `abc${s}`; // `abc${string}` - const c2 = `abc${n}`; // `abc${number}` - const c3 = `abc${u}`; // "abcfoo" | "abcbar" | "abcbaz" - const c4 = `abc${t}`; // `abc${T} + const c1 = `abc${s}`; + const c2 = `abc${n}`; + const c3 = `abc${u}`; + const c4 = `abc${t}`; const d1: `abc${string}` = `abc${s}`; const d2: `abc${number}` = `abc${n}`; const d3: `abc${'foo' | 'bar' | 'baz'}` = `abc${u}`; @@ -17,9 +17,9 @@ function ft2(s: string) { } function ft10(s: string) { - const c1 = `abc${s}`; // Widening type `abc${string}` + const c1 = `abc${s}`; // Type string let v1 = c1; // Type string - const c2 = c1; // Widening type `abc${string}` + const c2 = c1; // Type string let v2 = c2; // Type string const c3: `abc${string}` = `abc${s}`; let v3 = c3; // Type `abc${string}` @@ -28,14 +28,14 @@ function ft10(s: string) { } function ft11(s: string, cond: boolean) { - const c1 = cond ? `foo${s}` : `bar${s}`; // widening `foo${string}` | widening `bar${string}` + const c1 = cond ? `foo${s}` : `bar${s}`; // string const c2: `foo${string}` | `bar${string}` = c1; // `foo${string}` | `bar${string}` - const c3 = cond ? c1 : c2; // `foo${string}` | `bar${string}` - const c4 = cond ? c3 : `baz${s}`; // `foo${string}` | `bar${string}` | widening `baz${string}` + const c3 = cond ? c1 : c2; // string + const c4 = cond ? c3 : `baz${s}`; // string const c5: `foo${string}` | `bar${string}` | `baz${string}` = c4; // `foo${string}` | `bar${string}` | `baz${string}` let v1 = c1; // string let v2 = c2; // `foo${string}` | `bar${string}` - let v3 = c3; // `foo${string}` | `bar${string}` + let v3 = c3; // string let v4 = c4; // string let v5 = c5; // `foo${string}` | `bar${string}` | `baz${string}` } @@ -93,7 +93,7 @@ declare const someString: string; const t3 = takesLiteral(`foo.bar.${someString}`); // string const id4 = `foo.bar.${someString}`; -const t4 = takesLiteral(id4); // string +const t4 = takesLiteral(id4); // unknown declare const someUnion: 'abc' | 'def' | 'ghi'; const t5 = takesLiteral(`foo.bar.${someUnion}`); // "abc" | "def" | "ghi" diff --git a/tests/cases/conformance/types/mapped/mappedTypes4.ts b/tests/cases/conformance/types/mapped/mappedTypes4.ts index 4def192d602..a2ff2ad4348 100644 --- a/tests/cases/conformance/types/mapped/mappedTypes4.ts +++ b/tests/cases/conformance/types/mapped/mappedTypes4.ts @@ -65,7 +65,7 @@ var x1: DeepReadonlyFoo; type Z = { a: number }; type Clone = { - [P in keyof (T & {})]: T[P]; + [P in keyof (T & {})]: (T & {})[P]; }; type M = Clone; // M should be { a: number } diff --git a/tests/cases/conformance/types/primitives/string/assignFromStringInterface2.ts b/tests/cases/conformance/types/primitives/string/assignFromStringInterface2.ts index 16308f90251..9c971ea5614 100644 --- a/tests/cases/conformance/types/primitives/string/assignFromStringInterface2.ts +++ b/tests/cases/conformance/types/primitives/string/assignFromStringInterface2.ts @@ -11,8 +11,8 @@ interface NotString { indexOf(searchString: string, position?: number): number; lastIndexOf(searchString: string, position?: number): number; localeCompare(that: string): number; - match(regexp: string): string[]; - match(regexp: RegExp): string[]; + match(regexp: string): RegExpMatchArray; + match(regexp: RegExp): RegExpMatchArray; replace(searchValue: string, replaceValue: string): string; replace(searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string; replace(searchValue: RegExp, replaceValue: string): string; @@ -38,11 +38,11 @@ var x = ''; var a: String; var b: NotString; -a = x; -a = b; +a = x; +a = b; -b = a; -b = x; +b = a; +b = x; x = a; // expected error x = b; // expected error diff --git a/tests/cases/conformance/types/tuple/indexerWithTuple.ts b/tests/cases/conformance/types/tuple/indexerWithTuple.ts index 930ca56402c..eea0cf52aed 100644 --- a/tests/cases/conformance/types/tuple/indexerWithTuple.ts +++ b/tests/cases/conformance/types/tuple/indexerWithTuple.ts @@ -1,7 +1,7 @@ -var strNumTuple: [string, number] = ["foo", 10]; +var strNumTuple: [string, number] = ["foo", 10]; var numTupleTuple: [number, [string, number]] = [10, ["bar", 20]]; -var unionTuple1: [number, string| number] = [10, "foo"]; -var unionTuple2: [boolean, string| number] = [true, "foo"]; +var unionTuple1: [number, string| number] = [10, "foo"]; +var unionTuple2: [boolean, string| number] = [true, "foo"]; // no error var idx0 = 0; @@ -15,6 +15,8 @@ var ele15 = strNumTuple["0"]; // string var ele16 = strNumTuple["1"]; // number var strNumTuple1 = numTupleTuple[1]; //[string, number]; var ele17 = numTupleTuple[2]; // number | [string, number] +var ele19 = strNumTuple[-1] // undefined + var eleUnion10 = unionTuple1[0]; // number var eleUnion11 = unionTuple1[1]; // string | number var eleUnion12 = unionTuple1[2]; // string | number @@ -29,4 +31,8 @@ var eleUnion22 = unionTuple2[2]; // string | number | boolean var eleUnion23 = unionTuple2[idx0]; // string | number | boolean var eleUnion24 = unionTuple2[idx1]; // string | number | boolean var eleUnion25 = unionTuple2["0"]; // boolean -var eleUnion26 = unionTuple2["1"]; // string | number \ No newline at end of file +var eleUnion26 = unionTuple2["1"]; // string | number + +type t1 = [string, number][0]; // string +type t2 = [string, number][1]; // number +type t3 = [string, number][-1]; // undefined diff --git a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/stringLiteralTypeIsSubtypeOfString.ts b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/stringLiteralTypeIsSubtypeOfString.ts index c7e9c0fc8e9..01e0c7ba067 100644 --- a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/stringLiteralTypeIsSubtypeOfString.ts +++ b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/stringLiteralTypeIsSubtypeOfString.ts @@ -47,7 +47,7 @@ class C implements String { indexOf(searchString: string, position?: number): number { return null; } lastIndexOf(searchString: string, position?: number): number { return null; } localeCompare(that: string): number { return null; } - match(regexp: any): string[] { return null; } + match(regexp: any): RegExpMatchArray { return null; } replace(searchValue: any, replaceValue: any): string { return null; } search(regexp: any): number { return null; } slice(start?: number, end?: number): string { return null; } @@ -63,7 +63,7 @@ class C implements String { valueOf(): string { return null; } [index: number]: string; } - + // BUG 831846 function f10(x: 'a'); function f10(x: C); @@ -97,4 +97,4 @@ function f15(x: any) { } function f16(x: 'a'); function f16(x: U); -function f16(x: any) { } \ No newline at end of file +function f16(x: any) { } diff --git a/tests/cases/conformance/types/unknown/unknownControlFlow.ts b/tests/cases/conformance/types/unknown/unknownControlFlow.ts index 5bf8f0f2946..55072dfddc4 100644 --- a/tests/cases/conformance/types/unknown/unknownControlFlow.ts +++ b/tests/cases/conformance/types/unknown/unknownControlFlow.ts @@ -269,3 +269,35 @@ function foo(x: T | null) { y; } } + +// We allow an unconstrained object of a generic type `T` to be indexed by a key of type `keyof T` +// without a check that the object is non-undefined and non-null. This is safe because `keyof T` +// is `never` (meaning no possible keys) for any `T` that includes `undefined` or `null`. + +function ff1(t: T, k: keyof T) { + t[k]; +} + +function ff2(t: T & {}, k: keyof T) { + t[k]; +} + +function ff3(t: T, k: keyof (T & {})) { + t[k]; // Error +} + +function ff4(t: T & {}, k: keyof (T & {})) { + t[k]; +} + +ff1(null, 'foo'); // Error +ff2(null, 'foo'); // Error +ff3(null, 'foo'); +ff4(null, 'foo'); // Error + +// Repro from #49681 + +type Foo = { [key: string]: unknown }; +type NullableFoo = Foo | undefined; + +type Bar = NonNullable[string]; diff --git a/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration19.ts b/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration19.ts new file mode 100644 index 00000000000..72caa99c572 --- /dev/null +++ b/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration19.ts @@ -0,0 +1,6 @@ +/// + +////declare function f(x: number): any; +////f(foo); + +verify.not.codeFixAvailable("fixMissingFunctionDeclaration"); diff --git a/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration20.ts b/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration20.ts new file mode 100644 index 00000000000..e8a77670a22 --- /dev/null +++ b/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration20.ts @@ -0,0 +1,8 @@ +/// + +////const a = { +//// b: { f(x: number) {} } +////} +////a.b.f(foo); + +verify.not.codeFixAvailable("fixMissingFunctionDeclaration"); diff --git a/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration21.ts b/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration21.ts new file mode 100644 index 00000000000..a5689161936 --- /dev/null +++ b/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration21.ts @@ -0,0 +1,39 @@ +/// + +// @jsx: preserve +// @filename: foo.tsx + +////interface P { +//// onClick: (a: number, b: string) => void; +////} +//// +////const A = ({ onClick }: P) => +////
; +//// +////const B = () => { +//// return ( +////
+//// ); +////} + +verify.codeFix({ + index: 0, + description: [ts.Diagnostics.Add_missing_function_declaration_0.message, "handleClick"], + newFileContent: +`interface P { + onClick: (a: number, b: string) => void; +} + +const A = ({ onClick }: P) => +
; + +const B = () => { + function handleClick(a: number, b: string): void { + throw new Error("Function not implemented."); + } + + return ( + + ); +}` +}); diff --git a/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration22.ts b/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration22.ts new file mode 100644 index 00000000000..a20260a0072 --- /dev/null +++ b/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration22.ts @@ -0,0 +1,34 @@ +/// + +// @jsx: preserve +// @filename: foo.tsx + +////interface P { +//// onClick: (a: number, b: string) => void; +////} +//// +////const A = ({ onClick }: P) => +////
; +//// +////const B = () => +//// + +verify.codeFix({ + index: 0, + description: [ts.Diagnostics.Add_missing_function_declaration_0.message, "handleClick"], + newFileContent: +`interface P { + onClick: (a: number, b: string) => void; +} + +const A = ({ onClick }: P) => +
; + +const B = () => + + +function handleClick(a: number, b: string): void { + throw new Error("Function not implemented."); +} +` +}); diff --git a/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration23.ts b/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration23.ts new file mode 100644 index 00000000000..612e226f4d8 --- /dev/null +++ b/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration23.ts @@ -0,0 +1,21 @@ +/// + +// @jsx: preserve +// @filename: foo.tsx + +////const A = () => { +//// return (
handleClick()}>
); +////} + +verify.codeFix({ + index: 0, + description: [ts.Diagnostics.Add_missing_function_declaration_0.message, "handleClick"], + newFileContent: +`const A = () => { + function handleClick() { + throw new Error("Function not implemented."); + } + + return (
handleClick()}>
); +}` +}); diff --git a/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration24.ts b/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration24.ts new file mode 100644 index 00000000000..f14ed8cb950 --- /dev/null +++ b/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration24.ts @@ -0,0 +1,27 @@ +/// + +////interface Foo { +//// a: (e: any) => void; +////} +//// +////const foo: Foo = { +//// a: fn +////} + +verify.codeFix({ + index: 0, + description: [ts.Diagnostics.Add_missing_function_declaration_0.message, "fn"], + newFileContent: +`interface Foo { + a: (e: any) => void; +} + +const foo: Foo = { + a: fn +} + +function fn(e: any): void { + throw new Error("Function not implemented."); +} +` +}); diff --git a/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration25.ts b/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration25.ts new file mode 100644 index 00000000000..c575e801593 --- /dev/null +++ b/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration25.ts @@ -0,0 +1,23 @@ +/// + +////interface Foo { +//// f(type: string, listener: (this: object, type: string) => any): void; +////} +////declare let foo: Foo; +////foo.f("test", fn); + +verify.codeFix({ + index: 0, + description: [ts.Diagnostics.Add_missing_function_declaration_0.message, "fn"], + newFileContent: +`interface Foo { + f(type: string, listener: (this: object, type: string) => any): void; +} +declare let foo: Foo; +foo.f("test", fn); + +function fn(this: object, type: string) { + throw new Error("Function not implemented."); +} +` +}); diff --git a/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration_all.ts b/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration_all.ts index 7f7e338dab5..1736613e98f 100644 --- a/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration_all.ts +++ b/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration_all.ts @@ -1,33 +1,38 @@ /// -// @filename: /test.ts +// @filename: /test1.ts ////export const x = 1; -// @filename: /foo.ts -////import * as test from "./test"; +// @filename: /test2.ts +////import * as test from "./test1"; //// ////namespace Foo { //// export const x = 0; ////} //// +////interface I { +//// a: (e: any) => void; +////} +//// ////test.f(); ////Foo.f(); ////f(); +////const t1: I = { a: fn } -goTo.file("/foo.ts"); +goTo.file("/test2.ts"); verify.codeFixAll({ fixId: "fixMissingFunctionDeclaration", fixAllDescription: ts.Diagnostics.Add_all_missing_function_declarations.message, newFileContent: { - "/test.ts": + "/test1.ts": `export const x = 1; export function f() { throw new Error("Function not implemented."); } `, - "/foo.ts": -`import * as test from "./test"; + "/test2.ts": +`import * as test from "./test1"; namespace Foo { export const x = 0; @@ -37,13 +42,23 @@ namespace Foo { } } +interface I { + a: (e: any) => void; +} + test.f(); Foo.f(); f(); +const t1: I = { a: fn } function f() { throw new Error("Function not implemented."); } + + +function fn(e: any): void { + throw new Error("Function not implemented."); +} ` } }); diff --git a/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration_jsx_all.ts b/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration_jsx_all.ts new file mode 100644 index 00000000000..3bbf54c66fb --- /dev/null +++ b/tests/cases/fourslash/codeFixAddMissingFunctionDeclaration_jsx_all.ts @@ -0,0 +1,53 @@ +/// + +// @jsx: preserve +// @filename: /foo.tsx + +////interface P { +//// onClick: (a: number, b: string) => void; +////} +//// +////const A = ({ onClick }: P) => +////
; +//// +////const B = () => +//// +//// +////const C = () => { +//// return ( +//// +//// ); +////} + +goTo.file("/foo.tsx"); +verify.codeFixAll({ + fixId: "fixMissingFunctionDeclaration", + fixAllDescription: ts.Diagnostics.Add_all_missing_function_declarations.message, + newFileContent: { + "/foo.tsx": +`interface P { + onClick: (a: number, b: string) => void; +} + +const A = ({ onClick }: P) => +
; + +const B = () => + + +const C = () => { + function handleClick(a: number, b: string): void { + throw new Error("Function not implemented."); + } + + return ( + + ); +} + +function handleClick(a: number, b: string): void { + throw new Error("Function not implemented."); +} +` + } +}); diff --git a/tests/cases/fourslash/codeFixClassImplementInterfaceMappedTypeIndirectKeys.ts b/tests/cases/fourslash/codeFixClassImplementInterfaceMappedTypeIndirectKeys.ts new file mode 100644 index 00000000000..e4c82dfb01c --- /dev/null +++ b/tests/cases/fourslash/codeFixClassImplementInterfaceMappedTypeIndirectKeys.ts @@ -0,0 +1,19 @@ +/// + +////type Base = { ax: number; ay: string }; +////type BaseKeys = keyof Base; +////type MappedIndirect = { [K in BaseKeys]: boolean }; +////class MappedImpl implements MappedIndirect { } + +// https://github.com/microsoft/TypeScript/issues/49811 +verify.codeFix({ + description: "Implement interface 'MappedIndirect'", + newFileContent: + `type Base = { ax: number; ay: string }; +type BaseKeys = keyof Base; +type MappedIndirect = { [K in BaseKeys]: boolean }; +class MappedImpl implements MappedIndirect { + ax: boolean; + ay: boolean; +}`, +}); diff --git a/tests/cases/fourslash/codeFixSpellingAddSpaces1.ts b/tests/cases/fourslash/codeFixSpellingAddSpaces1.ts new file mode 100644 index 00000000000..67d7ad85634 --- /dev/null +++ b/tests/cases/fourslash/codeFixSpellingAddSpaces1.ts @@ -0,0 +1,25 @@ +/// + +// Repro for https://github.com/microsoft/TypeScript/issues/49557 + +////enum NamesWithSpaces { +//// "NoSpace", +//// "One Space", +//// "Has Two Spaces", +//// "This Has Three Spaces", +//// "And This Has Four Spaces", +//// +//// "Block One", +//// "Block Two", +//// "Block Three", +//// +//// "This Has Three Spaces_________________________________________________________", +//// "And This Has Four Spaces_________________________________________________________", +////} +//// +//// NamesWithSpaces.[|ThisHasThreeSpaces|]; + +verify.codeFixAvailable([ + { description: "Change spelling to 'This Has Three Spaces'" }, + { description: "Add missing enum member 'ThisHasThreeSpaces'" }, +]); \ No newline at end of file diff --git a/tests/cases/fourslash/codeFixSpellingAddSpaces2.ts b/tests/cases/fourslash/codeFixSpellingAddSpaces2.ts new file mode 100644 index 00000000000..dea7f93d56d --- /dev/null +++ b/tests/cases/fourslash/codeFixSpellingAddSpaces2.ts @@ -0,0 +1,25 @@ +/// + +// Repro for https://github.com/microsoft/TypeScript/issues/49557 + +////enum NamesWithSpaces { +//// "NoSpace", +//// "One Space", +//// "Has Two Spaces", +//// "This Has Three Spaces", +//// "And This Has Four Spaces", +//// +//// "Block One", +//// "Block Two", +//// "Block Three", +//// +//// "This Has Three Spaces_________________________________________________________", +//// "And This Has Four Spaces_________________________________________________________", +////} +//// +//// NamesWithSpaces.[|AndThisHasFourSpaces|]; + +verify.codeFixAvailable([ + { description: "Change spelling to 'And This Has Four Spaces'" }, + { description: "Add missing enum member 'AndThisHasFourSpaces'" }, +]); diff --git a/tests/cases/fourslash/codeFixSpellingAddSpaces3.ts b/tests/cases/fourslash/codeFixSpellingAddSpaces3.ts new file mode 100644 index 00000000000..e70fca54764 --- /dev/null +++ b/tests/cases/fourslash/codeFixSpellingAddSpaces3.ts @@ -0,0 +1,25 @@ +/// + +// Repro for https://github.com/microsoft/TypeScript/issues/49557 + +////enum NamesWithSpaces { +//// "NoSpace", +//// "One Space", +//// "Has Two Spaces", +//// "This Has Three Spaces", +//// "And This Has Four Spaces", +//// +//// "Block One", +//// "Block Two", +//// "Block Three", +//// +//// "This Has Three Spaces_________________________________________________________", +//// "And This Has Four Spaces_________________________________________________________", +////} +//// +//// NamesWithSpaces.[|BlockThree|]; + +verify.codeFixAvailable([ + { description: "Change spelling to 'Block Three'" }, + { description: "Add missing enum member 'BlockThree'" }, +]); diff --git a/tests/cases/fourslash/codeFixSpellingAddSpaces4.ts b/tests/cases/fourslash/codeFixSpellingAddSpaces4.ts new file mode 100644 index 00000000000..8a1944320b5 --- /dev/null +++ b/tests/cases/fourslash/codeFixSpellingAddSpaces4.ts @@ -0,0 +1,25 @@ +/// + +// Repro for https://github.com/microsoft/TypeScript/issues/49557 + +////enum NamesWithSpaces { +//// "NoSpace", +//// "One Space", +//// "Has Two Spaces", +//// "This Has Three Spaces", +//// "And This Has Four Spaces", +//// +//// "Block One", +//// "Block Two", +//// "Block Three", +//// +//// "This Has Three Spaces_________________________________________________________", +//// "And This Has Four Spaces_________________________________________________________", +////} +//// +//// NamesWithSpaces.[|ThisHasThreeSpaces_________________________________________________________|]; + +verify.codeFixAvailable([ + { description: "Change spelling to 'This Has Three Spaces_________________________________________________________'" }, + { description: "Add missing enum member 'ThisHasThreeSpaces_________________________________________________________'" }, +]); diff --git a/tests/cases/fourslash/codeFixSpellingAddSpaces5.ts b/tests/cases/fourslash/codeFixSpellingAddSpaces5.ts new file mode 100644 index 00000000000..501fec12e44 --- /dev/null +++ b/tests/cases/fourslash/codeFixSpellingAddSpaces5.ts @@ -0,0 +1,25 @@ +/// + +// Repro for https://github.com/microsoft/TypeScript/issues/49557 + +////enum NamesWithSpaces { +//// "NoSpace", +//// "One Space", +//// "Has Two Spaces", +//// "This Has Three Spaces", +//// "And This Has Four Spaces", +//// +//// "Block One", +//// "Block Two", +//// "Block Three", +//// +//// "This Has Three Spaces_________________________________________________________", +//// "And This Has Four Spaces_________________________________________________________", +////} +//// +//// NamesWithSpaces.[|AndThisHasFourSpaces_________________________________________________________|]; + +verify.codeFixAvailable([ + { description: "Change spelling to 'And This Has Four Spaces_________________________________________________________'" }, + { description: "Add missing enum member 'AndThisHasFourSpaces_________________________________________________________'" }, +]); diff --git a/tests/cases/fourslash/codeFixUndeclaredMethod.ts b/tests/cases/fourslash/codeFixUndeclaredMethod.ts index ac7a8b32b2f..96d3f923905 100644 --- a/tests/cases/fourslash/codeFixUndeclaredMethod.ts +++ b/tests/cases/fourslash/codeFixUndeclaredMethod.ts @@ -63,7 +63,7 @@ verify.codeFix({ // 8 type args this.foo3<1,2,3,4,5,6,7,8>(); } - foo3() { + foo3() { throw new Error("Method not implemented."); } foo2() { diff --git a/tests/cases/fourslash/completionInJSDocFunctionNew.ts b/tests/cases/fourslash/completionInJSDocFunctionNew.ts index b343104c328..3b9cc78287b 100644 --- a/tests/cases/fourslash/completionInJSDocFunctionNew.ts +++ b/tests/cases/fourslash/completionInJSDocFunctionNew.ts @@ -5,4 +5,4 @@ /////** @type {function (new: string, string): string} */ ////var f = function () { return new/**/; } -verify.completions({ marker: "", includes: { name: "new", sortText: completion.SortText.JavascriptIdentifiers } }); +verify.completions({ marker: "", includes: { name: "new", sortText: completion.SortText.GlobalsOrKeywords } }); diff --git a/tests/cases/fourslash/completionInJSDocFunctionThis.ts b/tests/cases/fourslash/completionInJSDocFunctionThis.ts index 8dd1c545e30..bf6e15017a5 100644 --- a/tests/cases/fourslash/completionInJSDocFunctionThis.ts +++ b/tests/cases/fourslash/completionInJSDocFunctionThis.ts @@ -4,4 +4,4 @@ /////** @type {function (this: string, string): string} */ ////var f = function (s) { return this/**/; } -verify.completions({ marker: "", includes: { name: "this", sortText: completion.SortText.JavascriptIdentifiers } }); +verify.completions({ marker: "", includes: { name: "this", sortText: completion.SortText.GlobalsOrKeywords } }); diff --git a/tests/cases/fourslash/completionListClassThisJS.ts b/tests/cases/fourslash/completionListClassThisJS.ts new file mode 100644 index 00000000000..59332118efd --- /dev/null +++ b/tests/cases/fourslash/completionListClassThisJS.ts @@ -0,0 +1,20 @@ +/// +// @Filename: completionListClassThisJS.js +// @allowJs: true +/////** @typedef {number} CallbackContext */ +////class Foo { +//// bar() { +//// this/**/ +//// } +//// /** @param {function (this: CallbackContext): any} cb */ +//// baz(cb) { +//// } +////} + +verify.completions({ marker: "", isNewIdentifierLocation: false, includes: [{ + name: "this", + // kind: "warning", + kind: "keyword", + sortText: completion.SortText.GlobalsOrKeywords, + // sortText: completion.SortText.JavascriptIdentifiers, +}] }); diff --git a/tests/cases/fourslash/completionsAtTypeArguments.ts b/tests/cases/fourslash/completionsAtTypeArguments.ts new file mode 100644 index 00000000000..5b37a9b4e97 --- /dev/null +++ b/tests/cases/fourslash/completionsAtTypeArguments.ts @@ -0,0 +1,11 @@ +/// + +////interface I { +//// a: string; +//// b: number; +////} + +////type T1 = Pick; +////interface T2 extends Pick {} + +verify.completions({ marker: ["1", "2"], exact: ["a", "b"] }); diff --git a/tests/cases/fourslash/completionsObjectLiteralMethod4.ts b/tests/cases/fourslash/completionsObjectLiteralMethod4.ts new file mode 100644 index 00000000000..f15a34838db --- /dev/null +++ b/tests/cases/fourslash/completionsObjectLiteralMethod4.ts @@ -0,0 +1,38 @@ +/// + +// @newline: LF +// @Filename: a.ts +////interface IFoo { +//// bar(this: IFoo): void; +////} +////const obj: IFoo = { +//// /*1*/ +////} + +verify.completions({ + marker: "1", + preferences: { + includeCompletionsWithInsertText: true, + includeCompletionsWithSnippetText: true, + includeCompletionsWithObjectLiteralMethodSnippets: true, + useLabelDetailsInCompletionEntries: true, + }, + includes: [ + { + name: "bar", + sortText: completion.SortText.ObjectLiteralProperty(completion.SortText.LocationPriority, "bar"), + insertText: undefined, + }, + { + name: "bar", + sortText: completion.SortText.SortBelow( + completion.SortText.ObjectLiteralProperty(completion.SortText.LocationPriority, "bar")), + source: completion.CompletionSource.ObjectLiteralMethodSnippet, + isSnippet: true, + insertText: "bar() {\n $0\n},", + labelDetails: { + detail: "()", + }, + }, + ], +}); diff --git a/tests/cases/fourslash/completionsOverridingMethod14.ts b/tests/cases/fourslash/completionsOverridingMethod14.ts new file mode 100644 index 00000000000..37aeae70790 --- /dev/null +++ b/tests/cases/fourslash/completionsOverridingMethod14.ts @@ -0,0 +1,29 @@ +/// + +// @Filename: a.ts +// @strictNullChecks: true +// @newline: LF + +////interface IFoo { +//// foo?(arg: string): number; +////} +////class Foo implements IFoo { +//// /**/ +////} + +verify.completions({ + marker: "", + isNewIdentifierLocation: true, + preferences: { + includeCompletionsWithInsertText: true, + includeCompletionsWithSnippetText: false, + includeCompletionsWithClassMemberSnippets: true, + }, + includes: [ + { + name: "foo", + sortText: completion.SortText.ClassMemberSnippets, + insertText: "foo(arg: string): number {\n}" + }, + ], +}); diff --git a/tests/cases/fourslash/deduplicateErrors.ts b/tests/cases/fourslash/deduplicateErrors.ts new file mode 100644 index 00000000000..a5ae5882696 --- /dev/null +++ b/tests/cases/fourslash/deduplicateErrors.ts @@ -0,0 +1,8 @@ +/// + +////let lololol = 123; +//// +////lololo/**/ + +verify.encodedSemanticClassificationsLength("2020", 3); +verify.numberOfErrorsInCurrentFile(1); diff --git a/tests/cases/fourslash/docCommentTemplateWithMultipleJSDoc.ts b/tests/cases/fourslash/docCommentTemplateWithMultipleJSDoc.ts new file mode 100644 index 00000000000..f1b2c3fad3c --- /dev/null +++ b/tests/cases/fourslash/docCommentTemplateWithMultipleJSDoc.ts @@ -0,0 +1,7 @@ +/// + +/////** */ +/////*/**/ +////function foo() {} + +verify.docCommentTemplateAt("", 3, "/** */"); diff --git a/tests/cases/fourslash/docCommentTemplateWithMultipleJSDocAndParameters.ts b/tests/cases/fourslash/docCommentTemplateWithMultipleJSDocAndParameters.ts new file mode 100644 index 00000000000..add01b90006 --- /dev/null +++ b/tests/cases/fourslash/docCommentTemplateWithMultipleJSDocAndParameters.ts @@ -0,0 +1,12 @@ +/// + +/////** */ +/////** +//// * +//// * @param p +//// */ +/////** */ +/////*/**/ +////function foo(p) {} + +verify.docCommentTemplateAt("", 3, "/** */"); diff --git a/tests/cases/fourslash/extract-method45.ts b/tests/cases/fourslash/extract-method45.ts new file mode 100644 index 00000000000..785f90dc387 --- /dev/null +++ b/tests/cases/fourslash/extract-method45.ts @@ -0,0 +1,54 @@ +/// + +////export function fn(m: number) { +//// const mode = m >= 0 ? "a" : "b"; +//// let result: number = 0; +//// +//// if (mode === "a") { +//// /*a*/for (let i = 0; i < 10; i++) { +//// const rand = Math.random(); +//// if (rand > 0.5) { +//// result = rand; +//// break; +//// } +//// }/*b*/ +//// } +//// else { +//// result = 0; +//// } +//// +//// return result; +////} + +goTo.select("a", "b"); +edit.applyRefactor({ + refactorName: "Extract Symbol", + actionName: "function_scope_1", + actionDescription: "Extract to function in module scope", + newContent: +`export function fn(m: number) { + const mode = m >= 0 ? "a" : "b"; + let result: number = 0; + + if (mode === "a") { + result = /*RENAME*/newFunction(result); + } + else { + result = 0; + } + + return result; +} + +function newFunction(result: number) { + for (let i = 0; i < 10; i++) { + const rand = Math.random(); + if (rand > 0.5) { + result = rand; + break; + } + } + return result; +} +` +}); diff --git a/tests/cases/fourslash/extract-method46.ts b/tests/cases/fourslash/extract-method46.ts new file mode 100644 index 00000000000..71523a8bb62 --- /dev/null +++ b/tests/cases/fourslash/extract-method46.ts @@ -0,0 +1,54 @@ +/// + +////export function fn(m: number, n: number) { +//// const mode = m >= 0 ? "a" : "b"; +//// let result: number = 0; +//// +//// if (mode === "a") { +//// /*a*/for (let i = 0; i < n; i++) { +//// const rand = Math.random(); +//// if (rand > 0.5) { +//// result = rand; +//// break; +//// } +//// }/*b*/ +//// } +//// else { +//// result = 0; +//// } +//// +//// return result; +////} + +goTo.select("a", "b"); +edit.applyRefactor({ + refactorName: "Extract Symbol", + actionName: "function_scope_1", + actionDescription: "Extract to function in module scope", + newContent: +`export function fn(m: number, n: number) { + const mode = m >= 0 ? "a" : "b"; + let result: number = 0; + + if (mode === "a") { + result = /*RENAME*/newFunction(n, result); + } + else { + result = 0; + } + + return result; +} + +function newFunction(n: number, result: number) { + for (let i = 0; i < n; i++) { + const rand = Math.random(); + if (rand > 0.5) { + result = rand; + break; + } + } + return result; +} +` +}); diff --git a/tests/cases/fourslash/extract-method47.ts b/tests/cases/fourslash/extract-method47.ts new file mode 100644 index 00000000000..f3097923a6d --- /dev/null +++ b/tests/cases/fourslash/extract-method47.ts @@ -0,0 +1,60 @@ +/// + +////export function fn(m: number, n: number) { +//// const mode = m >= 0 ? "a" : "b"; +//// let result: number = 0; +//// +//// if (mode === "a") { +//// /*a*/for (let i = 0; i < n; i++) { +//// const rand = Math.random(); +//// switch (rand) { +//// case 0.5: +//// result = rand; +//// break; +//// default: +//// result = 1; +//// break; +//// } +//// }/*b*/ +//// } +//// else { +//// result = 0; +//// } +//// return result; +////} + +goTo.select("a", "b"); +edit.applyRefactor({ + refactorName: "Extract Symbol", + actionName: "function_scope_1", + actionDescription: "Extract to function in module scope", + newContent: +`export function fn(m: number, n: number) { + const mode = m >= 0 ? "a" : "b"; + let result: number = 0; + + if (mode === "a") { + result = /*RENAME*/newFunction(n, result); + } + else { + result = 0; + } + return result; +} + +function newFunction(n: number, result: number) { + for (let i = 0; i < n; i++) { + const rand = Math.random(); + switch (rand) { + case 0.5: + result = rand; + break; + default: + result = 1; + break; + } + } + return result; +} +` +}); diff --git a/tests/cases/fourslash/extract-method48.ts b/tests/cases/fourslash/extract-method48.ts new file mode 100644 index 00000000000..ffbab80c6f9 --- /dev/null +++ b/tests/cases/fourslash/extract-method48.ts @@ -0,0 +1,36 @@ +/// + +////export function fn(x: number, y: number) { +//// /*a*/switch (x) { +//// case 1: +//// if (y) { +//// break; +//// } +//// x--; +//// break; +//// }/*b*/ +////} + +goTo.select("a", "b"); +edit.applyRefactor({ + refactorName: "Extract Symbol", + actionName: "function_scope_1", + actionDescription: "Extract to function in module scope", + newContent: +`export function fn(x: number, y: number) { + x = /*RENAME*/newFunction(x, y); +} + +function newFunction(x: number, y: number) { + switch (x) { + case 1: + if (y) { + break; + } + x--; + break; + } + return x; +} +` +}); diff --git a/tests/cases/fourslash/extractFunctionWithSyntheticNodes.ts b/tests/cases/fourslash/extractFunctionWithSyntheticNodes.ts new file mode 100644 index 00000000000..ef3081d3759 --- /dev/null +++ b/tests/cases/fourslash/extractFunctionWithSyntheticNodes.ts @@ -0,0 +1,62 @@ +/// + +// @filename: /project/tsconfig.json +//// {} + +// @filename: /project/index.esm.d.ts +//// export declare class Chart { +//// constructor(config: ChartConfiguration); +//// } +//// +//// export interface ChartConfiguration { +//// options?: Partial; +//// } +//// +//// export interface TickOptions { +//// callback: (this: Scale, tickValue: number | string) => string | string[] | number | number[] | null | undefined; +//// } +//// +//// export interface CoreScaleOptions { +//// opt: boolean; +//// } +//// +//// export interface Scale { +//// opts: O; +//// getLabelForValue(value: number): string; +//// } + +// @filename: /project/options.ts +//// import { Chart } from './index.esm'; +//// +//// const chart = new Chart({ +//// options: { +//// callback(tickValue) { +//// /*a*/const value = this.getLabelForValue(tickValue as number);/*b*/ +//// return '$' + value; +//// } +//// } +//// }); + +goTo.file("/project/options.ts"); +verify.noErrors(); +goTo.select("a", "b"); +edit.applyRefactor({ + refactorName: "Extract Symbol", + actionName: "function_scope_0", + actionDescription: "Extract to inner function in method 'callback'", + newContent: +`import { Chart } from './index.esm'; + +const chart = new Chart({ + options: { + callback(tickValue) { + const value = /*RENAME*/newFunction.call(this); + return '$' + value; + + function newFunction(this: import("/project/index.esm").Scale) { + return this.getLabelForValue(tickValue as number); + } + } + } +});` +}); diff --git a/tests/cases/fourslash/findAllReferencesFromLinkTagReference1.ts b/tests/cases/fourslash/findAllReferencesFromLinkTagReference1.ts new file mode 100644 index 00000000000..7265583f5cc --- /dev/null +++ b/tests/cases/fourslash/findAllReferencesFromLinkTagReference1.ts @@ -0,0 +1,8 @@ +/// + +////enum E { +//// /** {@link /**/A} */ +//// A +////} + +verify.baselineFindAllReferences(""); diff --git a/tests/cases/fourslash/findAllReferencesFromLinkTagReference2.ts b/tests/cases/fourslash/findAllReferencesFromLinkTagReference2.ts new file mode 100644 index 00000000000..eae6a3d09ce --- /dev/null +++ b/tests/cases/fourslash/findAllReferencesFromLinkTagReference2.ts @@ -0,0 +1,12 @@ +/// + +// @Filename: /a.ts +////enum E { +//// /** {@link /**/Foo} */ +//// Foo +////} +////interface Foo { +//// foo: E.Foo; +////} + +verify.baselineFindAllReferences(""); diff --git a/tests/cases/fourslash/findAllReferencesFromLinkTagReference3.ts b/tests/cases/fourslash/findAllReferencesFromLinkTagReference3.ts new file mode 100644 index 00000000000..eb150a55964 --- /dev/null +++ b/tests/cases/fourslash/findAllReferencesFromLinkTagReference3.ts @@ -0,0 +1,14 @@ +/// + +// @filename: a.ts +////interface Foo { +//// foo: E.Foo; +////} + +// @Filename: b.ts +////enum E { +//// /** {@link /**/Foo} */ +//// Foo +////} + +verify.baselineFindAllReferences(""); diff --git a/tests/cases/fourslash/findAllReferencesFromLinkTagReference4.ts b/tests/cases/fourslash/findAllReferencesFromLinkTagReference4.ts new file mode 100644 index 00000000000..869349e0b8b --- /dev/null +++ b/tests/cases/fourslash/findAllReferencesFromLinkTagReference4.ts @@ -0,0 +1,8 @@ +/// +////enum E { +//// /** {@link /**/B} */ +//// A, +//// B +////} + +verify.baselineFindAllReferences(""); diff --git a/tests/cases/fourslash/findAllReferencesFromLinkTagReference5.ts b/tests/cases/fourslash/findAllReferencesFromLinkTagReference5.ts new file mode 100644 index 00000000000..8b9bee76174 --- /dev/null +++ b/tests/cases/fourslash/findAllReferencesFromLinkTagReference5.ts @@ -0,0 +1,8 @@ +/// + +////enum E { +//// /** {@link E./**/A} */ +//// A +////} + +verify.baselineFindAllReferences(""); diff --git a/tests/cases/fourslash/findAllRefsForDefaultExport09.ts b/tests/cases/fourslash/findAllRefsForDefaultExport09.ts new file mode 100644 index 00000000000..6064d77c4e8 --- /dev/null +++ b/tests/cases/fourslash/findAllRefsForDefaultExport09.ts @@ -0,0 +1,36 @@ +/// + +// @filename: /tsconfig.json +////{ +//// "compilerOptions": { +//// "target": "esnext", +//// "strict": true, +//// "outDir": "./out", +//// "allowSyntheticDefaultImports": true +//// } +////} + +// @filename: /a.js +////module.exports = []; + +// @filename: /b.js +////module.exports = 1; + +// @filename: /c.ts +////export = []; + +// @filename: /d.ts +////export = 1; + +// @filename: /foo.ts +////import * as /*0*/a from "./a.js" +////import /*1*/aDefault from "./a.js" +////import * as /*2*/b from "./b.js" +////import /*3*/bDefault from "./b.js" +//// +////import * as /*4*/c from "./c" +////import /*5*/cDefault from "./c" +////import * as /*6*/d from "./d" +////import /*7*/dDefault from "./d" + +verify.baselineFindAllReferences("0", "1", "2", "3", "4", "5", "6", "7"); diff --git a/tests/cases/fourslash/formatTemplateStringOnPaste.ts b/tests/cases/fourslash/formatTemplateStringOnPaste.ts new file mode 100644 index 00000000000..f4681e090e0 --- /dev/null +++ b/tests/cases/fourslash/formatTemplateStringOnPaste.ts @@ -0,0 +1,6 @@ +/// + +//// const x = `${0}/*0*/abc/*1*/`; + +format.selection("0", "1"); +verify.currentFileContentIs("const x = `${0}abc`;"); diff --git a/tests/cases/fourslash/fourslash.ts b/tests/cases/fourslash/fourslash.ts index a6c1804affb..bc3f1aab46e 100644 --- a/tests/cases/fourslash/fourslash.ts +++ b/tests/cases/fourslash/fourslash.ts @@ -378,8 +378,10 @@ declare namespace FourSlashInterface { rangesAreDocumentHighlights(ranges?: Range[], options?: VerifyDocumentHighlightsOptions): void; rangesWithSameTextAreDocumentHighlights(): void; documentHighlightsOf(startRange: Range, ranges: Range[], options?: VerifyDocumentHighlightsOptions): void; - /** Prefer semanticClassificationsAre for more descriptive tests */ - encodedSemanticClassificationsLength(format: "original" | "2020", length: number) + /** Prefer {@link syntacticClassificationsAre} for more descriptive tests */ + encodedSyntacticClassificationsLength(expected: number): void; + /** Prefer {@link semanticClassificationsAre} for more descriptive tests */ + encodedSemanticClassificationsLength(format: "original" | "2020", length: number): void; /** * This method *requires* a contiguous, complete, and ordered stream of classifications for a file. */ diff --git a/tests/cases/fourslash/getOutliningSpans.ts b/tests/cases/fourslash/getOutliningSpans.ts index a522d47ce8b..5d70c5c6dc7 100644 --- a/tests/cases/fourslash/getOutliningSpans.ts +++ b/tests/cases/fourslash/getOutliningSpans.ts @@ -114,6 +114,15 @@ //// 2 //// ]|] ////)|]; - +//// +////class C[| { +//// foo: T; +////}|] +//// +////class D extends C[| { +//// constructor(x)[| { +//// super(x); +//// }|] +////}|] verify.outliningSpansInCurrentFile(test.ranges(), "code"); diff --git a/tests/cases/fourslash/gotoDefinitionLinkTag2.ts b/tests/cases/fourslash/gotoDefinitionLinkTag2.ts new file mode 100644 index 00000000000..ad463c51f79 --- /dev/null +++ b/tests/cases/fourslash/gotoDefinitionLinkTag2.ts @@ -0,0 +1,9 @@ +/// + +////enum E { +//// /** {@link /*1*/[|A|]} */ +//// [|/*2*/A|] +////} + +goTo.marker("1"); +verify.goToDefinitionIs("2"); diff --git a/tests/cases/fourslash/gotoDefinitionLinkTag3.ts b/tests/cases/fourslash/gotoDefinitionLinkTag3.ts new file mode 100644 index 00000000000..8dc4105ae8c --- /dev/null +++ b/tests/cases/fourslash/gotoDefinitionLinkTag3.ts @@ -0,0 +1,13 @@ +/// + +// @Filename: /a.ts +////enum E { +//// /** {@link /*1*/[|Foo|]} */ +//// Foo +////} +////interface [|/*2*/Foo|] { +//// foo: E.Foo; +////} + +goTo.marker("1"); +verify.goToDefinitionIs("2"); diff --git a/tests/cases/fourslash/gotoDefinitionLinkTag4.ts b/tests/cases/fourslash/gotoDefinitionLinkTag4.ts new file mode 100644 index 00000000000..6df523b058e --- /dev/null +++ b/tests/cases/fourslash/gotoDefinitionLinkTag4.ts @@ -0,0 +1,15 @@ +/// + +// @filename: a.ts +////interface [|/*2*/Foo|] { +//// foo: E.Foo; +////} + +// @Filename: b.ts +////enum E { +//// /** {@link /*1*/[|Foo|]} */ +//// Foo +////} + +goTo.marker("1"); +verify.goToDefinitionIs("2"); diff --git a/tests/cases/fourslash/gotoDefinitionLinkTag5.ts b/tests/cases/fourslash/gotoDefinitionLinkTag5.ts new file mode 100644 index 00000000000..8425653f41b --- /dev/null +++ b/tests/cases/fourslash/gotoDefinitionLinkTag5.ts @@ -0,0 +1,9 @@ +/// +////enum E { +//// /** {@link /*1*/[|B|]} */ +//// A, +//// [|/*2*/B|] +////} + +goTo.marker("1"); +verify.goToDefinitionIs("2"); diff --git a/tests/cases/fourslash/gotoDefinitionLinkTag6.ts b/tests/cases/fourslash/gotoDefinitionLinkTag6.ts new file mode 100644 index 00000000000..c76fcb08fd8 --- /dev/null +++ b/tests/cases/fourslash/gotoDefinitionLinkTag6.ts @@ -0,0 +1,9 @@ +/// + +////enum E { +//// /** {@link E./*1*/[|A|]} */ +//// [|/*2*/A|] +////} + +goTo.marker("1"); +verify.goToDefinitionIs("2"); diff --git a/tests/cases/fourslash/importNameCodeFix_importType9.ts b/tests/cases/fourslash/importNameCodeFix_importType9.ts new file mode 100644 index 00000000000..99daf5180f8 --- /dev/null +++ b/tests/cases/fourslash/importNameCodeFix_importType9.ts @@ -0,0 +1,39 @@ +/// +// @module: es2015 +// @esModuleInterop: true +// @jsx: react + +// @Filename: /types.d.ts +//// declare module "react" { var React: any; export = React; export as namespace React; } + +// @Filename: /component.tsx +//// export function Component() { return
; } + +// @Filename: /a.tsx +//// import type React from "react"; +//// import type { Component } from "./component"; +//// () + +goTo.marker(""); + +// It would be preferable for these fixes to be provided simultaneously, like the add-new-import fixes are, +// but this is such a weird edge case that I don't know that it's worth it - the test mainly ensures that +// both fixes are eventually offered without crashing and that they do what they say they're going to do. + +verify.codeFix({ + index: 0, + description: [ts.Diagnostics.Remove_type_from_import_declaration_from_0.message, "react"], + applyChanges: true, + newFileContent: `import React from "react"; +import type { Component } from "./component"; +()` +}); + +verify.codeFix({ + index: 0, + description: [ts.Diagnostics.Remove_type_from_import_declaration_from_0.message, "./component"], + applyChanges: true, + newFileContent: `import React from "react"; +import { Component } from "./component"; +()` +}); diff --git a/tests/cases/fourslash/importNameCodeFix_jsx6.ts b/tests/cases/fourslash/importNameCodeFix_jsx6.ts index 95dc5ff6d1b..0d90f619ace 100644 --- a/tests/cases/fourslash/importNameCodeFix_jsx6.ts +++ b/tests/cases/fourslash/importNameCodeFix_jsx6.ts @@ -20,22 +20,23 @@ ////<[|Text|]>; goTo.file("/a.tsx"); -verify.codeFix({ - index: 0, - description: [ts.Diagnostics.Import_0_from_1.message, "React", "react"], - applyChanges: true, - newFileContent: -`import React from "react"; - -;` -}); verify.codeFix({ index: 0, description: [ts.Diagnostics.Add_import_from_0.message, "react-native"], + applyChanges: false, newFileContent: -`import React from "react"; -import { Text } from "react-native"; +`import { Text } from "react-native"; + +;` +}); + +verify.codeFix({ + index: 1, + description: [ts.Diagnostics.Import_0_from_1.message, "React", "react"], + applyChanges: false, + newFileContent: +`import React from "react"; ;` }); diff --git a/tests/cases/fourslash/importNameCodeFix_pathsWithExtension.ts b/tests/cases/fourslash/importNameCodeFix_pathsWithExtension.ts new file mode 100644 index 00000000000..b3cd69844ae --- /dev/null +++ b/tests/cases/fourslash/importNameCodeFix_pathsWithExtension.ts @@ -0,0 +1,24 @@ +/// + +// @Filename: /tsconfig.json +//// { +//// "compilerOptions": { +//// "target": "ESNext", +//// "module": "Node16", +//// "moduleResolution": "Node16", +//// "rootDir": "./src", +//// "outDir": "./dist", +//// "paths": { +//// "#internals/*": ["./src/internals/*.ts"] +//// } +//// }, +//// "include": ["src"] +//// } + +// @Filename: /src/internals/example.ts +//// export function helloWorld() {} + +// @Filename: /src/index.ts +//// helloWorld/**/ + +verify.importFixModuleSpecifiers("", ["#internals/example"], { importModuleSpecifierEnding: "js" }); diff --git a/tests/cases/fourslash/importNameCodeFix_typesVersions.ts b/tests/cases/fourslash/importNameCodeFix_typesVersions.ts index 9f69e3eb44f..185461353d2 100644 --- a/tests/cases/fourslash/importNameCodeFix_typesVersions.ts +++ b/tests/cases/fourslash/importNameCodeFix_typesVersions.ts @@ -6,17 +6,17 @@ // @Filename: /node_modules/unified/package.json //// { //// "name": "unified", -//// "types": "types/ts3.4/index.d.ts", +//// "types": "types/ts3.444/index.d.ts", //// "typesVersions": { //// ">=4.0": { -//// "types/ts3.4/*": [ +//// "types/ts3.444/*": [ //// "types/ts4.0/*" //// ] //// } //// } //// } -// @Filename: /node_modules/unified/types/ts3.4/index.d.ts +// @Filename: /node_modules/unified/types/ts3.444/index.d.ts //// export declare const x: number; // @Filename: /node_modules/unified/types/ts4.0/index.d.ts @@ -30,5 +30,8 @@ verify.importFixModuleSpecifiers("", [ "unified", - "unified/types/ts3.4/", // TODO: this is wrong #49034 + // This obviously doesn't look like a desired module specifier, but the package.json is misconfigured + // (taken from a real-world example). The fact that it resolves (according to TS) is good enough to + // generate it. + "unified/types/ts3.444/index.js", ], { importModuleSpecifierEnding: "js" }); diff --git a/tests/cases/fourslash/incompleteFunctionCallCodefixTypeKeyof.ts b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeKeyof.ts new file mode 100644 index 00000000000..ce95eb8cab0 --- /dev/null +++ b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeKeyof.ts @@ -0,0 +1,22 @@ +/// + +// @noImplicitAny: true +////function existing(value: T) { +//// const keyofTypeof = Object.keys(value)[0] as keyof T; +//// added/*1*/(keyofTypeof); +////} + +goTo.marker("1"); +verify.codeFix({ + description: "Add missing function declaration 'added'", + index: 0, + newFileContent: `function existing(value: T) { + const keyofTypeof = Object.keys(value)[0] as keyof T; + added(keyofTypeof); +} + +function added(keyofTypeof: string | number | symbol) { + throw new Error("Function not implemented."); +} +`, +}); diff --git a/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParameter.ts b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParameter.ts new file mode 100644 index 00000000000..9aebe3f9aba --- /dev/null +++ b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParameter.ts @@ -0,0 +1,20 @@ +/// + +// @noImplicitAny: true +////function existing(value: T) { +//// added/*1*/(value); +////} + +goTo.marker("1"); +verify.codeFix({ + description: "Add missing function declaration 'added'", + index: 0, + newFileContent: `function existing(value: T) { + added(value); +} + +function added(value: T) { + throw new Error("Function not implemented."); +} +`, +}); diff --git a/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParameterArgumentDifferent.ts b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParameterArgumentDifferent.ts new file mode 100644 index 00000000000..e42867758b2 --- /dev/null +++ b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParameterArgumentDifferent.ts @@ -0,0 +1,20 @@ +/// + +// @noImplicitAny: true +////function existing(value: T) { +//// added/*1*/(value, ""); +////} + +goTo.marker("1"); +verify.codeFix({ + description: "Add missing function declaration 'added'", + index: 0, + newFileContent: `function existing(value: T) { + added(value, ""); +} + +function added(value: T, arg1: string) { + throw new Error("Function not implemented."); +} +`, +}); diff --git a/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParameterArgumentSame.ts b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParameterArgumentSame.ts new file mode 100644 index 00000000000..98ec122734d --- /dev/null +++ b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParameterArgumentSame.ts @@ -0,0 +1,20 @@ +/// + +// @noImplicitAny: true +////function existing(value: T) { +//// added/*1*/(value, value); +////} + +goTo.marker("1"); +verify.codeFix({ + description: "Add missing function declaration 'added'", + index: 0, + newFileContent: `function existing(value: T) { + added(value, value); +} + +function added(value: T, value1: T) { + throw new Error("Function not implemented."); +} +`, +}); diff --git a/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParameterConstrained.ts b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParameterConstrained.ts new file mode 100644 index 00000000000..fb59a249b34 --- /dev/null +++ b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParameterConstrained.ts @@ -0,0 +1,20 @@ +/// + +// @noImplicitAny: true +////function existing(value: T) { +//// added/*1*/(value); +////} + +goTo.marker("1"); +verify.codeFix({ + description: "Add missing function declaration 'added'", + index: 0, + newFileContent: `function existing(value: T) { + added(value); +} + +function added(value: T) { + throw new Error("Function not implemented."); +} +`, +}); diff --git a/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParameterNarrowed.ts b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParameterNarrowed.ts new file mode 100644 index 00000000000..8135300a459 --- /dev/null +++ b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParameterNarrowed.ts @@ -0,0 +1,24 @@ +/// + +// @noImplicitAny: true +////function existing(value: T) { +//// if (typeof value === "number") { +//// added/*1*/(value); +//// } +////} + +goTo.marker("1"); +verify.codeFix({ + description: "Add missing function declaration 'added'", + index: 0, + newFileContent: `function existing(value: T) { + if (typeof value === "number") { + added(value); + } +} + +function added(value: T) { + throw new Error("Function not implemented."); +} +`, +}); diff --git a/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParameterVariable.ts b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParameterVariable.ts new file mode 100644 index 00000000000..93b819724e2 --- /dev/null +++ b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParameterVariable.ts @@ -0,0 +1,43 @@ +/// + +// @noImplicitAny: true +////function e() { +//// let et: T = 'phone' +//// added1/*1*/(et) +//// et = 'home' +//// added2/*2*/(et) +////} + +goTo.marker("1"); +verify.codeFix({ + description: "Add missing function declaration 'added1'", + index: 0, + newFileContent: `function e() { + let et: T = 'phone' + added1(et) + et = 'home' + added2(et) +} + +function added1(et: string) { + throw new Error("Function not implemented.") +} +`, +}); + +goTo.marker("2"); +verify.codeFix({ + description: "Add missing function declaration 'added1'", + index: 0, + newFileContent: `function e() { + let et: T = 'phone' + added1(et) + et = 'home' + added2(et) +} + +function added1(et: string) { + throw new Error("Function not implemented.") +} +`, +}); diff --git a/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParameters.ts b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParameters.ts new file mode 100644 index 00000000000..9a236190cd5 --- /dev/null +++ b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParameters.ts @@ -0,0 +1,20 @@ +/// + +// @noImplicitAny: true +////function existing(t1: T1, t: T, t2a: T2, t2b: T2, t2c: T2) { +//// added/*1*/(t2a, t2b, t2c, t1, t, t2a, t2c, t2b); +////} + +goTo.marker("1"); +verify.codeFix({ + description: "Add missing function declaration 'added'", + index: 0, + newFileContent: `function existing(t1: T1, t: T, t2a: T2, t2b: T2, t2c: T2) { + added(t2a, t2b, t2c, t1, t, t2a, t2c, t2b); +} + +function added(t2a: T2, t2b: T2, t2c: T2, t1: T1, t: T, t2a1: T2, t2c1: T2, t2b1: T2) { + throw new Error("Function not implemented."); +} +`, +}); diff --git a/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParametersConstrained.ts b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParametersConstrained.ts new file mode 100644 index 00000000000..9f8311ecec4 --- /dev/null +++ b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParametersConstrained.ts @@ -0,0 +1,20 @@ +/// + +// @noImplicitAny: true +////function existing(value: T, other: U) { +//// added/*1*/(value, other); +////} + +goTo.marker("1"); +verify.codeFix({ + description: "Add missing function declaration 'added'", + index: 0, + newFileContent: `function existing(value: T, other: U) { + added(value, other); +} + +function added(value: T, other: U) { + throw new Error("Function not implemented."); +} +`, +}); diff --git a/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParametersNested2D.ts b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParametersNested2D.ts new file mode 100644 index 00000000000..1cddf611b43 --- /dev/null +++ b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParametersNested2D.ts @@ -0,0 +1,24 @@ +/// + +// @noImplicitAny: true +////function outer(o: O) { +//// return function inner(i: I) { +//// added/*1*/(o, i); +//// } +////} + +goTo.marker("1"); +verify.codeFix({ + description: "Add missing function declaration 'added'", + index: 0, + newFileContent: `function outer(o: O) { + return function inner(i: I) { + added(o, i); + } +} + +function added(o: O, i: I) { + throw new Error("Function not implemented."); +} +`, +}); diff --git a/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParametersNested3D.ts b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParametersNested3D.ts new file mode 100644 index 00000000000..46f7d67bd69 --- /dev/null +++ b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeParametersNested3D.ts @@ -0,0 +1,28 @@ +/// + +// @noImplicitAny: true +////function outer(o: O) { +//// return function middle(m: M) { +//// return function inner(i: I) { +//// added/*1*/(o, m, i); +//// } +//// } +////} + +goTo.marker("1"); +verify.codeFix({ + description: "Add missing function declaration 'added'", + index: 0, + newFileContent: `function outer(o: O) { + return function middle(m: M) { + return function inner(i: I) { + added(o, m, i); + } + } +} + +function added(o: O, m: M, i: I) { + throw new Error("Function not implemented."); +} +`, +}); diff --git a/tests/cases/fourslash/incompleteFunctionCallCodefixTypeUnion.ts b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeUnion.ts new file mode 100644 index 00000000000..967d94ac9ef --- /dev/null +++ b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeUnion.ts @@ -0,0 +1,20 @@ +/// + +// @noImplicitAny: true +////function existing(value: T | U & string) { +//// added/*1*/(value); +////} + +goTo.marker("1"); +verify.codeFix({ + description: "Add missing function declaration 'added'", + index: 0, + newFileContent: `function existing(value: T | U & string) { + added(value); +} + +function added(value: T) { + throw new Error("Function not implemented."); +} +`, +}); diff --git a/tests/cases/fourslash/incompleteFunctionCallCodefixTypeUnions.ts b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeUnions.ts new file mode 100644 index 00000000000..8d761ff3158 --- /dev/null +++ b/tests/cases/fourslash/incompleteFunctionCallCodefixTypeUnions.ts @@ -0,0 +1,20 @@ +/// + +// @noImplicitAny: true +////function existing(value1: T | U & string, value2: U & T, value3: U | T, value4: U) { +//// added/*1*/(value1, value2, value3, value4); +////} + +goTo.marker("1"); +verify.codeFix({ + description: "Add missing function declaration 'added'", + index: 0, + newFileContent: `function existing(value1: T | U & string, value2: U & T, value3: U | T, value4: U) { + added(value1, value2, value3, value4); +} + +function added(value1: T, value2: U, value3: V, value4: U) { + throw new Error("Function not implemented."); +} +`, +}); diff --git a/tests/cases/fourslash/insertReturnStatementInDuplicateIdentifierFunction.ts b/tests/cases/fourslash/insertReturnStatementInDuplicateIdentifierFunction.ts index a131794c3f6..76e2db2fa00 100644 --- a/tests/cases/fourslash/insertReturnStatementInDuplicateIdentifierFunction.ts +++ b/tests/cases/fourslash/insertReturnStatementInDuplicateIdentifierFunction.ts @@ -6,10 +6,10 @@ goTo.marker(); // Function with bodies can only merge with classes -// Class declaration cannot implement overload list x 2 -verify.numberOfErrorsInCurrentFile(4); +// Class declaration cannot implement overload list +verify.numberOfErrorsInCurrentFile(2); // Shouldn't change the number of errors edit.insert('return null;'); -verify.numberOfErrorsInCurrentFile(4); +verify.numberOfErrorsInCurrentFile(2); diff --git a/tests/cases/fourslash/moveToNewFile_fileNameBasedOnExportedName.ts b/tests/cases/fourslash/moveToNewFile_fileNameBasedOnExportedName.ts new file mode 100644 index 00000000000..4d465662ebb --- /dev/null +++ b/tests/cases/fourslash/moveToNewFile_fileNameBasedOnExportedName.ts @@ -0,0 +1,39 @@ +/// + +// @Filename: /a.ts +////[|type Props = { +//// a: number; +////} +////class Foo { +//// readonly a: number; +//// constructor({ a }: Props) { +//// this.a = a; +//// } +////}|] +//// +////export default function f() { +//// return new Foo({ a: 1 }); +////} + +verify.moveToNewFile({ + newFileContents: { + "/a.ts": +`import { Foo } from "./Foo"; + +export default function f() { + return new Foo({ a: 1 }); +}`, + + "/Foo.ts": +`type Props = { + a: number; +}; +export class Foo { + readonly a: number; + constructor({ a }: Props) { + this.a = a; + } +} +`, + }, +}); diff --git a/tests/cases/fourslash/pathCompletionsPackageJsonExportsWildcard1.ts b/tests/cases/fourslash/pathCompletionsPackageJsonExportsWildcard1.ts new file mode 100644 index 00000000000..ea1c267ff7d --- /dev/null +++ b/tests/cases/fourslash/pathCompletionsPackageJsonExportsWildcard1.ts @@ -0,0 +1,50 @@ +/// + +// @module: nodenext + +// @Filename: /node_modules/foo/package.json +//// { +//// "name": "foo", +//// "main": "dist/index.js", +//// "module": "dist/index.mjs", +//// "types": "dist/index.d.ts", +//// "exports": { +//// ".": { +//// "types": "./dist/index.d.ts", +//// "import": "./dist/index.mjs", +//// "default": "./dist/index.js" +//// }, +//// "./*": { +//// "types": "./dist/*.d.ts", +//// "import": "./dist/*.mjs", +//// "default": "./dist/*.js" +//// }, +//// "./arguments": { +//// "types": "./dist/arguments/index.d.ts", +//// "import": "./dist/arguments/index.mjs", +//// "default": "./dist/arguments/index.js" +//// } +//// } +//// } + +// @Filename: /node_modules/foo/dist/index.d.ts +//// export const index = 0; + +// @Filename: /node_modules/foo/dist/blah.d.ts +//// export const blah = 0; + +// @Filename: /node_modules/foo/dist/arguments/index.d.ts +//// export const arguments = 0; + +// @Filename: /index.mts +//// import { } from "foo//**/"; + +verify.completions({ + marker: "", + isNewIdentifierLocation: true, + exact: [ + { name: "blah", kind: "script", kindModifiers: "" }, + { name: "index", kind: "script", kindModifiers: "" }, + { name: "arguments", kind: "script", kindModifiers: "" }, + ] +}); diff --git a/tests/cases/fourslash/pathCompletionsPackageJsonExportsWildcard2.ts b/tests/cases/fourslash/pathCompletionsPackageJsonExportsWildcard2.ts new file mode 100644 index 00000000000..af7963a7e2c --- /dev/null +++ b/tests/cases/fourslash/pathCompletionsPackageJsonExportsWildcard2.ts @@ -0,0 +1,42 @@ +/// + +// @module: nodenext + +// @Filename: /node_modules/salesforce-pageobjects/package.json +//// { +//// "name": "salesforce-pageobjects", +//// "version": "1.0.0", +//// "exports": { +//// "./*": { +//// "types": "./dist/*.d.ts", +//// "import": "./dist/*.mjs", +//// "default": "./dist/*.js" +//// } +//// } +//// } + +// @Filename: /node_modules/salesforce-pageobjects/dist/action/pageObjects/actionRenderer.d.ts +//// export const actionRenderer = 0; + +// @Filename: /index.mts +//// import { } from "salesforce-pageobjects//**/"; + +verify.completions({ + marker: "", + isNewIdentifierLocation: true, + exact: [{ name: "action", kind: "directory" }] +}); + +edit.insert("action/"); + +verify.completions({ + isNewIdentifierLocation: true, + exact: [{ name: "pageObjects", kind: "directory" }], +}); + +edit.insert("pageObjects/"); + +verify.completions({ + isNewIdentifierLocation: true, + exact: [{ name: "actionRenderer", kind: "script" }], +}); diff --git a/tests/cases/fourslash/pathCompletionsPackageJsonExportsWildcard3.ts b/tests/cases/fourslash/pathCompletionsPackageJsonExportsWildcard3.ts new file mode 100644 index 00000000000..4ac89dfebc8 --- /dev/null +++ b/tests/cases/fourslash/pathCompletionsPackageJsonExportsWildcard3.ts @@ -0,0 +1,45 @@ +/// + +// @module: nodenext + +// @Filename: /node_modules/foo/package.json +//// { +//// "types": "index.d.ts", +//// "exports": { +//// "./component-*": { +//// "types@>=4.3.5": "types/components/*.d.ts" +//// } +//// } +//// } + +// @Filename: /node_modules/foo/nope.d.ts +//// export const nope = 0; + +// @Filename: /node_modules/foo/types/components/index.d.ts +//// export const index = 0; + +// @Filename: /node_modules/foo/types/components/blah.d.ts +//// export const blah = 0; + +// @Filename: /node_modules/foo/types/components/subfolder/one.d.ts +//// export const one = 0; + +// @Filename: /a.ts +//// import { } from "foo//**/"; + +verify.completions({ + marker: "", + isNewIdentifierLocation: true, + exact: [ + { name: "component-blah", kind: "script" }, + { name: "component-index", kind: "script" }, + { name: "component-subfolder", kind: "directory" }, + ], +}); + +edit.insert("component-subfolder/"); + +verify.completions({ + isNewIdentifierLocation: true, + exact: [{ name: "one", kind: "script" }], +}); diff --git a/tests/cases/fourslash/pathCompletionsPackageJsonExportsWildcard4.ts b/tests/cases/fourslash/pathCompletionsPackageJsonExportsWildcard4.ts new file mode 100644 index 00000000000..852b77b3606 --- /dev/null +++ b/tests/cases/fourslash/pathCompletionsPackageJsonExportsWildcard4.ts @@ -0,0 +1,64 @@ +/// + +// @module: nodenext + +// @Filename: /node_modules/foo/package.json +//// { +//// "types": "index.d.ts", +//// "exports": { +//// "./*": "dist/*", +//// "./foo/*": "dist/*", +//// "./bar/*": "dist/*", +//// "./exact-match": "dist/index.d.ts" +//// } +//// } + +// @Filename: /node_modules/foo/nope.d.ts +//// export const nope = 0; + +// @Filename: /node_modules/foo/dist/index.d.ts +//// export const index = 0; + +// @Filename: /node_modules/foo/dist/blah.d.ts +//// export const blah = 0; + +// @Filename: /node_modules/foo/dist/foo/onlyInFooFolder.d.ts +//// export const foo = 0; + +// @Filename: /node_modules/foo/dist/subfolder/one.d.ts +//// export const one = 0; + +// @Filename: /a.mts +//// import { } from "foo//**/"; + +verify.completions({ + marker: "", + isNewIdentifierLocation: true, + exact: [ + { name: "blah.js", kind: "script", kindModifiers: ".js" }, + { name: "index.js", kind: "script", kindModifiers: ".js" }, + { name: "foo", kind: "directory" }, + { name: "subfolder", kind: "directory" }, + { name: "bar", kind: "directory" }, + { name: "exact-match", kind: "script" }, + ], +}); + +edit.insert("foo/"); + +verify.completions({ + isNewIdentifierLocation: true, + exact: [ + { name: "blah.js", kind: "script", kindModifiers: ".js" }, + { name: "index.js", kind: "script", kindModifiers: ".js" }, + { name: "foo", kind: "directory" }, + { name: "subfolder", kind: "directory" }, + ], +}); + +edit.insert("foo/"); + +verify.completions({ + isNewIdentifierLocation: true, + exact: [{ name: "onlyInFooFolder.js", kind: "script", kindModifiers: ".js" }], +}); diff --git a/tests/cases/fourslash/pathCompletionsPackageJsonExportsWildcard5.ts b/tests/cases/fourslash/pathCompletionsPackageJsonExportsWildcard5.ts new file mode 100644 index 00000000000..86694b2e0c6 --- /dev/null +++ b/tests/cases/fourslash/pathCompletionsPackageJsonExportsWildcard5.ts @@ -0,0 +1,66 @@ +/// + +// @module: nodenext + +// @Filename: /node_modules/foo/package.json +//// { +//// "name": "foo", +//// "main": "dist/index.js", +//// "module": "dist/index.mjs", +//// "types": "dist/index.d.ts", +//// "exports": { +//// ".": { +//// "import": { +//// "types": "./dist/types/index.d.mts", +//// "default": "./dist/esm/index.mjs" +//// }, +//// "default": { +//// "types": "./dist/types/index.d.ts", +//// "default": "./dist/cjs/index.js" +//// } +//// }, +//// "./*": { +//// "import": { +//// "types": "./dist/types/*.d.mts", +//// "default": "./dist/esm/*.mjs" +//// }, +//// "default": { +//// "types": "./dist/types/*.d.ts", +//// "default": "./dist/cjs/*.js" +//// } +//// }, +//// "./only-in-cjs": { +//// "require": { +//// "types": "./dist/types/only-in-cjs/index.d.ts", +//// "default": "./dist/cjs/only-in-cjs/index.js" +//// } +//// } +//// } +//// } + +// @Filename: /node_modules/foo/dist/types/index.d.mts +//// export const index = 0; + +// @Filename: /node_modules/foo/dist/types/index.d.ts +//// export const index = 0; + +// @Filename: /node_modules/foo/dist/types/blah.d.mts +//// export const blah = 0; + +// @Filename: /node_modules/foo/dist/types/blah.d.ts +//// export const blah = 0; + +// @Filename: /node_modules/foo/dist/types/only-in-cjs/index.d.ts +//// export const onlyInCjs = 0; + +// @Filename: /index.mts +//// import { } from "foo//**/"; + +verify.completions({ + marker: "", + isNewIdentifierLocation: true, + exact: [ + { name: "blah", kind: "script", kindModifiers: "" }, + { name: "index", kind: "script", kindModifiers: "" }, + ] +}); diff --git a/tests/cases/fourslash/pathCompletionsPackageJsonExportsWildcard6.ts b/tests/cases/fourslash/pathCompletionsPackageJsonExportsWildcard6.ts new file mode 100644 index 00000000000..1fb17f1c81c --- /dev/null +++ b/tests/cases/fourslash/pathCompletionsPackageJsonExportsWildcard6.ts @@ -0,0 +1,31 @@ +/// + +// @module: nodenext + +// @Filename: /node_modules/foo/package.json +//// { +//// "name": "foo", +//// "main": "dist/index.js", +//// "module": "dist/index.mjs", +//// "types": "dist/index.d.ts", +//// "exports": { +//// "./*": "./dist/*?.d.ts" +//// } +//// } + +// @Filename: /node_modules/foo/dist/index.d.ts +//// export const index = 0; + +// @Filename: /node_modules/foo/dist/blah?.d.ts +//// export const blah = 0; + +// @Filename: /index.mts +//// import { } from "foo//**/"; + +verify.completions({ + marker: "", + isNewIdentifierLocation: true, + exact: [ + { name: "blah", kind: "script", kindModifiers: "" }, + ] +}); diff --git a/tests/cases/fourslash/quickInfoJsDoc.ts b/tests/cases/fourslash/quickInfoJsDoc.ts new file mode 100644 index 00000000000..cb163c1b60a --- /dev/null +++ b/tests/cases/fourslash/quickInfoJsDoc.ts @@ -0,0 +1,62 @@ +/// +// @target: esnext + +/////** +//// * A constant +//// * @deprecated +//// */ +////var foo = "foo"; +//// +/////** +//// * A function +//// * @deprecated +//// */ +////function fn() { } +//// +/////** +//// * A class +//// * @deprecated +//// */ +////class C { +//// /** +//// * A field +//// * @deprecated +//// */ +//// field = "field"; +//// +//// /** +//// * A getter +//// * @deprecated +//// */ +//// get getter() { +//// return; +//// } +//// +//// /** +//// * A method +//// * @deprecated +//// */ +//// m() { } +//// +//// get a() { +//// this.field/*0*/; +//// this.getter/*1*/; +//// this.m/*2*/; +//// foo/*3*/; +//// C/*4*//; +//// fn()/*5*/; +//// +//// return 1; +//// } +//// +//// set a(value: number) { +//// this.field/*6*/; +//// this.getter/*7*/; +//// this.m/*8*/; +//// foo/*9*/; +//// C/*10*/; +//// fn/*11*/(); +//// } +////} + +verify.baselineQuickInfo(); diff --git a/tests/cases/fourslash/quickfixAddMissingConstraint3.ts b/tests/cases/fourslash/quickfixAddMissingConstraint3.ts new file mode 100644 index 00000000000..8c04de4b846 --- /dev/null +++ b/tests/cases/fourslash/quickfixAddMissingConstraint3.ts @@ -0,0 +1,17 @@ +/// + +// @Filename: file.ts +////function f(x: T) { +//// const y: `${number}` = x/**/; +////} +goTo.marker(""); +verify.codeFix({ + index: 0, + description: "Add `extends` constraint.", + newFileContent: { + "/tests/cases/fourslash/file.ts": +`function f(x: T) { + const y: \`$\{number}\` = x; +}` + } +}); diff --git a/tests/cases/fourslash/quickfixAddMissingConstraint4.ts b/tests/cases/fourslash/quickfixAddMissingConstraint4.ts new file mode 100644 index 00000000000..6a973adedb7 --- /dev/null +++ b/tests/cases/fourslash/quickfixAddMissingConstraint4.ts @@ -0,0 +1,24 @@ +/// + +// @filename: /bar.ts +////export type Bar = Record +////export function bar(obj: { prop: T }) {} + +// @filename: /foo.ts +////import { bar } from "./bar"; +//// +////export function foo(x: T) { +//// bar({ prop: x/**/ }) +////} + +goTo.marker(""); +verify.codeFix({ + index: 0, + description: "Add `extends` constraint.", + newFileContent: +`import { bar } from "./bar"; + +export function foo(x: T) { + bar({ prop: x }) +}` +}); diff --git a/tests/cases/fourslash/quickfixAddMissingConstraint5.ts b/tests/cases/fourslash/quickfixAddMissingConstraint5.ts new file mode 100644 index 00000000000..8bf86e64184 --- /dev/null +++ b/tests/cases/fourslash/quickfixAddMissingConstraint5.ts @@ -0,0 +1,39 @@ +/// + +// @strict: true +// @filename: /foo.ts +////export interface RendererElement { +//// [key: string]: any +////} +//// +////export interface VNode { +//// target: HostElement | null; +////} +//// +////export function cloneVNode(vnode: VNode): VNode { +//// const cloned: VNode = { +//// target: vnode.target, +//// } +//// return cloned; +////} + +goTo.file("/foo.ts"); +verify.codeFixAll({ + fixId: "addMissingConstraint", + fixAllDescription: ts.Diagnostics.Add_extends_constraint_to_all_type_parameters.message, + newFileContent: +`export interface RendererElement { + [key: string]: any +} + +export interface VNode { + target: HostElement | null; +} + +export function cloneVNode(vnode: VNode): VNode { + const cloned: VNode = { + target: vnode.target, + } + return cloned; +}` +}) diff --git a/tests/cases/fourslash/quickfixAddMissingConstraint_all.ts b/tests/cases/fourslash/quickfixAddMissingConstraint_all.ts new file mode 100644 index 00000000000..140e11f99bc --- /dev/null +++ b/tests/cases/fourslash/quickfixAddMissingConstraint_all.ts @@ -0,0 +1,65 @@ +/// + +// @strict: true + +// @filename: /bar.ts +////export type Bar = Record +////export function bar(obj: { prop: T }) {} + +// @filename: /foo.ts +////import { bar } from "./bar"; +//// +////export function f1(x: T) { +//// bar({ prop: x }) +////} +//// +////function f2(x: T) { +//// const y: `${number}` = x; +////} +//// +////interface Fn {} +////function f3(x: Fn) { +////} +//// +////function f4(x: T) { +//// const y: `${number}` = x; +////} +//// +////interface TypeRef { +//// x: T +////} +////function f5(): TypeRef { +//// throw undefined as any as TypeRef; +////} + +goTo.file("/foo.ts"); +verify.codeFixAll({ + fixId: "addMissingConstraint", + fixAllDescription: ts.Diagnostics.Add_extends_constraint_to_all_type_parameters.message, + newFileContent: +"import { bar } from \"./bar\";\n\n" + + +"export function f1(x: T) {\n" + +" bar({ prop: x })\n" + +"}\n\n" + + +"function f2(x: T) {\n" + +" const y: `${number}` = x;\n" + +"}\n\n" + + +"interface Fn {}\n" + +"function f3(x: Fn) {\n" + +"}\n\n" + + +"function f4(x: T) {\n" + +" const y: `${number}` = x;\n" + +"}\n\n" + + +"interface TypeRef {\n" + +" x: T\n" + +"}\n" + +"function f5(): TypeRef {\n" + +" throw undefined as any as TypeRef;\n" + +"}" + +}); diff --git a/tests/cases/fourslash/refactorOverloadListToSingleSignature9.ts b/tests/cases/fourslash/refactorOverloadListToSingleSignature9.ts new file mode 100644 index 00000000000..c07f2883434 --- /dev/null +++ b/tests/cases/fourslash/refactorOverloadListToSingleSignature9.ts @@ -0,0 +1,22 @@ +/// + +/////*a1*/function foo(a: string): void; +/////*a2*/function foo(a: number): void;/*b2*/ +/////*a3*/function foo(a: number | string): void/*b3*/ /*a4*/{ +//// /*a5*/console.log(1);/*b5*/ +////}/*b4*//*b1*/ + +goTo.select("a1", "b1"); +verify.refactorAvailable("Convert overload list to single signature", "Convert overload list to single signature", ts.Diagnostics.Convert_overload_list_to_single_signature.message); + +goTo.select("a2", "b2"); +verify.refactorAvailable("Convert overload list to single signature", "Convert overload list to single signature", ts.Diagnostics.Convert_overload_list_to_single_signature.message); + +goTo.select("a3", "b3"); +verify.refactorAvailable("Convert overload list to single signature", "Convert overload list to single signature", ts.Diagnostics.Convert_overload_list_to_single_signature.message); + +goTo.select("a4", "b4"); +verify.not.refactorAvailable("Convert overload list to single signature", "Convert overload list to single signature", ts.Diagnostics.Convert_overload_list_to_single_signature.message); + +goTo.select("a5", "b5"); +verify.not.refactorAvailable("Convert overload list to single signature", "Convert overload list to single signature", ts.Diagnostics.Convert_overload_list_to_single_signature.message); diff --git a/tests/cases/fourslash/renameReferenceFromLinkTag1.ts b/tests/cases/fourslash/renameReferenceFromLinkTag1.ts new file mode 100644 index 00000000000..fe0e4c87b20 --- /dev/null +++ b/tests/cases/fourslash/renameReferenceFromLinkTag1.ts @@ -0,0 +1,8 @@ +/// + +////enum E { +//// /** {@link /**/A} */ +//// A +////} + +verify.baselineRename("", {}); \ No newline at end of file diff --git a/tests/cases/fourslash/renameReferenceFromLinkTag2.ts b/tests/cases/fourslash/renameReferenceFromLinkTag2.ts new file mode 100644 index 00000000000..330416ee17a --- /dev/null +++ b/tests/cases/fourslash/renameReferenceFromLinkTag2.ts @@ -0,0 +1,12 @@ +/// + +// @Filename: /a.ts +////enum E { +//// /** {@link /**/Foo} */ +//// Foo +////} +////interface Foo { +//// foo: E.Foo; +////} + +verify.baselineRename("", {}); diff --git a/tests/cases/fourslash/renameReferenceFromLinkTag3.ts b/tests/cases/fourslash/renameReferenceFromLinkTag3.ts new file mode 100644 index 00000000000..439b48f5841 --- /dev/null +++ b/tests/cases/fourslash/renameReferenceFromLinkTag3.ts @@ -0,0 +1,14 @@ +/// + +// @filename: a.ts +////interface Foo { +//// foo: E.Foo; +////} + +// @Filename: b.ts +////enum E { +//// /** {@link /**/Foo} */ +//// Foo +////} + +verify.baselineRename("", {}); diff --git a/tests/cases/fourslash/renameReferenceFromLinkTag4.ts b/tests/cases/fourslash/renameReferenceFromLinkTag4.ts new file mode 100644 index 00000000000..cda21943d6b --- /dev/null +++ b/tests/cases/fourslash/renameReferenceFromLinkTag4.ts @@ -0,0 +1,8 @@ +/// +////enum E { +//// /** {@link /**/B} */ +//// A, +//// B +////} + +verify.baselineRename("", {}); diff --git a/tests/cases/fourslash/renameReferenceFromLinkTag5.ts b/tests/cases/fourslash/renameReferenceFromLinkTag5.ts new file mode 100644 index 00000000000..bd80eb841ee --- /dev/null +++ b/tests/cases/fourslash/renameReferenceFromLinkTag5.ts @@ -0,0 +1,8 @@ +/// + +////enum E { +//// /** {@link E./**/A} */ +//// A +////} + +verify.baselineRename("", {}); diff --git a/tests/cases/fourslash/server/nodeNextPathCompletions.ts b/tests/cases/fourslash/server/nodeNextPathCompletions.ts index 800e7d0a98a..12b072d63a8 100644 --- a/tests/cases/fourslash/server/nodeNextPathCompletions.ts +++ b/tests/cases/fourslash/server/nodeNextPathCompletions.ts @@ -38,6 +38,6 @@ verify.baselineCompletions(); edit.insert("dependency/"); -verify.completions({ exact: ["lol", "dir/"], isNewIdentifierLocation: true }); +verify.completions({ exact: ["lol", "dir"], isNewIdentifierLocation: true }); edit.insert("l"); verify.completions({ exact: ["lol"], isNewIdentifierLocation: true }); diff --git a/tests/cases/fourslash/smartSelection_JSDocTags11.ts b/tests/cases/fourslash/smartSelection_JSDocTags11.ts new file mode 100644 index 00000000000..3a8820fd004 --- /dev/null +++ b/tests/cases/fourslash/smartSelection_JSDocTags11.ts @@ -0,0 +1,10 @@ +/// + +////const x = 1; +////type Foo = { +//// /** comment */ +//// /*2*/readonly /*1*/status: number; +////}; + +// https://github.com/microsoft/TypeScript/issues/39618 +verify.baselineSmartSelection(); diff --git a/tests/cases/fourslash/smartSelection_JSDocTags12.ts b/tests/cases/fourslash/smartSelection_JSDocTags12.ts new file mode 100644 index 00000000000..881843b841a --- /dev/null +++ b/tests/cases/fourslash/smartSelection_JSDocTags12.ts @@ -0,0 +1,9 @@ +/// + +////type B = {}; +////type A = { +//// a(/** Comment */ /*1*/p0: number, /** Comment */ /*2*/p1: number, /** Comment */ /*3*/p2: number): string; +////}; + +// https://github.com/microsoft/TypeScript/issues/49807 +verify.baselineSmartSelection(); diff --git a/tests/cases/fourslash/smartSelection_JSDocTags13.ts b/tests/cases/fourslash/smartSelection_JSDocTags13.ts new file mode 100644 index 00000000000..2f2b8a9a4aa --- /dev/null +++ b/tests/cases/fourslash/smartSelection_JSDocTags13.ts @@ -0,0 +1,12 @@ +/// + +////let a; +////let b: { +//// /** Comment */ /*1*/p0: number +//// /** Comment */ /*2*/p1: number +//// /** Comment */ /*3*/p2: number +////}; +////let c; + +// https://github.com/microsoft/TypeScript/issues/49807 +verify.baselineSmartSelection();

->Object.freeze : { (a: T[]): readonly T[]; (f: T): T; (o: T): Readonly; (o: T): Readonly; } +>Object.freeze : { (f: T): T; (o: T): Readonly; (o: T): Readonly; } >Object : ObjectConstructor ->freeze : { (a: T[]): readonly T[]; (f: T): T; (o: T): Readonly; (o: T): Readonly; } +>freeze : { (f: T): T; (o: T): Readonly; (o: T): Readonly; } >props : P } } diff --git a/tests/baselines/reference/keyofIntersection.js b/tests/baselines/reference/keyofIntersection.js index 3b6fc7eea1b..e4c2f3cdb7f 100644 --- a/tests/baselines/reference/keyofIntersection.js +++ b/tests/baselines/reference/keyofIntersection.js @@ -32,25 +32,25 @@ type Result5 = Example5, Record<'y', any>>; // "x" | "y" //// [keyofIntersection.d.ts] -declare type A = { +type A = { a: string; }; -declare type B = { +type B = { b: string; }; -declare type T01 = keyof (A & B); -declare type T02 = keyof (T & B); -declare type T03 = keyof (A & U); -declare type T04 = keyof (T & U); -declare type T05 = T02; -declare type T06 = T03; -declare type T07 = T04; -declare type Example1 = keyof (Record & Record); -declare type Result1 = Example1<'x', 'y'>; -declare type Result2 = keyof (Record<'x', any> & Record<'y', any>); -declare type Example3 = keyof (Record); -declare type Result3 = Example3<'x' | 'y'>; -declare type Example4 = (Record & Record); -declare type Result4 = keyof Example4<'x', 'y'>; -declare type Example5 = keyof (T & U); -declare type Result5 = Example5, Record<'y', any>>; +type T01 = keyof (A & B); +type T02 = keyof (T & B); +type T03 = keyof (A & U); +type T04 = keyof (T & U); +type T05 = T02; +type T06 = T03; +type T07 = T04; +type Example1 = keyof (Record & Record); +type Result1 = Example1<'x', 'y'>; +type Result2 = keyof (Record<'x', any> & Record<'y', any>); +type Example3 = keyof (Record); +type Result3 = Example3<'x' | 'y'>; +type Example4 = (Record & Record); +type Result4 = keyof Example4<'x', 'y'>; +type Example5 = keyof (T & U); +type Result5 = Example5, Record<'y', any>>; diff --git a/tests/baselines/reference/leaveOptionalParameterAsWritten.js b/tests/baselines/reference/leaveOptionalParameterAsWritten.js index d2a519390a7..884aa4674c0 100644 --- a/tests/baselines/reference/leaveOptionalParameterAsWritten.js +++ b/tests/baselines/reference/leaveOptionalParameterAsWritten.js @@ -32,6 +32,6 @@ declare global { } } //// [c.d.ts] -declare type Foo = teams.calling.Foo; +type Foo = teams.calling.Foo; export declare const bar: (p?: Foo) => void; export {}; diff --git a/tests/baselines/reference/literalTypesAndTypeAssertions.types b/tests/baselines/reference/literalTypesAndTypeAssertions.types index d0625aa4978..be204673ad3 100644 --- a/tests/baselines/reference/literalTypesAndTypeAssertions.types +++ b/tests/baselines/reference/literalTypesAndTypeAssertions.types @@ -36,7 +36,7 @@ let { a = "foo" } = { a: "foo" }; >"foo" : "foo" let { b = "foo" as "foo" } = { b: "bar" }; ->b : string +>b : "foo" | "bar" >"foo" as "foo" : "foo" >"foo" : "foo" >{ b: "bar" } : { b?: "bar"; } diff --git a/tests/baselines/reference/mapOnTupleTypes02.js b/tests/baselines/reference/mapOnTupleTypes02.js index 352abb24af5..a043c81d837 100644 --- a/tests/baselines/reference/mapOnTupleTypes02.js +++ b/tests/baselines/reference/mapOnTupleTypes02.js @@ -16,5 +16,5 @@ exports.increment = increment; //// [mapOnTupleTypes02.d.ts] -export declare type Point = [number, number]; +export type Point = [number, number]; export declare function increment(point: Point): number[]; diff --git a/tests/baselines/reference/mappedTypeAsClauses.js b/tests/baselines/reference/mappedTypeAsClauses.js index 3bd629f494c..fbe28929d3f 100644 --- a/tests/baselines/reference/mappedTypeAsClauses.js +++ b/tests/baselines/reference/mappedTypeAsClauses.js @@ -169,24 +169,24 @@ f("a"); // Error, should allow only "b" //// [mappedTypeAsClauses.d.ts] -declare type Getters = { +type Getters = { [P in keyof T & string as `get${Capitalize