From ad5e868795f12e9fcb1d4bb5d8ebf8f368a56938 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 25 Jun 2020 12:02:08 -0700 Subject: [PATCH 01/15] Test for symlinks --- .../create-and-execute-test.js | 25 ++++- .../app/src/index.ts | 3 + .../app/tsconfig.json | 9 ++ .../app/webpack.config.js | 21 ++++ .../expectedOutput-3.9/bundle.js | 101 ++++++++++++++++++ .../expectedOutput-3.9/output.txt | 16 +++ .../expectedOutput-transpile-3.9/bundle.js | 101 ++++++++++++++++++ .../expectedOutput-transpile-3.9/output.txt | 11 ++ .../lib/package.json | 9 ++ .../lib/src/index.ts | 1 + .../lib/tsconfig.json | 7 ++ .../expectedOutput-3.9/bundle.js | 101 ++++++++++++++++++ .../expectedOutput-3.9/output.txt | 16 +++ .../expectedOutput-transpile-3.9/bundle.js | 101 ++++++++++++++++++ .../expectedOutput-transpile-3.9/output.txt | 11 ++ 15 files changed, 528 insertions(+), 5 deletions(-) create mode 100644 test/comparison-tests/projectReferencesSymLinks/app/src/index.ts create mode 100644 test/comparison-tests/projectReferencesSymLinks/app/tsconfig.json create mode 100644 test/comparison-tests/projectReferencesSymLinks/app/webpack.config.js create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/bundle.js create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/output.txt create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/bundle.js create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/output.txt create mode 100644 test/comparison-tests/projectReferencesSymLinks/lib/package.json create mode 100644 test/comparison-tests/projectReferencesSymLinks/lib/src/index.ts create mode 100644 test/comparison-tests/projectReferencesSymLinks/lib/tsconfig.json create mode 100644 test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/bundle.js create mode 100644 test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/output.txt create mode 100644 test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/bundle.js create mode 100644 test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/output.txt diff --git a/test/comparison-tests/create-and-execute-test.js b/test/comparison-tests/create-and-execute-test.js index c3b355a22..64e0ec536 100644 --- a/test/comparison-tests/create-and-execute-test.js +++ b/test/comparison-tests/create-and-execute-test.js @@ -100,6 +100,11 @@ function createTest(test, testPath, options) { } } copySync(testPath, paths.testStagingPath); + if (testPath.match("SymLinks")) { + // Setup symlinks + mkdirp.sync(path.resolve(paths.testStagingPath, "node_modules")); + fs.symlinkSync(path.resolve(paths.testStagingPath, "lib"), path.resolve(paths.testStagingPath, "node_modules/lib"), "junction"); + } if (test.indexOf("AlreadyBuilt") !== -1) { const program = getProgram(path.resolve(paths.testStagingPath, "lib/tsconfig.json")); program.emit(); @@ -146,7 +151,18 @@ function createPaths(stagingPath, test, options) { } function createWebpackConfig(paths, optionsOriginal, useWatchApi) { - const config = require(path.join(paths.testStagingPath, 'webpack.config')); + let config; + let subFolder = ""; + try { + config = require(path.join(paths.testStagingPath, 'webpack.config')); + } + catch { + } + + if (!config) { + subFolder = "app"; + config = require(path.join(paths.testStagingPath, subFolder, 'webpack.config')); + } const extraOptionMaybe = extraOption ? { [extraOption]: true } : {}; const options = Object.assign({ @@ -158,12 +174,11 @@ function createWebpackConfig(paths, optionsOriginal, useWatchApi) { experimentalWatchApi: !!useWatchApi }, optionsOriginal, extraOptionMaybe); - const tsLoaderPath = require('path').join(__dirname, "../../index.js"); - + const tsLoaderPath = path.join(__dirname, "../../index.js"); aliasLoader(config, tsLoaderPath, options); config.output.path = paths.webpackOutput; - config.context = paths.testStagingPath; + config.context = path.join(paths.testStagingPath, subFolder); config.resolveLoader = config.resolveLoader || {}; config.resolveLoader.alias = config.resolveLoader.alias || {}; config.resolveLoader.alias.newLine = path.join(__dirname, 'newline.loader.js'); @@ -254,7 +269,7 @@ function compareFiles(paths, test, patch) { const actual = getNormalisedFileContent(file, paths.actualOutput); const expected = getNormalisedFileContent(file, paths.expectedOutput); if (actual !== expected) { - fs.copyFileSync(path.join(paths.actualOutput, file), path.join(paths.originalExpectedOutput, file)); + fs.copySync(path.join(paths.actualOutput, file), path.join(paths.originalExpectedOutput, file)); } }); } diff --git a/test/comparison-tests/projectReferencesSymLinks/app/src/index.ts b/test/comparison-tests/projectReferencesSymLinks/app/src/index.ts new file mode 100644 index 000000000..c6be152fc --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/app/src/index.ts @@ -0,0 +1,3 @@ +import { getMeaningOfLife } from "lib"; + +console.log(getMeaningOfLife()); diff --git a/test/comparison-tests/projectReferencesSymLinks/app/tsconfig.json b/test/comparison-tests/projectReferencesSymLinks/app/tsconfig.json new file mode 100644 index 000000000..6e1c418d1 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/app/tsconfig.json @@ -0,0 +1,9 @@ +{ + "references": [ + { "path": "../lib" } + ], + "compilerOptions": { + "outDir": "dist", + "rootDir": "src" + } +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/app/webpack.config.js b/test/comparison-tests/projectReferencesSymLinks/app/webpack.config.js new file mode 100644 index 000000000..ff414f170 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/app/webpack.config.js @@ -0,0 +1,21 @@ +var path = require('path') + +module.exports = { + mode: 'development', + entry: './src/index.ts', + output: { + filename: 'bundle.js' + }, + resolve: { + extensions: ['.ts', '.js'] + }, + module: { + rules: [ + { test: /\.ts$/, loader: 'ts-loader', options: { projectReferences: true } } + ] + } +} + +// for test harness purposes only, you would not need this in a normal project +module.exports.resolveLoader = { alias: { 'ts-loader': require('path').join(__dirname, "../../../../index.js") } } + diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/bundle.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/bundle.js new file mode 100644 index 000000000..1acee0957 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/bundle.js @@ -0,0 +1,101 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./src/index.ts": +/*!**********************!*\ + !*** ./src/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(!(function webpackMissingModule() { var e = new Error(\"Cannot find module 'lib'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()));\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/output.txt new file mode 100644 index 000000000..5a3a571da --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/output.txt @@ -0,0 +1,16 @@ + Asset Size Chunks Chunk Names + bundle.js 4.03 KiB main [emitted] main + ../lib/dist/index.js 135 bytes [emitted] + ../lib/dist/index.d.ts 54 bytes [emitted] +../lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] +Entrypoint main = bundle.js +[./src/index.ts] 108 bytes {main} [built] [1 error] + +ERROR in ./src/index.ts +Module not found: Error: Can't resolve 'lib' in 'app\src' + @ ./src/index.ts 3:12-26 + +ERROR in app\src\index.ts +./src/index.ts +[tsl] ERROR in app\src\index.ts(1,34) + TS2307: Cannot find module 'lib' or its corresponding type declarations. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/bundle.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/bundle.js new file mode 100644 index 000000000..ca31929a0 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/bundle.js @@ -0,0 +1,101 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./src/index.ts": +/*!**********************!*\ + !*** ./src/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(!(function webpackMissingModule() { var e = new Error(\"Cannot find module 'lib'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()));\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/output.txt new file mode 100644 index 000000000..20060de19 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/output.txt @@ -0,0 +1,11 @@ + Asset Size Chunks Chunk Names + bundle.js 4.07 KiB main [emitted] main + ../lib/dist/index.js 135 bytes [emitted] + ../lib/dist/index.d.ts 54 bytes [emitted] +../lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] +Entrypoint main = bundle.js +[./src/index.ts] 144 bytes {main} [built] + +ERROR in ./src/index.ts +Module not found: Error: Can't resolve 'lib' in 'app\src' + @ ./src/index.ts 3:12-26 \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/lib/package.json b/test/comparison-tests/projectReferencesSymLinks/lib/package.json new file mode 100644 index 000000000..d90504b7f --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/lib/package.json @@ -0,0 +1,9 @@ +{ + "name": "lib", + "version": "1.0.0", + "main": "dist/index.js", + "license": "MIT", + "devDependencies": { + "typescript": "^3.9.3" + } +} diff --git a/test/comparison-tests/projectReferencesSymLinks/lib/src/index.ts b/test/comparison-tests/projectReferencesSymLinks/lib/src/index.ts new file mode 100644 index 000000000..2a3347209 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/lib/src/index.ts @@ -0,0 +1 @@ +export const getMeaningOfLife = () => 45; \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/lib/tsconfig.json b/test/comparison-tests/projectReferencesSymLinks/lib/tsconfig.json new file mode 100644 index 000000000..5c4b99e64 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/lib/tsconfig.json @@ -0,0 +1,7 @@ +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + } +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/bundle.js b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/bundle.js new file mode 100644 index 000000000..1acee0957 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/bundle.js @@ -0,0 +1,101 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./src/index.ts": +/*!**********************!*\ + !*** ./src/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(!(function webpackMissingModule() { var e = new Error(\"Cannot find module 'lib'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()));\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/output.txt new file mode 100644 index 000000000..5a3a571da --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/output.txt @@ -0,0 +1,16 @@ + Asset Size Chunks Chunk Names + bundle.js 4.03 KiB main [emitted] main + ../lib/dist/index.js 135 bytes [emitted] + ../lib/dist/index.d.ts 54 bytes [emitted] +../lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] +Entrypoint main = bundle.js +[./src/index.ts] 108 bytes {main} [built] [1 error] + +ERROR in ./src/index.ts +Module not found: Error: Can't resolve 'lib' in 'app\src' + @ ./src/index.ts 3:12-26 + +ERROR in app\src\index.ts +./src/index.ts +[tsl] ERROR in app\src\index.ts(1,34) + TS2307: Cannot find module 'lib' or its corresponding type declarations. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/bundle.js b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/bundle.js new file mode 100644 index 000000000..ca31929a0 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/bundle.js @@ -0,0 +1,101 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./src/index.ts": +/*!**********************!*\ + !*** ./src/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(!(function webpackMissingModule() { var e = new Error(\"Cannot find module 'lib'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()));\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/output.txt new file mode 100644 index 000000000..20060de19 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/output.txt @@ -0,0 +1,11 @@ + Asset Size Chunks Chunk Names + bundle.js 4.07 KiB main [emitted] main + ../lib/dist/index.js 135 bytes [emitted] + ../lib/dist/index.d.ts 54 bytes [emitted] +../lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] +Entrypoint main = bundle.js +[./src/index.ts] 144 bytes {main} [built] + +ERROR in ./src/index.ts +Module not found: Error: Can't resolve 'lib' in 'app\src' + @ ./src/index.ts 3:12-26 \ No newline at end of file From a0ec6d96906c915e0bdf13b1d05d77343e0ea42b Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 25 Jun 2020 15:04:28 -0700 Subject: [PATCH 02/15] Basleine assets --- .gitignore | 6 +- .../create-and-execute-test.js | 54 +++- .../expectedOutput-3.9/{ => .output}/app.d.ts | 0 .../{ => .output}/sub/dep.d.ts | 0 .../expectedOutput-3.9/output.txt | 8 +- .../expectedOutput-3.9/{ => .output}/app.d.ts | 0 .../{ => .output}/app.d.ts.map | 0 .../{ => .output}/sub/dep.d.ts | 0 .../{ => .output}/sub/dep.d.ts.map | 0 .../expectedOutput-3.9/output.txt | 12 +- .../expectedOutput-3.9/lib/index.d.ts | 5 + .../expectedOutput-3.9/lib/index.js | 9 + .../expectedOutput-3.9/lib/index.js.map | 1 + .../lib/tsconfig.tsbuildinfo | 56 ++++ .../expectedOutput-3.9/output.txt | 14 +- .../lib/index.d.ts | 5 + .../expectedOutput-transpile-3.9/lib/index.js | 9 + .../lib/index.js.map | 1 + .../lib/tsconfig.tsbuildinfo | 56 ++++ .../expectedOutput-transpile-3.9/output.txt | 14 +- .../projectReferences/lib/tsconfig.json | 3 +- .../projectReferences/tsconfig.json | 15 +- .../common/tsconfig.json | 1 + .../expectedOutput-3.9/common/index.d.ts | 1 + .../expectedOutput-3.9/common/index.js | 7 + .../common/tsconfig.tsbuildinfo | 55 ++++ .../expectedOutput-3.9/output.txt | 26 +- .../patch0/lib/fileWithError.d.ts | 1 + .../patch0/lib/fileWithError.js | 7 + .../expectedOutput-3.9/patch0/lib/index.d.ts | 5 + .../expectedOutput-3.9/patch0/lib/index.js | 8 + .../patch0/lib/tsconfig.tsbuildinfo | 61 ++++ .../expectedOutput-3.9/patch0/output.txt | 18 +- .../indirectWithError/fileWithError.d.ts | 1 + .../patch1/indirectWithError/fileWithError.js | 7 + .../patch1/indirectWithError/index.d.ts | 5 + .../patch1/indirectWithError/index.js | 8 + .../indirectWithError/tsconfig.tsbuildinfo | 61 ++++ .../expectedOutput-3.9/patch1/output.txt | 26 +- .../patch1/utils/index.d.ts | 1 + .../expectedOutput-3.9/patch1/utils/index.js | 8 + .../patch1/utils/tsconfig.tsbuildinfo | 65 ++++ .../expectedOutput-3.9/patch2/output.txt | 16 +- .../patch2/unreferenced/index.d.ts | 1 + .../patch2/unreferenced/index.js | 7 + .../patch2/unreferenced/tsconfig.tsbuildinfo | 55 ++++ .../expectedOutput-3.9/patch4/output.txt | 16 +- .../patch4/unreferencedIndirect/index.d.ts | 1 + .../patch4/unreferencedIndirect/index.js | 7 + .../unreferencedIndirect/tsconfig.tsbuildinfo | 55 ++++ .../unreferenced/index.d.ts | 1 + .../expectedOutput-3.9/unreferenced/index.js | 7 + .../unreferenced/tsconfig.tsbuildinfo | 55 ++++ .../unreferencedIndirect/index.d.ts | 1 + .../unreferencedIndirect/index.js | 7 + .../unreferencedIndirect/tsconfig.tsbuildinfo | 55 ++++ .../common/index.d.ts | 1 + .../common/index.js | 7 + .../common/tsconfig.tsbuildinfo | 55 ++++ .../expectedOutput-transpile-3.9/output.txt | 26 +- .../patch0/lib/fileWithError.d.ts | 1 + .../patch0/lib/fileWithError.js | 7 + .../patch0/lib/index.d.ts | 5 + .../patch0/lib/index.js | 8 + .../patch0/lib/tsconfig.tsbuildinfo | 61 ++++ .../patch0/output.txt | 18 +- .../indirectWithError/fileWithError.d.ts | 1 + .../patch1/indirectWithError/fileWithError.js | 7 + .../patch1/indirectWithError/index.d.ts | 5 + .../patch1/indirectWithError/index.js | 8 + .../indirectWithError/tsconfig.tsbuildinfo | 61 ++++ .../patch1/output.txt | 26 +- .../patch1/utils/index.d.ts | 1 + .../patch1/utils/index.js | 8 + .../patch1/utils/tsconfig.tsbuildinfo | 65 ++++ .../patch4/output.txt | 16 +- .../patch4/unreferencedIndirect/index.d.ts | 1 + .../patch4/unreferencedIndirect/index.js | 7 + .../unreferencedIndirect/tsconfig.tsbuildinfo | 55 ++++ .../unreferenced/index.d.ts | 1 + .../unreferenced/index.js | 7 + .../unreferenced/tsconfig.tsbuildinfo | 55 ++++ .../unreferencedIndirect/index.d.ts | 1 + .../unreferencedIndirect/index.js | 7 + .../unreferencedIndirect/tsconfig.tsbuildinfo | 55 ++++ .../indirectWithError/tsconfig.json | 3 +- .../lib/tsconfig.json | 3 +- .../projectReferencesMultiple/tsconfig.json | 19 +- .../unreferenced/tsconfig.json | 3 +- .../unreferencedIndirect/tsconfig.json | 3 +- .../utils/tsconfig.json | 3 +- .../expectedOutput-3.9/lib/foo.d.ts | 1 + .../expectedOutput-3.9/lib/foo.js | 4 + .../expectedOutput-3.9/lib/index.d.ts | 6 + .../expectedOutput-3.9/lib/index.js | 10 + .../lib/tsconfig.tsbuildinfo | 65 ++++ .../expectedOutput-3.9/output.txt | 18 +- .../expectedOutput-transpile-3.9/lib/foo.d.ts | 1 + .../expectedOutput-transpile-3.9/lib/foo.js | 4 + .../lib/index.d.ts | 6 + .../expectedOutput-transpile-3.9/lib/index.js | 10 + .../lib/tsconfig.tsbuildinfo | 65 ++++ .../expectedOutput-transpile-3.9/output.txt | 18 +- .../lib/tsconfig.json | 3 +- .../tsconfig.json | 15 +- .../expectedOutput-3.9/lib/index.d.ts | 5 + .../expectedOutput-3.9/lib/index.js | 9 + .../expectedOutput-3.9/lib/index.js.map | 1 + .../lib/tsconfig.tsbuildinfo | 56 ++++ .../expectedOutput-3.9/output.txt | 14 +- .../lib/index.d.ts | 5 + .../expectedOutput-transpile-3.9/lib/index.js | 9 + .../lib/index.js.map | 1 + .../lib/tsconfig.tsbuildinfo | 56 ++++ .../expectedOutput-transpile-3.9/output.txt | 14 +- .../lib/tsconfig.json | 3 +- .../projectReferencesNotBuilt/tsconfig.json | 15 +- .../expectedOutput-3.9/app.d.ts | 1 + .../expectedOutput-3.9/output.txt | 18 +- .../expectedOutput-3.9/tsconfig.tsbuildinfo | 57 ++++ .../expectedOutput-transpile-3.9/output.txt | 14 +- .../expectedOutput-3.9/lib/index.d.ts | 5 + .../expectedOutput-3.9/lib/index.js | 9 + .../expectedOutput-3.9/lib/index.js.map | 1 + .../lib/tsconfig.tsbuildinfo | 56 ++++ .../expectedOutput-3.9/output.txt | 16 +- .../lib/index.d.ts | 5 + .../expectedOutput-transpile-3.9/lib/index.js | 9 + .../lib/index.js.map | 1 + .../lib/tsconfig.tsbuildinfo | 56 ++++ .../expectedOutput-transpile-3.9/output.txt | 14 +- .../lib/tsconfig.json | 3 +- .../tsconfig.json | 15 +- .../expectedOutput-3.9/app.d.ts | 1 + .../expectedOutput-3.9/output.txt | 20 +- .../expectedOutput-3.9/tsconfig.tsbuildinfo | 57 ++++ .../expectedOutput-transpile-3.9/output.txt | 14 +- .../expectedOutput-3.9/output.txt | 16 +- .../expectedOutput-transpile-3.9/output.txt | 14 +- .../lib/tsconfig.json | 3 +- .../tsconfig.json | 15 +- .../expectedOutput-3.9/app.d.ts | 1 + .../expectedOutput-3.9/output.txt | 16 +- .../expectedOutput-3.9/tsconfig.tsbuildinfo | 48 +++ .../lib/tsconfig.json | 3 +- .../tsconfig.json | 15 +- .../expectedOutput-3.9/app.d.ts | 1 + .../expectedOutput-3.9/output.txt | 16 +- .../expectedOutput-3.9/tsconfig.tsbuildinfo | 48 +++ .../expectedOutput-3.9/output.txt | 14 +- .../expectedOutput-transpile-3.9/output.txt | 14 +- .../expectedOutput-3.9/lib/out/index.d.ts | 5 + .../expectedOutput-3.9/lib/out/index.js | 9 + .../expectedOutput-3.9/lib/out/index.js.map | 1 + .../lib/out/tsconfig.tsbuildinfo | 57 ++++ .../expectedOutput-3.9/output.txt | 14 +- .../lib/out/index.d.ts | 5 + .../lib/out/index.js | 9 + .../lib/out/index.js.map | 1 + .../lib/out/tsconfig.tsbuildinfo | 57 ++++ .../expectedOutput-transpile-3.9/output.txt | 14 +- .../projectReferencesOutDir/lib/tsconfig.json | 3 +- .../projectReferencesOutDir/tsconfig.json | 15 +- .../expectedOutput-3.9/lib/out/index.d.ts | 5 + .../expectedOutput-3.9/lib/out/index.js | 9 + .../expectedOutput-3.9/lib/out/index.js.map | 1 + .../lib/out/tsconfig.tsbuildinfo | 57 ++++ .../expectedOutput-3.9/output.txt | 14 +- .../patch0/lib/out/index.d.ts | 6 + .../patch0/lib/out/index.js | 10 + .../patch0/lib/out/index.js.map | 1 + .../patch0/lib/out/tsconfig.tsbuildinfo | 57 ++++ .../expectedOutput-3.9/patch0/output.txt | 14 +- .../patch3/lib/out/index.d.ts | 7 + .../patch3/lib/out/index.js | 11 + .../patch3/lib/out/index.js.map | 1 + .../patch3/lib/out/tsconfig.tsbuildinfo | 57 ++++ .../expectedOutput-3.9/patch3/output.txt | 14 +- .../lib/out/index.d.ts | 5 + .../lib/out/index.js | 9 + .../lib/out/index.js.map | 1 + .../lib/out/tsconfig.tsbuildinfo | 57 ++++ .../expectedOutput-transpile-3.9/output.txt | 14 +- .../patch0/lib/out/index.d.ts | 6 + .../patch0/lib/out/index.js | 10 + .../patch0/lib/out/index.js.map | 1 + .../patch0/lib/out/tsconfig.tsbuildinfo | 57 ++++ .../patch0/output.txt | 14 +- .../patch3/lib/out/index.d.ts | 7 + .../patch3/lib/out/index.js | 11 + .../patch3/lib/out/index.js.map | 1 + .../patch3/lib/out/tsconfig.tsbuildinfo | 57 ++++ .../patch3/output.txt | 14 +- .../lib/tsconfig.json | 3 +- .../tsconfig.json | 15 +- .../patch0/lib/out/index.d.ts | 6 + .../patch0/lib/out/index.js | 10 + .../patch0/lib/out/index.js.map | 1 + .../patch0/lib/out/tsconfig.tsbuildinfo | 57 ++++ .../expectedOutput-3.9/patch0/output.txt | 14 +- .../patch3/lib/out/index.d.ts | 7 + .../patch3/lib/out/index.js | 11 + .../patch3/lib/out/index.js.map | 1 + .../patch3/lib/out/tsconfig.tsbuildinfo | 57 ++++ .../expectedOutput-3.9/patch3/output.txt | 14 +- .../patch3/lib/out/index.d.ts | 7 + .../patch3/lib/out/index.js | 11 + .../patch3/lib/out/index.js.map | 1 + .../patch3/lib/out/tsconfig.tsbuildinfo | 57 ++++ .../patch3/output.txt | 14 +- .../lib/tsconfig.json | 3 +- .../tsconfig.json | 15 +- .../expectedOutput-3.9/lib/out/index.d.ts | 5 + .../expectedOutput-3.9/lib/out/index.js | 6 + .../expectedOutput-3.9/lib/out/index.js.map | 1 + .../lib/tsconfig.tsbuildinfo | 293 ++++++++++++++++++ .../expectedOutput-3.9/output.txt | 12 +- .../lib/out/index.d.ts | 5 + .../lib/out/index.js | 6 + .../lib/out/index.js.map | 1 + .../lib/tsconfig.tsbuildinfo | 293 ++++++++++++++++++ .../expectedOutput-transpile-3.9/output.txt | 12 +- .../lib/tsconfig.json | 3 +- .../projectReferencesRootDir/tsconfig.json | 3 +- .../expectedOutput-3.9/lib/out/index.d.ts | 5 + .../expectedOutput-3.9/lib/out/index.js | 6 + .../expectedOutput-3.9/lib/out/index.js.map | 1 + .../lib/tsconfig.tsbuildinfo | 293 ++++++++++++++++++ .../expectedOutput-3.9/output.txt | 12 +- .../lib/out/index.d.ts | 5 + .../lib/out/index.js | 6 + .../lib/out/index.js.map | 1 + .../lib/tsconfig.tsbuildinfo | 293 ++++++++++++++++++ .../expectedOutput-transpile-3.9/output.txt | 12 +- .../lib/tsconfig.json | 3 +- .../tsconfig.json | 3 +- .../app/tsconfig.json | 3 +- .../app/webpack.config.js | 3 +- .../{bundle.js => app/dist/index.js} | 0 .../expectedOutput-3.9/lib/dist/index.d.ts | 1 + .../expectedOutput-3.9/lib/dist/index.js | 4 + .../lib/tsconfig.tsbuildinfo | 57 ++++ .../expectedOutput-3.9/output.txt | 14 +- .../{bundle.js => app/dist/index.js} | 0 .../lib/dist/index.d.ts | 1 + .../lib/dist/index.js | 4 + .../lib/tsconfig.tsbuildinfo | 57 ++++ .../expectedOutput-transpile-3.9/output.txt | 12 +- .../lib/tsconfig.json | 3 +- .../expectedOutput-3.9/bundle.js | 101 ------ .../expectedOutput-3.9/output.txt | 14 +- .../expectedOutput-transpile-3.9/bundle.js | 101 ------ .../expectedOutput-transpile-3.9/output.txt | 12 +- .../expectedOutput-3.9/lib/index.d.ts | 5 + .../expectedOutput-3.9/lib/index.js | 9 + .../expectedOutput-3.9/lib/index.js.map | 1 + .../lib/tsconfig.tsbuildinfo | 56 ++++ .../expectedOutput-3.9/output.txt | 14 +- .../expectedOutput-3.9/patch0/lib/index.d.ts | 6 + .../expectedOutput-3.9/patch0/lib/index.js | 10 + .../patch0/lib/index.js.map | 1 + .../patch0/lib/tsconfig.tsbuildinfo | 56 ++++ .../expectedOutput-3.9/patch0/output.txt | 14 +- .../expectedOutput-3.9/patch3/lib/index.d.ts | 7 + .../expectedOutput-3.9/patch3/lib/index.js | 11 + .../patch3/lib/index.js.map | 1 + .../patch3/lib/tsconfig.tsbuildinfo | 56 ++++ .../expectedOutput-3.9/patch3/output.txt | 14 +- .../lib/index.d.ts | 5 + .../expectedOutput-transpile-3.9/lib/index.js | 9 + .../lib/index.js.map | 1 + .../lib/tsconfig.tsbuildinfo | 56 ++++ .../expectedOutput-transpile-3.9/output.txt | 14 +- .../patch0/lib/index.d.ts | 6 + .../patch0/lib/index.js | 10 + .../patch0/lib/index.js.map | 1 + .../patch0/lib/tsconfig.tsbuildinfo | 56 ++++ .../patch0/output.txt | 14 +- .../patch3/lib/index.d.ts | 7 + .../patch3/lib/index.js | 11 + .../patch3/lib/index.js.map | 1 + .../patch3/lib/tsconfig.tsbuildinfo | 56 ++++ .../patch3/output.txt | 14 +- .../projectReferencesWatch/lib/tsconfig.json | 3 +- .../projectReferencesWatch/tsconfig.json | 15 +- .../expectedOutput-3.9/lib/helper.d.ts | 5 + .../expectedOutput-3.9/lib/helper.js | 9 + .../expectedOutput-3.9/lib/helper.js.map | 1 + .../expectedOutput-3.9/lib/index.d.ts | 5 + .../expectedOutput-3.9/lib/index.js | 10 + .../expectedOutput-3.9/lib/index.js.map | 1 + .../lib/tsconfig.tsbuildinfo | 66 ++++ .../expectedOutput-3.9/output.txt | 22 +- .../expectedOutput-3.9/patch0/lib/helper.d.ts | 6 + .../expectedOutput-3.9/patch0/lib/helper.js | 10 + .../patch0/lib/helper.js.map | 1 + .../expectedOutput-3.9/patch0/lib/index.d.ts | 5 + .../expectedOutput-3.9/patch0/lib/index.js | 10 + .../patch0/lib/index.js.map | 1 + .../patch0/lib/tsconfig.tsbuildinfo | 66 ++++ .../expectedOutput-3.9/patch0/output.txt | 22 +- .../lib/helper.d.ts | 5 + .../lib/helper.js | 9 + .../lib/helper.js.map | 1 + .../lib/index.d.ts | 5 + .../expectedOutput-transpile-3.9/lib/index.js | 10 + .../lib/index.js.map | 1 + .../lib/tsconfig.tsbuildinfo | 66 ++++ .../expectedOutput-transpile-3.9/output.txt | 22 +- .../patch0/lib/helper.d.ts | 6 + .../patch0/lib/helper.js | 10 + .../patch0/lib/helper.js.map | 1 + .../patch0/lib/index.d.ts | 5 + .../patch0/lib/index.js | 10 + .../patch0/lib/index.js.map | 1 + .../patch0/lib/tsconfig.tsbuildinfo | 66 ++++ .../patch0/output.txt | 22 +- .../lib/tsconfig.json | 3 +- .../tsconfig.json | 15 +- .../expectedOutput-3.9/patch0/lib/helper.d.ts | 5 + .../expectedOutput-3.9/patch0/lib/helper.js | 9 + .../patch0/lib/helper.js.map | 1 + .../expectedOutput-3.9/patch0/lib/index.d.ts | 6 + .../expectedOutput-3.9/patch0/lib/index.js | 11 + .../patch0/lib/index.js.map | 1 + .../patch0/lib/tsconfig.tsbuildinfo | 66 ++++ .../expectedOutput-3.9/patch0/output.txt | 22 +- .../expectedOutput-3.9/patch1/lib/helper.d.ts | 6 + .../expectedOutput-3.9/patch1/lib/helper.js | 10 + .../patch1/lib/helper.js.map | 1 + .../expectedOutput-3.9/patch1/lib/index.d.ts | 6 + .../expectedOutput-3.9/patch1/lib/index.js | 11 + .../patch1/lib/index.js.map | 1 + .../patch1/lib/tsconfig.tsbuildinfo | 66 ++++ .../expectedOutput-3.9/patch1/output.txt | 22 +- .../patch0/lib/helper.d.ts | 5 + .../patch0/lib/helper.js | 9 + .../patch0/lib/helper.js.map | 1 + .../patch0/lib/index.d.ts | 6 + .../patch0/lib/index.js | 11 + .../patch0/lib/index.js.map | 1 + .../patch0/lib/tsconfig.tsbuildinfo | 66 ++++ .../patch0/output.txt | 22 +- .../patch1/lib/helper.d.ts | 6 + .../patch1/lib/helper.js | 10 + .../patch1/lib/helper.js.map | 1 + .../patch1/lib/index.d.ts | 6 + .../patch1/lib/index.js | 11 + .../patch1/lib/index.js.map | 1 + .../patch1/lib/tsconfig.tsbuildinfo | 66 ++++ .../patch1/output.txt | 22 +- .../lib/tsconfig.json | 3 +- .../tsconfig.json | 15 +- .../expectedOutput-3.9/app.d.ts | 1 + .../expectedOutput-3.9/output.txt | 12 +- .../expectedOutput-3.9/patch0/app.d.ts | 1 + .../expectedOutput-3.9/patch0/output.txt | 24 +- .../expectedOutput-3.9/patch1/app.d.ts | 1 + .../expectedOutput-3.9/patch1/output.txt | 24 +- .../expectedOutput-3.9/patch2/app.d.ts | 1 + .../expectedOutput-3.9/patch2/output.txt | 10 +- .../expectedOutput-3.9/tsconfig.tsbuildinfo | 57 ++++ .../patch0/output.txt | 22 +- .../patch1/output.txt | 22 +- .../expectedOutput-3.9/patch0/output.txt | 22 +- .../expectedOutput-3.9/patch1/output.txt | 22 +- .../patch0/output.txt | 22 +- .../patch1/output.txt | 22 +- .../expectedOutput-3.9/app.d.ts | 1 + .../expectedOutput-3.9/output.txt | 26 +- .../expectedOutput-3.9/patch0/app.d.ts | 1 + .../expectedOutput-3.9/patch0/output.txt | 24 +- .../expectedOutput-3.9/patch1/app.d.ts | 1 + .../expectedOutput-3.9/patch1/output.txt | 10 +- .../expectedOutput-3.9/tsconfig.tsbuildinfo | 57 ++++ .../expectedOutput-transpile-3.9/output.txt | 22 +- .../patch0/output.txt | 22 +- .../expectedOutput-3.9/output.txt | 22 +- .../expectedOutput-3.9/patch0/output.txt | 22 +- .../expectedOutput-transpile-3.9/output.txt | 22 +- .../patch0/output.txt | 22 +- .../expectedOutput-3.9/app.d.ts | 1 + .../expectedOutput-3.9/output.txt | 18 +- .../expectedOutput-3.9/patch0/app.d.ts | 1 + .../expectedOutput-3.9/patch0/output.txt | 16 +- .../expectedOutput-3.9/patch1/app.d.ts | 1 + .../expectedOutput-3.9/patch1/output.txt | 8 +- .../expectedOutput-3.9/patch2/app.d.ts | 1 + .../expectedOutput-3.9/patch2/output.txt | 16 +- .../expectedOutput-3.9/patch3/app.d.ts | 1 + .../expectedOutput-3.9/patch3/output.txt | 16 +- .../expectedOutput-3.9/patch4/app.d.ts | 1 + .../expectedOutput-3.9/patch4/output.txt | 8 +- .../expectedOutput-3.9/patch5/app.d.ts | 1 + .../expectedOutput-3.9/patch5/output.txt | 8 +- .../expectedOutput-3.9/tsconfig.tsbuildinfo | 57 ++++ .../expectedOutput-transpile-3.9/output.txt | 14 +- .../patch0/output.txt | 14 +- .../patch3/output.txt | 14 +- .../expectedOutput-3.9/output.txt | 14 +- .../expectedOutput-3.9/patch0/output.txt | 14 +- .../expectedOutput-3.9/patch3/output.txt | 16 +- .../expectedOutput-transpile-3.9/output.txt | 14 +- .../patch0/output.txt | 14 +- .../patch3/output.txt | 14 +- .../expectedOutput-3.9/app.d.ts | 1 + .../expectedOutput-3.9/output.txt | 6 +- 407 files changed, 6447 insertions(+), 1134 deletions(-) rename test/comparison-tests/declarationOutput/expectedOutput-3.9/{ => .output}/app.d.ts (100%) rename test/comparison-tests/declarationOutput/expectedOutput-3.9/{ => .output}/sub/dep.d.ts (100%) rename test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/{ => .output}/app.d.ts (100%) rename test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/{ => .output}/app.d.ts.map (100%) rename test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/{ => .output}/sub/dep.d.ts (100%) rename test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/{ => .output}/sub/dep.d.ts.map (100%) create mode 100644 test/comparison-tests/projectReferences/expectedOutput-3.9/lib/index.d.ts create mode 100644 test/comparison-tests/projectReferences/expectedOutput-3.9/lib/index.js create mode 100644 test/comparison-tests/projectReferences/expectedOutput-3.9/lib/index.js.map create mode 100644 test/comparison-tests/projectReferences/expectedOutput-3.9/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/index.d.ts create mode 100644 test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/index.js create mode 100644 test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/index.js.map create mode 100644 test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/common/index.d.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/common/index.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/common/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/fileWithError.d.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/fileWithError.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/index.d.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/index.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/fileWithError.d.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/fileWithError.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/index.d.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/index.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/utils/index.d.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/utils/index.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/utils/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/unreferenced/index.d.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/unreferenced/index.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/unreferenced/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/unreferencedIndirect/index.d.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/unreferencedIndirect/index.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/unreferencedIndirect/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferenced/index.d.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferenced/index.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferenced/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferencedIndirect/index.d.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferencedIndirect/index.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferencedIndirect/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/common/index.d.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/common/index.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/fileWithError.d.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/fileWithError.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/index.d.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/index.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/fileWithError.d.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/fileWithError.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/index.d.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/index.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/utils/index.d.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/utils/index.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/utils/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/unreferencedIndirect/index.d.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/unreferencedIndirect/index.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/unreferencedIndirect/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferenced/index.d.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferenced/index.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferenced/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferencedIndirect/index.d.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferencedIndirect/index.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferencedIndirect/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/foo.d.ts create mode 100644 test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/foo.js create mode 100644 test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/index.d.ts create mode 100644 test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/index.js create mode 100644 test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/foo.d.ts create mode 100644 test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/foo.js create mode 100644 test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/index.d.ts create mode 100644 test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/index.js create mode 100644 test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/index.d.ts create mode 100644 test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/index.js create mode 100644 test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/index.js.map create mode 100644 test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/index.d.ts create mode 100644 test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/index.js create mode 100644 test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/index.js.map create mode 100644 test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/app.d.ts create mode 100644 test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/index.d.ts create mode 100644 test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/index.js create mode 100644 test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/index.js.map create mode 100644 test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/index.d.ts create mode 100644 test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/index.js create mode 100644 test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/index.js.map create mode 100644 test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/app.d.ts create mode 100644 test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-3.9/app.d.ts create mode 100644 test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-3.9/app.d.ts create mode 100644 test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/index.d.ts create mode 100644 test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/index.js create mode 100644 test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/index.js.map create mode 100644 test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/index.d.ts create mode 100644 test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/index.js create mode 100644 test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/index.js.map create mode 100644 test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/index.d.ts create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/index.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/index.js.map create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/index.d.ts create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/index.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/index.js.map create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/index.d.ts create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/index.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/index.js.map create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/index.d.ts create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/index.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/index.js.map create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/index.d.ts create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/index.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/index.js.map create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/index.d.ts create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/index.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/index.js.map create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/index.d.ts create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/index.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/index.js.map create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/index.d.ts create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/index.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/index.js.map create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/index.d.ts create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/index.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/index.js.map create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/out/index.d.ts create mode 100644 test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/out/index.js create mode 100644 test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/out/index.js.map create mode 100644 test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/out/index.d.ts create mode 100644 test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/out/index.js create mode 100644 test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/out/index.js.map create mode 100644 test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/out/index.d.ts create mode 100644 test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/out/index.js create mode 100644 test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/out/index.js.map create mode 100644 test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/out/index.d.ts create mode 100644 test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/out/index.js create mode 100644 test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/out/index.js.map create mode 100644 test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo rename test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/{bundle.js => app/dist/index.js} (100%) create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.d.ts create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.js create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/tsconfig.tsbuildinfo rename test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/{bundle.js => app/dist/index.js} (100%) create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.d.ts create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.js create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo delete mode 100644 test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/bundle.js delete mode 100644 test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/bundle.js create mode 100644 test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/index.d.ts create mode 100644 test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/index.js create mode 100644 test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/index.js.map create mode 100644 test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/index.d.ts create mode 100644 test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/index.js create mode 100644 test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/index.js.map create mode 100644 test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/index.d.ts create mode 100644 test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/index.js create mode 100644 test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/index.js.map create mode 100644 test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/index.d.ts create mode 100644 test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/index.js create mode 100644 test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/index.js.map create mode 100644 test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/index.d.ts create mode 100644 test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/index.js create mode 100644 test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/index.js.map create mode 100644 test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/index.d.ts create mode 100644 test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/index.js create mode 100644 test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/index.js.map create mode 100644 test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/helper.d.ts create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/helper.js create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/helper.js.map create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/index.d.ts create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/index.js create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/index.js.map create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/helper.d.ts create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/helper.js create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/helper.js.map create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/index.d.ts create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/index.js create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/index.js.map create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/helper.d.ts create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/helper.js create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/helper.js.map create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/index.d.ts create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/index.js create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/index.js.map create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/helper.d.ts create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/helper.js create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/helper.js.map create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/index.d.ts create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/index.js create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/index.js.map create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/helper.d.ts create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/helper.js create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/helper.js.map create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/index.d.ts create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/index.js create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/index.js.map create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/helper.d.ts create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/helper.js create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/helper.js.map create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/index.d.ts create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/index.js create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/index.js.map create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/helper.d.ts create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/helper.js create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/helper.js.map create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/index.d.ts create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/index.js create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/index.js.map create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/helper.d.ts create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/helper.js create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/helper.js.map create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/index.d.ts create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/index.js create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/index.js.map create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/app.d.ts create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/app.d.ts create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch1/app.d.ts create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch2/app.d.ts create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/app.d.ts create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch0/app.d.ts create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch1/app.d.ts create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/app.d.ts create mode 100644 test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/app.d.ts create mode 100644 test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch1/app.d.ts create mode 100644 test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch2/app.d.ts create mode 100644 test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/app.d.ts create mode 100644 test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch4/app.d.ts create mode 100644 test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch5/app.d.ts create mode 100644 test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/resolveJsonModule/expectedOutput-3.9/app.d.ts diff --git a/.gitignore b/.gitignore index 560f60038..e3e7e5b3f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ /*.js !index.js /src/*.js +/src/.vscode /*.d.ts /*.log *.js.map @@ -10,11 +11,12 @@ npm-debug.log /test/execution-tests/**/typings !/test/**/expectedOutput-*/** /**/node_modules -/**/dist +/dist /**/.happypack /**/.cache-loader !build.js /**/debug.log .pnp .pnp.js -!.eslintrc.js \ No newline at end of file +!.eslintrc.js +.vs/** \ No newline at end of file diff --git a/test/comparison-tests/create-and-execute-test.js b/test/comparison-tests/create-and-execute-test.js index 64e0ec536..81abbe345 100644 --- a/test/comparison-tests/create-and-execute-test.js +++ b/test/comparison-tests/create-and-execute-test.js @@ -95,12 +95,12 @@ function createTest(test, testPath, options) { const configPath = path.resolve(paths.testStagingPath, "tsconfig.json"); const config = JSON.parse(fs.readFileSync(configPath, "utf8")); config.files = [ "./app.ts"]; - config.compilerOptions = { composite: true }; + config.compilerOptions = { ...(config.compilerOptions || {}), composite: true }; fs.writeFileSync(configPath, JSON.stringify(config, /*replacer*/ undefined, " ")); } } copySync(testPath, paths.testStagingPath); - if (testPath.match("SymLinks")) { + if (test.match("SymLinks")) { // Setup symlinks mkdirp.sync(path.resolve(paths.testStagingPath, "node_modules")); fs.symlinkSync(path.resolve(paths.testStagingPath, "lib"), path.resolve(paths.testStagingPath, "node_modules/lib"), "junction"); @@ -112,7 +112,6 @@ function createTest(test, testPath, options) { // ensure output directories mkdirp.sync(paths.actualOutput); - mkdirp.sync(paths.webpackOutput); // Need to wait > FS_ACCURACY as defined in watchpack. @@ -145,8 +144,8 @@ function createPaths(stagingPath, test, options) { testStagingPath: testStagingPath, actualOutput: path.join(testStagingPath, 'actualOutput'), expectedOutput: path.join(testStagingPath, 'expectedOutput-' + transpilePath + typescriptVersion), - webpackOutput: path.join(testStagingPath, '.output'), - originalExpectedOutput: path.join(testPath, 'expectedOutput-' + transpilePath + typescriptVersion) + originalExpectedOutput: path.join(testPath, 'expectedOutput-' + transpilePath + typescriptVersion), + outputPath: testStagingPath, }; } @@ -162,6 +161,7 @@ function createWebpackConfig(paths, optionsOriginal, useWatchApi) { if (!config) { subFolder = "app"; config = require(path.join(paths.testStagingPath, subFolder, 'webpack.config')); + paths.outputPath = path.join(paths.testStagingPath, subFolder); } const extraOptionMaybe = extraOption ? { [extraOption]: true } : {}; @@ -176,9 +176,9 @@ function createWebpackConfig(paths, optionsOriginal, useWatchApi) { const tsLoaderPath = path.join(__dirname, "../../index.js"); aliasLoader(config, tsLoaderPath, options); - - config.output.path = paths.webpackOutput; - config.context = path.join(paths.testStagingPath, subFolder); + + config.context = paths.outputPath; + paths.outputPath = config.output.path = config.output.path || paths.outputPath; config.resolveLoader = config.resolveLoader || {}; config.resolveLoader.alias = config.resolveLoader.alias || {}; config.resolveLoader.alias.newLine = path.join(__dirname, 'newline.loader.js'); @@ -193,14 +193,10 @@ function createWebpackWatchHandler(done, paths, testState, options, test) { return function (err, stats) { const patch = setPathsAndGetPatch(paths, testState, options); - cleanHashFromOutput(stats, paths.webpackOutput); - - copySync(paths.webpackOutput, paths.actualOutput); - rimraf.sync(paths.webpackOutput); - handleErrors(err, paths); storeStats(stats, testState, paths); + cleanHashFromOutput(stats, paths.actualOutput); compareFiles(paths, test, patch); @@ -246,6 +242,13 @@ function storeStats(stats, testState, paths) { // do a little magic to normalize `\` to `/` for asset output const newAssets = {}; Object.keys(stats.compilation.assets).forEach(function (asset) { + if (stats.compilation.assets[asset].emitted) { + const diskAssetPath = path.join(paths.outputPath, asset); + const newPath = path.join(paths.actualOutput, path.relative(paths.testStagingPath, diskAssetPath)); + if (diskAssetPath !== newPath) { + fs.copySync(diskAssetPath, newPath); + } + } newAssets[asset.replace(/\\/g, "/")] = stats.compilation.assets[asset]; }); stats.compilation.assets = newAssets; @@ -264,7 +267,7 @@ function storeStats(stats, testState, paths) { function compareFiles(paths, test, patch) { if (saveOutputMode) { - const actualFiles = glob.sync('**/*', { cwd: paths.actualOutput, nodir: true }); + const actualFiles = glob.sync('**/*', { cwd: paths.actualOutput, nodir: true, dot: true }); actualFiles.forEach(function (file) { const actual = getNormalisedFileContent(file, paths.actualOutput); const expected = getNormalisedFileContent(file, paths.expectedOutput); @@ -275,8 +278,8 @@ function compareFiles(paths, test, patch) { } else { // compare actual to expected - const actualFiles = glob.sync('**/*', { cwd: paths.actualOutput, nodir: true }), - expectedFiles = glob.sync('**/*', { cwd: paths.expectedOutput, nodir: true }) + const actualFiles = glob.sync('**/*', { cwd: paths.actualOutput, nodir: true, dot: true }), + expectedFiles = glob.sync('**/*', { cwd: paths.expectedOutput, nodir: true, dot: true }) .filter(function (file) { return !/^patch/.test(file); }), allFiles = {}; @@ -340,7 +343,24 @@ function getNormalisedFileContent(file, location) { let fileContent; const filePath = path.join(location, file); try { - const originalContent = fs.readFileSync(filePath).toString(); + let originalContent = fs.readFileSync(filePath).toString(); + if (filePath.endsWith(".tsbuildinfo")) { + try { + const json = JSON.parse(originalContent); + json.version = "FakeTsVersion"; + const fileInfos = json.program && json.program.fileInfos; + if (fileInfos) { + Object.keys(fileInfos).forEach(fileInfoName => { + if (fileInfoName.indexOf("typescript") !== -1) { + fileInfos[fileInfoName] = { version: fileInfoName, signature: fileInfoName, affectsGlobalScope: fileInfos[fileInfoName].affectsGlobalScope }; + } + }); + } + originalContent = JSON.stringify(json, undefined, 2); + } + catch { + } + } fileContent = (file.indexOf('output.') === 0 ? normaliseString(originalContent) // Built at: 2/15/2018 8:33:18 PM diff --git a/test/comparison-tests/declarationOutput/expectedOutput-3.9/app.d.ts b/test/comparison-tests/declarationOutput/expectedOutput-3.9/.output/app.d.ts similarity index 100% rename from test/comparison-tests/declarationOutput/expectedOutput-3.9/app.d.ts rename to test/comparison-tests/declarationOutput/expectedOutput-3.9/.output/app.d.ts diff --git a/test/comparison-tests/declarationOutput/expectedOutput-3.9/sub/dep.d.ts b/test/comparison-tests/declarationOutput/expectedOutput-3.9/.output/sub/dep.d.ts similarity index 100% rename from test/comparison-tests/declarationOutput/expectedOutput-3.9/sub/dep.d.ts rename to test/comparison-tests/declarationOutput/expectedOutput-3.9/.output/sub/dep.d.ts diff --git a/test/comparison-tests/declarationOutput/expectedOutput-3.9/output.txt b/test/comparison-tests/declarationOutput/expectedOutput-3.9/output.txt index 411feb2ac..982aed14b 100644 --- a/test/comparison-tests/declarationOutput/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/declarationOutput/expectedOutput-3.9/output.txt @@ -1,7 +1,7 @@ - Asset Size Chunks Chunk Names - bundle.js 5.14 KiB main [emitted] main - app.d.ts 110 bytes [emitted] -sub/dep.d.ts 63 bytes [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.14 KiB main [emitted] main + .output/app.d.ts 110 bytes [emitted] +.output/sub/dep.d.ts 63 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 911 bytes {main} [built] [./sub/dep.ts] 182 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/app.d.ts b/test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/.output/app.d.ts similarity index 100% rename from test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/app.d.ts rename to test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/.output/app.d.ts diff --git a/test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/app.d.ts.map b/test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/.output/app.d.ts.map similarity index 100% rename from test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/app.d.ts.map rename to test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/.output/app.d.ts.map diff --git a/test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/sub/dep.d.ts b/test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/.output/sub/dep.d.ts similarity index 100% rename from test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/sub/dep.d.ts rename to test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/.output/sub/dep.d.ts diff --git a/test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/sub/dep.d.ts.map b/test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/.output/sub/dep.d.ts.map similarity index 100% rename from test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/sub/dep.d.ts.map rename to test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/.output/sub/dep.d.ts.map diff --git a/test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/output.txt b/test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/output.txt index 2e52c2fdf..5f803c7c4 100644 --- a/test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 5.14 KiB main [emitted] main - app.d.ts.map 197 bytes [emitted] - app.d.ts 143 bytes [emitted] -sub/dep.d.ts.map 152 bytes [emitted] - sub/dep.d.ts 96 bytes [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.14 KiB main [emitted] main + .output/app.d.ts.map 197 bytes [emitted] + .output/app.d.ts 143 bytes [emitted] +.output/sub/dep.d.ts.map 152 bytes [emitted] + .output/sub/dep.d.ts 96 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 911 bytes {main} [built] [./sub/dep.ts] 182 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/index.d.ts b/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/index.js b/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/index.js new file mode 100644 index 000000000..e352a1efb --- /dev/null +++ b/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/index.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/index.js.map b/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/index.js.map new file mode 100644 index 000000000..d40fd63b7 --- /dev/null +++ b/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..e06f978c9 --- /dev/null +++ b/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,56 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferences/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferences/expectedOutput-3.9/output.txt index 6a42c7a13..26473acfa 100644 --- a/test/comparison-tests/projectReferences/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferences/expectedOutput-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.32 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/index.d.ts b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/index.js b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/index.js new file mode 100644 index 000000000..e352a1efb --- /dev/null +++ b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/index.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/index.js.map b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/index.js.map new file mode 100644 index 000000000..d40fd63b7 --- /dev/null +++ b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..e06f978c9 --- /dev/null +++ b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,56 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/output.txt index 9af9848b3..a3e931cac 100644 --- a/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.33 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferences/lib/tsconfig.json b/test/comparison-tests/projectReferences/lib/tsconfig.json index 506c325eb..8469a0937 100644 --- a/test/comparison-tests/projectReferences/lib/tsconfig.json +++ b/test/comparison-tests/projectReferences/lib/tsconfig.json @@ -1,7 +1,8 @@ { "compilerOptions": { "composite": true, - "sourceMap": true + "sourceMap": true, + "types": [] }, "files": [ "./index.ts" diff --git a/test/comparison-tests/projectReferences/tsconfig.json b/test/comparison-tests/projectReferences/tsconfig.json index 6d9798ff7..930f83544 100644 --- a/test/comparison-tests/projectReferences/tsconfig.json +++ b/test/comparison-tests/projectReferences/tsconfig.json @@ -1,8 +1,11 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" } - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/common/tsconfig.json b/test/comparison-tests/projectReferencesMultiple/common/tsconfig.json index 7f8ad846d..0710dd495 100644 --- a/test/comparison-tests/projectReferencesMultiple/common/tsconfig.json +++ b/test/comparison-tests/projectReferencesMultiple/common/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { "composite": true, + "types": [] } } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/common/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/common/index.d.ts new file mode 100644 index 000000000..78cb4cd49 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/common/index.d.ts @@ -0,0 +1 @@ +export declare function common(): number; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/common/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/common/index.js new file mode 100644 index 000000000..c561b2cc0 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/common/index.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.common = void 0; +function common() { + return 30; +} +exports.common = common; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/common/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/common/tsconfig.tsbuildinfo new file mode 100644 index 000000000..33ab9a22e --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/common/tsconfig.tsbuildinfo @@ -0,0 +1,55 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "83a8bcfe78ca61ceac765c205ef0435e93f65e7bc386ea12d21e0c963a7e824e", + "signature": "9a693929ea8d5a70b61b9defd10fa182f10413470eb5011dc5a34846b246816d", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/output.txt index b4b54ccfe..6295cfea9 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/output.txt @@ -1,14 +1,14 @@ - Asset Size Chunks Chunk Names - bundle.js 5.52 KiB main [emitted] main - ../common/index.js 109 bytes [emitted] - ../common/index.d.ts 43 bytes [emitted] - ../common/tsconfig.tsbuildinfo 67.4 KiB [emitted] - ../unreferencedIndirect/index.js 176 bytes [emitted] - ../unreferencedIndirect/index.d.ts 57 bytes [emitted] -../unreferencedIndirect/tsconfig.tsbuildinfo 67.4 KiB [emitted] - ../unreferenced/index.js 144 bytes [emitted] - ../unreferenced/index.d.ts 49 bytes [emitted] - ../unreferenced/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.52 KiB main [emitted] main + common/index.js 135 bytes [emitted] + common/index.d.ts 43 bytes [emitted] + common/tsconfig.tsbuildinfo 72.6 KiB [emitted] + unreferencedIndirect/index.js 216 bytes [emitted] + unreferencedIndirect/index.d.ts 57 bytes [emitted] +unreferencedIndirect/tsconfig.tsbuildinfo 72.6 KiB [emitted] + unreferenced/index.js 176 bytes [emitted] + unreferenced/index.d.ts 49 bytes [emitted] + unreferenced/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 182 bytes {main} [built] [./lib/index.ts] 483 bytes {main} [built] [failed] [1 error] @@ -31,9 +31,9 @@ Error: TypeScript emitted no output for utils\index.ts. The most common cause fo @ ./app.ts 4:14-32 ERROR in lib\fileWithError.ts -[tsl] ERROR in lib\fileWithError.ts(2,5) +[tsl] ERROR in lib\fileWithError.ts(2,5)  TS2322: Type 'false' is not assignable to type 'string'. ERROR in indirectWithError\fileWithError.ts -[tsl] ERROR in indirectWithError\fileWithError.ts(2,5) +[tsl] ERROR in indirectWithError\fileWithError.ts(2,5)  TS2322: Type 'false' is not assignable to type 'string'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/fileWithError.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/fileWithError.d.ts new file mode 100644 index 000000000..27e069e94 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/fileWithError.d.ts @@ -0,0 +1 @@ +export declare function foo(): string; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/fileWithError.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/fileWithError.js new file mode 100644 index 000000000..4cd8719c8 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/fileWithError.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.foo = void 0; +function foo() { + return "hello world"; +} +exports.foo = foo; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/index.js new file mode 100644 index 000000000..b7785ef20 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/index.js @@ -0,0 +1,8 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..5f135e690 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -0,0 +1,61 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./filewitherror.ts": { + "version": "0dda94f9fb4df4c74ff92d8109d8db2122e4c980bb13857b2a538c2ac0b33c64", + "signature": "e2ae95931a4ae77b2a4b0ab6d012584f6eaa59c372e2037e011534f53239d15d", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./filewitherror.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/output.txt index 9ef535ec6..b4060efd6 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 5.14 KiB main [emitted] main - ../lib/fileWithError.js 111 bytes [emitted] - ../lib/fileWithError.d.ts 40 bytes [emitted] - ../lib/index.js 104 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.17 KiB main [emitted] main + lib/fileWithError.js 134 bytes [emitted] + lib/fileWithError.d.ts 40 bytes [emitted] + lib/index.js 127 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 182 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] +[./lib/index.ts] 127 bytes {main} [built] [./utils/index.ts] 485 bytes {main} [built] [failed] [1 error] ERROR in ./utils/index.ts @@ -19,5 +19,5 @@ Error: TypeScript emitted no output for utils\index.ts. The most common cause fo @ ./app.ts 4:14-32 ERROR in indirectWithError\fileWithError.ts -[tsl] ERROR in indirectWithError\fileWithError.ts(2,5) +[tsl] ERROR in indirectWithError\fileWithError.ts(2,5)  TS2322: Type 'false' is not assignable to type 'string'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/fileWithError.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/fileWithError.d.ts new file mode 100644 index 000000000..27e069e94 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/fileWithError.d.ts @@ -0,0 +1 @@ +export declare function foo(): string; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/fileWithError.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/fileWithError.js new file mode 100644 index 000000000..215cdeb2a --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/fileWithError.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.foo = void 0; +function foo() { + return "hello i fixed this error"; +} +exports.foo = foo; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/index.js new file mode 100644 index 000000000..b7785ef20 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/index.js @@ -0,0 +1,8 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo new file mode 100644 index 000000000..390188390 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo @@ -0,0 +1,61 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./filewitherror.ts": { + "version": "e8c36f5bf4681d8c0c1866ed04f823e66548c8a788b325b672026efb17e9a384", + "signature": "e2ae95931a4ae77b2a4b0ab6d012584f6eaa59c372e2037e011534f53239d15d", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./filewitherror.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/output.txt index 440ad1d8b..7f1b0313a 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/output.txt @@ -1,15 +1,15 @@ - Asset Size Chunks Chunk Names - bundle.js 5.24 KiB main [emitted] main - ../indirectWithError/fileWithError.js 124 bytes [emitted] - ../indirectWithError/fileWithError.d.ts 40 bytes [emitted] - ../indirectWithError/index.js 104 bytes [emitted] - ../indirectWithError/index.d.ts 89 bytes [emitted] -../indirectWithError/tsconfig.tsbuildinfo 67.8 KiB [emitted] - ../utils/index.js 152 bytes [emitted] - ../utils/index.d.ts 40 bytes [emitted] - ../utils/tsconfig.tsbuildinfo 68 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.32 KiB main [emitted] main + indirectWithError/fileWithError.js 147 bytes [emitted] + indirectWithError/fileWithError.d.ts 40 bytes [emitted] + indirectWithError/index.js 127 bytes [emitted] + indirectWithError/index.d.ts 89 bytes [emitted] +indirectWithError/tsconfig.tsbuildinfo 73 KiB [emitted] + utils/index.js 177 bytes [emitted] + utils/index.d.ts 40 bytes [emitted] + utils/tsconfig.tsbuildinfo 73.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 182 bytes {main} [built] -[./common/index.ts] 109 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} -[./utils/index.ts] 152 bytes {main} [built] \ No newline at end of file +[./common/index.ts] 135 bytes {main} [built] +[./lib/index.ts] 127 bytes {main} +[./utils/index.ts] 177 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/utils/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/utils/index.d.ts new file mode 100644 index 000000000..590545c75 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/utils/index.d.ts @@ -0,0 +1 @@ +export declare function utils(): void; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/utils/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/utils/index.js new file mode 100644 index 000000000..7cde7e732 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/utils/index.js @@ -0,0 +1,8 @@ +"use strict"; +exports.__esModule = true; +exports.utils = void 0; +var common_1 = require("../common"); +function utils() { + common_1.common(); +} +exports.utils = utils; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/utils/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/utils/tsconfig.tsbuildinfo new file mode 100644 index 000000000..75d2c4e66 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/utils/tsconfig.tsbuildinfo @@ -0,0 +1,65 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../common/index.d.ts": { + "version": "9a693929ea8d5a70b61b9defd10fa182f10413470eb5011dc5a34846b246816d", + "signature": "9a693929ea8d5a70b61b9defd10fa182f10413470eb5011dc5a34846b246816d", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "4c7e50bd7f85cc5d64f963157685ca8eb1223e12466f47c719aaf1af32173088", + "signature": "7a6477b73af7a579b3b0b83c0235fa7ad3c9b6f9e7caadb58cb42167063e57a3", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./index.ts": [ + "../common/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../common/index.d.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/output.txt index 6c8495da3..585b7847a 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/output.txt @@ -1,10 +1,10 @@ - Asset Size Chunks Chunk Names - bundle.js 5.24 KiB main [emitted] main - ../unreferenced/index.js 158 bytes [emitted] - ../unreferenced/index.d.ts 49 bytes [emitted] -../unreferenced/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.32 KiB main [emitted] main + unreferenced/index.js 190 bytes [emitted] + unreferenced/index.d.ts 49 bytes [emitted] +unreferenced/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 182 bytes {main} [built] -[./common/index.ts] 109 bytes {main} -[./lib/index.ts] 104 bytes {main} -[./utils/index.ts] 152 bytes {main} \ No newline at end of file +[./common/index.ts] 135 bytes {main} +[./lib/index.ts] 127 bytes {main} +[./utils/index.ts] 177 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/unreferenced/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/unreferenced/index.d.ts new file mode 100644 index 000000000..cd1cc7776 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/unreferenced/index.d.ts @@ -0,0 +1 @@ +export declare function unreferenced(): string; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/unreferenced/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/unreferenced/index.js new file mode 100644 index 000000000..184fe4303 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/unreferenced/index.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.unreferenced = void 0; +function unreferenced() { + return "i am unreferenced without error"; +} +exports.unreferenced = unreferenced; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/unreferenced/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/unreferenced/tsconfig.tsbuildinfo new file mode 100644 index 000000000..5571d340a --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/unreferenced/tsconfig.tsbuildinfo @@ -0,0 +1,55 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "bb8ba6128be1271d91fd80319ca81516b664c6a68b5409b2991f70018b6c9e67", + "signature": "9df66b1423d1b6b6e32097deabc9e884cd5baf6a03f5d60e3ab78206090c97c4", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/output.txt index f272ead54..e1b67f2db 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/output.txt @@ -1,10 +1,10 @@ - Asset Size Chunks Chunk Names - bundle.js 5.24 KiB main [emitted] main - ../unreferencedIndirect/index.js 192 bytes [emitted] - ../unreferencedIndirect/index.d.ts 57 bytes [emitted] -../unreferencedIndirect/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.32 KiB main [emitted] main + unreferencedIndirect/index.js 232 bytes [emitted] + unreferencedIndirect/index.d.ts 57 bytes [emitted] +unreferencedIndirect/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 182 bytes {main} [built] -[./common/index.ts] 109 bytes {main} -[./lib/index.ts] 104 bytes {main} -[./utils/index.ts] 152 bytes {main} \ No newline at end of file +[./common/index.ts] 135 bytes {main} +[./lib/index.ts] 127 bytes {main} +[./utils/index.ts] 177 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/unreferencedIndirect/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/unreferencedIndirect/index.d.ts new file mode 100644 index 000000000..a9c923d2a --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/unreferencedIndirect/index.d.ts @@ -0,0 +1 @@ +export declare function unreferencedIndirect(): string; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/unreferencedIndirect/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/unreferencedIndirect/index.js new file mode 100644 index 000000000..44db5b50e --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/unreferencedIndirect/index.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.unreferencedIndirect = void 0; +function unreferencedIndirect() { + return "i am unreferencedIndirect now fixed error"; +} +exports.unreferencedIndirect = unreferencedIndirect; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/unreferencedIndirect/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/unreferencedIndirect/tsconfig.tsbuildinfo new file mode 100644 index 000000000..a382e37b0 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/unreferencedIndirect/tsconfig.tsbuildinfo @@ -0,0 +1,55 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "25e6889f7998ef0640339eb29cd18ffe0a26a90d6ab573c95601f51593801064", + "signature": "4ef378092d53757f50da435f02bd8fbe215f1188c3978b9db24224a1cfdda817", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferenced/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferenced/index.d.ts new file mode 100644 index 000000000..cd1cc7776 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferenced/index.d.ts @@ -0,0 +1 @@ +export declare function unreferenced(): string; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferenced/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferenced/index.js new file mode 100644 index 000000000..2a6e4b7c9 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferenced/index.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.unreferenced = void 0; +function unreferenced() { + return "i am unreferenced"; +} +exports.unreferenced = unreferenced; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferenced/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferenced/tsconfig.tsbuildinfo new file mode 100644 index 000000000..9661dea5f --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferenced/tsconfig.tsbuildinfo @@ -0,0 +1,55 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "71b9a35449a6c117c0de0bc5035eb20046c4d436d28294a9d6be2c1a9920ad98", + "signature": "9df66b1423d1b6b6e32097deabc9e884cd5baf6a03f5d60e3ab78206090c97c4", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferencedIndirect/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferencedIndirect/index.d.ts new file mode 100644 index 000000000..a9c923d2a --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferencedIndirect/index.d.ts @@ -0,0 +1 @@ +export declare function unreferencedIndirect(): string; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferencedIndirect/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferencedIndirect/index.js new file mode 100644 index 000000000..87bc79753 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferencedIndirect/index.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.unreferencedIndirect = void 0; +function unreferencedIndirect() { + return "i am unreferencedIndirect"; +} +exports.unreferencedIndirect = unreferencedIndirect; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferencedIndirect/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferencedIndirect/tsconfig.tsbuildinfo new file mode 100644 index 000000000..b148de7e8 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferencedIndirect/tsconfig.tsbuildinfo @@ -0,0 +1,55 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "d2b6e2d5879e5092e979620936598256494f23e7449ca2b326a2618f9b4488c2", + "signature": "4ef378092d53757f50da435f02bd8fbe215f1188c3978b9db24224a1cfdda817", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/common/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/common/index.d.ts new file mode 100644 index 000000000..78cb4cd49 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/common/index.d.ts @@ -0,0 +1 @@ +export declare function common(): number; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/common/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/common/index.js new file mode 100644 index 000000000..c561b2cc0 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/common/index.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.common = void 0; +function common() { + return 30; +} +exports.common = common; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo new file mode 100644 index 000000000..33ab9a22e --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo @@ -0,0 +1,55 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "83a8bcfe78ca61ceac765c205ef0435e93f65e7bc386ea12d21e0c963a7e824e", + "signature": "9a693929ea8d5a70b61b9defd10fa182f10413470eb5011dc5a34846b246816d", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/output.txt index af67a7143..d18c4c1fe 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/output.txt @@ -1,23 +1,23 @@ - Asset Size Chunks Chunk Names - bundle.js 5.57 KiB main [emitted] main - ../common/index.js 109 bytes [emitted] - ../common/index.d.ts 43 bytes [emitted] - ../common/tsconfig.tsbuildinfo 67.4 KiB [emitted] - ../unreferencedIndirect/index.js 176 bytes [emitted] - ../unreferencedIndirect/index.d.ts 57 bytes [emitted] -../unreferencedIndirect/tsconfig.tsbuildinfo 67.4 KiB [emitted] - ../unreferenced/index.js 144 bytes [emitted] - ../unreferenced/index.d.ts 49 bytes [emitted] - ../unreferenced/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.57 KiB main [emitted] main + common/index.js 135 bytes [emitted] + common/index.d.ts 43 bytes [emitted] + common/tsconfig.tsbuildinfo 72.6 KiB [emitted] + unreferencedIndirect/index.js 216 bytes [emitted] + unreferencedIndirect/index.d.ts 57 bytes [emitted] +unreferencedIndirect/tsconfig.tsbuildinfo 72.6 KiB [emitted] + unreferenced/index.js 176 bytes [emitted] + unreferenced/index.d.ts 49 bytes [emitted] + unreferenced/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 218 bytes {main} [built] [2 errors] [./lib/index.ts] 493 bytes {main} [built] [failed] [1 error] [./utils/index.ts] 495 bytes {main} [built] [failed] [1 error] -ERROR in [tsl] ERROR in indirectWithError\fileWithError.ts(2,5) +ERROR in [tsl] ERROR in indirectWithError\fileWithError.ts(2,5)  TS2322: Type 'false' is not assignable to type 'string'. -ERROR in [tsl] ERROR in lib\fileWithError.ts(2,5) +ERROR in [tsl] ERROR in lib\fileWithError.ts(2,5)  TS2322: Type 'false' is not assignable to type 'string'. ERROR in ./lib/index.ts diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/fileWithError.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/fileWithError.d.ts new file mode 100644 index 000000000..27e069e94 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/fileWithError.d.ts @@ -0,0 +1 @@ +export declare function foo(): string; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/fileWithError.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/fileWithError.js new file mode 100644 index 000000000..4cd8719c8 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/fileWithError.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.foo = void 0; +function foo() { + return "hello world"; +} +exports.foo = foo; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/index.js new file mode 100644 index 000000000..b7785ef20 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/index.js @@ -0,0 +1,8 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..5f135e690 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -0,0 +1,61 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./filewitherror.ts": { + "version": "0dda94f9fb4df4c74ff92d8109d8db2122e4c980bb13857b2a538c2ac0b33c64", + "signature": "e2ae95931a4ae77b2a4b0ab6d012584f6eaa59c372e2037e011534f53239d15d", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./filewitherror.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/output.txt index e32625f22..936964927 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/output.txt @@ -1,16 +1,16 @@ - Asset Size Chunks Chunk Names - bundle.js 5.19 KiB main [emitted] main - ../lib/fileWithError.js 111 bytes [emitted] - ../lib/fileWithError.d.ts 40 bytes [emitted] - ../lib/index.js 104 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.21 KiB main [emitted] main + lib/fileWithError.js 134 bytes [emitted] + lib/fileWithError.d.ts 40 bytes [emitted] + lib/index.js 127 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 218 bytes {main} [built] [1 error] -[./lib/index.ts] 104 bytes {main} [built] +[./lib/index.ts] 127 bytes {main} [built] [./utils/index.ts] 495 bytes {main} [built] [failed] [1 error] -ERROR in [tsl] ERROR in indirectWithError\fileWithError.ts(2,5) +ERROR in [tsl] ERROR in indirectWithError\fileWithError.ts(2,5)  TS2322: Type 'false' is not assignable to type 'string'. ERROR in ./utils/index.ts diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/fileWithError.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/fileWithError.d.ts new file mode 100644 index 000000000..27e069e94 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/fileWithError.d.ts @@ -0,0 +1 @@ +export declare function foo(): string; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/fileWithError.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/fileWithError.js new file mode 100644 index 000000000..215cdeb2a --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/fileWithError.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.foo = void 0; +function foo() { + return "hello i fixed this error"; +} +exports.foo = foo; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/index.js new file mode 100644 index 000000000..b7785ef20 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/index.js @@ -0,0 +1,8 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo new file mode 100644 index 000000000..390188390 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo @@ -0,0 +1,61 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./filewitherror.ts": { + "version": "e8c36f5bf4681d8c0c1866ed04f823e66548c8a788b325b672026efb17e9a384", + "signature": "e2ae95931a4ae77b2a4b0ab6d012584f6eaa59c372e2037e011534f53239d15d", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./filewitherror.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/output.txt index 0ace3acc5..45b288e7d 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/output.txt @@ -1,15 +1,15 @@ - Asset Size Chunks Chunk Names - bundle.js 5.27 KiB main [emitted] main - ../indirectWithError/fileWithError.js 124 bytes [emitted] - ../indirectWithError/fileWithError.d.ts 40 bytes [emitted] - ../indirectWithError/index.js 104 bytes [emitted] - ../indirectWithError/index.d.ts 89 bytes [emitted] -../indirectWithError/tsconfig.tsbuildinfo 67.8 KiB [emitted] - ../utils/index.js 152 bytes [emitted] - ../utils/index.d.ts 40 bytes [emitted] - ../utils/tsconfig.tsbuildinfo 68 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.35 KiB main [emitted] main + indirectWithError/fileWithError.js 147 bytes [emitted] + indirectWithError/fileWithError.d.ts 40 bytes [emitted] + indirectWithError/index.js 127 bytes [emitted] + indirectWithError/index.d.ts 89 bytes [emitted] +indirectWithError/tsconfig.tsbuildinfo 73 KiB [emitted] + utils/index.js 177 bytes [emitted] + utils/index.d.ts 40 bytes [emitted] + utils/tsconfig.tsbuildinfo 73.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 218 bytes {main} [built] -[./common/index.ts] 109 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} -[./utils/index.ts] 152 bytes {main} [built] \ No newline at end of file +[./common/index.ts] 135 bytes {main} [built] +[./lib/index.ts] 127 bytes {main} +[./utils/index.ts] 177 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/utils/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/utils/index.d.ts new file mode 100644 index 000000000..590545c75 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/utils/index.d.ts @@ -0,0 +1 @@ +export declare function utils(): void; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/utils/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/utils/index.js new file mode 100644 index 000000000..7cde7e732 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/utils/index.js @@ -0,0 +1,8 @@ +"use strict"; +exports.__esModule = true; +exports.utils = void 0; +var common_1 = require("../common"); +function utils() { + common_1.common(); +} +exports.utils = utils; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/utils/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/utils/tsconfig.tsbuildinfo new file mode 100644 index 000000000..75d2c4e66 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/utils/tsconfig.tsbuildinfo @@ -0,0 +1,65 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../common/index.d.ts": { + "version": "9a693929ea8d5a70b61b9defd10fa182f10413470eb5011dc5a34846b246816d", + "signature": "9a693929ea8d5a70b61b9defd10fa182f10413470eb5011dc5a34846b246816d", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "4c7e50bd7f85cc5d64f963157685ca8eb1223e12466f47c719aaf1af32173088", + "signature": "7a6477b73af7a579b3b0b83c0235fa7ad3c9b6f9e7caadb58cb42167063e57a3", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./index.ts": [ + "../common/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../common/index.d.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/output.txt index ec43f9ef3..6621a8037 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/output.txt @@ -1,10 +1,10 @@ - Asset Size Chunks Chunk Names - bundle.js 5.27 KiB main main - ../unreferencedIndirect/index.js 192 bytes [emitted] - ../unreferencedIndirect/index.d.ts 57 bytes [emitted] -../unreferencedIndirect/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.35 KiB main main + unreferencedIndirect/index.js 232 bytes [emitted] + unreferencedIndirect/index.d.ts 57 bytes [emitted] +unreferencedIndirect/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 218 bytes {main} [built] -[./common/index.ts] 109 bytes {main} -[./lib/index.ts] 104 bytes {main} -[./utils/index.ts] 152 bytes {main} \ No newline at end of file +[./common/index.ts] 135 bytes {main} +[./lib/index.ts] 127 bytes {main} +[./utils/index.ts] 177 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/unreferencedIndirect/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/unreferencedIndirect/index.d.ts new file mode 100644 index 000000000..a9c923d2a --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/unreferencedIndirect/index.d.ts @@ -0,0 +1 @@ +export declare function unreferencedIndirect(): string; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/unreferencedIndirect/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/unreferencedIndirect/index.js new file mode 100644 index 000000000..44db5b50e --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/unreferencedIndirect/index.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.unreferencedIndirect = void 0; +function unreferencedIndirect() { + return "i am unreferencedIndirect now fixed error"; +} +exports.unreferencedIndirect = unreferencedIndirect; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/unreferencedIndirect/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/unreferencedIndirect/tsconfig.tsbuildinfo new file mode 100644 index 000000000..a382e37b0 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/unreferencedIndirect/tsconfig.tsbuildinfo @@ -0,0 +1,55 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "25e6889f7998ef0640339eb29cd18ffe0a26a90d6ab573c95601f51593801064", + "signature": "4ef378092d53757f50da435f02bd8fbe215f1188c3978b9db24224a1cfdda817", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferenced/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferenced/index.d.ts new file mode 100644 index 000000000..cd1cc7776 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferenced/index.d.ts @@ -0,0 +1 @@ +export declare function unreferenced(): string; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferenced/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferenced/index.js new file mode 100644 index 000000000..2a6e4b7c9 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferenced/index.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.unreferenced = void 0; +function unreferenced() { + return "i am unreferenced"; +} +exports.unreferenced = unreferenced; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferenced/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferenced/tsconfig.tsbuildinfo new file mode 100644 index 000000000..9661dea5f --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferenced/tsconfig.tsbuildinfo @@ -0,0 +1,55 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "71b9a35449a6c117c0de0bc5035eb20046c4d436d28294a9d6be2c1a9920ad98", + "signature": "9df66b1423d1b6b6e32097deabc9e884cd5baf6a03f5d60e3ab78206090c97c4", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferencedIndirect/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferencedIndirect/index.d.ts new file mode 100644 index 000000000..a9c923d2a --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferencedIndirect/index.d.ts @@ -0,0 +1 @@ +export declare function unreferencedIndirect(): string; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferencedIndirect/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferencedIndirect/index.js new file mode 100644 index 000000000..87bc79753 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferencedIndirect/index.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.unreferencedIndirect = void 0; +function unreferencedIndirect() { + return "i am unreferencedIndirect"; +} +exports.unreferencedIndirect = unreferencedIndirect; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferencedIndirect/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferencedIndirect/tsconfig.tsbuildinfo new file mode 100644 index 000000000..b148de7e8 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferencedIndirect/tsconfig.tsbuildinfo @@ -0,0 +1,55 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "d2b6e2d5879e5092e979620936598256494f23e7449ca2b326a2618f9b4488c2", + "signature": "4ef378092d53757f50da435f02bd8fbe215f1188c3978b9db24224a1cfdda817", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/indirectWithError/tsconfig.json b/test/comparison-tests/projectReferencesMultiple/indirectWithError/tsconfig.json index b3df08516..0710dd495 100644 --- a/test/comparison-tests/projectReferencesMultiple/indirectWithError/tsconfig.json +++ b/test/comparison-tests/projectReferencesMultiple/indirectWithError/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { - "composite": true + "composite": true, + "types": [] } } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/lib/tsconfig.json b/test/comparison-tests/projectReferencesMultiple/lib/tsconfig.json index b3df08516..0710dd495 100644 --- a/test/comparison-tests/projectReferencesMultiple/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesMultiple/lib/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { - "composite": true + "composite": true, + "types": [] } } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/tsconfig.json b/test/comparison-tests/projectReferencesMultiple/tsconfig.json index 97f04b7ee..f8a409e23 100644 --- a/test/comparison-tests/projectReferencesMultiple/tsconfig.json +++ b/test/comparison-tests/projectReferencesMultiple/tsconfig.json @@ -1,10 +1,13 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" }, - { "path": "./utils" }, - { "path": "./unreferenced" }, - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" }, + { "path": "./utils" }, + { "path": "./unreferenced" }, + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/unreferenced/tsconfig.json b/test/comparison-tests/projectReferencesMultiple/unreferenced/tsconfig.json index fde6864ed..a789a3fbc 100644 --- a/test/comparison-tests/projectReferencesMultiple/unreferenced/tsconfig.json +++ b/test/comparison-tests/projectReferencesMultiple/unreferenced/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { - "composite": true + "composite": true, + "types": [] }, "references": [ { "path": "../unreferencedIndirect" } diff --git a/test/comparison-tests/projectReferencesMultiple/unreferencedIndirect/tsconfig.json b/test/comparison-tests/projectReferencesMultiple/unreferencedIndirect/tsconfig.json index b3df08516..0710dd495 100644 --- a/test/comparison-tests/projectReferencesMultiple/unreferencedIndirect/tsconfig.json +++ b/test/comparison-tests/projectReferencesMultiple/unreferencedIndirect/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { - "composite": true + "composite": true, + "types": [] } } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/utils/tsconfig.json b/test/comparison-tests/projectReferencesMultiple/utils/tsconfig.json index 996b12d7c..b26c83c7b 100644 --- a/test/comparison-tests/projectReferencesMultiple/utils/tsconfig.json +++ b/test/comparison-tests/projectReferencesMultiple/utils/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { - "composite": true + "composite": true, + "types": [] }, "references": [ { "path": "../common" }, diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/foo.d.ts b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/foo.d.ts new file mode 100644 index 000000000..07265a895 --- /dev/null +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/foo.d.ts @@ -0,0 +1 @@ +export declare const foo = "foo"; diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/foo.js b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/foo.js new file mode 100644 index 000000000..33e8d8400 --- /dev/null +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/foo.js @@ -0,0 +1,4 @@ +"use strict"; +exports.__esModule = true; +exports.foo = void 0; +exports.foo = 'foo'; diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/index.d.ts b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/index.d.ts new file mode 100644 index 000000000..b05ab0fd1 --- /dev/null +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/index.d.ts @@ -0,0 +1,6 @@ +export declare const lib: { + one: number; + two: number; + three: number; + foo: string; +}; diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/index.js b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/index.js new file mode 100644 index 000000000..36ee96b86 --- /dev/null +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/index.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +var foo_1 = require("./foo"); +exports.lib = { + one: 1, + two: 2, + three: 3, + foo: foo_1.foo +}; diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..0e6cf7878 --- /dev/null +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,65 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./foo.ts": { + "version": "a43230ea8da8a5ab3adc7b12f9eb9d65d1d1e5c87896fb2d8747a1a3f7a3f759", + "signature": "b2811ac95bde466bba13760210304f6cc9909ea5ede3c596b531e20edd12d7c3", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "582b90393f0a99a0e2da27ccff010fe0b914246cc25e49da7e760543b0789cf8", + "signature": "edd57b2313e9d86003b42fa8c43ed02c946b5a4cc6fe56ec10a8279c470f8fa2", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./index.ts": [ + "./foo.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./foo.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/output.txt index 9037e81ef..60d2b439e 100644 --- a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/output.txt @@ -1,11 +1,11 @@ - Asset Size Chunks Chunk Names - bundle.js 4.7 KiB main [emitted] main - ../lib/foo.js 65 bytes [emitted] - ../lib/foo.d.ts 35 bytes [emitted] - ../lib/index.js 156 bytes [emitted] - ../lib/index.d.ts 107 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.75 KiB main [emitted] main + lib/foo.js 88 bytes [emitted] + lib/foo.d.ts 35 bytes [emitted] + lib/index.js 179 bytes [emitted] + lib/index.d.ts 107 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/foo.ts] 65 bytes {main} [built] -[./lib/index.ts] 156 bytes {main} [built] \ No newline at end of file +[./lib/foo.ts] 88 bytes {main} [built] +[./lib/index.ts] 179 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/foo.d.ts b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/foo.d.ts new file mode 100644 index 000000000..07265a895 --- /dev/null +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/foo.d.ts @@ -0,0 +1 @@ +export declare const foo = "foo"; diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/foo.js b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/foo.js new file mode 100644 index 000000000..33e8d8400 --- /dev/null +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/foo.js @@ -0,0 +1,4 @@ +"use strict"; +exports.__esModule = true; +exports.foo = void 0; +exports.foo = 'foo'; diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/index.d.ts b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/index.d.ts new file mode 100644 index 000000000..b05ab0fd1 --- /dev/null +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/index.d.ts @@ -0,0 +1,6 @@ +export declare const lib: { + one: number; + two: number; + three: number; + foo: string; +}; diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/index.js b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/index.js new file mode 100644 index 000000000..36ee96b86 --- /dev/null +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/index.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +var foo_1 = require("./foo"); +exports.lib = { + one: 1, + two: 2, + three: 3, + foo: foo_1.foo +}; diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..0e6cf7878 --- /dev/null +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,65 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./foo.ts": { + "version": "a43230ea8da8a5ab3adc7b12f9eb9d65d1d1e5c87896fb2d8747a1a3f7a3f759", + "signature": "b2811ac95bde466bba13760210304f6cc9909ea5ede3c596b531e20edd12d7c3", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "582b90393f0a99a0e2da27ccff010fe0b914246cc25e49da7e760543b0789cf8", + "signature": "edd57b2313e9d86003b42fa8c43ed02c946b5a4cc6fe56ec10a8279c470f8fa2", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./index.ts": [ + "./foo.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./foo.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/output.txt index f031a0aa8..00bdb2260 100644 --- a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/output.txt @@ -1,11 +1,11 @@ - Asset Size Chunks Chunk Names - bundle.js 4.73 KiB main [emitted] main - ../lib/foo.js 65 bytes [emitted] - ../lib/foo.d.ts 35 bytes [emitted] - ../lib/index.js 156 bytes [emitted] - ../lib/index.d.ts 107 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.78 KiB main [emitted] main + lib/foo.js 88 bytes [emitted] + lib/foo.d.ts 35 bytes [emitted] + lib/index.js 179 bytes [emitted] + lib/index.d.ts 107 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/foo.ts] 65 bytes {main} [built] -[./lib/index.ts] 156 bytes {main} [built] \ No newline at end of file +[./lib/foo.ts] 88 bytes {main} [built] +[./lib/index.ts] 179 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNoSourceMap/lib/tsconfig.json b/test/comparison-tests/projectReferencesNoSourceMap/lib/tsconfig.json index 396dadea4..ae8aa58b3 100644 --- a/test/comparison-tests/projectReferencesNoSourceMap/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesNoSourceMap/lib/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { - "composite": true + "composite": true, + "types": [] }, "files": [ "./index.ts", diff --git a/test/comparison-tests/projectReferencesNoSourceMap/tsconfig.json b/test/comparison-tests/projectReferencesNoSourceMap/tsconfig.json index 6d9798ff7..930f83544 100644 --- a/test/comparison-tests/projectReferencesNoSourceMap/tsconfig.json +++ b/test/comparison-tests/projectReferencesNoSourceMap/tsconfig.json @@ -1,8 +1,11 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" } - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/index.d.ts b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/index.js b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/index.js new file mode 100644 index 000000000..e352a1efb --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/index.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/index.js.map b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/index.js.map new file mode 100644 index 000000000..d40fd63b7 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..e06f978c9 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,56 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/output.txt index 6a42c7a13..26473acfa 100644 --- a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.32 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/index.d.ts b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/index.js b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/index.js new file mode 100644 index 000000000..e352a1efb --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/index.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/index.js.map b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/index.js.map new file mode 100644 index 000000000..d40fd63b7 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..e06f978c9 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,56 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/output.txt index 9af9848b3..a3e931cac 100644 --- a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.33 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt/lib/tsconfig.json b/test/comparison-tests/projectReferencesNotBuilt/lib/tsconfig.json index 506c325eb..8469a0937 100644 --- a/test/comparison-tests/projectReferencesNotBuilt/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesNotBuilt/lib/tsconfig.json @@ -1,7 +1,8 @@ { "compilerOptions": { "composite": true, - "sourceMap": true + "sourceMap": true, + "types": [] }, "files": [ "./index.ts" diff --git a/test/comparison-tests/projectReferencesNotBuilt/tsconfig.json b/test/comparison-tests/projectReferencesNotBuilt/tsconfig.json index 6d9798ff7..930f83544 100644 --- a/test/comparison-tests/projectReferencesNotBuilt/tsconfig.json +++ b/test/comparison-tests/projectReferencesNotBuilt/tsconfig.json @@ -1,8 +1,11 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" } - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/app.d.ts b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/output.txt index aeba9f805..add70e8be 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/output.txt @@ -1,11 +1,11 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] - ../tsconfig.tsbuildinfo 51.8 KiB [emitted] - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.32 KiB main [emitted] main + app.d.ts 11 bytes [emitted] + tsconfig.tsbuildinfo 56.4 KiB [emitted] + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo new file mode 100644 index 000000000..92ebe4bc9 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../node_modules/typescript/lib/lib.d.ts": { + "version": "-10496480823", + "signature": "-10496480823", + "affectsGlobalScope": false + }, + "../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "-218882352090", + "signature": "-218882352090", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "300634082611", + "signature": "300634082611", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "-24714112149", + "signature": "-24714112149", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "204309182321", + "signature": "204309182321", + "affectsGlobalScope": true + }, + "./lib/index.d.ts": { + "version": "3525372579", + "signature": "3525372579", + "affectsGlobalScope": false + }, + "./app.ts": { + "version": "-14331559384", + "signature": "-3531856636", + "affectsGlobalScope": false + } + }, + "options": { + "types": [], + "composite": true, + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./app.ts": [ + "./lib/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt index 9af9848b3..a3e931cac 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.33 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/index.d.ts b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/index.js b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/index.js new file mode 100644 index 000000000..e352a1efb --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/index.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/index.js.map b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/index.js.map new file mode 100644 index 000000000..d40fd63b7 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..e06f978c9 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,56 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/output.txt index 3cc5d6649..aef434999 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/output.txt @@ -1,14 +1,14 @@ - Asset Size Chunks Chunk Names - bundle.js 4.31 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.33 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 147 bytes {main} [built] [1 error] -[./lib/index.ts] 104 bytes {main} [built] +[./lib/index.ts] 127 bytes {main} [built] ERROR in app.ts ./app.ts -[tsl] ERROR in app.ts(3,46) +[tsl] ERROR in app.ts(3,46)  TS2339: Property 'four' does not exist on type '{ one: number; two: number; three: number; }'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/index.d.ts b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/index.js b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/index.js new file mode 100644 index 000000000..e352a1efb --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/index.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/index.js.map b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/index.js.map new file mode 100644 index 000000000..d40fd63b7 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..e06f978c9 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,56 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/output.txt index 012639711..654bf2767 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.35 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.37 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 183 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/lib/tsconfig.json b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/lib/tsconfig.json index 506c325eb..8469a0937 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/lib/tsconfig.json @@ -1,7 +1,8 @@ { "compilerOptions": { "composite": true, - "sourceMap": true + "sourceMap": true, + "types": [] }, "files": [ "./index.ts" diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/tsconfig.json b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/tsconfig.json index 6d9798ff7..930f83544 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/tsconfig.json +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/tsconfig.json @@ -1,8 +1,11 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" } - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/app.d.ts b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/output.txt index c8b5badaf..4dcd747f6 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/output.txt @@ -1,16 +1,16 @@ - Asset Size Chunks Chunk Names - bundle.js 4.31 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] - ../tsconfig.tsbuildinfo 51.8 KiB [emitted] - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.33 KiB main [emitted] main + app.d.ts 11 bytes [emitted] + tsconfig.tsbuildinfo 56.4 KiB [emitted] + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 147 bytes {main} [built] [1 error] -[./lib/index.ts] 104 bytes {main} [built] +[./lib/index.ts] 127 bytes {main} [built] ERROR in app.ts ./app.ts -[tsl] ERROR in app.ts(3,46) +[tsl] ERROR in app.ts(3,46)  TS2339: Property 'four' does not exist on type '{ one: number; two: number; three: number; }'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo new file mode 100644 index 000000000..9aa6a631f --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../node_modules/typescript/lib/lib.d.ts": { + "version": "-10496480823", + "signature": "-10496480823", + "affectsGlobalScope": false + }, + "../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "-218882352090", + "signature": "-218882352090", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "300634082611", + "signature": "300634082611", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "-24714112149", + "signature": "-24714112149", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "204309182321", + "signature": "204309182321", + "affectsGlobalScope": true + }, + "./lib/index.d.ts": { + "version": "3525372579", + "signature": "3525372579", + "affectsGlobalScope": false + }, + "./app.ts": { + "version": "-18375343467", + "signature": "-3531856636", + "affectsGlobalScope": false + } + }, + "options": { + "types": [], + "composite": true, + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./app.ts": [ + "./lib/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt index 012639711..654bf2767 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.35 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.37 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 183 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-3.9/output.txt index 3cc5d6649..aef434999 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-3.9/output.txt @@ -1,14 +1,14 @@ - Asset Size Chunks Chunk Names - bundle.js 4.31 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.33 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 147 bytes {main} [built] [1 error] -[./lib/index.ts] 104 bytes {main} [built] +[./lib/index.ts] 127 bytes {main} [built] ERROR in app.ts ./app.ts -[tsl] ERROR in app.ts(3,46) +[tsl] ERROR in app.ts(3,46)  TS2339: Property 'four' does not exist on type '{ one: number; two: number; three: number; }'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-transpile-3.9/output.txt index 012639711..654bf2767 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.35 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.37 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 183 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/lib/tsconfig.json b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/lib/tsconfig.json index 506c325eb..8469a0937 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/lib/tsconfig.json @@ -1,7 +1,8 @@ { "compilerOptions": { "composite": true, - "sourceMap": true + "sourceMap": true, + "types": [] }, "files": [ "./index.ts" diff --git a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/tsconfig.json b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/tsconfig.json index 6d9798ff7..930f83544 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/tsconfig.json +++ b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/tsconfig.json @@ -1,8 +1,11 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" } - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-3.9/app.d.ts b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-3.9/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-3.9/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-3.9/output.txt index 3bbb9af61..fd23c4131 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-3.9/output.txt @@ -1,17 +1,17 @@ - Asset Size Chunks Chunk Names - bundle.js 4.71 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] -../tsconfig.tsbuildinfo 51.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.71 KiB main [emitted] main + app.d.ts 11 bytes [emitted] +tsconfig.tsbuildinfo 56 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 528 bytes {main} [built] [failed] [2 errors] +[./lib/index.ts] 527 bytes {main} [built] [failed] [2 errors] ERROR in ./lib/index.ts Module build failed (from /index.js): Error: TypeScript emitted no output for lib\index.ts. The most common cause for this is having errors when building referenced projects. - at makeSourceMapAndFinish (dist\index.js:80:15) - at successLoader (dist\index.js:68:9) - at Object.loader (dist\index.js:22:12) + at makeSourceMapAndFinish (dist\index.js:87:18) + at successLoader (dist\index.js:73:9) + at Object.loader (dist\index.js:24:5) @ ./app.ts 3:12-28 ERROR in lib\index.ts diff --git a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo new file mode 100644 index 000000000..bd9a0a707 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo @@ -0,0 +1,48 @@ +{ + "program": { + "fileInfos": { + "../../node_modules/typescript/lib/lib.d.ts": { + "version": "-10496480823", + "signature": "-10496480823", + "affectsGlobalScope": false + }, + "../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "-218882352090", + "signature": "-218882352090", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "300634082611", + "signature": "300634082611", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "-24714112149", + "signature": "-24714112149", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "204309182321", + "signature": "204309182321", + "affectsGlobalScope": true + }, + "./app.ts": { + "version": "-14331559384", + "signature": "-3531856636", + "affectsGlobalScope": false + } + }, + "options": { + "types": [], + "composite": true, + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/lib/tsconfig.json b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/lib/tsconfig.json index 506c325eb..8469a0937 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/lib/tsconfig.json @@ -1,7 +1,8 @@ { "compilerOptions": { "composite": true, - "sourceMap": true + "sourceMap": true, + "types": [] }, "files": [ "./index.ts" diff --git a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/tsconfig.json b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/tsconfig.json index 6d9798ff7..930f83544 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/tsconfig.json +++ b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/tsconfig.json @@ -1,8 +1,11 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" } - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-3.9/app.d.ts b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-3.9/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-3.9/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-3.9/output.txt index d00d9f1c7..1fef30d38 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-3.9/output.txt @@ -1,17 +1,17 @@ - Asset Size Chunks Chunk Names - bundle.js 4.71 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] -../tsconfig.tsbuildinfo 51.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.71 KiB main [emitted] main + app.d.ts 11 bytes [emitted] +tsconfig.tsbuildinfo 56 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 526 bytes {main} [built] [failed] [2 errors] +[./lib/index.ts] 525 bytes {main} [built] [failed] [2 errors] ERROR in ./lib/index.ts Module build failed (from /index.js): Error: TypeScript emitted no output for lib\index.ts. The most common cause for this is having errors when building referenced projects. - at makeSourceMapAndFinish (dist\index.js:80:15) - at successLoader (dist\index.js:68:9) - at Object.loader (dist\index.js:22:12) + at makeSourceMapAndFinish (dist\index.js:87:18) + at successLoader (dist\index.js:73:9) + at Object.loader (dist\index.js:24:5) @ ./app.ts 3:12-28 ERROR in lib\index.ts diff --git a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo new file mode 100644 index 000000000..bd9a0a707 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo @@ -0,0 +1,48 @@ +{ + "program": { + "fileInfos": { + "../../node_modules/typescript/lib/lib.d.ts": { + "version": "-10496480823", + "signature": "-10496480823", + "affectsGlobalScope": false + }, + "../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "-218882352090", + "signature": "-218882352090", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "300634082611", + "signature": "300634082611", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "-24714112149", + "signature": "-24714112149", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "204309182321", + "signature": "204309182321", + "affectsGlobalScope": true + }, + "./app.ts": { + "version": "-14331559384", + "signature": "-3531856636", + "affectsGlobalScope": false + } + }, + "options": { + "types": [], + "composite": true, + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-3.9/output.txt index 6a42c7a13..26473acfa 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.32 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-transpile-3.9/output.txt index 9af9848b3..a3e931cac 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.33 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/index.d.ts b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/index.js b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/index.js new file mode 100644 index 000000000..e352a1efb --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/index.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/index.js.map b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/index.js.map new file mode 100644 index 000000000..bd8517f9b --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/tsconfig.tsbuildinfo new file mode 100644 index 000000000..2a78b0fc0 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "outDir": "./", + "types": [], + "newLine": "LF", + "configFilePath": "../tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../index.ts", + "../../../../node_modules/typescript/lib/lib.d.ts", + "../../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/output.txt index 5d3b8358e..dd451994c 100644 --- a/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../lib/out/index.js.map 190 bytes [emitted] - ../lib/out/index.js 137 bytes [emitted] - ../lib/out/index.d.ts 89 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.32 KiB main [emitted] main + lib/out/index.js.map 191 bytes [emitted] + lib/out/index.js 160 bytes [emitted] + lib/out/index.d.ts 89 bytes [emitted] +lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/index.d.ts b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/index.js b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/index.js new file mode 100644 index 000000000..e352a1efb --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/index.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/index.js.map b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/index.js.map new file mode 100644 index 000000000..bd8517f9b --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/tsconfig.tsbuildinfo new file mode 100644 index 000000000..2a78b0fc0 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "outDir": "./", + "types": [], + "newLine": "LF", + "configFilePath": "../tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../index.ts", + "../../../../node_modules/typescript/lib/lib.d.ts", + "../../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/output.txt index 6fe9b0dc9..09ed2d1c6 100644 --- a/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.33 KiB main [emitted] main - ../lib/out/index.js.map 190 bytes [emitted] - ../lib/out/index.js 137 bytes [emitted] - ../lib/out/index.d.ts 89 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + lib/out/index.js.map 191 bytes [emitted] + lib/out/index.js 160 bytes [emitted] + lib/out/index.d.ts 89 bytes [emitted] +lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDir/lib/tsconfig.json b/test/comparison-tests/projectReferencesOutDir/lib/tsconfig.json index 2ca71a202..7c6ce1c62 100644 --- a/test/comparison-tests/projectReferencesOutDir/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesOutDir/lib/tsconfig.json @@ -2,7 +2,8 @@ "compilerOptions": { "composite": true, "sourceMap": true, - "outDir": "./out" + "outDir": "./out", + "types": [] }, "files": [ "./index.ts" diff --git a/test/comparison-tests/projectReferencesOutDir/tsconfig.json b/test/comparison-tests/projectReferencesOutDir/tsconfig.json index 6d9798ff7..930f83544 100644 --- a/test/comparison-tests/projectReferencesOutDir/tsconfig.json +++ b/test/comparison-tests/projectReferencesOutDir/tsconfig.json @@ -1,8 +1,11 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" } - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/index.d.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/index.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/index.js new file mode 100644 index 000000000..e352a1efb --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/index.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/index.js.map b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/index.js.map new file mode 100644 index 000000000..bd8517f9b --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/tsconfig.tsbuildinfo new file mode 100644 index 000000000..2a78b0fc0 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "outDir": "./", + "types": [], + "newLine": "LF", + "configFilePath": "../tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../index.ts", + "../../../../node_modules/typescript/lib/lib.d.ts", + "../../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/output.txt index 5d3b8358e..dd451994c 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../lib/out/index.js.map 190 bytes [emitted] - ../lib/out/index.js 137 bytes [emitted] - ../lib/out/index.d.ts 89 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.32 KiB main [emitted] main + lib/out/index.js.map 191 bytes [emitted] + lib/out/index.js 160 bytes [emitted] + lib/out/index.d.ts 89 bytes [emitted] +lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/index.d.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/index.d.ts new file mode 100644 index 000000000..78e83617f --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/index.d.ts @@ -0,0 +1,6 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/index.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/index.js new file mode 100644 index 000000000..8826dde5f --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/index.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3, + four: 4 // Add new number +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/index.js.map b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/index.js.map new file mode 100644 index 000000000..da47828f7 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC,CAAC,iBAAiB;CAC1B,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/tsconfig.tsbuildinfo new file mode 100644 index 000000000..7ca855d72 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../index.ts": { + "version": "244518e7eae5520d792e5c61f0be65249602dd956014a68836c0a35ed686ba28", + "signature": "62ddf784ed6089de71b4c25f21fff18638b9f2aced0722673521c41ab6739ff3", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "outDir": "./", + "types": [], + "newLine": "LF", + "configFilePath": "../tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../index.ts", + "../../../../node_modules/typescript/lib/lib.d.ts", + "../../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/output.txt index a7d851353..056230ff0 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.33 KiB main [emitted] main - ../lib/out/index.js.map 223 bytes [emitted] - ../lib/out/index.js 169 bytes [emitted] - ../lib/out/index.d.ts 108 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.35 KiB main [emitted] main + lib/out/index.js.map 224 bytes [emitted] + lib/out/index.js 192 bytes [emitted] + lib/out/index.d.ts 108 bytes [emitted] +lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 159 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/index.d.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/index.d.ts new file mode 100644 index 000000000..bf8664e75 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/index.d.ts @@ -0,0 +1,7 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; + five: number; +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/index.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/index.js new file mode 100644 index 000000000..2a51bc571 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/index.js @@ -0,0 +1,11 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3, + four: 4, + five: 5 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/index.js.map b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/index.js.map new file mode 100644 index 000000000..6f1b651a7 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;CACR,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/tsconfig.tsbuildinfo new file mode 100644 index 000000000..256dd2553 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../index.ts": { + "version": "c250f21a4c1fc3baa49fd9af20e30f28a0c5a4c1ab58eead42bbca5482f3f963", + "signature": "91e339b852a37bfd9c724f31c9c6a973d4aef13027e3a86a4f7d76bd8e655452", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "outDir": "./", + "types": [], + "newLine": "LF", + "configFilePath": "../tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../index.ts", + "../../../../node_modules/typescript/lib/lib.d.ts", + "../../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/output.txt index 9e41c2cf6..50b324a5b 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.36 KiB main [emitted] main - ../lib/out/index.js.map 230 bytes [emitted] - ../lib/out/index.js 165 bytes [emitted] - ../lib/out/index.d.ts 127 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.39 KiB main [emitted] main + lib/out/index.js.map 231 bytes [emitted] + lib/out/index.js 188 bytes [emitted] + lib/out/index.d.ts 127 bytes [emitted] +lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] -[./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 155 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/index.d.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/index.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/index.js new file mode 100644 index 000000000..e352a1efb --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/index.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/index.js.map b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/index.js.map new file mode 100644 index 000000000..bd8517f9b --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/tsconfig.tsbuildinfo new file mode 100644 index 000000000..2a78b0fc0 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "outDir": "./", + "types": [], + "newLine": "LF", + "configFilePath": "../tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../index.ts", + "../../../../node_modules/typescript/lib/lib.d.ts", + "../../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/output.txt index 6fe9b0dc9..09ed2d1c6 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.33 KiB main [emitted] main - ../lib/out/index.js.map 190 bytes [emitted] - ../lib/out/index.js 137 bytes [emitted] - ../lib/out/index.d.ts 89 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + lib/out/index.js.map 191 bytes [emitted] + lib/out/index.js 160 bytes [emitted] + lib/out/index.d.ts 89 bytes [emitted] +lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/index.d.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/index.d.ts new file mode 100644 index 000000000..78e83617f --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/index.d.ts @@ -0,0 +1,6 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/index.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/index.js new file mode 100644 index 000000000..8826dde5f --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/index.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3, + four: 4 // Add new number +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/index.js.map b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/index.js.map new file mode 100644 index 000000000..da47828f7 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC,CAAC,iBAAiB;CAC1B,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/tsconfig.tsbuildinfo new file mode 100644 index 000000000..7ca855d72 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../index.ts": { + "version": "244518e7eae5520d792e5c61f0be65249602dd956014a68836c0a35ed686ba28", + "signature": "62ddf784ed6089de71b4c25f21fff18638b9f2aced0722673521c41ab6739ff3", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "outDir": "./", + "types": [], + "newLine": "LF", + "configFilePath": "../tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../index.ts", + "../../../../node_modules/typescript/lib/lib.d.ts", + "../../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/output.txt index a0cefb79d..8b4785810 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.36 KiB main [emitted] main - ../lib/out/index.js.map 223 bytes [emitted] - ../lib/out/index.js 169 bytes [emitted] - ../lib/out/index.d.ts 108 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.39 KiB main [emitted] main + lib/out/index.js.map 224 bytes [emitted] + lib/out/index.js 192 bytes [emitted] + lib/out/index.d.ts 108 bytes [emitted] +lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 159 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/index.d.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/index.d.ts new file mode 100644 index 000000000..bf8664e75 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/index.d.ts @@ -0,0 +1,7 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; + five: number; +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/index.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/index.js new file mode 100644 index 000000000..2a51bc571 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/index.js @@ -0,0 +1,11 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3, + four: 4, + five: 5 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/index.js.map b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/index.js.map new file mode 100644 index 000000000..6f1b651a7 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;CACR,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/tsconfig.tsbuildinfo new file mode 100644 index 000000000..256dd2553 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../index.ts": { + "version": "c250f21a4c1fc3baa49fd9af20e30f28a0c5a4c1ab58eead42bbca5482f3f963", + "signature": "91e339b852a37bfd9c724f31c9c6a973d4aef13027e3a86a4f7d76bd8e655452", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "outDir": "./", + "types": [], + "newLine": "LF", + "configFilePath": "../tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../index.ts", + "../../../../node_modules/typescript/lib/lib.d.ts", + "../../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/output.txt index d82796e3e..8fe60452d 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.4 KiB main [emitted] main - ../lib/out/index.js.map 230 bytes [emitted] - ../lib/out/index.js 165 bytes [emitted] - ../lib/out/index.d.ts 127 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.42 KiB main [emitted] main + lib/out/index.js.map 231 bytes [emitted] + lib/out/index.js 188 bytes [emitted] + lib/out/index.d.ts 127 bytes [emitted] +lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] -[./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 155 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/lib/tsconfig.json b/test/comparison-tests/projectReferencesOutDirWithPackageJson/lib/tsconfig.json index 2ca71a202..7c6ce1c62 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/lib/tsconfig.json @@ -2,7 +2,8 @@ "compilerOptions": { "composite": true, "sourceMap": true, - "outDir": "./out" + "outDir": "./out", + "types": [] }, "files": [ "./index.ts" diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/tsconfig.json b/test/comparison-tests/projectReferencesOutDirWithPackageJson/tsconfig.json index 6d9798ff7..930f83544 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/tsconfig.json +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/tsconfig.json @@ -1,8 +1,11 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" } - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/index.d.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/index.d.ts new file mode 100644 index 000000000..78e83617f --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/index.d.ts @@ -0,0 +1,6 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/index.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/index.js new file mode 100644 index 000000000..8826dde5f --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/index.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3, + four: 4 // Add new number +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/index.js.map b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/index.js.map new file mode 100644 index 000000000..da47828f7 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC,CAAC,iBAAiB;CAC1B,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/tsconfig.tsbuildinfo new file mode 100644 index 000000000..7ca855d72 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../index.ts": { + "version": "244518e7eae5520d792e5c61f0be65249602dd956014a68836c0a35ed686ba28", + "signature": "62ddf784ed6089de71b4c25f21fff18638b9f2aced0722673521c41ab6739ff3", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "outDir": "./", + "types": [], + "newLine": "LF", + "configFilePath": "../tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../index.ts", + "../../../../node_modules/typescript/lib/lib.d.ts", + "../../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/output.txt index ce5d245f0..8748c906e 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.34 KiB main [emitted] main - ../lib/out/index.js.map 223 bytes [emitted] - ../lib/out/index.js 169 bytes [emitted] - ../lib/out/index.d.ts 108 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + lib/out/index.js.map 224 bytes [emitted] + lib/out/index.js 192 bytes [emitted] + lib/out/index.d.ts 108 bytes [emitted] +lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/out/index.js] 130 bytes {main} \ No newline at end of file +[./lib/out/index.js] 152 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/index.d.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/index.d.ts new file mode 100644 index 000000000..bf8664e75 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/index.d.ts @@ -0,0 +1,7 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; + five: number; +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/index.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/index.js new file mode 100644 index 000000000..2a51bc571 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/index.js @@ -0,0 +1,11 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3, + four: 4, + five: 5 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/index.js.map b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/index.js.map new file mode 100644 index 000000000..6f1b651a7 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;CACR,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/tsconfig.tsbuildinfo new file mode 100644 index 000000000..256dd2553 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../index.ts": { + "version": "c250f21a4c1fc3baa49fd9af20e30f28a0c5a4c1ab58eead42bbca5482f3f963", + "signature": "91e339b852a37bfd9c724f31c9c6a973d4aef13027e3a86a4f7d76bd8e655452", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "outDir": "./", + "types": [], + "newLine": "LF", + "configFilePath": "../tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../index.ts", + "../../../../node_modules/typescript/lib/lib.d.ts", + "../../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/output.txt index 45e4a892c..0956a592e 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.4 KiB main [emitted] main - ../lib/out/index.js.map 230 bytes [emitted] - ../lib/out/index.js 165 bytes [emitted] - ../lib/out/index.d.ts 127 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.43 KiB main [emitted] main + lib/out/index.js.map 231 bytes [emitted] + lib/out/index.js 188 bytes [emitted] + lib/out/index.d.ts 127 bytes [emitted] +lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] -[./lib/out/index.js] 161 bytes {main} \ No newline at end of file +[./lib/out/index.js] 183 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/index.d.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/index.d.ts new file mode 100644 index 000000000..bf8664e75 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/index.d.ts @@ -0,0 +1,7 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; + five: number; +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/index.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/index.js new file mode 100644 index 000000000..2a51bc571 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/index.js @@ -0,0 +1,11 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3, + four: 4, + five: 5 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/index.js.map b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/index.js.map new file mode 100644 index 000000000..6f1b651a7 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;CACR,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/tsconfig.tsbuildinfo new file mode 100644 index 000000000..256dd2553 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../index.ts": { + "version": "c250f21a4c1fc3baa49fd9af20e30f28a0c5a4c1ab58eead42bbca5482f3f963", + "signature": "91e339b852a37bfd9c724f31c9c6a973d4aef13027e3a86a4f7d76bd8e655452", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "outDir": "./", + "types": [], + "newLine": "LF", + "configFilePath": "../tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../index.ts", + "../../../../node_modules/typescript/lib/lib.d.ts", + "../../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/output.txt index 19b95a267..0a69f8b61 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.44 KiB main main - ../lib/out/index.js.map 230 bytes [emitted] - ../lib/out/index.js 165 bytes [emitted] - ../lib/out/index.d.ts 127 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.46 KiB main main + lib/out/index.js.map 231 bytes [emitted] + lib/out/index.js 188 bytes [emitted] + lib/out/index.d.ts 127 bytes [emitted] +lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] -[./lib/out/index.js] 161 bytes {main} \ No newline at end of file +[./lib/out/index.js] 183 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/lib/tsconfig.json b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/lib/tsconfig.json index 2ca71a202..7c6ce1c62 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/lib/tsconfig.json @@ -2,7 +2,8 @@ "compilerOptions": { "composite": true, "sourceMap": true, - "outDir": "./out" + "outDir": "./out", + "types": [] }, "files": [ "./index.ts" diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/tsconfig.json b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/tsconfig.json index 6d9798ff7..930f83544 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/tsconfig.json +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/tsconfig.json @@ -1,8 +1,11 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" } - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/out/index.d.ts b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/out/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/out/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/out/index.js b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/out/index.js new file mode 100644 index 000000000..601001a45 --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/out/index.js @@ -0,0 +1,6 @@ +export const lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/out/index.js.map b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/out/index.js.map new file mode 100644 index 000000000..e54726f0a --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..629434f09 --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,293 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.d.ts": { + "version": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", + "signature": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2016.d.ts": { + "version": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", + "signature": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2017.d.ts": { + "version": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", + "signature": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2018.d.ts": { + "version": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", + "signature": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2019.d.ts": { + "version": "e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84", + "signature": "e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2020.d.ts": { + "version": "94b4108552f078722078d7c4a010ca4851063882f6c0c51a1468aa7a39aed4b3", + "signature": "94b4108552f078722078d7c4a010ca4851063882f6c0c51a1468aa7a39aed4b3", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.esnext.d.ts": { + "version": "2f8f379dedbdbd96a38a1e445cb3919853a1157a950fd977f85808db8d0f8a58", + "signature": "2f8f379dedbdbd96a38a1e445cb3919853a1157a950fd977f85808db8d0f8a58", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.iterable.d.ts": { + "version": "fb0c09b697dc42afa84d1587e3c994a2f554d2a45635e4f0618768d16a86b69a", + "signature": "fb0c09b697dc42afa84d1587e3c994a2f554d2a45635e4f0618768d16a86b69a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.core.d.ts": { + "version": "63e0cc12d0f77394094bd19e84464f9840af0071e5b9358ced30511efef1d8d2", + "signature": "63e0cc12d0f77394094bd19e84464f9840af0071e5b9358ced30511efef1d8d2", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.collection.d.ts": { + "version": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", + "signature": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.generator.d.ts": { + "version": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", + "signature": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts": { + "version": "42f5e41e5893da663dbf0394268f54f1da4b43dc0ddd2ea4bf471fe5361d6faf", + "signature": "42f5e41e5893da663dbf0394268f54f1da4b43dc0ddd2ea4bf471fe5361d6faf", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.promise.d.ts": { + "version": "0b7a905675e6cb4211c128f0a3aa47d414b275180a299a9aad5d3ec298abbfc4", + "signature": "0b7a905675e6cb4211c128f0a3aa47d414b275180a299a9aad5d3ec298abbfc4", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts": { + "version": "dfff68b3c34338f6b307a25d4566de15eed7973b0dc5d69f9fde2bcac1c25315", + "signature": "dfff68b3c34338f6b307a25d4566de15eed7973b0dc5d69f9fde2bcac1c25315", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts": { + "version": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", + "signature": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts": { + "version": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", + "signature": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts": { + "version": "4670208dd7da9d6c774ab1b75c1527a810388c7989c4905de6aaea8561cb9dce", + "signature": "4670208dd7da9d6c774ab1b75c1527a810388c7989c4905de6aaea8561cb9dce", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts": { + "version": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", + "signature": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.object.d.ts": { + "version": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", + "signature": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts": { + "version": "d0db416bccdb33975548baf09a42ee8c47eace1aac7907351a000f1e568e7232", + "signature": "d0db416bccdb33975548baf09a42ee8c47eace1aac7907351a000f1e568e7232", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.string.d.ts": { + "version": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", + "signature": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.intl.d.ts": { + "version": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", + "signature": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts": { + "version": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", + "signature": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts": { + "version": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", + "signature": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts": { + "version": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", + "signature": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.intl.d.ts": { + "version": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", + "signature": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.promise.d.ts": { + "version": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", + "signature": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts": { + "version": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", + "signature": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.array.d.ts": { + "version": "9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951", + "signature": "9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.object.d.ts": { + "version": "6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de", + "signature": "6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.string.d.ts": { + "version": "93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1", + "signature": "93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts": { + "version": "2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993", + "signature": "2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts": { + "version": "4f435f794b7853c55e2ae7cff6206025802aa79232d2867544178f2ca8ff5eaa", + "signature": "4f435f794b7853c55e2ae7cff6206025802aa79232d2867544178f2ca8ff5eaa", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.promise.d.ts": { + "version": "7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862", + "signature": "7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.string.d.ts": { + "version": "faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e", + "signature": "faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts": { + "version": "936d7d2e8851af9ccfa5333b15e877a824417d352b1d7fd06388639dc69ef80a", + "signature": "936d7d2e8851af9ccfa5333b15e877a824417d352b1d7fd06388639dc69ef80a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.intl.d.ts": { + "version": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", + "signature": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.string.d.ts": { + "version": "fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe", + "signature": "fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.promise.d.ts": { + "version": "cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e", + "signature": "cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.full.d.ts": { + "version": "d96fa8a56871904776165ceb8e00bd56127e1a017bb2664cae76223b5f815141", + "signature": "d96fa8a56871904776165ceb8e00bd56127e1a017bb2664cae76223b5f815141", + "affectsGlobalScope": false + }, + "./src/index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "affectsGlobalScope": false + } + }, + "options": { + "target": 99, + "composite": true, + "sourceMap": true, + "outDir": "./out", + "rootDir": "./src", + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./src/index.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.dom.iterable.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.collection.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.core.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.generator.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.promise.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "../../../node_modules/typescript/lib/lib.es2016.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.intl.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.object.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.string.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.intl.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.promise.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.array.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.object.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.string.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.promise.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.string.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.full.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.intl.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.promise.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.string.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/output.txt index d284a2f44..dff7b21ad 100644 --- a/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.66 KiB main [emitted] main - ../lib/out/index.js.map 202 bytes [emitted] - ../lib/out/index.js 99 bytes [emitted] - ../lib/out/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 74.3 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.66 KiB main [emitted] main + lib/out/index.js.map 202 bytes [emitted] + lib/out/index.js 99 bytes [emitted] + lib/out/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 81.3 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 81 bytes {main} [built] [./lib/src/index.ts] 66 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/out/index.d.ts b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/out/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/out/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/out/index.js b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/out/index.js new file mode 100644 index 000000000..601001a45 --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/out/index.js @@ -0,0 +1,6 @@ +export const lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/out/index.js.map b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/out/index.js.map new file mode 100644 index 000000000..e54726f0a --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..629434f09 --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,293 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.d.ts": { + "version": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", + "signature": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2016.d.ts": { + "version": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", + "signature": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2017.d.ts": { + "version": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", + "signature": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2018.d.ts": { + "version": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", + "signature": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2019.d.ts": { + "version": "e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84", + "signature": "e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2020.d.ts": { + "version": "94b4108552f078722078d7c4a010ca4851063882f6c0c51a1468aa7a39aed4b3", + "signature": "94b4108552f078722078d7c4a010ca4851063882f6c0c51a1468aa7a39aed4b3", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.esnext.d.ts": { + "version": "2f8f379dedbdbd96a38a1e445cb3919853a1157a950fd977f85808db8d0f8a58", + "signature": "2f8f379dedbdbd96a38a1e445cb3919853a1157a950fd977f85808db8d0f8a58", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.iterable.d.ts": { + "version": "fb0c09b697dc42afa84d1587e3c994a2f554d2a45635e4f0618768d16a86b69a", + "signature": "fb0c09b697dc42afa84d1587e3c994a2f554d2a45635e4f0618768d16a86b69a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.core.d.ts": { + "version": "63e0cc12d0f77394094bd19e84464f9840af0071e5b9358ced30511efef1d8d2", + "signature": "63e0cc12d0f77394094bd19e84464f9840af0071e5b9358ced30511efef1d8d2", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.collection.d.ts": { + "version": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", + "signature": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.generator.d.ts": { + "version": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", + "signature": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts": { + "version": "42f5e41e5893da663dbf0394268f54f1da4b43dc0ddd2ea4bf471fe5361d6faf", + "signature": "42f5e41e5893da663dbf0394268f54f1da4b43dc0ddd2ea4bf471fe5361d6faf", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.promise.d.ts": { + "version": "0b7a905675e6cb4211c128f0a3aa47d414b275180a299a9aad5d3ec298abbfc4", + "signature": "0b7a905675e6cb4211c128f0a3aa47d414b275180a299a9aad5d3ec298abbfc4", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts": { + "version": "dfff68b3c34338f6b307a25d4566de15eed7973b0dc5d69f9fde2bcac1c25315", + "signature": "dfff68b3c34338f6b307a25d4566de15eed7973b0dc5d69f9fde2bcac1c25315", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts": { + "version": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", + "signature": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts": { + "version": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", + "signature": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts": { + "version": "4670208dd7da9d6c774ab1b75c1527a810388c7989c4905de6aaea8561cb9dce", + "signature": "4670208dd7da9d6c774ab1b75c1527a810388c7989c4905de6aaea8561cb9dce", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts": { + "version": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", + "signature": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.object.d.ts": { + "version": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", + "signature": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts": { + "version": "d0db416bccdb33975548baf09a42ee8c47eace1aac7907351a000f1e568e7232", + "signature": "d0db416bccdb33975548baf09a42ee8c47eace1aac7907351a000f1e568e7232", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.string.d.ts": { + "version": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", + "signature": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.intl.d.ts": { + "version": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", + "signature": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts": { + "version": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", + "signature": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts": { + "version": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", + "signature": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts": { + "version": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", + "signature": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.intl.d.ts": { + "version": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", + "signature": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.promise.d.ts": { + "version": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", + "signature": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts": { + "version": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", + "signature": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.array.d.ts": { + "version": "9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951", + "signature": "9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.object.d.ts": { + "version": "6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de", + "signature": "6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.string.d.ts": { + "version": "93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1", + "signature": "93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts": { + "version": "2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993", + "signature": "2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts": { + "version": "4f435f794b7853c55e2ae7cff6206025802aa79232d2867544178f2ca8ff5eaa", + "signature": "4f435f794b7853c55e2ae7cff6206025802aa79232d2867544178f2ca8ff5eaa", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.promise.d.ts": { + "version": "7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862", + "signature": "7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.string.d.ts": { + "version": "faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e", + "signature": "faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts": { + "version": "936d7d2e8851af9ccfa5333b15e877a824417d352b1d7fd06388639dc69ef80a", + "signature": "936d7d2e8851af9ccfa5333b15e877a824417d352b1d7fd06388639dc69ef80a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.intl.d.ts": { + "version": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", + "signature": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.string.d.ts": { + "version": "fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe", + "signature": "fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.promise.d.ts": { + "version": "cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e", + "signature": "cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.full.d.ts": { + "version": "d96fa8a56871904776165ceb8e00bd56127e1a017bb2664cae76223b5f815141", + "signature": "d96fa8a56871904776165ceb8e00bd56127e1a017bb2664cae76223b5f815141", + "affectsGlobalScope": false + }, + "./src/index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "affectsGlobalScope": false + } + }, + "options": { + "target": 99, + "composite": true, + "sourceMap": true, + "outDir": "./out", + "rootDir": "./src", + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./src/index.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.dom.iterable.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.collection.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.core.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.generator.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.promise.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "../../../node_modules/typescript/lib/lib.es2016.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.intl.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.object.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.string.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.intl.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.promise.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.array.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.object.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.string.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.promise.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.string.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.full.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.intl.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.promise.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.string.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/output.txt index d284a2f44..dff7b21ad 100644 --- a/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.66 KiB main [emitted] main - ../lib/out/index.js.map 202 bytes [emitted] - ../lib/out/index.js 99 bytes [emitted] - ../lib/out/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 74.3 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.66 KiB main [emitted] main + lib/out/index.js.map 202 bytes [emitted] + lib/out/index.js 99 bytes [emitted] + lib/out/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 81.3 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 81 bytes {main} [built] [./lib/src/index.ts] 66 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDir/lib/tsconfig.json b/test/comparison-tests/projectReferencesRootDir/lib/tsconfig.json index 85f8bf6f6..2aa4f8918 100644 --- a/test/comparison-tests/projectReferencesRootDir/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesRootDir/lib/tsconfig.json @@ -4,7 +4,8 @@ "composite": true, "sourceMap": true, "outDir": "./out", - "rootDir": "./src" + "rootDir": "./src", + "types": [] }, "files": [ "./src/index.ts" diff --git a/test/comparison-tests/projectReferencesRootDir/tsconfig.json b/test/comparison-tests/projectReferencesRootDir/tsconfig.json index 9280cb221..087b490bb 100644 --- a/test/comparison-tests/projectReferencesRootDir/tsconfig.json +++ b/test/comparison-tests/projectReferencesRootDir/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { - "target": "esnext" + "target": "esnext", + "types": [] }, "files": ["./app.ts"], "references": [ diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/out/index.d.ts b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/out/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/out/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/out/index.js b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/out/index.js new file mode 100644 index 000000000..601001a45 --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/out/index.js @@ -0,0 +1,6 @@ +export const lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/out/index.js.map b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/out/index.js.map new file mode 100644 index 000000000..e54726f0a --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..629434f09 --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,293 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.d.ts": { + "version": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", + "signature": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2016.d.ts": { + "version": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", + "signature": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2017.d.ts": { + "version": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", + "signature": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2018.d.ts": { + "version": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", + "signature": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2019.d.ts": { + "version": "e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84", + "signature": "e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2020.d.ts": { + "version": "94b4108552f078722078d7c4a010ca4851063882f6c0c51a1468aa7a39aed4b3", + "signature": "94b4108552f078722078d7c4a010ca4851063882f6c0c51a1468aa7a39aed4b3", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.esnext.d.ts": { + "version": "2f8f379dedbdbd96a38a1e445cb3919853a1157a950fd977f85808db8d0f8a58", + "signature": "2f8f379dedbdbd96a38a1e445cb3919853a1157a950fd977f85808db8d0f8a58", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.iterable.d.ts": { + "version": "fb0c09b697dc42afa84d1587e3c994a2f554d2a45635e4f0618768d16a86b69a", + "signature": "fb0c09b697dc42afa84d1587e3c994a2f554d2a45635e4f0618768d16a86b69a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.core.d.ts": { + "version": "63e0cc12d0f77394094bd19e84464f9840af0071e5b9358ced30511efef1d8d2", + "signature": "63e0cc12d0f77394094bd19e84464f9840af0071e5b9358ced30511efef1d8d2", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.collection.d.ts": { + "version": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", + "signature": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.generator.d.ts": { + "version": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", + "signature": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts": { + "version": "42f5e41e5893da663dbf0394268f54f1da4b43dc0ddd2ea4bf471fe5361d6faf", + "signature": "42f5e41e5893da663dbf0394268f54f1da4b43dc0ddd2ea4bf471fe5361d6faf", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.promise.d.ts": { + "version": "0b7a905675e6cb4211c128f0a3aa47d414b275180a299a9aad5d3ec298abbfc4", + "signature": "0b7a905675e6cb4211c128f0a3aa47d414b275180a299a9aad5d3ec298abbfc4", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts": { + "version": "dfff68b3c34338f6b307a25d4566de15eed7973b0dc5d69f9fde2bcac1c25315", + "signature": "dfff68b3c34338f6b307a25d4566de15eed7973b0dc5d69f9fde2bcac1c25315", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts": { + "version": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", + "signature": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts": { + "version": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", + "signature": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts": { + "version": "4670208dd7da9d6c774ab1b75c1527a810388c7989c4905de6aaea8561cb9dce", + "signature": "4670208dd7da9d6c774ab1b75c1527a810388c7989c4905de6aaea8561cb9dce", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts": { + "version": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", + "signature": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.object.d.ts": { + "version": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", + "signature": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts": { + "version": "d0db416bccdb33975548baf09a42ee8c47eace1aac7907351a000f1e568e7232", + "signature": "d0db416bccdb33975548baf09a42ee8c47eace1aac7907351a000f1e568e7232", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.string.d.ts": { + "version": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", + "signature": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.intl.d.ts": { + "version": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", + "signature": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts": { + "version": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", + "signature": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts": { + "version": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", + "signature": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts": { + "version": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", + "signature": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.intl.d.ts": { + "version": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", + "signature": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.promise.d.ts": { + "version": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", + "signature": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts": { + "version": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", + "signature": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.array.d.ts": { + "version": "9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951", + "signature": "9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.object.d.ts": { + "version": "6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de", + "signature": "6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.string.d.ts": { + "version": "93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1", + "signature": "93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts": { + "version": "2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993", + "signature": "2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts": { + "version": "4f435f794b7853c55e2ae7cff6206025802aa79232d2867544178f2ca8ff5eaa", + "signature": "4f435f794b7853c55e2ae7cff6206025802aa79232d2867544178f2ca8ff5eaa", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.promise.d.ts": { + "version": "7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862", + "signature": "7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.string.d.ts": { + "version": "faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e", + "signature": "faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts": { + "version": "936d7d2e8851af9ccfa5333b15e877a824417d352b1d7fd06388639dc69ef80a", + "signature": "936d7d2e8851af9ccfa5333b15e877a824417d352b1d7fd06388639dc69ef80a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.intl.d.ts": { + "version": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", + "signature": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.string.d.ts": { + "version": "fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe", + "signature": "fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.promise.d.ts": { + "version": "cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e", + "signature": "cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.full.d.ts": { + "version": "d96fa8a56871904776165ceb8e00bd56127e1a017bb2664cae76223b5f815141", + "signature": "d96fa8a56871904776165ceb8e00bd56127e1a017bb2664cae76223b5f815141", + "affectsGlobalScope": false + }, + "./src/index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "affectsGlobalScope": false + } + }, + "options": { + "target": 99, + "composite": true, + "sourceMap": true, + "outDir": "./out", + "rootDir": "./src", + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./src/index.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.dom.iterable.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.collection.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.core.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.generator.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.promise.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "../../../node_modules/typescript/lib/lib.es2016.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.intl.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.object.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.string.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.intl.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.promise.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.array.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.object.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.string.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.promise.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.string.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.full.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.intl.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.promise.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.string.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/output.txt index d284a2f44..dff7b21ad 100644 --- a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.66 KiB main [emitted] main - ../lib/out/index.js.map 202 bytes [emitted] - ../lib/out/index.js 99 bytes [emitted] - ../lib/out/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 74.3 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.66 KiB main [emitted] main + lib/out/index.js.map 202 bytes [emitted] + lib/out/index.js 99 bytes [emitted] + lib/out/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 81.3 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 81 bytes {main} [built] [./lib/src/index.ts] 66 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/out/index.d.ts b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/out/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/out/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/out/index.js b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/out/index.js new file mode 100644 index 000000000..601001a45 --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/out/index.js @@ -0,0 +1,6 @@ +export const lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/out/index.js.map b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/out/index.js.map new file mode 100644 index 000000000..e54726f0a --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..629434f09 --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,293 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.d.ts": { + "version": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", + "signature": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2016.d.ts": { + "version": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", + "signature": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2017.d.ts": { + "version": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", + "signature": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2018.d.ts": { + "version": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", + "signature": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2019.d.ts": { + "version": "e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84", + "signature": "e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2020.d.ts": { + "version": "94b4108552f078722078d7c4a010ca4851063882f6c0c51a1468aa7a39aed4b3", + "signature": "94b4108552f078722078d7c4a010ca4851063882f6c0c51a1468aa7a39aed4b3", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.esnext.d.ts": { + "version": "2f8f379dedbdbd96a38a1e445cb3919853a1157a950fd977f85808db8d0f8a58", + "signature": "2f8f379dedbdbd96a38a1e445cb3919853a1157a950fd977f85808db8d0f8a58", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.iterable.d.ts": { + "version": "fb0c09b697dc42afa84d1587e3c994a2f554d2a45635e4f0618768d16a86b69a", + "signature": "fb0c09b697dc42afa84d1587e3c994a2f554d2a45635e4f0618768d16a86b69a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.core.d.ts": { + "version": "63e0cc12d0f77394094bd19e84464f9840af0071e5b9358ced30511efef1d8d2", + "signature": "63e0cc12d0f77394094bd19e84464f9840af0071e5b9358ced30511efef1d8d2", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.collection.d.ts": { + "version": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", + "signature": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.generator.d.ts": { + "version": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", + "signature": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts": { + "version": "42f5e41e5893da663dbf0394268f54f1da4b43dc0ddd2ea4bf471fe5361d6faf", + "signature": "42f5e41e5893da663dbf0394268f54f1da4b43dc0ddd2ea4bf471fe5361d6faf", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.promise.d.ts": { + "version": "0b7a905675e6cb4211c128f0a3aa47d414b275180a299a9aad5d3ec298abbfc4", + "signature": "0b7a905675e6cb4211c128f0a3aa47d414b275180a299a9aad5d3ec298abbfc4", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts": { + "version": "dfff68b3c34338f6b307a25d4566de15eed7973b0dc5d69f9fde2bcac1c25315", + "signature": "dfff68b3c34338f6b307a25d4566de15eed7973b0dc5d69f9fde2bcac1c25315", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts": { + "version": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", + "signature": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts": { + "version": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", + "signature": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts": { + "version": "4670208dd7da9d6c774ab1b75c1527a810388c7989c4905de6aaea8561cb9dce", + "signature": "4670208dd7da9d6c774ab1b75c1527a810388c7989c4905de6aaea8561cb9dce", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts": { + "version": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", + "signature": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.object.d.ts": { + "version": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", + "signature": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts": { + "version": "d0db416bccdb33975548baf09a42ee8c47eace1aac7907351a000f1e568e7232", + "signature": "d0db416bccdb33975548baf09a42ee8c47eace1aac7907351a000f1e568e7232", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.string.d.ts": { + "version": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", + "signature": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.intl.d.ts": { + "version": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", + "signature": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts": { + "version": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", + "signature": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts": { + "version": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", + "signature": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts": { + "version": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", + "signature": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.intl.d.ts": { + "version": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", + "signature": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.promise.d.ts": { + "version": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", + "signature": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts": { + "version": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", + "signature": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.array.d.ts": { + "version": "9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951", + "signature": "9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.object.d.ts": { + "version": "6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de", + "signature": "6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.string.d.ts": { + "version": "93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1", + "signature": "93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts": { + "version": "2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993", + "signature": "2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts": { + "version": "4f435f794b7853c55e2ae7cff6206025802aa79232d2867544178f2ca8ff5eaa", + "signature": "4f435f794b7853c55e2ae7cff6206025802aa79232d2867544178f2ca8ff5eaa", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.promise.d.ts": { + "version": "7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862", + "signature": "7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.string.d.ts": { + "version": "faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e", + "signature": "faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts": { + "version": "936d7d2e8851af9ccfa5333b15e877a824417d352b1d7fd06388639dc69ef80a", + "signature": "936d7d2e8851af9ccfa5333b15e877a824417d352b1d7fd06388639dc69ef80a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.intl.d.ts": { + "version": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", + "signature": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.string.d.ts": { + "version": "fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe", + "signature": "fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.promise.d.ts": { + "version": "cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e", + "signature": "cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.full.d.ts": { + "version": "d96fa8a56871904776165ceb8e00bd56127e1a017bb2664cae76223b5f815141", + "signature": "d96fa8a56871904776165ceb8e00bd56127e1a017bb2664cae76223b5f815141", + "affectsGlobalScope": false + }, + "./src/index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "affectsGlobalScope": false + } + }, + "options": { + "target": 99, + "composite": true, + "sourceMap": true, + "outDir": "./out", + "rootDir": "./src", + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./src/index.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.dom.iterable.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.collection.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.core.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.generator.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.promise.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "../../../node_modules/typescript/lib/lib.es2016.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.intl.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.object.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.string.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.intl.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.promise.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.array.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.object.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.string.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.promise.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.string.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.full.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.intl.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.promise.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.string.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/output.txt index d284a2f44..dff7b21ad 100644 --- a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.66 KiB main [emitted] main - ../lib/out/index.js.map 202 bytes [emitted] - ../lib/out/index.js 99 bytes [emitted] - ../lib/out/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 74.3 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.66 KiB main [emitted] main + lib/out/index.js.map 202 bytes [emitted] + lib/out/index.js 99 bytes [emitted] + lib/out/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 81.3 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 81 bytes {main} [built] [./lib/src/index.ts] 66 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/lib/tsconfig.json b/test/comparison-tests/projectReferencesRootDirInvalidConfig/lib/tsconfig.json index 85f8bf6f6..2aa4f8918 100644 --- a/test/comparison-tests/projectReferencesRootDirInvalidConfig/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/lib/tsconfig.json @@ -4,7 +4,8 @@ "composite": true, "sourceMap": true, "outDir": "./out", - "rootDir": "./src" + "rootDir": "./src", + "types": [] }, "files": [ "./src/index.ts" diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/tsconfig.json b/test/comparison-tests/projectReferencesRootDirInvalidConfig/tsconfig.json index b908d50de..25aa1d6ce 100644 --- a/test/comparison-tests/projectReferencesRootDirInvalidConfig/tsconfig.json +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { - "target": "esnext" + "target": "esnext", + "types": [] }, "files": [ "./app.ts" diff --git a/test/comparison-tests/projectReferencesSymLinks/app/tsconfig.json b/test/comparison-tests/projectReferencesSymLinks/app/tsconfig.json index 6e1c418d1..ba8a171cf 100644 --- a/test/comparison-tests/projectReferencesSymLinks/app/tsconfig.json +++ b/test/comparison-tests/projectReferencesSymLinks/app/tsconfig.json @@ -4,6 +4,7 @@ ], "compilerOptions": { "outDir": "dist", - "rootDir": "src" + "rootDir": "src", + "types": [] } } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/app/webpack.config.js b/test/comparison-tests/projectReferencesSymLinks/app/webpack.config.js index ff414f170..be60e6826 100644 --- a/test/comparison-tests/projectReferencesSymLinks/app/webpack.config.js +++ b/test/comparison-tests/projectReferencesSymLinks/app/webpack.config.js @@ -4,7 +4,8 @@ module.exports = { mode: 'development', entry: './src/index.ts', output: { - filename: 'bundle.js' + filename: 'index.js', + path: path.resolve(__dirname, 'dist') }, resolve: { extensions: ['.ts', '.js'] diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/bundle.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/app/dist/index.js similarity index 100% rename from test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/bundle.js rename to test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/app/dist/index.js diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.d.ts new file mode 100644 index 000000000..fdb004ae6 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.js new file mode 100644 index 000000000..dda890de3 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.js @@ -0,0 +1,4 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife = void 0; +exports.getMeaningOfLife = function () { return 45; }; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..093c84ab6 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./src/index.ts": { + "version": "ff819252a76f1faad34a482bcc90fb6ec1c85dd836c06dbcbea0c2c405ef6315", + "signature": "c0374b8bd606e6c8e0156f10567ee0c6e08986bb37d64ed818d623829ec7e1c2", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "outDir": "./dist", + "rootDir": "./src", + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./src/index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/output.txt index 5a3a571da..54adbc777 100644 --- a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.03 KiB main [emitted] main - ../lib/dist/index.js 135 bytes [emitted] - ../lib/dist/index.d.ts 54 bytes [emitted] -../lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] -Entrypoint main = bundle.js + Asset Size Chunks Chunk Names + index.js 4.03 KiB main [emitted] main + ../../lib/dist/index.js 135 bytes [emitted] + ../../lib/dist/index.d.ts 54 bytes [emitted] +../../lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] +Entrypoint main = index.js [./src/index.ts] 108 bytes {main} [built] [1 error] ERROR in ./src/index.ts @@ -12,5 +12,5 @@ Module not found: Error: Can't resolve 'lib' in 'app\src' ERROR in app\src\index.ts ./src/index.ts -[tsl] ERROR in app\src\index.ts(1,34) +[tsl] ERROR in app\src\index.ts(1,34)  TS2307: Cannot find module 'lib' or its corresponding type declarations. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/bundle.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/app/dist/index.js similarity index 100% rename from test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/bundle.js rename to test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/app/dist/index.js diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.d.ts new file mode 100644 index 000000000..fdb004ae6 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.js new file mode 100644 index 000000000..dda890de3 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.js @@ -0,0 +1,4 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife = void 0; +exports.getMeaningOfLife = function () { return 45; }; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..093c84ab6 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./src/index.ts": { + "version": "ff819252a76f1faad34a482bcc90fb6ec1c85dd836c06dbcbea0c2c405ef6315", + "signature": "c0374b8bd606e6c8e0156f10567ee0c6e08986bb37d64ed818d623829ec7e1c2", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "outDir": "./dist", + "rootDir": "./src", + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./src/index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/output.txt index 20060de19..945cefaf8 100644 --- a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.07 KiB main [emitted] main - ../lib/dist/index.js 135 bytes [emitted] - ../lib/dist/index.d.ts 54 bytes [emitted] -../lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] -Entrypoint main = bundle.js + Asset Size Chunks Chunk Names + index.js 4.07 KiB main [emitted] main + ../../lib/dist/index.js 135 bytes [emitted] + ../../lib/dist/index.d.ts 54 bytes [emitted] +../../lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] +Entrypoint main = index.js [./src/index.ts] 144 bytes {main} [built] ERROR in ./src/index.ts diff --git a/test/comparison-tests/projectReferencesSymLinks/lib/tsconfig.json b/test/comparison-tests/projectReferencesSymLinks/lib/tsconfig.json index 5c4b99e64..01fa4f903 100644 --- a/test/comparison-tests/projectReferencesSymLinks/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesSymLinks/lib/tsconfig.json @@ -2,6 +2,7 @@ "compilerOptions": { "composite": true, "outDir": "dist", - "rootDir": "src" + "rootDir": "src", + "types": [] } } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/bundle.js b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/bundle.js deleted file mode 100644 index 1acee0957..000000000 --- a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/bundle.js +++ /dev/null @@ -1,101 +0,0 @@ -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts"); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ "./src/index.ts": -/*!**********************!*\ - !*** ./src/index.ts ***! - \**********************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(!(function webpackMissingModule() { var e = new Error(\"Cannot find module 'lib'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()));\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); - -/***/ }) - -/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/output.txt index 5a3a571da..54adbc777 100644 --- a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.03 KiB main [emitted] main - ../lib/dist/index.js 135 bytes [emitted] - ../lib/dist/index.d.ts 54 bytes [emitted] -../lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] -Entrypoint main = bundle.js + Asset Size Chunks Chunk Names + index.js 4.03 KiB main [emitted] main + ../../lib/dist/index.js 135 bytes [emitted] + ../../lib/dist/index.d.ts 54 bytes [emitted] +../../lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] +Entrypoint main = index.js [./src/index.ts] 108 bytes {main} [built] [1 error] ERROR in ./src/index.ts @@ -12,5 +12,5 @@ Module not found: Error: Can't resolve 'lib' in 'app\src' ERROR in app\src\index.ts ./src/index.ts -[tsl] ERROR in app\src\index.ts(1,34) +[tsl] ERROR in app\src\index.ts(1,34)  TS2307: Cannot find module 'lib' or its corresponding type declarations. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/bundle.js b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/bundle.js deleted file mode 100644 index ca31929a0..000000000 --- a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/bundle.js +++ /dev/null @@ -1,101 +0,0 @@ -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts"); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ "./src/index.ts": -/*!**********************!*\ - !*** ./src/index.ts ***! - \**********************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(!(function webpackMissingModule() { var e = new Error(\"Cannot find module 'lib'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()));\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); - -/***/ }) - -/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/output.txt index 20060de19..945cefaf8 100644 --- a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.07 KiB main [emitted] main - ../lib/dist/index.js 135 bytes [emitted] - ../lib/dist/index.d.ts 54 bytes [emitted] -../lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] -Entrypoint main = bundle.js + Asset Size Chunks Chunk Names + index.js 4.07 KiB main [emitted] main + ../../lib/dist/index.js 135 bytes [emitted] + ../../lib/dist/index.d.ts 54 bytes [emitted] +../../lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] +Entrypoint main = index.js [./src/index.ts] 144 bytes {main} [built] ERROR in ./src/index.ts diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/index.d.ts b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/index.js b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/index.js new file mode 100644 index 000000000..e352a1efb --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/index.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/index.js.map b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/index.js.map new file mode 100644 index 000000000..d40fd63b7 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..e06f978c9 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,56 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/output.txt index 6a42c7a13..26473acfa 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.32 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/index.d.ts b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/index.d.ts new file mode 100644 index 000000000..78e83617f --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/index.d.ts @@ -0,0 +1,6 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/index.js b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/index.js new file mode 100644 index 000000000..8826dde5f --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/index.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3, + four: 4 // Add new number +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/index.js.map b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/index.js.map new file mode 100644 index 000000000..9032c302b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC,CAAC,iBAAiB;CAC1B,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..7a33d4755 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -0,0 +1,56 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "244518e7eae5520d792e5c61f0be65249602dd956014a68836c0a35ed686ba28", + "signature": "62ddf784ed6089de71b4c25f21fff18638b9f2aced0722673521c41ab6739ff3", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/output.txt index 52a5441eb..71721f718 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.33 KiB main [emitted] main - ../lib/index.js.map 220 bytes [emitted] - ../lib/index.js 169 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.35 KiB main [emitted] main + lib/index.js.map 221 bytes [emitted] + lib/index.js 192 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 159 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/index.d.ts b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/index.d.ts new file mode 100644 index 000000000..bf8664e75 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/index.d.ts @@ -0,0 +1,7 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; + five: number; +}; diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/index.js b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/index.js new file mode 100644 index 000000000..2a51bc571 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/index.js @@ -0,0 +1,11 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3, + four: 4, + five: 5 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/index.js.map b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/index.js.map new file mode 100644 index 000000000..6e255ed17 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;CACR,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..d85855375 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/tsconfig.tsbuildinfo @@ -0,0 +1,56 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "c250f21a4c1fc3baa49fd9af20e30f28a0c5a4c1ab58eead42bbca5482f3f963", + "signature": "91e339b852a37bfd9c724f31c9c6a973d4aef13027e3a86a4f7d76bd8e655452", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/output.txt index c4258a71a..556bfa2f1 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.36 KiB main [emitted] main - ../lib/index.js.map 227 bytes [emitted] - ../lib/index.js 165 bytes [emitted] - ../lib/index.d.ts 127 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.39 KiB main [emitted] main + lib/index.js.map 228 bytes [emitted] + lib/index.js 188 bytes [emitted] + lib/index.d.ts 127 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] -[./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 155 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/index.d.ts b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/index.js b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/index.js new file mode 100644 index 000000000..e352a1efb --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/index.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/index.js.map b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/index.js.map new file mode 100644 index 000000000..d40fd63b7 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..e06f978c9 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,56 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/output.txt index 9af9848b3..a3e931cac 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.33 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/index.d.ts b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/index.d.ts new file mode 100644 index 000000000..78e83617f --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/index.d.ts @@ -0,0 +1,6 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/index.js b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/index.js new file mode 100644 index 000000000..8826dde5f --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/index.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3, + four: 4 // Add new number +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/index.js.map b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/index.js.map new file mode 100644 index 000000000..9032c302b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC,CAAC,iBAAiB;CAC1B,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..7a33d4755 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -0,0 +1,56 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "244518e7eae5520d792e5c61f0be65249602dd956014a68836c0a35ed686ba28", + "signature": "62ddf784ed6089de71b4c25f21fff18638b9f2aced0722673521c41ab6739ff3", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/output.txt index 89803539b..d4f70acb1 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.36 KiB main [emitted] main - ../lib/index.js.map 220 bytes [emitted] - ../lib/index.js 169 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.39 KiB main [emitted] main + lib/index.js.map 221 bytes [emitted] + lib/index.js 192 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 159 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/index.d.ts b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/index.d.ts new file mode 100644 index 000000000..bf8664e75 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/index.d.ts @@ -0,0 +1,7 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; + five: number; +}; diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/index.js b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/index.js new file mode 100644 index 000000000..2a51bc571 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/index.js @@ -0,0 +1,11 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3, + four: 4, + five: 5 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/index.js.map b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/index.js.map new file mode 100644 index 000000000..6e255ed17 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;CACR,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..d85855375 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/tsconfig.tsbuildinfo @@ -0,0 +1,56 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "c250f21a4c1fc3baa49fd9af20e30f28a0c5a4c1ab58eead42bbca5482f3f963", + "signature": "91e339b852a37bfd9c724f31c9c6a973d4aef13027e3a86a4f7d76bd8e655452", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/output.txt index b98ffe647..f6eaeab5a 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.4 KiB main [emitted] main - ../lib/index.js.map 227 bytes [emitted] - ../lib/index.js 165 bytes [emitted] - ../lib/index.d.ts 127 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.42 KiB main [emitted] main + lib/index.js.map 228 bytes [emitted] + lib/index.js 188 bytes [emitted] + lib/index.d.ts 127 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] -[./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 155 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/lib/tsconfig.json b/test/comparison-tests/projectReferencesWatch/lib/tsconfig.json index 506c325eb..8469a0937 100644 --- a/test/comparison-tests/projectReferencesWatch/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesWatch/lib/tsconfig.json @@ -1,7 +1,8 @@ { "compilerOptions": { "composite": true, - "sourceMap": true + "sourceMap": true, + "types": [] }, "files": [ "./index.ts" diff --git a/test/comparison-tests/projectReferencesWatch/tsconfig.json b/test/comparison-tests/projectReferencesWatch/tsconfig.json index 6d9798ff7..e79485246 100644 --- a/test/comparison-tests/projectReferencesWatch/tsconfig.json +++ b/test/comparison-tests/projectReferencesWatch/tsconfig.json @@ -1,8 +1,11 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" } - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/helper.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/helper.d.ts new file mode 100644 index 000000000..ea0d91498 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/helper.d.ts @@ -0,0 +1,5 @@ +export declare const helper: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/helper.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/helper.js new file mode 100644 index 000000000..1159a61fe --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/helper.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.helper = void 0; +exports.helper = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=helper.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/helper.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/helper.js.map new file mode 100644 index 000000000..8de705855 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/helper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"helper.js","sourceRoot":"","sources":["helper.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IAClB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACX,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/index.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/index.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/index.js new file mode 100644 index 000000000..2944247f2 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/index.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +var helper_1 = require("./helper"); +exports.lib = { + one: helper_1.helper.one, + two: helper_1.helper.two, + three: helper_1.helper.three +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/index.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/index.js.map new file mode 100644 index 000000000..c02fb5203 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AACrB,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,KAAK,EAAE,eAAM,CAAC,KAAK;CACpB,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..0a549af42 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,66 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./helper.ts": { + "version": "bd8500a78d56a07c2de3c8c735ca2ea8bfba63861da1c1e6a77f96ac5526c238", + "signature": "affd04424229ba34162d389ba65c55af2f176324c07a2225509909a216b2b7b1", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "bc4ed2b009cdf5f131d46c0ab70386155058ea9011c613bdf82b0b16dae6fa1c", + "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./index.ts": [ + "./helper.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./helper.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/output.txt index 64a78458e..2776cbc05 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.8 KiB main [emitted] main - ../lib/helper.js.map 189 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 230 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.85 KiB main [emitted] main + lib/helper.js.map 190 bytes [emitted] + lib/helper.js 167 bytes [emitted] + lib/helper.d.ts 92 bytes [emitted] + lib/index.js.map 232 bytes [emitted] + lib/index.js 253 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/helper.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/helper.d.ts new file mode 100644 index 000000000..c9fffcbf7 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/helper.d.ts @@ -0,0 +1,6 @@ +export declare const helper: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/helper.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/helper.js new file mode 100644 index 000000000..fd4291075 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/helper.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.helper = void 0; +exports.helper = { + one: 1, + two: 2, + three: 3, + four: 4 +}; +//# sourceMappingURL=helper.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/helper.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/helper.js.map new file mode 100644 index 000000000..9bdff574b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/helper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"helper.js","sourceRoot":"","sources":["helper.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IAClB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;CACV,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/index.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/index.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/index.js new file mode 100644 index 000000000..2944247f2 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/index.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +var helper_1 = require("./helper"); +exports.lib = { + one: helper_1.helper.one, + two: helper_1.helper.two, + three: helper_1.helper.three +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/index.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/index.js.map new file mode 100644 index 000000000..c02fb5203 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AACrB,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,KAAK,EAAE,eAAM,CAAC,KAAK;CACpB,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..5fa6ffcfd --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -0,0 +1,66 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./helper.ts": { + "version": "1fb681e6157008026aa84db0d697833c02fcb11e4b1cb011820844edbffa703c", + "signature": "c79e448f78bd9c48a9e0aabefabef9bf362709376fa9153291947d0c73b3a707", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "bc4ed2b009cdf5f131d46c0ab70386155058ea9011c613bdf82b0b16dae6fa1c", + "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./index.ts": [ + "./helper.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./helper.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/output.txt index 0a5fc811c..3455fca93 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.82 KiB main [emitted] main - ../lib/helper.js.map 209 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] - ../lib/helper.d.ts 111 bytes [emitted] - ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 230 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.87 KiB main [emitted] main + lib/helper.js.map 210 bytes [emitted] + lib/helper.js 181 bytes [emitted] + lib/helper.d.ts 111 bytes [emitted] + lib/index.js.map 232 bytes [emitted] + lib/index.js 253 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/helper.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/helper.d.ts new file mode 100644 index 000000000..ea0d91498 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/helper.d.ts @@ -0,0 +1,5 @@ +export declare const helper: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/helper.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/helper.js new file mode 100644 index 000000000..1159a61fe --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/helper.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.helper = void 0; +exports.helper = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=helper.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/helper.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/helper.js.map new file mode 100644 index 000000000..8de705855 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/helper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"helper.js","sourceRoot":"","sources":["helper.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IAClB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACX,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/index.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/index.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/index.js new file mode 100644 index 000000000..2944247f2 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/index.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +var helper_1 = require("./helper"); +exports.lib = { + one: helper_1.helper.one, + two: helper_1.helper.two, + three: helper_1.helper.three +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/index.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/index.js.map new file mode 100644 index 000000000..c02fb5203 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AACrB,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,KAAK,EAAE,eAAM,CAAC,KAAK;CACpB,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..0a549af42 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,66 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./helper.ts": { + "version": "bd8500a78d56a07c2de3c8c735ca2ea8bfba63861da1c1e6a77f96ac5526c238", + "signature": "affd04424229ba34162d389ba65c55af2f176324c07a2225509909a216b2b7b1", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "bc4ed2b009cdf5f131d46c0ab70386155058ea9011c613bdf82b0b16dae6fa1c", + "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./index.ts": [ + "./helper.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./helper.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/output.txt index f8b6ac8a8..c20c2e4f4 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.84 KiB main [emitted] main - ../lib/helper.js.map 189 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 230 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.89 KiB main [emitted] main + lib/helper.js.map 190 bytes [emitted] + lib/helper.js 167 bytes [emitted] + lib/helper.d.ts 92 bytes [emitted] + lib/index.js.map 232 bytes [emitted] + lib/index.js 253 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/helper.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/helper.d.ts new file mode 100644 index 000000000..c9fffcbf7 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/helper.d.ts @@ -0,0 +1,6 @@ +export declare const helper: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/helper.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/helper.js new file mode 100644 index 000000000..fd4291075 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/helper.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.helper = void 0; +exports.helper = { + one: 1, + two: 2, + three: 3, + four: 4 +}; +//# sourceMappingURL=helper.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/helper.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/helper.js.map new file mode 100644 index 000000000..9bdff574b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/helper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"helper.js","sourceRoot":"","sources":["helper.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IAClB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;CACV,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/index.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/index.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/index.js new file mode 100644 index 000000000..2944247f2 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/index.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +var helper_1 = require("./helper"); +exports.lib = { + one: helper_1.helper.one, + two: helper_1.helper.two, + three: helper_1.helper.three +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/index.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/index.js.map new file mode 100644 index 000000000..c02fb5203 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AACrB,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,KAAK,EAAE,eAAM,CAAC,KAAK;CACpB,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..5fa6ffcfd --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -0,0 +1,66 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./helper.ts": { + "version": "1fb681e6157008026aa84db0d697833c02fcb11e4b1cb011820844edbffa703c", + "signature": "c79e448f78bd9c48a9e0aabefabef9bf362709376fa9153291947d0c73b3a707", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "bc4ed2b009cdf5f131d46c0ab70386155058ea9011c613bdf82b0b16dae6fa1c", + "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./index.ts": [ + "./helper.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./helper.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/output.txt index a3a66b07b..7790ac0f4 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.85 KiB main [emitted] main - ../lib/helper.js.map 209 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] - ../lib/helper.d.ts 111 bytes [emitted] - ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 230 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.91 KiB main [emitted] main + lib/helper.js.map 210 bytes [emitted] + lib/helper.js 181 bytes [emitted] + lib/helper.d.ts 111 bytes [emitted] + lib/index.js.map 232 bytes [emitted] + lib/index.js 253 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/lib/tsconfig.json b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/lib/tsconfig.json index 97686f819..e0b623a8e 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/lib/tsconfig.json @@ -1,7 +1,8 @@ { "compilerOptions": { "composite": true, - "sourceMap": true + "sourceMap": true, + "types": [] }, "files": [ "./index.ts", diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/tsconfig.json b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/tsconfig.json index 6d9798ff7..930f83544 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/tsconfig.json +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/tsconfig.json @@ -1,8 +1,11 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" } - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/helper.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/helper.d.ts new file mode 100644 index 000000000..ea0d91498 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/helper.d.ts @@ -0,0 +1,5 @@ +export declare const helper: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/helper.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/helper.js new file mode 100644 index 000000000..1159a61fe --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/helper.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.helper = void 0; +exports.helper = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=helper.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/helper.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/helper.js.map new file mode 100644 index 000000000..8de705855 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/helper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"helper.js","sourceRoot":"","sources":["helper.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IAClB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACX,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/index.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/index.d.ts new file mode 100644 index 000000000..78e83617f --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/index.d.ts @@ -0,0 +1,6 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/index.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/index.js new file mode 100644 index 000000000..c526f1a8b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/index.js @@ -0,0 +1,11 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +var helper_1 = require("./helper"); +exports.lib = { + one: helper_1.helper.one, + two: helper_1.helper.two, + three: helper_1.helper.three, + four: 4 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/index.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/index.js.map new file mode 100644 index 000000000..75ee60e19 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AACrB,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,KAAK,EAAE,eAAM,CAAC,KAAK;IACnB,IAAI,EAAE,CAAC;CACR,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..605d04eea --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -0,0 +1,66 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./helper.ts": { + "version": "bd8500a78d56a07c2de3c8c735ca2ea8bfba63861da1c1e6a77f96ac5526c238", + "signature": "affd04424229ba34162d389ba65c55af2f176324c07a2225509909a216b2b7b1", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "2433124b24fe94913871ceba0ffaaa1bb06e73b73a6f6b4181c52b6208eb922e", + "signature": "62ddf784ed6089de71b4c25f21fff18638b9f2aced0722673521c41ab6739ff3", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./index.ts": [ + "./helper.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./helper.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/output.txt index aaf278006..57c1eedc5 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.82 KiB main [emitted] main - ../lib/helper.js.map 189 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.87 KiB main [emitted] main + lib/helper.js.map 190 bytes [emitted] + lib/helper.js 167 bytes [emitted] + lib/helper.d.ts 92 bytes [emitted] + lib/index.js.map 252 bytes [emitted] + lib/index.js 267 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} -[./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} +[./lib/index.ts] 234 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/helper.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/helper.d.ts new file mode 100644 index 000000000..c9fffcbf7 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/helper.d.ts @@ -0,0 +1,6 @@ +export declare const helper: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/helper.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/helper.js new file mode 100644 index 000000000..fd4291075 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/helper.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.helper = void 0; +exports.helper = { + one: 1, + two: 2, + three: 3, + four: 4 +}; +//# sourceMappingURL=helper.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/helper.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/helper.js.map new file mode 100644 index 000000000..9bdff574b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/helper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"helper.js","sourceRoot":"","sources":["helper.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IAClB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;CACV,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/index.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/index.d.ts new file mode 100644 index 000000000..78e83617f --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/index.d.ts @@ -0,0 +1,6 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/index.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/index.js new file mode 100644 index 000000000..c526f1a8b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/index.js @@ -0,0 +1,11 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +var helper_1 = require("./helper"); +exports.lib = { + one: helper_1.helper.one, + two: helper_1.helper.two, + three: helper_1.helper.three, + four: 4 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/index.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/index.js.map new file mode 100644 index 000000000..75ee60e19 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AACrB,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,KAAK,EAAE,eAAM,CAAC,KAAK;IACnB,IAAI,EAAE,CAAC;CACR,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..c162119bc --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/tsconfig.tsbuildinfo @@ -0,0 +1,66 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./helper.ts": { + "version": "1fb681e6157008026aa84db0d697833c02fcb11e4b1cb011820844edbffa703c", + "signature": "c79e448f78bd9c48a9e0aabefabef9bf362709376fa9153291947d0c73b3a707", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "2433124b24fe94913871ceba0ffaaa1bb06e73b73a6f6b4181c52b6208eb922e", + "signature": "62ddf784ed6089de71b4c25f21fff18638b9f2aced0722673521c41ab6739ff3", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./index.ts": [ + "./helper.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./helper.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/output.txt index 64d8efac9..b9048a9f5 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.83 KiB main [emitted] main - ../lib/helper.js.map 209 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] - ../lib/helper.d.ts 111 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.88 KiB main [emitted] main + lib/helper.js.map 210 bytes [emitted] + lib/helper.js 181 bytes [emitted] + lib/helper.d.ts 111 bytes [emitted] + lib/index.js.map 252 bytes [emitted] + lib/index.js 267 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} [built] +[./lib/index.ts] 234 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/helper.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/helper.d.ts new file mode 100644 index 000000000..ea0d91498 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/helper.d.ts @@ -0,0 +1,5 @@ +export declare const helper: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/helper.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/helper.js new file mode 100644 index 000000000..1159a61fe --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/helper.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.helper = void 0; +exports.helper = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=helper.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/helper.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/helper.js.map new file mode 100644 index 000000000..8de705855 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/helper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"helper.js","sourceRoot":"","sources":["helper.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IAClB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACX,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/index.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/index.d.ts new file mode 100644 index 000000000..78e83617f --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/index.d.ts @@ -0,0 +1,6 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/index.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/index.js new file mode 100644 index 000000000..c526f1a8b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/index.js @@ -0,0 +1,11 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +var helper_1 = require("./helper"); +exports.lib = { + one: helper_1.helper.one, + two: helper_1.helper.two, + three: helper_1.helper.three, + four: 4 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/index.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/index.js.map new file mode 100644 index 000000000..75ee60e19 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AACrB,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,KAAK,EAAE,eAAM,CAAC,KAAK;IACnB,IAAI,EAAE,CAAC;CACR,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..605d04eea --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -0,0 +1,66 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./helper.ts": { + "version": "bd8500a78d56a07c2de3c8c735ca2ea8bfba63861da1c1e6a77f96ac5526c238", + "signature": "affd04424229ba34162d389ba65c55af2f176324c07a2225509909a216b2b7b1", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "2433124b24fe94913871ceba0ffaaa1bb06e73b73a6f6b4181c52b6208eb922e", + "signature": "62ddf784ed6089de71b4c25f21fff18638b9f2aced0722673521c41ab6739ff3", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./index.ts": [ + "./helper.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./helper.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/output.txt index 56fb6d5dd..06efbd0e3 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.85 KiB main [emitted] main - ../lib/helper.js.map 189 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.91 KiB main [emitted] main + lib/helper.js.map 190 bytes [emitted] + lib/helper.js 167 bytes [emitted] + lib/helper.d.ts 92 bytes [emitted] + lib/index.js.map 252 bytes [emitted] + lib/index.js 267 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} -[./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} +[./lib/index.ts] 234 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/helper.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/helper.d.ts new file mode 100644 index 000000000..c9fffcbf7 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/helper.d.ts @@ -0,0 +1,6 @@ +export declare const helper: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/helper.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/helper.js new file mode 100644 index 000000000..fd4291075 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/helper.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.helper = void 0; +exports.helper = { + one: 1, + two: 2, + three: 3, + four: 4 +}; +//# sourceMappingURL=helper.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/helper.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/helper.js.map new file mode 100644 index 000000000..9bdff574b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/helper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"helper.js","sourceRoot":"","sources":["helper.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IAClB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;CACV,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/index.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/index.d.ts new file mode 100644 index 000000000..78e83617f --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/index.d.ts @@ -0,0 +1,6 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/index.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/index.js new file mode 100644 index 000000000..c526f1a8b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/index.js @@ -0,0 +1,11 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +var helper_1 = require("./helper"); +exports.lib = { + one: helper_1.helper.one, + two: helper_1.helper.two, + three: helper_1.helper.three, + four: 4 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/index.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/index.js.map new file mode 100644 index 000000000..75ee60e19 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AACrB,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,KAAK,EAAE,eAAM,CAAC,KAAK;IACnB,IAAI,EAAE,CAAC;CACR,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..c162119bc --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/tsconfig.tsbuildinfo @@ -0,0 +1,66 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./helper.ts": { + "version": "1fb681e6157008026aa84db0d697833c02fcb11e4b1cb011820844edbffa703c", + "signature": "c79e448f78bd9c48a9e0aabefabef9bf362709376fa9153291947d0c73b3a707", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "2433124b24fe94913871ceba0ffaaa1bb06e73b73a6f6b4181c52b6208eb922e", + "signature": "62ddf784ed6089de71b4c25f21fff18638b9f2aced0722673521c41ab6739ff3", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./index.ts": [ + "./helper.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./helper.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/output.txt index 44dcb5f5b..066150536 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.87 KiB main [emitted] main - ../lib/helper.js.map 209 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] - ../lib/helper.d.ts 111 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.92 KiB main [emitted] main + lib/helper.js.map 210 bytes [emitted] + lib/helper.js 181 bytes [emitted] + lib/helper.d.ts 111 bytes [emitted] + lib/index.js.map 252 bytes [emitted] + lib/index.js 267 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 211 bytes {main} \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} [built] +[./lib/index.ts] 234 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/lib/tsconfig.json b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/lib/tsconfig.json index 97686f819..e0b623a8e 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/lib/tsconfig.json @@ -1,7 +1,8 @@ { "compilerOptions": { "composite": true, - "sourceMap": true + "sourceMap": true, + "types": [] }, "files": [ "./index.ts", diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/tsconfig.json b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/tsconfig.json index 6d9798ff7..930f83544 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/tsconfig.json +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/tsconfig.json @@ -1,8 +1,11 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" } - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/app.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/output.txt index 5645df8f1..8dc18b4c9 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/output.txt @@ -1,8 +1,8 @@ - Asset Size Chunks Chunk Names - bundle.js 4.77 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] -../tsconfig.tsbuildinfo 51.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.85 KiB main [emitted] main + app.d.ts 11 bytes [emitted] +tsconfig.tsbuildinfo 56.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 100 bytes {main} [built] -[./lib/index.ts] 189 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/app.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt index 31619c09e..2e327033b 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt @@ -1,14 +1,14 @@ - Asset Size Chunks Chunk Names - bundle.js 4.82 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] - ../lib/helper.js.map 189 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.87 KiB main [emitted] main + app.d.ts 11 bytes [emitted] + lib/helper.js.map 190 bytes [emitted] + lib/helper.js 167 bytes [emitted] + lib/helper.d.ts 92 bytes [emitted] + lib/index.js.map 252 bytes [emitted] + lib/index.js 267 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} -[./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} +[./lib/index.ts] 234 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch1/app.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch1/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch1/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch1/output.txt index b79592e04..b8bcce98e 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch1/output.txt @@ -1,14 +1,14 @@ - Asset Size Chunks Chunk Names - bundle.js 4.83 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] - ../lib/helper.js.map 209 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] - ../lib/helper.d.ts 111 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.88 KiB main [emitted] main + app.d.ts 11 bytes [emitted] + lib/helper.js.map 210 bytes [emitted] + lib/helper.js 181 bytes [emitted] + lib/helper.d.ts 111 bytes [emitted] + lib/index.js.map 252 bytes [emitted] + lib/index.js 267 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} [built] +[./lib/index.ts] 234 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch2/app.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch2/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch2/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch2/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch2/output.txt index bb6f28d8f..249f0bb4b 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch2/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch2/output.txt @@ -1,7 +1,7 @@ - Asset Size Chunks Chunk Names - bundle.js 4.8 KiB main [emitted] main -../app.d.ts 11 bytes [emitted] + Asset Size Chunks Chunk Names +bundle.js 4.88 KiB main [emitted] main + app.d.ts 11 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 113 bytes {main} -[./lib/index.ts] 202 bytes {main} \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} +[./lib/index.ts] 234 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo new file mode 100644 index 000000000..92ebe4bc9 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../node_modules/typescript/lib/lib.d.ts": { + "version": "-10496480823", + "signature": "-10496480823", + "affectsGlobalScope": false + }, + "../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "-218882352090", + "signature": "-218882352090", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "300634082611", + "signature": "300634082611", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "-24714112149", + "signature": "-24714112149", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "204309182321", + "signature": "204309182321", + "affectsGlobalScope": true + }, + "./lib/index.d.ts": { + "version": "3525372579", + "signature": "3525372579", + "affectsGlobalScope": false + }, + "./app.ts": { + "version": "-14331559384", + "signature": "-3531856636", + "affectsGlobalScope": false + } + }, + "options": { + "types": [], + "composite": true, + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./app.ts": [ + "./lib/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt index 56fb6d5dd..06efbd0e3 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.85 KiB main [emitted] main - ../lib/helper.js.map 189 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.91 KiB main [emitted] main + lib/helper.js.map 190 bytes [emitted] + lib/helper.js 167 bytes [emitted] + lib/helper.d.ts 92 bytes [emitted] + lib/index.js.map 252 bytes [emitted] + lib/index.js 267 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} -[./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} +[./lib/index.ts] 234 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.9/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.9/patch1/output.txt index 44dcb5f5b..066150536 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.9/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.9/patch1/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.87 KiB main [emitted] main - ../lib/helper.js.map 209 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] - ../lib/helper.d.ts 111 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.92 KiB main [emitted] main + lib/helper.js.map 210 bytes [emitted] + lib/helper.js 181 bytes [emitted] + lib/helper.d.ts 111 bytes [emitted] + lib/index.js.map 252 bytes [emitted] + lib/index.js 267 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 211 bytes {main} \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} [built] +[./lib/index.ts] 234 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.9/patch0/output.txt index aaf278006..57c1eedc5 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.9/patch0/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.82 KiB main [emitted] main - ../lib/helper.js.map 189 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.87 KiB main [emitted] main + lib/helper.js.map 190 bytes [emitted] + lib/helper.js 167 bytes [emitted] + lib/helper.d.ts 92 bytes [emitted] + lib/index.js.map 252 bytes [emitted] + lib/index.js 267 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} -[./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} +[./lib/index.ts] 234 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.9/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.9/patch1/output.txt index 64d8efac9..b9048a9f5 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.9/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.9/patch1/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.83 KiB main [emitted] main - ../lib/helper.js.map 209 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] - ../lib/helper.d.ts 111 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.88 KiB main [emitted] main + lib/helper.js.map 210 bytes [emitted] + lib/helper.js 181 bytes [emitted] + lib/helper.d.ts 111 bytes [emitted] + lib/index.js.map 252 bytes [emitted] + lib/index.js 267 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} [built] +[./lib/index.ts] 234 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt index 56fb6d5dd..06efbd0e3 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.85 KiB main [emitted] main - ../lib/helper.js.map 189 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.91 KiB main [emitted] main + lib/helper.js.map 190 bytes [emitted] + lib/helper.js 167 bytes [emitted] + lib/helper.d.ts 92 bytes [emitted] + lib/index.js.map 252 bytes [emitted] + lib/index.js 267 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} -[./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} +[./lib/index.ts] 234 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.9/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.9/patch1/output.txt index 44dcb5f5b..066150536 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.9/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.9/patch1/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.87 KiB main [emitted] main - ../lib/helper.js.map 209 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] - ../lib/helper.d.ts 111 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.92 KiB main [emitted] main + lib/helper.js.map 210 bytes [emitted] + lib/helper.js 181 bytes [emitted] + lib/helper.d.ts 111 bytes [emitted] + lib/index.js.map 252 bytes [emitted] + lib/index.js 267 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 211 bytes {main} \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} [built] +[./lib/index.ts] 234 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/app.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/output.txt index 745347317..f0dddd70b 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/output.txt @@ -1,15 +1,15 @@ - Asset Size Chunks Chunk Names - bundle.js 4.77 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] - ../tsconfig.tsbuildinfo 51.8 KiB [emitted] - ../lib/helper.js.map 189 bytes [emitted] - ../lib/helper.js 134 bytes [emitted] - ../lib/helper.d.ts 87 bytes [emitted] - ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 222 bytes [emitted] - ../lib/index.d.ts 84 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.85 KiB main [emitted] main + app.d.ts 11 bytes [emitted] + tsconfig.tsbuildinfo 56.4 KiB [emitted] + lib/helper.js.map 190 bytes [emitted] + lib/helper.js 167 bytes [emitted] + lib/helper.d.ts 92 bytes [emitted] + lib/index.js.map 232 bytes [emitted] + lib/index.js 253 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 100 bytes {main} [built] -[./lib/index.ts] 189 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch0/app.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch0/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch0/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt index 8fa1a5d06..f138fef58 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt @@ -1,14 +1,14 @@ - Asset Size Chunks Chunk Names - bundle.js 4.79 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] - ../lib/helper.js.map 209 bytes [emitted] - ../lib/helper.js 147 bytes [emitted] - ../lib/helper.d.ts 105 bytes [emitted] - ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 222 bytes [emitted] - ../lib/index.d.ts 84 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.87 KiB main [emitted] main + app.d.ts 11 bytes [emitted] + lib/helper.js.map 210 bytes [emitted] + lib/helper.js 181 bytes [emitted] + lib/helper.d.ts 111 bytes [emitted] + lib/index.js.map 232 bytes [emitted] + lib/index.js 253 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 113 bytes {main} [built] -[./lib/index.ts] 189 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch1/app.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch1/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch1/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch1/output.txt index 0a46fb1f5..73e420145 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch1/output.txt @@ -1,7 +1,7 @@ - Asset Size Chunks Chunk Names - bundle.js 4.79 KiB main [emitted] main -../app.d.ts 11 bytes [emitted] + Asset Size Chunks Chunk Names +bundle.js 4.87 KiB main [emitted] main + app.d.ts 11 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 113 bytes {main} -[./lib/index.ts] 189 bytes {main} \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} +[./lib/index.ts] 220 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo new file mode 100644 index 000000000..92ebe4bc9 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../node_modules/typescript/lib/lib.d.ts": { + "version": "-10496480823", + "signature": "-10496480823", + "affectsGlobalScope": false + }, + "../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "-218882352090", + "signature": "-218882352090", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "300634082611", + "signature": "300634082611", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "-24714112149", + "signature": "-24714112149", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "204309182321", + "signature": "204309182321", + "affectsGlobalScope": true + }, + "./lib/index.d.ts": { + "version": "3525372579", + "signature": "3525372579", + "affectsGlobalScope": false + }, + "./app.ts": { + "version": "-14331559384", + "signature": "-3531856636", + "affectsGlobalScope": false + } + }, + "options": { + "types": [], + "composite": true, + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./app.ts": [ + "./lib/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt index f8b6ac8a8..c20c2e4f4 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.84 KiB main [emitted] main - ../lib/helper.js.map 189 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 230 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.89 KiB main [emitted] main + lib/helper.js.map 190 bytes [emitted] + lib/helper.js 167 bytes [emitted] + lib/helper.d.ts 92 bytes [emitted] + lib/index.js.map 232 bytes [emitted] + lib/index.js 253 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt index a3a66b07b..7790ac0f4 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.85 KiB main [emitted] main - ../lib/helper.js.map 209 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] - ../lib/helper.d.ts 111 bytes [emitted] - ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 230 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.91 KiB main [emitted] main + lib/helper.js.map 210 bytes [emitted] + lib/helper.js 181 bytes [emitted] + lib/helper.d.ts 111 bytes [emitted] + lib/index.js.map 232 bytes [emitted] + lib/index.js 253 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.9/output.txt index 64a78458e..2776cbc05 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.9/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.8 KiB main [emitted] main - ../lib/helper.js.map 189 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 230 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.85 KiB main [emitted] main + lib/helper.js.map 190 bytes [emitted] + lib/helper.js 167 bytes [emitted] + lib/helper.d.ts 92 bytes [emitted] + lib/index.js.map 232 bytes [emitted] + lib/index.js 253 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.9/patch0/output.txt index 0a5fc811c..3455fca93 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.9/patch0/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.82 KiB main [emitted] main - ../lib/helper.js.map 209 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] - ../lib/helper.d.ts 111 bytes [emitted] - ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 230 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.87 KiB main [emitted] main + lib/helper.js.map 210 bytes [emitted] + lib/helper.js 181 bytes [emitted] + lib/helper.d.ts 111 bytes [emitted] + lib/index.js.map 232 bytes [emitted] + lib/index.js 253 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.9/output.txt index f8b6ac8a8..c20c2e4f4 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.9/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.84 KiB main [emitted] main - ../lib/helper.js.map 189 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 230 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.89 KiB main [emitted] main + lib/helper.js.map 190 bytes [emitted] + lib/helper.js 167 bytes [emitted] + lib/helper.d.ts 92 bytes [emitted] + lib/index.js.map 232 bytes [emitted] + lib/index.js 253 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt index a3a66b07b..7790ac0f4 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.85 KiB main [emitted] main - ../lib/helper.js.map 209 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] - ../lib/helper.d.ts 111 bytes [emitted] - ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 230 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.91 KiB main [emitted] main + lib/helper.js.map 210 bytes [emitted] + lib/helper.js 181 bytes [emitted] + lib/helper.d.ts 111 bytes [emitted] + lib/index.js.map 232 bytes [emitted] + lib/index.js 253 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/app.d.ts b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/output.txt index a370d5b23..add70e8be 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/output.txt @@ -1,11 +1,11 @@ - Asset Size Chunks Chunk Names - bundle.js 4.28 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] - ../tsconfig.tsbuildinfo 51.8 KiB [emitted] - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 130 bytes [emitted] - ../lib/index.d.ts 84 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.32 KiB main [emitted] main + app.d.ts 11 bytes [emitted] + tsconfig.tsbuildinfo 56.4 KiB [emitted] + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 97 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/app.d.ts b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt index a3b37878c..1765c04bd 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt @@ -1,10 +1,10 @@ - Asset Size Chunks Chunk Names - bundle.js 4.31 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] - ../lib/index.js.map 220 bytes [emitted] - ../lib/index.js 161 bytes [emitted] - ../lib/index.d.ts 102 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.35 KiB main [emitted] main + app.d.ts 11 bytes [emitted] + lib/index.js.map 221 bytes [emitted] + lib/index.js 192 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 128 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 159 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch1/app.d.ts b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch1/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch1/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch1/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch1/output.txt index 7feef8083..75991d359 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch1/output.txt @@ -1,6 +1,6 @@ - Asset Size Chunks Chunk Names - bundle.js 4.31 KiB main [emitted] main -../app.d.ts 11 bytes [emitted] + Asset Size Chunks Chunk Names +bundle.js 4.35 KiB main [emitted] main + app.d.ts 11 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 128 bytes {main} \ No newline at end of file +[./lib/index.ts] 159 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch2/app.d.ts b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch2/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch2/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch2/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch2/output.txt index 3ab0ee851..2a62e10d6 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch2/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch2/output.txt @@ -1,16 +1,16 @@ - Asset Size Chunks Chunk Names - bundle.js 4.31 KiB main [emitted] main -../app.d.ts 11 bytes [emitted] + Asset Size Chunks Chunk Names +bundle.js 4.35 KiB main [emitted] main + app.d.ts 11 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 128 bytes {main} [built] [2 errors] +[./lib/index.ts] 159 bytes {main} [built] [2 errors] -ERROR in lib/index.ts +ERROR in lib\index.ts ./lib/index.ts -[tsl] ERROR in lib/index.ts(6,3) +[tsl] ERROR in lib\index.ts(6,3)  TS1136: Property assignment expected. -ERROR in lib/index.ts +ERROR in lib\index.ts ./lib/index.ts -[tsl] ERROR in lib/index.ts(7,1) +[tsl] ERROR in lib\index.ts(7,1)  TS1128: Declaration or statement expected. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/app.d.ts b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/output.txt index ba09cddb8..0a5086b9b 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/output.txt @@ -1,10 +1,10 @@ - Asset Size Chunks Chunk Names - bundle.js 4.31 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] - ../lib/index.js.map 227 bytes [emitted] - ../lib/index.js 156 bytes [emitted] - ../lib/index.d.ts 120 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.35 KiB main [emitted] main + app.d.ts 11 bytes [emitted] + lib/index.js.map 228 bytes [emitted] + lib/index.js 188 bytes [emitted] + lib/index.d.ts 127 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 123 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 155 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch4/app.d.ts b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch4/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch4/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch4/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch4/output.txt index 3f824ff55..2136bd0dc 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch4/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch4/output.txt @@ -1,6 +1,6 @@ - Asset Size Chunks Chunk Names - bundle.js 4.31 KiB main [emitted] main -../app.d.ts 11 bytes [emitted] + Asset Size Chunks Chunk Names +bundle.js 4.35 KiB main [emitted] main + app.d.ts 11 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 123 bytes {main} \ No newline at end of file +[./lib/index.ts] 155 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch5/app.d.ts b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch5/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch5/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch5/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch5/output.txt index 3f824ff55..2136bd0dc 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch5/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch5/output.txt @@ -1,6 +1,6 @@ - Asset Size Chunks Chunk Names - bundle.js 4.31 KiB main [emitted] main -../app.d.ts 11 bytes [emitted] + Asset Size Chunks Chunk Names +bundle.js 4.35 KiB main [emitted] main + app.d.ts 11 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 123 bytes {main} \ No newline at end of file +[./lib/index.ts] 155 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo new file mode 100644 index 000000000..92ebe4bc9 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../node_modules/typescript/lib/lib.d.ts": { + "version": "-10496480823", + "signature": "-10496480823", + "affectsGlobalScope": false + }, + "../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "-218882352090", + "signature": "-218882352090", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "300634082611", + "signature": "300634082611", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "-24714112149", + "signature": "-24714112149", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "204309182321", + "signature": "204309182321", + "affectsGlobalScope": true + }, + "./lib/index.d.ts": { + "version": "3525372579", + "signature": "3525372579", + "affectsGlobalScope": false + }, + "./app.ts": { + "version": "-14331559384", + "signature": "-3531856636", + "affectsGlobalScope": false + } + }, + "options": { + "types": [], + "composite": true, + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./app.ts": [ + "./lib/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt index 9af9848b3..a3e931cac 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.33 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt index 89803539b..d4f70acb1 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.36 KiB main [emitted] main - ../lib/index.js.map 220 bytes [emitted] - ../lib/index.js 169 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.39 KiB main [emitted] main + lib/index.js.map 221 bytes [emitted] + lib/index.js 192 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 159 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.9/patch3/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.9/patch3/output.txt index b98ffe647..f6eaeab5a 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.9/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.9/patch3/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.4 KiB main [emitted] main - ../lib/index.js.map 227 bytes [emitted] - ../lib/index.js 165 bytes [emitted] - ../lib/index.d.ts 127 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.42 KiB main [emitted] main + lib/index.js.map 228 bytes [emitted] + lib/index.js 188 bytes [emitted] + lib/index.d.ts 127 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] -[./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 155 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/output.txt index 6a42c7a13..26473acfa 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.32 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch0/output.txt index 52a5441eb..71721f718 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch0/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.33 KiB main [emitted] main - ../lib/index.js.map 220 bytes [emitted] - ../lib/index.js 169 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.35 KiB main [emitted] main + lib/index.js.map 221 bytes [emitted] + lib/index.js 192 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 159 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch3/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch3/output.txt index c4258a71a..21299faa2 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch3/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.36 KiB main [emitted] main - ../lib/index.js.map 227 bytes [emitted] - ../lib/index.js 165 bytes [emitted] - ../lib/index.d.ts 127 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.35 KiB main [emitted] main + lib/index.js.map 228 bytes [emitted] + lib/index.js 188 bytes [emitted] + lib/index.d.ts 127 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js -[./app.ts] 169 bytes {main} [built] -[./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file +[./app.ts] 131 bytes {main} [built] +[./lib/index.ts] 155 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.9/output.txt index 9af9848b3..a3e931cac 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.33 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt index 89803539b..d4f70acb1 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.36 KiB main [emitted] main - ../lib/index.js.map 220 bytes [emitted] - ../lib/index.js 169 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.39 KiB main [emitted] main + lib/index.js.map 221 bytes [emitted] + lib/index.js 192 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 159 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.9/patch3/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.9/patch3/output.txt index b98ffe647..f6eaeab5a 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.9/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.9/patch3/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.4 KiB main [emitted] main - ../lib/index.js.map 227 bytes [emitted] - ../lib/index.js 165 bytes [emitted] - ../lib/index.d.ts 127 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.42 KiB main [emitted] main + lib/index.js.map 228 bytes [emitted] + lib/index.js 188 bytes [emitted] + lib/index.d.ts 127 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] -[./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 155 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/resolveJsonModule/expectedOutput-3.9/app.d.ts b/test/comparison-tests/resolveJsonModule/expectedOutput-3.9/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/resolveJsonModule/expectedOutput-3.9/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/resolveJsonModule/expectedOutput-3.9/output.txt b/test/comparison-tests/resolveJsonModule/expectedOutput-3.9/output.txt index 10e73c4e6..eb1efd182 100644 --- a/test/comparison-tests/resolveJsonModule/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/resolveJsonModule/expectedOutput-3.9/output.txt @@ -1,6 +1,6 @@ - Asset Size Chunks Chunk Names - bundle.js 1 KiB 0 [emitted] main -../app.d.ts 11 bytes [emitted] + Asset Size Chunks Chunk Names +bundle.js 1 KiB 0 [emitted] main + app.d.ts 11 bytes [emitted] Entrypoint main = bundle.js [0] ./app.ts 99 bytes {0} [built] [1] ./file.json 18 bytes {0} [built] From 2a93bc99f42e26dc02833f0858f6e6fbf664255f Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 26 Jun 2020 12:42:47 -0700 Subject: [PATCH 03/15] Baselines for More symlinks --- .gitignore | 1 + .../create-and-execute-test.js | 1 + .../common/package.json | 9 ++ .../common/src/index.ts | 1 + .../common/tsconfig.json | 8 ++ .../expectedOutput-3.9/common/dist/index.d.ts | 1 + .../expectedOutput-3.9/common/dist/index.js | 4 + .../common}/tsconfig.tsbuildinfo | 4 +- .../expectedOutput-3.9/lib/dist/index.d.ts | 1 - .../expectedOutput-3.9/lib/dist/index.js | 4 - .../expectedOutput-3.9/output.txt | 16 +-- .../common/dist/index.d.ts | 1 + .../common/dist/index.js | 4 + .../common}/tsconfig.tsbuildinfo | 4 +- .../lib/dist/index.d.ts | 1 - .../lib/dist/index.js | 4 - .../expectedOutput-transpile-3.9/output.txt | 15 +-- .../lib/src/index.ts | 3 +- .../lib/tsconfig.json | 5 +- .../app/src/index.ts | 3 + .../app/tsconfig.json | 11 ++ .../app/webpack.config.js | 22 ++++ .../common/package.json | 9 ++ .../common/src/index.ts | 1 + .../common/tsconfig.json | 9 ++ .../expectedOutput-3.9/app/dist/index.js | 101 ++++++++++++++++++ .../expectedOutput-3.9/common/dist/index.d.ts | 1 + .../expectedOutput-3.9/common/dist/index.js | 4 + .../common/tsconfig.tsbuildinfo | 58 ++++++++++ .../expectedOutput-3.9/output.txt | 20 ++++ .../app/dist/index.js | 101 ++++++++++++++++++ .../common/dist/index.d.ts | 1 + .../common/dist/index.js | 4 + .../common/tsconfig.tsbuildinfo | 58 ++++++++++ .../expectedOutput-transpile-3.9/output.txt | 14 +++ .../lib/package.json | 9 ++ .../lib/src/index.ts | 2 + .../lib/tsconfig.json | 12 +++ .../expectedOutput-3.9/output.txt | 20 ++++ .../expectedOutput-transpile-3.9/output.txt | 14 +++ .../expectedOutput-3.9/output.txt | 16 +-- .../expectedOutput-transpile-3.9/output.txt | 15 +-- 42 files changed, 552 insertions(+), 40 deletions(-) create mode 100644 test/comparison-tests/projectReferencesSymLinks/common/package.json create mode 100644 test/comparison-tests/projectReferencesSymLinks/common/src/index.ts create mode 100644 test/comparison-tests/projectReferencesSymLinks/common/tsconfig.json create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/common/dist/index.d.ts create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/common/dist/index.js rename test/comparison-tests/projectReferencesSymLinks/{expectedOutput-transpile-3.9/lib => expectedOutput-3.9/common}/tsconfig.tsbuildinfo (92%) delete mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.d.ts delete mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.js create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/common/dist/index.d.ts create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/common/dist/index.js rename test/comparison-tests/projectReferencesSymLinks/{expectedOutput-3.9/lib => expectedOutput-transpile-3.9/common}/tsconfig.tsbuildinfo (92%) delete mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.d.ts delete mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.js create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/app/src/index.ts create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/app/tsconfig.json create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/app/webpack.config.js create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/common/package.json create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/common/src/index.ts create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/common/tsconfig.json create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/app/dist/index.js create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/common/dist/index.d.ts create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/common/dist/index.js create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/common/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/output.txt create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/app/dist/index.js create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/common/dist/index.d.ts create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/common/dist/index.js create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/output.txt create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/lib/package.json create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/lib/src/index.ts create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/lib/tsconfig.json create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-3.9/output.txt create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-transpile-3.9/output.txt diff --git a/.gitignore b/.gitignore index e3e7e5b3f..6ee11d3cc 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ npm-debug.log !/test/**/expectedOutput-*/** /**/node_modules /dist +/test/execution-tests/**/dist /**/.happypack /**/.cache-loader !build.js diff --git a/test/comparison-tests/create-and-execute-test.js b/test/comparison-tests/create-and-execute-test.js index 81abbe345..d1d50b1d0 100644 --- a/test/comparison-tests/create-and-execute-test.js +++ b/test/comparison-tests/create-and-execute-test.js @@ -104,6 +104,7 @@ function createTest(test, testPath, options) { // Setup symlinks mkdirp.sync(path.resolve(paths.testStagingPath, "node_modules")); fs.symlinkSync(path.resolve(paths.testStagingPath, "lib"), path.resolve(paths.testStagingPath, "node_modules/lib"), "junction"); + fs.symlinkSync(path.resolve(paths.testStagingPath, "common"), path.resolve(paths.testStagingPath, "node_modules/common"), "junction"); } if (test.indexOf("AlreadyBuilt") !== -1) { const program = getProgram(path.resolve(paths.testStagingPath, "lib/tsconfig.json")); diff --git a/test/comparison-tests/projectReferencesSymLinks/common/package.json b/test/comparison-tests/projectReferencesSymLinks/common/package.json new file mode 100644 index 000000000..d70a4be55 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/common/package.json @@ -0,0 +1,9 @@ +{ + "name": "common", + "version": "1.0.0", + "main": "dist/index.js", + "license": "MIT", + "devDependencies": { + "typescript": "^3.9.3" + } +} diff --git a/test/comparison-tests/projectReferencesSymLinks/common/src/index.ts b/test/comparison-tests/projectReferencesSymLinks/common/src/index.ts new file mode 100644 index 000000000..97b129b7e --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/common/src/index.ts @@ -0,0 +1 @@ +export const getMeaningOfLife2 = () => 45; \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/common/tsconfig.json b/test/comparison-tests/projectReferencesSymLinks/common/tsconfig.json new file mode 100644 index 000000000..01fa4f903 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/common/tsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src", + "types": [] + } +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/common/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/common/dist/index.d.ts new file mode 100644 index 000000000..f5c6ea299 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/common/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife2: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/common/dist/index.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/common/dist/index.js new file mode 100644 index 000000000..9bd8bcace --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/common/dist/index.js @@ -0,0 +1,4 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife2 = void 0; +exports.getMeaningOfLife2 = function () { return 45; }; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/common/tsconfig.tsbuildinfo similarity index 92% rename from test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo rename to test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/common/tsconfig.tsbuildinfo index 093c84ab6..c2510b6fb 100644 --- a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/common/tsconfig.tsbuildinfo @@ -27,8 +27,8 @@ "affectsGlobalScope": true }, "./src/index.ts": { - "version": "ff819252a76f1faad34a482bcc90fb6ec1c85dd836c06dbcbea0c2c405ef6315", - "signature": "c0374b8bd606e6c8e0156f10567ee0c6e08986bb37d64ed818d623829ec7e1c2", + "version": "04a941e6fe6c7eb7913fa3105993c5282e1401287cef79308eed0201ee2c9ef9", + "signature": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", "affectsGlobalScope": false } }, diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.d.ts deleted file mode 100644 index fdb004ae6..000000000 --- a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const getMeaningOfLife: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.js deleted file mode 100644 index dda890de3..000000000 --- a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -exports.__esModule = true; -exports.getMeaningOfLife = void 0; -exports.getMeaningOfLife = function () { return 45; }; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/output.txt index 54adbc777..2a949a714 100644 --- a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/output.txt @@ -1,8 +1,8 @@ - Asset Size Chunks Chunk Names - index.js 4.03 KiB main [emitted] main - ../../lib/dist/index.js 135 bytes [emitted] - ../../lib/dist/index.d.ts 54 bytes [emitted] -../../lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] + Asset Size Chunks Chunk Names + index.js 4.03 KiB main [emitted] main + ../../common/dist/index.js 137 bytes [emitted] + ../../common/dist/index.d.ts 55 bytes [emitted] +../../common/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = index.js [./src/index.ts] 108 bytes {main} [built] [1 error] @@ -13,4 +13,8 @@ Module not found: Error: Can't resolve 'lib' in 'app\src' ERROR in app\src\index.ts ./src/index.ts [tsl] ERROR in app\src\index.ts(1,34) - TS2307: Cannot find module 'lib' or its corresponding type declarations. \ No newline at end of file + TS2307: Cannot find module 'lib' or its corresponding type declarations. + +ERROR in lib\src\index.ts +[tsl] ERROR in lib\src\index.ts(1,35) + TS2307: Cannot find module 'common' or its corresponding type declarations. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/common/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/common/dist/index.d.ts new file mode 100644 index 000000000..f5c6ea299 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/common/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife2: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/common/dist/index.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/common/dist/index.js new file mode 100644 index 000000000..9bd8bcace --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/common/dist/index.js @@ -0,0 +1,4 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife2 = void 0; +exports.getMeaningOfLife2 = function () { return 45; }; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo similarity index 92% rename from test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/tsconfig.tsbuildinfo rename to test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo index 093c84ab6..c2510b6fb 100644 --- a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo @@ -27,8 +27,8 @@ "affectsGlobalScope": true }, "./src/index.ts": { - "version": "ff819252a76f1faad34a482bcc90fb6ec1c85dd836c06dbcbea0c2c405ef6315", - "signature": "c0374b8bd606e6c8e0156f10567ee0c6e08986bb37d64ed818d623829ec7e1c2", + "version": "04a941e6fe6c7eb7913fa3105993c5282e1401287cef79308eed0201ee2c9ef9", + "signature": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", "affectsGlobalScope": false } }, diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.d.ts deleted file mode 100644 index fdb004ae6..000000000 --- a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const getMeaningOfLife: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.js deleted file mode 100644 index dda890de3..000000000 --- a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -exports.__esModule = true; -exports.getMeaningOfLife = void 0; -exports.getMeaningOfLife = function () { return 45; }; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/output.txt index 945cefaf8..ccea31dbd 100644 --- a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/output.txt @@ -1,10 +1,13 @@ - Asset Size Chunks Chunk Names - index.js 4.07 KiB main [emitted] main - ../../lib/dist/index.js 135 bytes [emitted] - ../../lib/dist/index.d.ts 54 bytes [emitted] -../../lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] + Asset Size Chunks Chunk Names + index.js 4.07 KiB main [emitted] main + ../../common/dist/index.js 137 bytes [emitted] + ../../common/dist/index.d.ts 55 bytes [emitted] +../../common/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = index.js -[./src/index.ts] 144 bytes {main} [built] +[./src/index.ts] 144 bytes {main} [built] [1 error] + +ERROR in [tsl] ERROR in lib\src\index.ts(1,35) + TS2307: Cannot find module 'common' or its corresponding type declarations. ERROR in ./src/index.ts Module not found: Error: Can't resolve 'lib' in 'app\src' diff --git a/test/comparison-tests/projectReferencesSymLinks/lib/src/index.ts b/test/comparison-tests/projectReferencesSymLinks/lib/src/index.ts index 2a3347209..b27b7698d 100644 --- a/test/comparison-tests/projectReferencesSymLinks/lib/src/index.ts +++ b/test/comparison-tests/projectReferencesSymLinks/lib/src/index.ts @@ -1 +1,2 @@ -export const getMeaningOfLife = () => 45; \ No newline at end of file +import { getMeaningOfLife2 } from "common"; +export const getMeaningOfLife = () => getMeaningOfLife2(); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/lib/tsconfig.json b/test/comparison-tests/projectReferencesSymLinks/lib/tsconfig.json index 01fa4f903..1c3b90cb3 100644 --- a/test/comparison-tests/projectReferencesSymLinks/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesSymLinks/lib/tsconfig.json @@ -4,5 +4,8 @@ "outDir": "dist", "rootDir": "src", "types": [] - } + }, + "references": [ + { "path": "../common" } + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/app/src/index.ts b/test/comparison-tests/projectReferencesSymLinksPreserve/app/src/index.ts new file mode 100644 index 000000000..c6be152fc --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/app/src/index.ts @@ -0,0 +1,3 @@ +import { getMeaningOfLife } from "lib"; + +console.log(getMeaningOfLife()); diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/app/tsconfig.json b/test/comparison-tests/projectReferencesSymLinksPreserve/app/tsconfig.json new file mode 100644 index 000000000..d066d4368 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/app/tsconfig.json @@ -0,0 +1,11 @@ +{ + "references": [ + { "path": "../lib" } + ], + "compilerOptions": { + "outDir": "dist", + "rootDir": "src", + "preserveSymlinks": true, + "types": [] + } +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/app/webpack.config.js b/test/comparison-tests/projectReferencesSymLinksPreserve/app/webpack.config.js new file mode 100644 index 000000000..be60e6826 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/app/webpack.config.js @@ -0,0 +1,22 @@ +var path = require('path') + +module.exports = { + mode: 'development', + entry: './src/index.ts', + output: { + filename: 'index.js', + path: path.resolve(__dirname, 'dist') + }, + resolve: { + extensions: ['.ts', '.js'] + }, + module: { + rules: [ + { test: /\.ts$/, loader: 'ts-loader', options: { projectReferences: true } } + ] + } +} + +// for test harness purposes only, you would not need this in a normal project +module.exports.resolveLoader = { alias: { 'ts-loader': require('path').join(__dirname, "../../../../index.js") } } + diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/common/package.json b/test/comparison-tests/projectReferencesSymLinksPreserve/common/package.json new file mode 100644 index 000000000..d70a4be55 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/common/package.json @@ -0,0 +1,9 @@ +{ + "name": "common", + "version": "1.0.0", + "main": "dist/index.js", + "license": "MIT", + "devDependencies": { + "typescript": "^3.9.3" + } +} diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/common/src/index.ts b/test/comparison-tests/projectReferencesSymLinksPreserve/common/src/index.ts new file mode 100644 index 000000000..97b129b7e --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/common/src/index.ts @@ -0,0 +1 @@ +export const getMeaningOfLife2 = () => 45; \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/common/tsconfig.json b/test/comparison-tests/projectReferencesSymLinksPreserve/common/tsconfig.json new file mode 100644 index 000000000..339ae2f10 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/common/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src", + "preserveSymlinks": true, + "types": [] + } +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/app/dist/index.js b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/app/dist/index.js new file mode 100644 index 000000000..1acee0957 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/app/dist/index.js @@ -0,0 +1,101 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./src/index.ts": +/*!**********************!*\ + !*** ./src/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(!(function webpackMissingModule() { var e = new Error(\"Cannot find module 'lib'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()));\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/common/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/common/dist/index.d.ts new file mode 100644 index 000000000..f5c6ea299 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/common/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife2: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/common/dist/index.js b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/common/dist/index.js new file mode 100644 index 000000000..9bd8bcace --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/common/dist/index.js @@ -0,0 +1,4 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife2 = void 0; +exports.getMeaningOfLife2 = function () { return 45; }; diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/common/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/common/tsconfig.tsbuildinfo new file mode 100644 index 000000000..167da818a --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/common/tsconfig.tsbuildinfo @@ -0,0 +1,58 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./src/index.ts": { + "version": "04a941e6fe6c7eb7913fa3105993c5282e1401287cef79308eed0201ee2c9ef9", + "signature": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "outDir": "./dist", + "rootDir": "./src", + "preserveSymlinks": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./src/index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/output.txt new file mode 100644 index 000000000..2a949a714 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/output.txt @@ -0,0 +1,20 @@ + Asset Size Chunks Chunk Names + index.js 4.03 KiB main [emitted] main + ../../common/dist/index.js 137 bytes [emitted] + ../../common/dist/index.d.ts 55 bytes [emitted] +../../common/tsconfig.tsbuildinfo 72.6 KiB [emitted] +Entrypoint main = index.js +[./src/index.ts] 108 bytes {main} [built] [1 error] + +ERROR in ./src/index.ts +Module not found: Error: Can't resolve 'lib' in 'app\src' + @ ./src/index.ts 3:12-26 + +ERROR in app\src\index.ts +./src/index.ts +[tsl] ERROR in app\src\index.ts(1,34) + TS2307: Cannot find module 'lib' or its corresponding type declarations. + +ERROR in lib\src\index.ts +[tsl] ERROR in lib\src\index.ts(1,35) + TS2307: Cannot find module 'common' or its corresponding type declarations. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/app/dist/index.js b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/app/dist/index.js new file mode 100644 index 000000000..ca31929a0 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/app/dist/index.js @@ -0,0 +1,101 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./src/index.ts": +/*!**********************!*\ + !*** ./src/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(!(function webpackMissingModule() { var e = new Error(\"Cannot find module 'lib'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()));\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/common/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/common/dist/index.d.ts new file mode 100644 index 000000000..f5c6ea299 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/common/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife2: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/common/dist/index.js b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/common/dist/index.js new file mode 100644 index 000000000..9bd8bcace --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/common/dist/index.js @@ -0,0 +1,4 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife2 = void 0; +exports.getMeaningOfLife2 = function () { return 45; }; diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo new file mode 100644 index 000000000..167da818a --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo @@ -0,0 +1,58 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./src/index.ts": { + "version": "04a941e6fe6c7eb7913fa3105993c5282e1401287cef79308eed0201ee2c9ef9", + "signature": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "outDir": "./dist", + "rootDir": "./src", + "preserveSymlinks": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./src/index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/output.txt new file mode 100644 index 000000000..ccea31dbd --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/output.txt @@ -0,0 +1,14 @@ + Asset Size Chunks Chunk Names + index.js 4.07 KiB main [emitted] main + ../../common/dist/index.js 137 bytes [emitted] + ../../common/dist/index.d.ts 55 bytes [emitted] +../../common/tsconfig.tsbuildinfo 72.6 KiB [emitted] +Entrypoint main = index.js +[./src/index.ts] 144 bytes {main} [built] [1 error] + +ERROR in [tsl] ERROR in lib\src\index.ts(1,35) + TS2307: Cannot find module 'common' or its corresponding type declarations. + +ERROR in ./src/index.ts +Module not found: Error: Can't resolve 'lib' in 'app\src' + @ ./src/index.ts 3:12-26 \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/lib/package.json b/test/comparison-tests/projectReferencesSymLinksPreserve/lib/package.json new file mode 100644 index 000000000..d90504b7f --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/lib/package.json @@ -0,0 +1,9 @@ +{ + "name": "lib", + "version": "1.0.0", + "main": "dist/index.js", + "license": "MIT", + "devDependencies": { + "typescript": "^3.9.3" + } +} diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/lib/src/index.ts b/test/comparison-tests/projectReferencesSymLinksPreserve/lib/src/index.ts new file mode 100644 index 000000000..b27b7698d --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/lib/src/index.ts @@ -0,0 +1,2 @@ +import { getMeaningOfLife2 } from "common"; +export const getMeaningOfLife = () => getMeaningOfLife2(); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/lib/tsconfig.json b/test/comparison-tests/projectReferencesSymLinksPreserve/lib/tsconfig.json new file mode 100644 index 000000000..21019fb29 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/lib/tsconfig.json @@ -0,0 +1,12 @@ +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src", + "preserveSymlinks": true, + "types": [] + }, + "references": [ + { "path": "../common" } + ] +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-3.9/output.txt new file mode 100644 index 000000000..2a949a714 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-3.9/output.txt @@ -0,0 +1,20 @@ + Asset Size Chunks Chunk Names + index.js 4.03 KiB main [emitted] main + ../../common/dist/index.js 137 bytes [emitted] + ../../common/dist/index.d.ts 55 bytes [emitted] +../../common/tsconfig.tsbuildinfo 72.6 KiB [emitted] +Entrypoint main = index.js +[./src/index.ts] 108 bytes {main} [built] [1 error] + +ERROR in ./src/index.ts +Module not found: Error: Can't resolve 'lib' in 'app\src' + @ ./src/index.ts 3:12-26 + +ERROR in app\src\index.ts +./src/index.ts +[tsl] ERROR in app\src\index.ts(1,34) + TS2307: Cannot find module 'lib' or its corresponding type declarations. + +ERROR in lib\src\index.ts +[tsl] ERROR in lib\src\index.ts(1,35) + TS2307: Cannot find module 'common' or its corresponding type declarations. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-transpile-3.9/output.txt new file mode 100644 index 000000000..ccea31dbd --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-transpile-3.9/output.txt @@ -0,0 +1,14 @@ + Asset Size Chunks Chunk Names + index.js 4.07 KiB main [emitted] main + ../../common/dist/index.js 137 bytes [emitted] + ../../common/dist/index.d.ts 55 bytes [emitted] +../../common/tsconfig.tsbuildinfo 72.6 KiB [emitted] +Entrypoint main = index.js +[./src/index.ts] 144 bytes {main} [built] [1 error] + +ERROR in [tsl] ERROR in lib\src\index.ts(1,35) + TS2307: Cannot find module 'common' or its corresponding type declarations. + +ERROR in ./src/index.ts +Module not found: Error: Can't resolve 'lib' in 'app\src' + @ ./src/index.ts 3:12-26 \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/output.txt index 54adbc777..2a949a714 100644 --- a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/output.txt @@ -1,8 +1,8 @@ - Asset Size Chunks Chunk Names - index.js 4.03 KiB main [emitted] main - ../../lib/dist/index.js 135 bytes [emitted] - ../../lib/dist/index.d.ts 54 bytes [emitted] -../../lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] + Asset Size Chunks Chunk Names + index.js 4.03 KiB main [emitted] main + ../../common/dist/index.js 137 bytes [emitted] + ../../common/dist/index.d.ts 55 bytes [emitted] +../../common/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = index.js [./src/index.ts] 108 bytes {main} [built] [1 error] @@ -13,4 +13,8 @@ Module not found: Error: Can't resolve 'lib' in 'app\src' ERROR in app\src\index.ts ./src/index.ts [tsl] ERROR in app\src\index.ts(1,34) - TS2307: Cannot find module 'lib' or its corresponding type declarations. \ No newline at end of file + TS2307: Cannot find module 'lib' or its corresponding type declarations. + +ERROR in lib\src\index.ts +[tsl] ERROR in lib\src\index.ts(1,35) + TS2307: Cannot find module 'common' or its corresponding type declarations. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/output.txt index 945cefaf8..ccea31dbd 100644 --- a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/output.txt @@ -1,10 +1,13 @@ - Asset Size Chunks Chunk Names - index.js 4.07 KiB main [emitted] main - ../../lib/dist/index.js 135 bytes [emitted] - ../../lib/dist/index.d.ts 54 bytes [emitted] -../../lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] + Asset Size Chunks Chunk Names + index.js 4.07 KiB main [emitted] main + ../../common/dist/index.js 137 bytes [emitted] + ../../common/dist/index.d.ts 55 bytes [emitted] +../../common/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = index.js -[./src/index.ts] 144 bytes {main} [built] +[./src/index.ts] 144 bytes {main} [built] [1 error] + +ERROR in [tsl] ERROR in lib\src\index.ts(1,35) + TS2307: Cannot find module 'common' or its corresponding type declarations. ERROR in ./src/index.ts Module not found: Error: Can't resolve 'lib' in 'app\src' From 748b3cdadf916db3386371b24cbe2ab3a761157d Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 29 Jun 2020 11:43:19 -0700 Subject: [PATCH 04/15] Handle the path casing in preparation to handling symlinks --- src/after-compile.ts | 49 ++-- src/index.ts | 48 ++-- src/instances.ts | 60 +++-- src/interfaces.ts | 75 ++++-- src/servicesHost.ts | 547 ++++++++++++++++++++++++------------------- src/utils.ts | 79 +++---- src/watch-run.ts | 36 +-- 7 files changed, 512 insertions(+), 382 deletions(-) diff --git a/src/after-compile.ts b/src/after-compile.ts index fb2b5efc1..68451ba59 100644 --- a/src/after-compile.ts +++ b/src/after-compile.ts @@ -9,7 +9,7 @@ import { isReferencedFile, } from './instances'; import { - TSFile, + FilePathKey, TSFiles, TSInstance, WebpackError, @@ -55,7 +55,7 @@ export function makeAfterCompile( ); getCompilerOptionDiagnostics = false; - const modules = determineModules(compilation); + const modules = determineModules(compilation, instance); const filesToCheckForErrors = determineFilesToCheckForErrors( checkAllFilesForErrors, @@ -63,7 +63,7 @@ export function makeAfterCompile( ); checkAllFilesForErrors = false; - const filesWithErrors: TSFiles = new Map(); + const filesWithErrors: TSFiles = new Map(); provideErrorsToWebpack( filesToCheckForErrors, filesWithErrors, @@ -119,11 +119,14 @@ function provideCompilerOptionDiagnosticErrorsToWebpack( * this is used for quick-lookup when trying to find modules * based on filepath */ -function determineModules(compilation: webpack.compilation.Compilation) { - return compilation.modules.reduce>( +function determineModules( + compilation: webpack.compilation.Compilation, + { filePathKeyMapper }: TSInstance +) { + return compilation.modules.reduce>( (modules, module) => { if (module.resource) { - const modulePath = path.normalize(module.resource); + const modulePath = filePathKeyMapper(module.resource); const existingModules = modules.get(modulePath); if (existingModules !== undefined) { if (existingModules.indexOf(module) === -1) { @@ -136,7 +139,7 @@ function determineModules(compilation: webpack.compilation.Compilation) { return modules; }, - new Map() + new Map() ); } @@ -146,7 +149,7 @@ function determineFilesToCheckForErrors( ) { const { files, modifiedFiles, filesWithErrors, otherFiles } = instance; // calculate array of files to check - const filesToCheckForErrors: TSFiles = new Map(); + const filesToCheckForErrors: TSFiles = new Map(); if (checkAllFilesForErrors) { // check all files on initial run for (const [filePath, file] of files) { @@ -158,14 +161,14 @@ function determineFilesToCheckForErrors( } else if (modifiedFiles !== null && modifiedFiles !== undefined) { // check all modified files, and all dependants for (const modifiedFileName of modifiedFiles.keys()) { - collectAllDependants( + for (const fileName of collectAllDependants( instance.reverseDependencyGraph, modifiedFileName - ).forEach(fileName => { + ).keys()) { const fileToCheckForErrors = files.get(fileName) || otherFiles.get(fileName); filesToCheckForErrors.set(fileName, fileToCheckForErrors!); - }); + } } } @@ -182,7 +185,7 @@ function provideErrorsToWebpack( filesToCheckForErrors: TSFiles, filesWithErrors: TSFiles, compilation: webpack.compilation.Compilation, - modules: Map, + modules: Map, instance: TSInstance ) { const { @@ -200,12 +203,12 @@ function provideErrorsToWebpack( // I’m pretty sure this will never be undefined here const program = ensureProgram(instance); - for (const filePath of filesToCheckForErrors.keys()) { - if (filePath.match(filePathRegex) === null) { + for (const [filePath, { fileName }] of filesToCheckForErrors.entries()) { + if (fileName.match(filePathRegex) === null) { continue; } - const sourceFile = program && program.getSourceFile(filePath); + const sourceFile = program && program.getSourceFile(fileName); // If the source file is undefined, that probably means it’s actually part of an unbuilt project reference, // which will have already produced a more useful error than the one we would get by proceeding here. // If it’s undefined and we’re not using project references at all, I guess carry on so the user will @@ -231,7 +234,7 @@ function provideErrorsToWebpack( } // if we have access to a webpack module, use that - const associatedModules = modules.get(filePath); + const associatedModules = modules.get(instance.filePathKeyMapper(fileName)); if (associatedModules !== undefined) { associatedModules.forEach(module => { // remove any existing errors @@ -257,7 +260,7 @@ function provideErrorsToWebpack( loaderOptions, instance.colors, compiler, - { file: filePath }, + { file: fileName }, compilation.compiler.context ); @@ -268,7 +271,7 @@ function provideErrorsToWebpack( function provideSolutionErrorsToWebpack( compilation: webpack.compilation.Compilation, - modules: Map, + modules: Map, instance: TSInstance ) { if ( @@ -315,7 +318,7 @@ function provideSolutionErrorsToWebpack( loaderOptions, instance.colors, compiler, - { file: filePath }, + { file: path.resolve(perFileDiagnostics[0].file!.fileName) }, compilation.compiler.context ); @@ -344,14 +347,14 @@ function provideDeclarationFilesToWebpack( instance: TSInstance, compilation: webpack.compilation.Compilation ) { - for (const filePath of filesToCheckForErrors.keys()) { - if (filePath.match(constants.tsTsxRegex) === null) { + for (const { fileName } of filesToCheckForErrors.values()) { + if (fileName.match(constants.tsTsxRegex) === null) { continue; } - if (!isReferencedFile(instance, filePath)) { + if (!isReferencedFile(instance, fileName)) { addDeclarationFilesAsAsset( - getEmitOutput(instance, filePath), + getEmitOutput(instance, fileName), compilation ); } diff --git a/src/index.ts b/src/index.ts index 14746753d..c34419935 100644 --- a/src/index.ts +++ b/src/index.ts @@ -15,10 +15,10 @@ import { reportTranspileErrors, } from './instances'; import { + FilePathKey, LoaderOptions, LoaderOptionsCache, LogLevel, - TSFile, TSInstance, } from './interfaces'; import { @@ -384,13 +384,14 @@ function updateFileInCache( ) { let fileWatcherEventKind: typescript.FileWatcherEventKind | undefined; // Update file contents - let file = instance.files.get(filePath); + const key = instance.filePathKeyMapper(filePath); + let file = instance.files.get(key); if (file === undefined) { - file = instance.otherFiles.get(filePath); + file = instance.otherFiles.get(key); if (file !== undefined) { if (!isReferencedFile(instance, filePath)) { - instance.otherFiles.delete(filePath); - instance.files.set(filePath, file); + instance.otherFiles.delete(key); + instance.files.set(key, file); instance.changedFilesList = true; } } else { @@ -400,12 +401,12 @@ function updateFileInCache( ) { fileWatcherEventKind = instance.compiler.FileWatcherEventKind.Created; } - file = { version: 0 }; + file = { fileName: filePath, version: 0 }; if (!isReferencedFile(instance, filePath)) { - instance.files.set(filePath, file); + instance.files.set(key, file); instance.changedFilesList = true; } else { - instance.otherFiles.set(filePath, file); + instance.otherFiles.set(key, file); } } } @@ -471,9 +472,9 @@ function updateFileInCache( // push this file to modified files hash. if (!instance.modifiedFiles) { - instance.modifiedFiles = new Map(); + instance.modifiedFiles = new Map(); } - instance.modifiedFiles.set(filePath, file); + instance.modifiedFiles.set(key, file); return file.version; } @@ -497,7 +498,7 @@ function getEmit( // Make this file dependent on *all* definition files in the program if (!isReferencedFile(instance, filePath)) { - for (const defFilePath of instance.files.keys()) { + for (const { fileName: defFilePath } of instance.files.values()) { if ( defFilePath.match(constants.dtsDtsxOrDtsDtsxMapRegex) && // Remove the project reference d.ts as we are adding dependency for .ts later @@ -513,7 +514,9 @@ function getEmit( } // Additionally make this file dependent on all imported files - const fileDependencies = instance.dependencyGraph[filePath]; + const fileDependencies = instance.dependencyGraph.get( + instance.filePathKeyMapper(filePath) + ); if (fileDependencies) { for (const { resolvedFileName, originalFileName } of fileDependencies) { const projectReference = getAndCacheProjectReference( @@ -531,6 +534,7 @@ function getEmit( ) ); } else { + // TODO:: Potentially handle symlinks addDependency( getInputFileNameFromOutput( instance, @@ -548,8 +552,10 @@ function getEmit( path.relative(loaderContext.rootContext, defFilePath) + '@' + ( - instance.files.get(defFilePath) || - instance.otherFiles.get(defFilePath) || { version: '?' } + instance.files.get(instance.filePathKeyMapper(defFilePath)) || + instance.otherFiles.get(instance.filePathKeyMapper(defFilePath)) || { + version: '?', + } ).version ); @@ -582,16 +588,16 @@ function addDependenciesFromSolutionBuilder( } // Add all the input files from the references as - const resolvedFilePath = path.resolve(filePath); + const resolvedFilePath = instance.filePathKeyMapper(filePath); if (!isReferencedFile(instance, filePath)) { if ( instance.configParseResult.fileNames.some( - f => path.resolve(f) === resolvedFilePath + f => instance.filePathKeyMapper(f) === resolvedFilePath ) ) { addDependenciesFromProjectReferences( instance, - path.resolve(instance.configFilePath!), + instance.configFilePath!, instance.configParseResult.projectReferences, addDependency ); @@ -617,7 +623,7 @@ function addDependenciesFromSolutionBuilder( } } else if ( !configInfo.config.fileNames.some( - f => path.resolve(f) === resolvedFilePath + f => instance.filePathKeyMapper(f) === resolvedFilePath ) ) { continue; @@ -647,8 +653,8 @@ function addDependenciesFromProjectReferences( return; } // This is the config for the input file - const seenMap = new Map(); - seenMap.set(configFile, true); + const seenMap = new Map(); + seenMap.set(instance.filePathKeyMapper(configFile), true); // Add dependencies to all the input files from the project reference files since building them const queue = projectReferences.slice(); @@ -657,7 +663,7 @@ function addDependenciesFromProjectReferences( if (!currentRef) { break; } - const refConfigFile = path.resolve( + const refConfigFile = instance.filePathKeyMapper( instance.compiler.resolveProjectReferencePath(currentRef) ); if (seenMap.has(refConfigFile)) { diff --git a/src/instances.ts b/src/instances.ts index bccd1fe36..33d5d6c0b 100644 --- a/src/instances.ts +++ b/src/instances.ts @@ -9,8 +9,8 @@ import { getCompiler, getCompilerOptions } from './compilerSetup'; import { getConfigFile, getConfigParseResult } from './config'; import { dtsDtsxOrDtsDtsxMapRegex, EOL, tsTsxRegex } from './constants'; import { + FilePathKey, LoaderOptions, - TSFile, TSFiles, TSInstance, TSInstances, @@ -73,6 +73,27 @@ export function getTypeScriptInstance( ); } +function createFilePathKeyMapper(compiler: typeof typescript) { + // FileName lowercasing copied from typescript + const fileNameLowerCaseRegExp = /[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g; + return compiler.sys.useCaseSensitiveFileNames + ? pathResolve + : toFileNameLowerCase; + + function pathResolve(x: string) { + return path.resolve(x) as FilePathKey; + } + + function toFileNameLowerCase(x: string) { + const filePathKey = pathResolve(x); + return fileNameLowerCaseRegExp.test(filePathKey) + ? (filePathKey.replace(fileNameLowerCaseRegExp, ch => + ch.toLowerCase() + ) as FilePathKey) + : filePathKey; + } +} + function successfulTypeScriptInstance( loaderOptions: LoaderOptions, loader: webpack.loader.LoaderContext, @@ -134,8 +155,8 @@ function successfulTypeScriptInstance( const compilerOptions = getCompilerOptions(configParseResult); const rootFileNames = new Set(); - const files: TSFiles = new Map(); - const otherFiles: TSFiles = new Map(); + const files: TSFiles = new Map(); + const otherFiles: TSFiles = new Map(); const appendTsTsxSuffixesIfRequired = loaderOptions.appendTsSuffixTo.length > 0 || @@ -149,6 +170,7 @@ function successfulTypeScriptInstance( filePath ) : (filePath: string) => filePath; + const filePathKeyMapper = createFilePathKeyMapper(compiler); if (loaderOptions.transpileOnly) { // quick return for transpiling @@ -163,8 +185,8 @@ function successfulTypeScriptInstance( otherFiles, version: 0, program: undefined, // temporary, to be set later - dependencyGraph: {}, - reverseDependencyGraph: {}, + dependencyGraph: new Map(), + reverseDependencyGraph: new Map(), transformers: {} as typescript.CustomTransformers, // this is only set temporarily, custom transformers are created further down colors, initialSetupPending: true, @@ -172,6 +194,7 @@ function successfulTypeScriptInstance( configFilePath, configParseResult, log, + filePathKeyMapper, }); return { instance: transpileInstance }; @@ -187,7 +210,8 @@ function successfulTypeScriptInstance( : configParseResult.fileNames; filesToLoad.forEach(filePath => { normalizedFilePath = path.normalize(filePath); - files.set(normalizedFilePath, { + files.set(filePathKeyMapper(normalizedFilePath), { + fileName: normalizedFilePath, text: fs.readFileSync(normalizedFilePath, 'utf-8'), version: 0, }); @@ -215,13 +239,14 @@ function successfulTypeScriptInstance( languageService: null, version: 0, transformers: {} as typescript.CustomTransformers, // this is only set temporarily, custom transformers are created further down - dependencyGraph: {}, - reverseDependencyGraph: {}, + dependencyGraph: new Map(), + reverseDependencyGraph: new Map(), colors, initialSetupPending: true, configFilePath, configParseResult, log, + filePathKeyMapper, }); return { instance }; @@ -316,12 +341,11 @@ export function initializeInstance( getScriptRegexp(instance), loader, instance, - instance.loaderOptions.experimentalFileCaching, instance.configParseResult.projectReferences ); instance.languageService = instance.compiler.createLanguageService( - instance.servicesHost.servicesHost, + instance.servicesHost, instance.compiler.createDocumentRegistry() ); @@ -425,10 +449,11 @@ function ensureAllReferences(instance: TSInstance) { } // Load all the input files configInfo.config.fileNames.forEach(file => { - const resolvedFileName = path.resolve(file); + const resolvedFileName = instance.filePathKeyMapper(file); const existing = instance.otherFiles.get(resolvedFileName); if (!existing) { instance.otherFiles.set(resolvedFileName, { + fileName: path.resolve(file), version: 1, text: instance.compiler.sys.readFile(file), modifiedTime: instance.compiler.sys.getModifiedTime!(file), @@ -602,6 +627,7 @@ export function getInputFileNameFromOutput( if (filePath.match(tsTsxRegex) && !fileExtensionIs(filePath, '.d.ts')) { return undefined; } + //TODO:: POtentially handle symlinks if (instance.solutionBuilderHost) { return instance.solutionBuilderHost.getInputFileNameFromOutput(filePath); } @@ -630,7 +656,9 @@ export function getInputFileNameFromOutput( export function isReferencedFile(instance: TSInstance, filePath: string) { return ( !!instance.solutionBuilderHost && - !!instance.solutionBuilderHost.watchedFiles.get(filePath) + !!instance.solutionBuilderHost.watchedFiles.get( + instance.filePathKeyMapper(filePath) + ) ); } @@ -639,7 +667,9 @@ export function getEmitFromWatchHost(instance: TSInstance, filePath?: string) { const builderProgram = instance.builderProgram; if (builderProgram && program) { if (filePath) { - const existing = instance.watchHost!.outputFiles.get(filePath); + const existing = instance.watchHost!.outputFiles.get( + instance.filePathKeyMapper(filePath) + ); if (existing) { return existing; } @@ -676,7 +706,9 @@ export function getEmitFromWatchHost(instance: TSInstance, filePath?: string) { } if ((result.affected as typescript.SourceFile).fileName) { instance.watchHost!.outputFiles.set( - path.resolve((result.affected as typescript.SourceFile).fileName), + instance.filePathKeyMapper( + (result.affected as typescript.SourceFile).fileName + ), outputFiles.slice() ); } diff --git a/src/interfaces.ts b/src/interfaces.ts index e873dedd7..e18d49f33 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -40,11 +40,41 @@ export type ResolveSync = ( export type Action = () => void; -export interface ServiceHostWhichMayBeCacheable { - servicesHost: typescript.LanguageServiceHost; +export interface HostMayBeCacheable { clearCache: Action | null; } +export interface TypescriptHostMayBeCacheable + extends typescript.ModuleResolutionHost, + HostMayBeCacheable { + readFile(filePath: string, encoding?: string): string | undefined; + trace: NonNullable; + directoryExists: NonNullable< + typescript.ModuleResolutionHost['directoryExists'] + >; + realpath: NonNullable; + getCurrentDirectory: NonNullable< + typescript.ModuleResolutionHost['getCurrentDirectory'] + >; + getDirectories: NonNullable< + typescript.ModuleResolutionHost['getDirectories'] + >; + + // Other common methods between WatchHost and LanguageServiceHost + useCaseSensitiveFileNames: NonNullable< + typescript.LanguageServiceHost['useCaseSensitiveFileNames'] + >; + getNewLine: NonNullable; + getDefaultLibFileName: NonNullable< + typescript.LanguageServiceHost['getDefaultLibFileName'] + >; + readDirectory: NonNullable; +} + +export interface ServiceHostWhichMayBeCacheable + extends typescript.LanguageServiceHost, + HostMayBeCacheable {} + export interface WatchHost extends typescript.WatchCompilerHostOfFilesAndCompilerOptions< typescript.EmitAndSemanticDiagnosticsBuilderProgram @@ -55,11 +85,14 @@ export interface WatchHost ): void; invokeDirectoryWatcher(directory: string, fileAddedOrRemoved: string): void; updateRootFileNames(): void; - outputFiles: Map; + outputFiles: Map; tsbuildinfo?: typescript.OutputFile; } -export type WatchCallbacks = Map; +export type WatchCallbacks = Map< + FilePathKey, + { fileName: string; callbacks: T[] } +>; export interface WatchFactory { watchedFiles: WatchCallbacks; watchedDirectories: WatchCallbacks; @@ -79,10 +112,12 @@ export interface WatchFactory { export interface SolutionDiagnostics { global: typescript.Diagnostic[]; - perFile: Map; - transpileErrors: [string | undefined, typescript.Diagnostic[]][]; + perFile: Map; + transpileErrors: [FilePathKey | undefined, typescript.Diagnostic[]][]; } +export type FilePathKey = string & { __filePathKeyBrand: any }; + export interface SolutionBuilderWithWatchHost extends typescript.SolutionBuilderWithWatchHost< typescript.EmitAndSemanticDiagnosticsBuilderProgram @@ -90,8 +125,8 @@ export interface SolutionBuilderWithWatchHost WatchFactory { diagnostics: SolutionDiagnostics; writtenFiles: OutputFile[]; - configFileInfo: Map; - outputAffectingInstanceVersion: Map; + configFileInfo: Map; + outputAffectingInstanceVersion: Map; getOutputFileFromReferencedProject( outputFileName: string ): OutputFile | false | undefined; @@ -102,7 +137,10 @@ export interface SolutionBuilderWithWatchHost export interface ConfigFileInfo { config: typescript.ParsedCommandLine | undefined; - outputFileNames?: Map; + outputFileNames?: Map< + FilePathKey, + { inputFileName: string; outputNames: FilePathKey[] } + >; tsbuildInfoFile?: string; dtsFiles?: string[]; } @@ -159,6 +197,8 @@ export interface TSInstance { >; configFilePath: string | undefined; + filePathKeyMapper: (fileName: string) => FilePathKey; + initialSetupPending: boolean; configParseResult: typescript.ParsedCommandLine; log: logger.Logger; @@ -171,18 +211,8 @@ export interface LoaderOptionsCache { export interface TSInstances { [name: string]: TSInstance; } - -export interface DependencyGraph { - [file: string]: ResolvedModule[] | undefined; -} - -export interface ReverseDependencyGraph { - [file: string]: - | { - [file: string]: boolean; - } - | undefined; -} +export type DependencyGraph = Map; +export type ReverseDependencyGraph = Map>; export type LogLevel = 'INFO' | 'WARN' | 'ERROR'; @@ -241,6 +271,7 @@ export interface LoaderOptions { } export interface TSFile { + fileName: string; text?: string; version: number; modifiedTime?: Date; @@ -255,7 +286,7 @@ export interface TSFile { } /** where key is filepath */ -export type TSFiles = Map; +export type TSFiles = Map; export interface ResolvedModule { originalFileName: string; diff --git a/src/servicesHost.ts b/src/servicesHost.ts index f45a77b70..bb4309fbd 100644 --- a/src/servicesHost.ts +++ b/src/servicesHost.ts @@ -1,7 +1,6 @@ import * as path from 'path'; import * as typescript from 'typescript'; import * as webpack from 'webpack'; - import { getParsedCommandLine } from './config'; import * as constants from './constants'; import { getOutputFileNames } from './instances'; @@ -10,6 +9,7 @@ import { ConfigFileInfo, CustomResolveModuleName, CustomResolveTypeReferenceDirective, + FilePathKey, FormatDiagnosticsHost, ModuleResolutionHost, OutputFile, @@ -20,48 +20,31 @@ import { SolutionDiagnostics, TSFile, TSInstance, + TypescriptHostMayBeCacheable, WatchCallbacks, WatchFactory, WatchHost, WebpackError, } from './interfaces'; import { makeResolver } from './resolver'; -import { formatErrors, readFile, unorderedRemoveItem } from './utils'; - -function readFileWithInstance( - instance: TSInstance, - filePath: string, - encoding?: string | undefined -): string | undefined { - if (instance.solutionBuilderHost) { - const outputFile = instance.solutionBuilderHost.getOutputFileFromReferencedProject( - filePath - ); - if (outputFile !== undefined) { - return outputFile ? outputFile.text : undefined; - } - } - return ( - instance.compiler.sys.readFile(filePath, encoding) || - readFile(filePath, encoding) - ); -} +import { + ensureTrailingDirectorySeparator, + formatErrors, + fsReadFile, + unorderedRemoveItem, +} from './utils'; -/** - * Create the TypeScript language service - */ -export function makeServicesHost( +function makeResolversHandlingProjectReferences( scriptRegex: RegExp, loader: webpack.loader.LoaderContext, instance: TSInstance, - enableFileCaching: boolean, - projectReferences?: ReadonlyArray -): ServiceHostWhichMayBeCacheable { + originalFileExists: (fileName: string) => boolean, + enableFileCaching: boolean +) { const { compiler, compilerOptions, appendTsTsxSuffixesIfRequired, - files, loaderOptions: { resolveModuleName: customResolveModuleName, resolveTypeReferenceDirective: customResolveTypeReferenceDirective, @@ -75,49 +58,33 @@ export function makeServicesHost( ? constants.LineFeed : constants.EOL; + // loader.context seems to work fine on Linux / Mac regardless causes problems for @types resolution on Windows for TypeScript < 2.3 + const getCurrentDirectory = () => loader.context; + // make a (sync) resolver that follows webpack's rules const resolveSync = makeResolver(loader._compiler.options); - const readFileWithFallback = ( - filePath: string, - encoding?: string | undefined - ): string | undefined => readFileWithInstance(instance, filePath, encoding); - - const fileExists = (filePathToCheck: string) => { - if (instance.solutionBuilderHost) { - const outputFile = instance.solutionBuilderHost.getOutputFileFromReferencedProject( - filePathToCheck - ); - if (outputFile !== undefined) { - return !!outputFile; - } - } - return ( - compiler.sys.fileExists(filePathToCheck) || - readFile(filePathToCheck) !== undefined - ); - }; - - let clearCache: Action | null = null; - let moduleResolutionHost: ModuleResolutionHost = { + const moduleResolutionHost: TypescriptHostMayBeCacheable = { + trace: logData => instance.log.log(logData), fileExists, - readFile: readFileWithFallback, - realpath: compiler.sys.realpath, - directoryExists: compiler.sys.directoryExists, - getCurrentDirectory: compiler.sys.getCurrentDirectory, - getDirectories: compiler.sys.getDirectories, + readFile, + realpath, + directoryExists, + getCurrentDirectory, + getDirectories, + readDirectory, + clearCache: null, + + useCaseSensitiveFileNames: () => compiler.sys.useCaseSensitiveFileNames, + getNewLine: () => newLine, + getDefaultLibFileName: options => compiler.getDefaultLibFilePath(options), }; if (enableFileCaching) { - const cached = addCache(moduleResolutionHost); - clearCache = cached.clearCache; - moduleResolutionHost = cached.moduleResolutionHost; + addCache(moduleResolutionHost); } - // loader.context seems to work fine on Linux / Mac regardless causes problems for @types resolution on Windows for TypeScript < 2.3 - const getCurrentDirectory = () => loader.context; - - const resolvers = makeResolvers( + return makeResolvers( compiler, compilerOptions, moduleResolutionHost, @@ -129,17 +96,121 @@ export function makeServicesHost( instance ); - const servicesHost: typescript.LanguageServiceHost = { + function fileExists(filePathToCheck: string) { + const outputFile = instance.solutionBuilderHost?.getOutputFileFromReferencedProject( + filePathToCheck + ); + if (outputFile !== undefined) { + return !!outputFile; + } + return originalFileExists(filePathToCheck); + } + + function readFile( + filePath: string, + encoding?: string | undefined + ): string | undefined { + const outputFile = instance.solutionBuilderHost?.getOutputFileFromReferencedProject( + filePath + ); + if (outputFile !== undefined) { + return outputFile ? outputFile.text : undefined; + } + return ( + instance.compiler.sys.readFile(filePath, encoding) || + fsReadFile(filePath, encoding) + ); + } + + function directoryExists(directoryName: string) { + return instance.solutionBuilderHost + ? instance.solutionBuilderHost.directoryExists!(directoryName) + : compiler.sys.directoryExists(directoryName); + } + + function realpath(path: string) { + return instance.solutionBuilderHost + ? instance.solutionBuilderHost.realpath!(path) + : compiler.sys.realpath?.(path) || path; + } + + function getDirectories(path: string) { + return instance.solutionBuilderHost + ? instance.solutionBuilderHost.getDirectories!(path) + : compiler.sys.getDirectories(path); + } + + function readDirectory( + path: string, + extensions?: readonly string[], + exclude?: readonly string[], + include?: readonly string[], + depth?: number + ) { + return instance.solutionBuilderHost + ? instance.solutionBuilderHost.readDirectory!( + path, + extensions, + exclude, + include, + depth + ) + : compiler.sys.readDirectory(path, extensions, exclude, include, depth); + } +} + +/** + * Create the TypeScript language service + */ +export function makeServicesHost( + scriptRegex: RegExp, + loader: webpack.loader.LoaderContext, + instance: TSInstance, + projectReferences?: ReadonlyArray +): ServiceHostWhichMayBeCacheable { + const { compiler, compilerOptions, files, filePathKeyMapper } = instance; + + const { + moduleResolutionHost: { + fileExists, + readFile, + trace, + directoryExists, + realpath, + getCurrentDirectory, + getDirectories, + clearCache, + useCaseSensitiveFileNames, + getNewLine, + getDefaultLibFileName, + readDirectory, + }, + resolveModuleNames, + resolveTypeReferenceDirectives, + } = makeResolversHandlingProjectReferences( + scriptRegex, + loader, + instance, + filePathToCheck => + compiler.sys.fileExists(filePathToCheck) || + fsReadFile(filePathToCheck) !== undefined, + instance.loaderOptions.experimentalFileCaching + ); + + const servicesHost: ServiceHostWhichMayBeCacheable = { getProjectVersion: () => `${instance.version}`, getProjectReferences: () => projectReferences, getScriptFileNames: () => - [...files.keys()].filter(filePath => filePath.match(scriptRegex)), + [...files.values()] + .map(({ fileName }) => fileName) + .filter(filePath => filePath.match(scriptRegex)), getScriptVersion: (fileName: string) => { fileName = path.normalize(fileName); - const file = files.get(fileName); + const key = filePathKeyMapper(fileName); + const file = files.get(key); if (file) { return file.version.toString(); } @@ -150,7 +221,7 @@ export function makeServicesHost( ); if (outputFile !== undefined) { instance.solutionBuilderHost!.outputAffectingInstanceVersion.set( - path.resolve(fileName), + key, true ); } @@ -161,7 +232,8 @@ export function makeServicesHost( // This is called any time TypeScript needs a file's text // We either load from memory or from disk fileName = path.normalize(fileName); - let file = files.get(fileName); + const key = filePathKeyMapper(fileName); + let file = files.get(key); if (file === undefined) { if (instance.solutionBuilderHost) { @@ -170,7 +242,7 @@ export function makeServicesHost( ); if (outputFile !== undefined) { instance.solutionBuilderHost!.outputAffectingInstanceVersion.set( - path.resolve(fileName), + key, true ); return outputFile @@ -184,8 +256,8 @@ export function makeServicesHost( return undefined; } - file = { version: 0, text }; - files.set(fileName, file); + file = { fileName, version: 0, text }; + files.set(key, file); } return compiler.ScriptSnapshot.fromString(file.text!); @@ -195,46 +267,46 @@ export function makeServicesHost( * getDirectories is also required for full import and type reference completions. * Without it defined, certain completions will not be provided */ - getDirectories: compiler.sys.getDirectories, + getDirectories, /** * For @types expansion, these two functions are needed. */ - directoryExists: moduleResolutionHost.directoryExists, + directoryExists, - useCaseSensitiveFileNames: () => compiler.sys.useCaseSensitiveFileNames, + useCaseSensitiveFileNames, - realpath: moduleResolutionHost.realpath, + realpath, // The following three methods are necessary for @types resolution from TS 2.4.1 onwards see: https://github.com/Microsoft/TypeScript/issues/16772 - fileExists: moduleResolutionHost.fileExists, - readFile: moduleResolutionHost.readFile, - readDirectory: compiler.sys.readDirectory, + fileExists, + readFile, + readDirectory, getCurrentDirectory, getCompilationSettings: () => compilerOptions, - getDefaultLibFileName: (options: typescript.CompilerOptions) => - compiler.getDefaultLibFilePath(options), - getNewLine: () => newLine, - trace: instance.log.log, - log: instance.log.log, + getDefaultLibFileName, + getNewLine, + trace, + log: trace, // used for (/// ) see https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/250#issuecomment-485061329 - resolveTypeReferenceDirectives: resolvers.resolveTypeReferenceDirectives, + resolveTypeReferenceDirectives, - resolveModuleNames: resolvers.resolveModuleNames, + resolveModuleNames, getCustomTransformers: () => instance.transformers, + clearCache, }; - return { servicesHost, clearCache }; + return servicesHost; } -function makeResolvers( +function makeResolvers( compiler: typeof typescript, compilerOptions: typescript.CompilerOptions, - moduleResolutionHost: typescript.ModuleResolutionHost, + moduleResolutionHost: T, customResolveTypeReferenceDirective: CustomResolveTypeReferenceDirective, customResolveModuleName: CustomResolveModuleName, resolveSync: ResolveSync, @@ -295,10 +367,13 @@ function makeResolvers( return { resolveTypeReferenceDirectives, resolveModuleNames, + moduleResolutionHost, }; } -function createWatchFactory(): WatchFactory { +function createWatchFactory( + filePathKeyMapper: (fileName: string) => FilePathKey +): WatchFactory { const watchedFiles: WatchCallbacks = new Map(); const watchedDirectories: WatchCallbacks = new Map(); const watchedDirectoriesRecursive: WatchCallbacks = new Map(); @@ -315,13 +390,13 @@ function createWatchFactory(): WatchFactory { function invokeWatcherCallbacks( map: - | Map - | Map, + | WatchCallbacks + | WatchCallbacks, key: string, fileName: string, eventKind?: typescript.FileWatcherEventKind ) { - const callbacks = map.get(key); + const callbacks = map.get(filePathKeyMapper(key))?.callbacks; if (callbacks !== undefined && callbacks.length) { // The array copy is made to ensure that even if one of the callback removes the callbacks, // we dont miss any callbacks following it @@ -370,20 +445,23 @@ function createWatchFactory(): WatchFactory { callbacks: WatchCallbacks, callback: T ): typescript.FileWatcher { - file = path.normalize(file); - const existing = callbacks.get(file); + const key = filePathKeyMapper(file); + const existing = callbacks.get(key); if (existing === undefined) { - callbacks.set(file, [callback]); + callbacks.set(key, { + fileName: path.normalize(file), + callbacks: [callback], + }); } else { - existing.push(callback); + existing.callbacks.push(callback); } return { close: () => { - const existing = callbacks.get(file); + const existing = callbacks.get(key); if (existing !== undefined) { - unorderedRemoveItem(existing, callback); - if (!existing.length) { - callbacks.delete(file); + unorderedRemoveItem(existing.callbacks, callback); + if (!existing.callbacks.length) { + callbacks.delete(key); } } }, @@ -413,12 +491,12 @@ function createWatchFactory(): WatchFactory { export function updateFileWithText( instance: TSInstance, + key: FilePathKey, filePath: string, text: (nFilePath: string) => string ) { const nFilePath = path.normalize(filePath); - const file = - instance.files.get(nFilePath) || instance.otherFiles.get(nFilePath); + const file = instance.files.get(key) || instance.otherFiles.get(key); if (file !== undefined) { const newText = text(nFilePath); if (newText !== file.text) { @@ -427,9 +505,9 @@ export function updateFileWithText( file.modifiedTime = new Date(); instance.version++; if (!instance.modifiedFiles) { - instance.modifiedFiles = new Map(); + instance.modifiedFiles = new Map(); } - instance.modifiedFiles.set(nFilePath, file); + instance.modifiedFiles.set(key, file); if (instance.watchHost !== undefined) { instance.watchHost.invokeFileWatcher( nFilePath, @@ -458,90 +536,67 @@ export function makeWatchHost( const { compiler, compilerOptions, - appendTsTsxSuffixesIfRequired, files, otherFiles, - loaderOptions: { - resolveModuleName: customResolveModuleName, - resolveTypeReferenceDirective: customResolveTypeReferenceDirective, - }, + filePathKeyMapper, } = instance; - const newLine = - compilerOptions.newLine === constants.CarriageReturnLineFeedCode - ? constants.CarriageReturnLineFeed - : compilerOptions.newLine === constants.LineFeedCode - ? constants.LineFeed - : constants.EOL; - - // make a (sync) resolver that follows webpack's rules - const resolveSync = makeResolver(loader._compiler.options); - - const readFileWithFallback = ( - filePath: string, - encoding?: string | undefined - ): string | undefined => readFileWithInstance(instance, filePath, encoding); - - const moduleResolutionHost: ModuleResolutionHost = { - fileExists, - readFile: readFileWithFallback, - realpath: compiler.sys.realpath, - }; - - // loader.context seems to work fine on Linux / Mac regardless causes problems for @types resolution on Windows for TypeScript < 2.3 - const getCurrentDirectory = () => loader.context; - const { watchFile, watchDirectory, invokeFileWatcher, invokeDirectoryWatcher, - } = createWatchFactory(); - const resolvers = makeResolvers( - compiler, - compilerOptions, - moduleResolutionHost, - customResolveTypeReferenceDirective, - customResolveModuleName, - resolveSync, - appendTsTsxSuffixesIfRequired, + } = createWatchFactory(filePathKeyMapper); + const { + moduleResolutionHost: { + fileExists, + readFile, + trace, + directoryExists, + realpath, + getCurrentDirectory, + getDirectories, + useCaseSensitiveFileNames, + getNewLine, + getDefaultLibFileName, + readDirectory, + }, + resolveModuleNames, + resolveTypeReferenceDirectives, + } = makeResolversHandlingProjectReferences( scriptRegex, - instance + loader, + instance, + (fileName: string) => { + const filePath = filePathKeyMapper(fileName); + return files.has(filePath) || compiler.sys.fileExists(filePath); + }, + /*enabledCaching*/ false ); const watchHost: WatchHost = { rootFiles: getRootFileNames(), options: compilerOptions, - useCaseSensitiveFileNames: () => compiler.sys.useCaseSensitiveFileNames, - getNewLine: () => newLine, + useCaseSensitiveFileNames, + getNewLine, getCurrentDirectory, - getDefaultLibFileName: options => compiler.getDefaultLibFilePath(options), + getDefaultLibFileName, fileExists, readFile: readFileWithCachingText, - directoryExists: dirPath => - compiler.sys.directoryExists(path.normalize(dirPath)), - getDirectories: dirPath => - compiler.sys.getDirectories(path.normalize(dirPath)), - readDirectory: (dirPath, extensions, exclude, include, depth) => - compiler.sys.readDirectory( - path.normalize(dirPath), - extensions, - exclude, - include, - depth - ), - realpath: dirPath => compiler.sys.resolvePath(path.normalize(dirPath)), - trace: logData => instance.log.log(logData), + directoryExists, + getDirectories, + readDirectory, + realpath, + trace, watchFile, watchDirectory, // used for (/// ) see https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/250#issuecomment-485061329 - resolveTypeReferenceDirectives: resolvers.resolveTypeReferenceDirectives, - - resolveModuleNames: resolvers.resolveModuleNames, + resolveTypeReferenceDirectives, + resolveModuleNames, invokeFileWatcher, invokeDirectoryWatcher, @@ -563,28 +618,26 @@ export function makeWatchHost( return watchHost; function getRootFileNames() { - return [...files.keys()].filter(filePath => filePath.match(scriptRegex)); + return [...files.values()] + .map(({ fileName }) => fileName) + .filter(filePath => filePath.match(scriptRegex)); } function readFileWithCachingText(fileName: string, encoding?: string) { fileName = path.normalize(fileName); - const file = files.get(fileName) || otherFiles.get(fileName); + const key = filePathKeyMapper(fileName); + const file = files.get(key) || otherFiles.get(key); if (file !== undefined) { return file.text; } - const text = readFileWithFallback(fileName, encoding); + const text = readFile(fileName, encoding); if (text === undefined) { return undefined; } - otherFiles.set(fileName, { version: 0, text }); + otherFiles.set(key, { fileName, version: 0, text }); return text; } - function fileExists(fileName: string) { - const filePath = path.normalize(fileName); - return files.has(filePath) || compiler.sys.fileExists(filePath); - } - function createBuilderProgramWithReferences( rootNames: ReadonlyArray | undefined, options: typescript.CompilerOptions | undefined, @@ -613,8 +666,8 @@ export function makeWatchHost( } } -function normalizeSlashes(file: string): string { - return file.replace(/\\/g, '/'); +function normalizeSlashes(file: T): T { + return file.replace(/\\/g, '/') as T; } /** @@ -634,6 +687,7 @@ export function makeSolutionBuilderHost( resolveTypeReferenceDirective: customResolveTypeReferenceDirective, transpileOnly, }, + filePathKeyMapper, } = instance; // loader.context seems to work fine on Linux / Mac regardless causes problems for @types resolution on Windows for TypeScript < 2.3 @@ -653,7 +707,7 @@ export function makeSolutionBuilderHost( }; const reportDiagnostic = (d: typescript.Diagnostic) => { if (transpileOnly) { - const filePath = d.file ? path.resolve(d.file.fileName) : undefined; + const filePath = d.file ? filePathKeyMapper(d.file.fileName) : undefined; const last = diagnostics.transpileErrors[diagnostics.transpileErrors.length - 1]; if (diagnostics.transpileErrors.length && last[0] === filePath) { @@ -662,7 +716,7 @@ export function makeSolutionBuilderHost( diagnostics.transpileErrors.push([filePath, [d]]); } } else if (d.file) { - const filePath = path.resolve(d.file.fileName); + const filePath = filePathKeyMapper(d.file.fileName); const existing = diagnostics.perFile.get(filePath); if (existing) { existing.push(d); @@ -688,12 +742,12 @@ export function makeSolutionBuilderHost( compiler.sys.newLine )}${newLine + newLine}` ); - const outputFiles = new Map(); + const outputFiles = new Map(); const writtenFiles: OutputFile[] = []; - const outputAffectingInstanceVersion = new Map(); + const outputAffectingInstanceVersion = new Map(); let timeoutId: [(...args: any[]) => void, any[]] | undefined; - const configFileInfo = new Map(); + const configFileInfo = new Map(); const solutionBuilderHost: SolutionBuilderWithWatchHost = { ...compiler.createSolutionBuilderWithWatchHost( compiler.sys, @@ -703,7 +757,7 @@ export function makeSolutionBuilderHost( reportWatchStatus ), diagnostics, - ...createWatchFactory(), + ...createWatchFactory(filePathKeyMapper), // Overrides getCurrentDirectory, // behave as if there is no tsbuild info on disk since we want to generate all outputs in memory and only use those @@ -716,9 +770,9 @@ export function makeSolutionBuilderHost( : readInputFile(fileName, encoding).text; }, writeFile: (name, text, writeByteOrderMark) => { - updateFileWithText(instance, name, () => text); - const resolvedFileName = path.resolve(name); - const existing = outputFiles.get(resolvedFileName); + const key = filePathKeyMapper(name); + updateFileWithText(instance, key, name, () => text); + const existing = outputFiles.get(key); const newOutputFile: OutputFile = { name, text, @@ -730,10 +784,10 @@ export function makeSolutionBuilderHost( : existing.version : 0, }; - outputFiles.set(resolvedFileName, newOutputFile); + outputFiles.set(key, newOutputFile); writtenFiles.push(newOutputFile); if ( - outputAffectingInstanceVersion.has(resolvedFileName) && + outputAffectingInstanceVersion.has(key) && (!existing || existing.text !== text) ) { instance.version++; @@ -744,9 +798,8 @@ export function makeSolutionBuilderHost( if (outputFile !== undefined) { return outputFile ? outputFile.time : undefined; } - const existing = - instance.files.get(path.resolve(fileName)) || - instance.otherFiles.get(path.resolve(fileName)); + const key = filePathKeyMapper(fileName); + const existing = instance.files.get(key) || instance.otherFiles.get(key); return existing ? existing.modifiedTime : compiler.sys.getModifiedTime!(fileName); @@ -759,9 +812,8 @@ export function makeSolutionBuilderHost( } } compiler.sys.setModifiedTime!(fileName, time); - const existing = - instance.files.get(path.resolve(fileName)) || - instance.otherFiles.get(path.resolve(fileName)); + const key = filePathKeyMapper(fileName); + const existing = instance.files.get(key) || instance.otherFiles.get(key); if (existing) { existing.modifiedTime = time; } @@ -771,9 +823,9 @@ export function makeSolutionBuilderHost( if (outputFile !== undefined) { return !!outputFile; } - const existing = - instance.files.get(path.resolve(fileName)) || - instance.otherFiles.get(path.resolve(fileName)); + // TODO: handle symlinks + const key = filePathKeyMapper(fileName); + const existing = instance.files.get(key) || instance.otherFiles.get(key); return existing ? existing.text !== undefined : compiler.sys.fileExists(fileName); @@ -782,7 +834,8 @@ export function makeSolutionBuilderHost( if (compiler.sys.directoryExists(directory)) { return true; } - const resolvedDirectory = normalizeSlashes(path.resolve(directory)) + '/'; + // TODO: handle symlinks + const resolvedDirectory = trailingDirectorySeparatorPathKey(directory); for (const outputFile of outputFiles.keys()) { if (normalizeSlashes(outputFile).startsWith(resolvedDirectory)) { return true; @@ -790,6 +843,16 @@ export function makeSolutionBuilderHost( } return false; }, + getDirectories: directory => + compiler.sys.directoryExists(directory) + ? compiler.sys.getDirectories(directory) + : [], // Fake for non present directories, + readDirectory: (path, extensions, exclude, include, depth) => + compiler.sys.directoryExists(path) + ? compiler.sys.readDirectory(path, extensions, exclude, include, depth) + : [], // Fake for non present directories, + // TODO: Symlinks + realpath: path => compiler.sys.realpath?.(path) || path, afterProgramEmitAndDiagnostics: transpileOnly ? undefined : storeDtsFiles, setTimeout: (callback, _time, ...args) => { timeoutId = [callback, args]; @@ -801,18 +864,20 @@ export function makeSolutionBuilderHost( writtenFiles, configFileInfo, outputAffectingInstanceVersion, + // Handle symlinks getOutputFileFromReferencedProject, getInputFileNameFromOutput: fileName => { const result = getInputFileNameFromOutput(fileName); return typeof result === 'string' ? result : undefined; }, + // Potentially Handle symlinks getOutputFilesFromReferencedProjectInput, buildReferences, }; solutionBuilderHost.trace = logData => instance.log.logInfo(logData); solutionBuilderHost.getParsedCommandLine = file => { const config = getParsedCommandLine(compiler, instance.loaderOptions, file); - configFileInfo.set(path.resolve(file), { config }); + configFileInfo.set(filePathKeyMapper(file), { config }); return config; }; @@ -836,6 +901,12 @@ export function makeSolutionBuilderHost( return solutionBuilderHost; + function trailingDirectorySeparatorPathKey(directory: string) { + return ensureTrailingDirectorySeparator( + normalizeSlashes(filePathKeyMapper(directory)) + ); + } + function buildReferences() { if (!timeoutId) { return; @@ -875,22 +946,23 @@ export function makeSolutionBuilderHost( function getInputFileNameFromOutput( outputFileName: string ): string | true | undefined { - const resolvedFileName = path.resolve(outputFileName); + // TODO: Potentially handle symlinks + const resolvedFileName = filePathKeyMapper(outputFileName); for (const configInfo of configFileInfo.values()) { ensureInputOutputInfo(configInfo); if (configInfo.outputFileNames) { - for (const [ + for (const { inputFileName, - outputFilesOfInput, - ] of configInfo.outputFileNames.entries()) { - if (outputFilesOfInput.indexOf(resolvedFileName) !== -1) { + outputNames, + } of configInfo.outputFileNames.values()) { + if (outputNames.indexOf(resolvedFileName) !== -1) { return inputFileName; } } } if ( configInfo.tsbuildInfoFile && - path.resolve(configInfo.tsbuildInfoFile) === resolvedFileName + filePathKeyMapper(configInfo.tsbuildInfoFile) === resolvedFileName ) { return true; } @@ -904,14 +976,14 @@ export function makeSolutionBuilderHost( } configInfo.outputFileNames = new Map(); configInfo.config.fileNames.forEach(inputFile => - configInfo.outputFileNames!.set( - path.resolve(inputFile), - getOutputFileNames( + configInfo.outputFileNames!.set(filePathKeyMapper(inputFile), { + inputFileName: path.resolve(inputFile), + outputNames: getOutputFileNames( instance, configInfo.config!, inputFile - ).map(output => path.resolve(output)) - ) + ).map(filePathKeyMapper), + }) ); configInfo.tsbuildInfoFile = instance.compiler @@ -928,8 +1000,9 @@ export function makeSolutionBuilderHost( function getOutputFileFromReferencedProject( outputFileName: string ): OutputFile | false | undefined { - const resolvedFileName = path.resolve(outputFileName); - return outputFiles.get(resolvedFileName); + // TODO: symlinks + const key = filePathKeyMapper(outputFileName); + return outputFiles.get(key); } function ensureOutputFile( @@ -940,13 +1013,14 @@ export function makeSolutionBuilderHost( if (outputFile !== undefined) { return outputFile; } + // Symnlinks? if (!getInputFileNameFromOutput(outputFileName)) { return undefined; } - const resolvedFileName = path.resolve(outputFileName); + const key = filePathKeyMapper(outputFileName); const text = compiler.sys.readFile(outputFileName, encoding); if (text === undefined) { - outputFiles.set(resolvedFileName, false); + outputFiles.set(key, false); return false; } const newOutputFile: OutputFile = { @@ -956,18 +1030,19 @@ export function makeSolutionBuilderHost( time: compiler.sys.getModifiedTime!(outputFileName)!, version: 0, }; - outputFiles.set(resolvedFileName, newOutputFile); + outputFiles.set(key, newOutputFile); return newOutputFile; } function getOutputFilesFromReferencedProjectInput(inputFileName: string) { - const resolvedFileName = path.resolve(inputFileName); + // TODO: Potential symlinks + const resolvedFileName = filePathKeyMapper(inputFileName); for (const configInfo of configFileInfo.values()) { ensureInputOutputInfo(configInfo); if (configInfo.outputFileNames) { const result = configInfo.outputFileNames.get(resolvedFileName); if (result) { - return result + return result.outputNames .map(outputFile => outputFiles.get(outputFile)!) .filter(output => !!output) as OutputFile[]; } @@ -977,12 +1052,14 @@ export function makeSolutionBuilderHost( } function readInputFile(inputFileName: string, encoding: string | undefined) { - const resolvedFileName = path.resolve(inputFileName); + const resolvedFileName = filePathKeyMapper(inputFileName); const existing = instance.otherFiles.get(resolvedFileName); if (existing) { return existing; } + inputFileName = path.resolve(inputFileName); const tsFile: TSFile = { + fileName: inputFileName, version: 1, text: compiler.sys.readFile(inputFileName, encoding), modifiedTime: compiler.sys.getModifiedTime!(inputFileName), @@ -1147,39 +1224,27 @@ function populateDependencyGraphs( mod => mod !== null && mod !== undefined ); - instance.dependencyGraph[path.normalize(containingFile)] = resolvedModules; + const containingFileKey = instance.filePathKeyMapper(containingFile); + instance.dependencyGraph.set(containingFileKey, resolvedModules); resolvedModules.forEach(resolvedModule => { - if ( - instance.reverseDependencyGraph[resolvedModule.resolvedFileName] === - undefined - ) { - instance.reverseDependencyGraph[resolvedModule.resolvedFileName] = {}; + const key = instance.filePathKeyMapper(resolvedModule.resolvedFileName); + let map = instance.reverseDependencyGraph.get(key); + if (!map) { + map = new Map(); + instance.reverseDependencyGraph.set(key, map); } - instance.reverseDependencyGraph[resolvedModule.resolvedFileName]![ - path.normalize(containingFile) - ] = true; + map.set(containingFileKey, true); }); } -function addCache( - servicesHost: typescript.ModuleResolutionHost -): { - moduleResolutionHost: typescript.ModuleResolutionHost; - clearCache: () => void; -} { +function addCache(host: TypescriptHostMayBeCacheable): void { const clearCacheFunctions: Action[] = []; - return { - moduleResolutionHost: { - ...servicesHost, - fileExists: createCache(servicesHost.fileExists), - directoryExists: - servicesHost.directoryExists && - createCache(servicesHost.directoryExists), - realpath: servicesHost.realpath && createCache(servicesHost.realpath), - }, - clearCache: () => clearCacheFunctions.forEach(clear => clear()), - }; + host.fileExists = createCache(host.fileExists); + host.directoryExists = + host.directoryExists && createCache(host.directoryExists); + host.realpath = host.realpath && createCache(host.realpath); + host.clearCache = () => clearCacheFunctions.forEach(clear => clear()); function createCache(originalFunction: (arg: string) => TOut) { const cache = new Map(); diff --git a/src/utils.ts b/src/utils.ts index e3809c636..62059cfee 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -7,8 +7,8 @@ import * as webpack from 'webpack'; import constants = require('./constants'); import { - DependencyGraph, ErrorInfo, + FilePathKey, LoaderOptions, ReverseDependencyGraph, Severity, @@ -111,7 +111,7 @@ export function formatErrors( }); } -export function readFile( +export function fsReadFile( fileName: string, encoding: string | undefined = 'utf8' ) { @@ -179,51 +179,19 @@ export function unorderedRemoveItem(array: T[], item: T): boolean { */ export function collectAllDependants( reverseDependencyGraph: ReverseDependencyGraph, - fileName: string, - collected: { [file: string]: boolean } = {} -): string[] { - const result = {}; - result[fileName] = true; - collected[fileName] = true; - const dependants = reverseDependencyGraph[fileName]; + fileName: FilePathKey, + result: Map = new Map() +): Map { + result.set(fileName, true); + const dependants = reverseDependencyGraph.get(fileName); if (dependants !== undefined) { - Object.keys(dependants).forEach(dependantFileName => { - if (!collected[dependantFileName]) { - collectAllDependants( - reverseDependencyGraph, - dependantFileName, - collected - ).forEach(fName => (result[fName] = true)); + for (const dependantFileName of dependants.keys()) { + if (!result.has(dependantFileName)) { + collectAllDependants(reverseDependencyGraph, dependantFileName, result); } - }); - } - return Object.keys(result); -} - -/** - * Recursively collect all possible dependencies of passed file - */ -export function collectAllDependencies( - dependencyGraph: DependencyGraph, - filePath: string, - collected: { [file: string]: boolean } = {} -): string[] { - const result = {}; - result[filePath] = true; - collected[filePath] = true; - const directDependencies = dependencyGraph[filePath]; - if (directDependencies !== undefined) { - directDependencies.forEach(dependencyModule => { - if (!collected[dependencyModule.originalFileName]) { - collectAllDependencies( - dependencyGraph, - dependencyModule.resolvedFileName, - collected - ).forEach(depFilePath => (result[depFilePath] = true)); - } - }); + } } - return Object.keys(result); + return result; } export function arrify(val: T | T[]) { @@ -234,6 +202,22 @@ export function arrify(val: T | T[]) { return Array.isArray(val) ? val : [val]; } +export function ensureTrailingDirectorySeparator(dir: T): T { + return hasTrailingDirectorySeparator(dir) ? dir : ((dir + '/') as T); +} + +function isAnyDirectorySeparator(charCode: number): boolean { + return ( + charCode === 0x2f || charCode === 0x5c // / + ); // \ +} + +function hasTrailingDirectorySeparator(dir: string) { + return ( + dir.length > 0 && isAnyDirectorySeparator(dir.charCodeAt(dir.length - 1)) + ); +} + export function ensureProgram(instance: TSInstance) { if (instance && instance.watchHost) { if (instance.hasUnaccountedModifiedFiles) { @@ -283,7 +267,7 @@ export function getAndCacheProjectReference( return undefined; } - const file = instance.files.get(filePath); + const file = instance.files.get(instance.filePathKeyMapper(filePath)); if (file !== undefined && file.projectReference) { return file.projectReference.project; } @@ -310,6 +294,7 @@ function getResolvedProjectReferences( function getProjectReferenceForFile(filePath: string, instance: TSInstance) { if (isUsingProjectReferences(instance)) { + const key = instance.filePathKeyMapper(filePath); const program = ensureProgram(instance); return ( program && @@ -317,7 +302,7 @@ function getProjectReferenceForFile(filePath: string, instance: TSInstance) { ref => (ref && ref.commandLine.fileNames.some( - file => path.normalize(file) === filePath + file => instance.filePathKeyMapper(file) === key )) || false ) @@ -374,7 +359,7 @@ export function getAndCacheOutputJSFileName( projectReference: typescript.ResolvedProjectReference, instance: TSInstance ) { - const file = instance.files.get(inputFileName); + const file = instance.files.get(instance.filePathKeyMapper(inputFileName)); if (file && file.projectReference && file.projectReference.outputFileName) { return file.projectReference.outputFileName; } diff --git a/src/watch-run.ts b/src/watch-run.ts index a82899d1a..b687ca600 100644 --- a/src/watch-run.ts +++ b/src/watch-run.ts @@ -2,9 +2,9 @@ import * as path from 'path'; import * as webpack from 'webpack'; import * as constants from './constants'; -import { TSInstance } from './interfaces'; +import { FilePathKey, TSInstance } from './interfaces'; import { updateFileWithText } from './servicesHost'; -import { readFile } from './utils'; +import { fsReadFile } from './utils'; /** * Make function which will manually update changed files @@ -14,7 +14,7 @@ export function makeWatchRun( loader: webpack.loader.LoaderContext ) { // Called Before starting compilation after watch - const lastTimes = new Map(); + const lastTimes = new Map(); const startTime = 0; // Save the loader index. @@ -28,32 +28,38 @@ export function makeWatchRun( const times = compiler.fileTimestamps; for (const [filePath, date] of times) { - const lastTime = lastTimes.get(filePath) || startTime; + const key = instance.filePathKeyMapper(filePath); + const lastTime = lastTimes.get(key) || startTime; if (date <= lastTime) { continue; } - lastTimes.set(filePath, date); - promises.push(updateFile(instance, filePath, loader, loaderIndex)); + lastTimes.set(key, date); + promises.push(updateFile(instance, key, filePath, loader, loaderIndex)); } // On watch update add all known dts files expect the ones in node_modules // (skip @types/* and modules with typings) - for (const filePath of instance.files.keys()) { + for (const [key, { fileName }] of instance.files.entries()) { if ( - filePath.match(constants.dtsDtsxOrDtsDtsxMapRegex) !== null && - filePath.match(constants.nodeModules) === null + fileName.match(constants.dtsDtsxOrDtsDtsxMapRegex) !== null && + fileName.match(constants.nodeModules) === null ) { - promises.push(updateFile(instance, filePath, loader, loaderIndex)); + promises.push( + updateFile(instance, key, fileName, loader, loaderIndex) + ); } } } // Update all the watched files from solution builder if (instance.solutionBuilderHost) { - for (const filePath of instance.solutionBuilderHost.watchedFiles.keys()) { - promises.push(updateFile(instance, filePath, loader, loaderIndex)); + for (const [ + key, + { fileName }, + ] of instance.solutionBuilderHost.watchedFiles.entries()) { + promises.push(updateFile(instance, key, fileName, loader, loaderIndex)); } } @@ -65,6 +71,7 @@ export function makeWatchRun( function updateFile( instance: TSInstance, + key: FilePathKey, filePath: string, loader: webpack.loader.LoaderContext, loaderIndex: number @@ -88,15 +95,16 @@ function updateFile( reject(err); } else { const text = JSON.parse(source); - updateFileWithText(instance, filePath, () => text); + updateFileWithText(instance, key, filePath, () => text); resolve(); } }); } else { updateFileWithText( instance, + key, filePath, - nFilePath => readFile(nFilePath) || '' + nFilePath => fsReadFile(nFilePath) || '' ); resolve(); } From 26f5829b3428d4afeef124b0e40ebdd37844f253 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 30 Jun 2020 11:51:27 -0700 Subject: [PATCH 05/15] Handle symlinks to paths that could be in memory --- src/index.ts | 1 - src/instances.ts | 8 - src/interfaces.ts | 15 +- src/servicesHost.ts | 145 ++++++++++++++---- src/watch-run.ts | 2 + .../expectedOutput-3.9/bundle.js | 12 +- .../expectedOutput-3.9/output.txt | 4 +- .../expectedOutput-3.9/patch0/bundle.js | 12 +- .../expectedOutput-3.9/patch0/output.txt | 4 +- .../expectedOutput-3.9/patch1/bundle.js | 12 +- .../expectedOutput-3.9/patch1/output.txt | 4 +- .../expectedOutput-3.9/patch2/bundle.js | 12 +- .../expectedOutput-3.9/patch2/output.txt | 10 +- .../expectedOutput-3.9/patch3/bundle.js | 12 +- .../expectedOutput-3.9/patch3/output.txt | 4 +- .../expectedOutput-3.9/patch4/bundle.js | 12 +- .../expectedOutput-3.9/patch4/output.txt | 4 +- .../expectedOutput-3.9/patch5/bundle.js | 12 +- .../expectedOutput-3.9/patch5/output.txt | 4 +- .../expectedOutput-transpile-3.9/bundle.js | 12 +- .../expectedOutput-transpile-3.9/output.txt | 4 +- .../patch0/bundle.js | 12 +- .../patch0/output.txt | 4 +- .../patch1/bundle.js | 12 +- .../patch1/output.txt | 4 +- .../patch2/output.txt | 10 +- .../patch3/output.txt | 4 +- .../patch4/bundle.js | 12 +- .../patch4/output.txt | 4 +- .../patch5/bundle.js | 12 +- .../patch5/output.txt | 4 +- .../expectedOutput-3.9/app/dist/index.js | 26 +++- .../expectedOutput-3.9/lib/dist/index.d.ts | 1 + .../expectedOutput-3.9/lib/dist/index.js | 5 + .../lib/tsconfig.tsbuildinfo | 67 ++++++++ .../expectedOutput-3.9/output.txt | 22 +-- .../app/dist/index.js | 26 +++- .../lib/dist/index.d.ts | 1 + .../lib/dist/index.js | 5 + .../lib/tsconfig.tsbuildinfo | 67 ++++++++ .../expectedOutput-transpile-3.9/output.txt | 16 +- .../expectedOutput-3.9/app/dist/index.js | 26 +++- .../expectedOutput-3.9/lib/dist/index.d.ts | 1 + .../expectedOutput-3.9/lib/dist/index.js | 5 + .../lib/tsconfig.tsbuildinfo | 68 ++++++++ .../expectedOutput-3.9/output.txt | 24 +-- .../app/dist/index.js | 26 +++- .../lib/dist/index.d.ts | 1 + .../lib/dist/index.js | 5 + .../lib/tsconfig.tsbuildinfo | 68 ++++++++ .../expectedOutput-transpile-3.9/output.txt | 18 +-- .../expectedOutput-3.9/output.txt | 24 +-- .../expectedOutput-transpile-3.9/output.txt | 18 +-- .../expectedOutput-3.9/output.txt | 22 +-- .../expectedOutput-transpile-3.9/output.txt | 16 +- 55 files changed, 687 insertions(+), 254 deletions(-) create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.d.ts create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.js create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.d.ts create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.js create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/lib/dist/index.d.ts create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/lib/dist/index.js create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/lib/dist/index.d.ts create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/lib/dist/index.js create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo diff --git a/src/index.ts b/src/index.ts index c34419935..aabfe2e36 100644 --- a/src/index.ts +++ b/src/index.ts @@ -534,7 +534,6 @@ function getEmit( ) ); } else { - // TODO:: Potentially handle symlinks addDependency( getInputFileNameFromOutput( instance, diff --git a/src/instances.ts b/src/instances.ts index 33d5d6c0b..20ca5dfc8 100644 --- a/src/instances.ts +++ b/src/instances.ts @@ -349,13 +349,6 @@ export function initializeInstance( instance.compiler.createDocumentRegistry() ); - if (instance.servicesHost.clearCache !== null) { - loader._compiler.hooks.watchRun.tap( - 'ts-loader', - instance.servicesHost.clearCache - ); - } - instance.transformers = getCustomTransformers( instance.languageService!.getProgram() ); @@ -627,7 +620,6 @@ export function getInputFileNameFromOutput( if (filePath.match(tsTsxRegex) && !fileExtensionIs(filePath, '.d.ts')) { return undefined; } - //TODO:: POtentially handle symlinks if (instance.solutionBuilderHost) { return instance.solutionBuilderHost.getInputFileNameFromOutput(filePath); } diff --git a/src/interfaces.ts b/src/interfaces.ts index e18d49f33..b89c28e15 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -1,4 +1,3 @@ -export { ModuleResolutionHost, FormatDiagnosticsHost } from 'typescript'; import * as typescript from 'typescript'; import { Chalk } from 'chalk'; @@ -41,10 +40,18 @@ export type ResolveSync = ( export type Action = () => void; export interface HostMayBeCacheable { - clearCache: Action | null; + clearCache?: Action; } -export interface TypescriptHostMayBeCacheable +export interface CacheableHost extends HostMayBeCacheable { + fileExists: typescript.ModuleResolutionHost['fileExists']; + directoryExists: NonNullable< + typescript.ModuleResolutionHost['directoryExists'] + >; + realpath?: typescript.ModuleResolutionHost['realpath']; +} + +export interface ModuleResolutionHostMayBeCacheable extends typescript.ModuleResolutionHost, HostMayBeCacheable { readFile(filePath: string, encoding?: string): string | undefined; @@ -52,7 +59,6 @@ export interface TypescriptHostMayBeCacheable directoryExists: NonNullable< typescript.ModuleResolutionHost['directoryExists'] >; - realpath: NonNullable; getCurrentDirectory: NonNullable< typescript.ModuleResolutionHost['getCurrentDirectory'] >; @@ -133,6 +139,7 @@ export interface SolutionBuilderWithWatchHost getInputFileNameFromOutput(outputFileName: string): string | undefined; getOutputFilesFromReferencedProjectInput(inputFileName: string): OutputFile[]; buildReferences(): void; + clearCache(): void; } export interface ConfigFileInfo { diff --git a/src/servicesHost.ts b/src/servicesHost.ts index bb4309fbd..7511df6fb 100644 --- a/src/servicesHost.ts +++ b/src/servicesHost.ts @@ -6,12 +6,12 @@ import * as constants from './constants'; import { getOutputFileNames } from './instances'; import { Action, + CacheableHost, ConfigFileInfo, CustomResolveModuleName, CustomResolveTypeReferenceDirective, FilePathKey, - FormatDiagnosticsHost, - ModuleResolutionHost, + ModuleResolutionHostMayBeCacheable, OutputFile, ResolvedModule, ResolveSync, @@ -20,7 +20,6 @@ import { SolutionDiagnostics, TSFile, TSInstance, - TypescriptHostMayBeCacheable, WatchCallbacks, WatchFactory, WatchHost, @@ -64,16 +63,15 @@ function makeResolversHandlingProjectReferences( // make a (sync) resolver that follows webpack's rules const resolveSync = makeResolver(loader._compiler.options); - const moduleResolutionHost: TypescriptHostMayBeCacheable = { + const moduleResolutionHost: ModuleResolutionHostMayBeCacheable = { trace: logData => instance.log.log(logData), fileExists, readFile, - realpath, + realpath: compiler.sys.realpath && realpath, directoryExists, getCurrentDirectory, getDirectories, readDirectory, - clearCache: null, useCaseSensitiveFileNames: () => compiler.sys.useCaseSensitiveFileNames, getNewLine: () => newLine, @@ -131,7 +129,7 @@ function makeResolversHandlingProjectReferences( function realpath(path: string) { return instance.solutionBuilderHost ? instance.solutionBuilderHost.realpath!(path) - : compiler.sys.realpath?.(path) || path; + : compiler.sys.realpath!(path); } function getDirectories(path: string) { @@ -692,7 +690,7 @@ export function makeSolutionBuilderHost( // loader.context seems to work fine on Linux / Mac regardless causes problems for @types resolution on Windows for TypeScript < 2.3 const getCurrentDirectory = () => loader.context; - const formatDiagnosticHost: FormatDiagnosticsHost = { + const formatDiagnosticHost: typescript.FormatDiagnosticsHost = { getCurrentDirectory: compiler.sys.getCurrentDirectory, getCanonicalFileName: compiler.sys.useCaseSensitiveFileNames ? s => s @@ -747,6 +745,15 @@ export function makeSolutionBuilderHost( const outputAffectingInstanceVersion = new Map(); let timeoutId: [(...args: any[]) => void, any[]] | undefined; + const symlinkedDirectories = new Map(); + const symlinkedFiles = new Map(); + const cachedSys: CacheableHost = { + fileExists: fileName => compiler.sys.fileExists(fileName), + directoryExists: directory => compiler.sys.directoryExists(directory), + realpath: compiler.sys.realpath && (path => compiler.sys.realpath!(path)), + }; + addCache(cachedSys); + const configFileInfo = new Map(); const solutionBuilderHost: SolutionBuilderWithWatchHost = { ...compiler.createSolutionBuilderWithWatchHost( @@ -792,6 +799,7 @@ export function makeSolutionBuilderHost( ) { instance.version++; } + compiler.sys.writeFile(name, text, writeByteOrderMark); }, getModifiedTime: fileName => { const outputFile = ensureOutputFile(fileName); @@ -823,36 +831,42 @@ export function makeSolutionBuilderHost( if (outputFile !== undefined) { return !!outputFile; } - // TODO: handle symlinks const key = filePathKeyMapper(fileName); const existing = instance.files.get(key) || instance.otherFiles.get(key); return existing ? existing.text !== undefined - : compiler.sys.fileExists(fileName); + : cachedSys.fileExists(fileName); }, directoryExists: directory => { - if (compiler.sys.directoryExists(directory)) { + if (cachedSys.directoryExists(directory)) { return true; } - // TODO: handle symlinks const resolvedDirectory = trailingDirectorySeparatorPathKey(directory); for (const outputFile of outputFiles.keys()) { if (normalizeSlashes(outputFile).startsWith(resolvedDirectory)) { return true; } } - return false; + + // see if this is symlink to in memory files's directory + const ancestor = findExistingAncestor(directory); + const ancestorRealpath = getRealpathOfExistingDirectory(ancestor); + + return ancestorRealpath + ? solutionBuilderHost.directoryExists!( + path.resolve(ancestorRealpath, path.relative(ancestor, directory)) + ) + : false; }, getDirectories: directory => - compiler.sys.directoryExists(directory) + cachedSys.directoryExists(directory) ? compiler.sys.getDirectories(directory) : [], // Fake for non present directories, readDirectory: (path, extensions, exclude, include, depth) => - compiler.sys.directoryExists(path) + cachedSys.directoryExists(path) ? compiler.sys.readDirectory(path, extensions, exclude, include, depth) : [], // Fake for non present directories, - // TODO: Symlinks - realpath: path => compiler.sys.realpath?.(path) || path, + realpath: cachedSys.realpath && (file => getRealpathOfFile(file) || file), afterProgramEmitAndDiagnostics: transpileOnly ? undefined : storeDtsFiles, setTimeout: (callback, _time, ...args) => { timeoutId = [callback, args]; @@ -864,7 +878,6 @@ export function makeSolutionBuilderHost( writtenFiles, configFileInfo, outputAffectingInstanceVersion, - // Handle symlinks getOutputFileFromReferencedProject, getInputFileNameFromOutput: fileName => { const result = getInputFileNameFromOutput(fileName); @@ -873,6 +886,7 @@ export function makeSolutionBuilderHost( // Potentially Handle symlinks getOutputFilesFromReferencedProjectInput, buildReferences, + clearCache, }; solutionBuilderHost.trace = logData => instance.log.logInfo(logData); solutionBuilderHost.getParsedCommandLine = file => { @@ -907,6 +921,71 @@ export function makeSolutionBuilderHost( ); } + function clearCache() { + cachedSys.clearCache!(); + symlinkedDirectories.clear(); + symlinkedFiles.clear(); + } + + function findExistingAncestor(fileOrDirectory: string) { + let ancestor = path.dirname(fileOrDirectory); + while (ancestor !== path.dirname(ancestor)) { + if (cachedSys.directoryExists(ancestor)) return ancestor; + ancestor = path.dirname(ancestor); + } + // Root should always be present + return ancestor; + } + + function getRealpathOfExistingDirectory( + directory: string + ): string | undefined { + return getRealpath(directory, symlinkedDirectories, () => + cachedSys.realpath!(directory) + ); + } + + function getRealpathOfFile(file: string): string | undefined { + return getRealpath(file, symlinkedFiles, () => { + if (cachedSys.fileExists(file)) return cachedSys.realpath!(file); + + // see if this is symlink to in memory file + const ancestor = findExistingAncestor(file); + const ancestorRealpath = getRealpathOfExistingDirectory(ancestor); + if (!ancestorRealpath) return file; + + const newFile = path.resolve( + ancestorRealpath, + path.relative(ancestor, file) + ); + return getRealpathOfFile(newFile) || newFile; + }); + } + + function getRealpath( + fileOrDirectory: string, + symlinked: Map, + realpath: () => string + ): string | undefined { + if (!cachedSys.realpath) return undefined; + const fileOrDirectoryKey = filePathKeyMapper(fileOrDirectory); + const existing = symlinked.get(fileOrDirectoryKey); + if (existing !== undefined) return existing || undefined; + + const real = realpath(); + if ( + real === fileOrDirectory || + filePathKeyMapper(real) === fileOrDirectoryKey + ) { + // not symlinked + symlinked.set(fileOrDirectoryKey, false); + return undefined; + } + + symlinked.set(fileOrDirectoryKey, real); + return real; + } + function buildReferences() { if (!timeoutId) { return; @@ -946,7 +1025,6 @@ export function makeSolutionBuilderHost( function getInputFileNameFromOutput( outputFileName: string ): string | true | undefined { - // TODO: Potentially handle symlinks const resolvedFileName = filePathKeyMapper(outputFileName); for (const configInfo of configFileInfo.values()) { ensureInputOutputInfo(configInfo); @@ -967,7 +1045,11 @@ export function makeSolutionBuilderHost( return true; } } - return undefined; + + const symlinkedOutputFileName = getRealpathOfFile(outputFileName); + return symlinkedOutputFileName + ? getInputFileNameFromOutput(symlinkedOutputFileName) + : undefined; } function ensureInputOutputInfo(configInfo: ConfigFileInfo) { @@ -1000,9 +1082,14 @@ export function makeSolutionBuilderHost( function getOutputFileFromReferencedProject( outputFileName: string ): OutputFile | false | undefined { - // TODO: symlinks const key = filePathKeyMapper(outputFileName); - return outputFiles.get(key); + const result = outputFiles.get(key); + if (result !== undefined) return result; + + const symlinkedOutputFileName = getRealpathOfFile(outputFileName); + return symlinkedOutputFileName + ? getOutputFileFromReferencedProject(symlinkedOutputFileName) + : undefined; } function ensureOutputFile( @@ -1013,10 +1100,11 @@ export function makeSolutionBuilderHost( if (outputFile !== undefined) { return outputFile; } - // Symnlinks? if (!getInputFileNameFromOutput(outputFileName)) { return undefined; } + + outputFileName = getRealpathOfFile(outputFileName) || outputFileName; const key = filePathKeyMapper(outputFileName); const text = compiler.sys.readFile(outputFileName, encoding); if (text === undefined) { @@ -1035,7 +1123,6 @@ export function makeSolutionBuilderHost( } function getOutputFilesFromReferencedProjectInput(inputFileName: string) { - // TODO: Potential symlinks const resolvedFileName = filePathKeyMapper(inputFileName); for (const configInfo of configFileInfo.values()) { ensureInputOutputInfo(configInfo); @@ -1101,7 +1188,7 @@ type ResolveTypeReferenceDirective = ( function makeResolveTypeReferenceDirective( compiler: typeof typescript, compilerOptions: typescript.CompilerOptions, - moduleResolutionHost: ModuleResolutionHost, + moduleResolutionHost: typescript.ModuleResolutionHost, customResolveTypeReferenceDirective: | CustomResolveTypeReferenceDirective | undefined @@ -1162,7 +1249,6 @@ function resolveModule( } catch (e) {} const tsResolution = resolveModuleName(moduleName, containingFile); - if (tsResolution.resolvedModule !== undefined) { const resolvedFileName = path.normalize( tsResolution.resolvedModule.resolvedFileName @@ -1192,7 +1278,7 @@ type ResolveModuleName = ( function makeResolveModuleName( compiler: typeof typescript, compilerOptions: typescript.CompilerOptions, - moduleResolutionHost: ModuleResolutionHost, + moduleResolutionHost: typescript.ModuleResolutionHost, customResolveModuleName: CustomResolveModuleName | undefined ): ResolveModuleName { if (customResolveModuleName === undefined) { @@ -1238,11 +1324,10 @@ function populateDependencyGraphs( }); } -function addCache(host: TypescriptHostMayBeCacheable): void { +function addCache(host: CacheableHost): void { const clearCacheFunctions: Action[] = []; host.fileExists = createCache(host.fileExists); - host.directoryExists = - host.directoryExists && createCache(host.directoryExists); + host.directoryExists = createCache(host.directoryExists); host.realpath = host.realpath && createCache(host.realpath); host.clearCache = () => clearCacheFunctions.forEach(clear => clear()); diff --git a/src/watch-run.ts b/src/watch-run.ts index b687ca600..40cc61b71 100644 --- a/src/watch-run.ts +++ b/src/watch-run.ts @@ -21,6 +21,8 @@ export function makeWatchRun( const loaderIndex = loader.loaderIndex; return (compiler: webpack.Compiler, callback: (err?: Error) => void) => { + instance.servicesHost?.clearCache?.(); + instance.solutionBuilderHost?.clearCache(); const promises = []; if (instance.loaderOptions.transpileOnly) { instance.reportTranspileErrors = true; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/bundle.js index 2076d22c4..792e39e13 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/output.txt index dd451994c..eda11108b 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names - bundle.js 4.32 KiB main [emitted] main + bundle.js 4.36 KiB main [emitted] main lib/out/index.js.map 191 bytes [emitted] lib/out/index.js 160 bytes [emitted] lib/out/index.d.ts 89 bytes [emitted] lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file +[./lib/out/index.js] 152 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/bundle.js index 07f654ffd..4bad700aa 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/output.txt index 056230ff0..99d6f129b 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names - bundle.js 4.35 KiB main [emitted] main + bundle.js 4.39 KiB main [emitted] main lib/out/index.js.map 224 bytes [emitted] lib/out/index.js 192 bytes [emitted] lib/out/index.d.ts 108 bytes [emitted] lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 159 bytes {main} [built] \ No newline at end of file +[./lib/out/index.js] 183 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch1/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch1/bundle.js index 8cf5e9561..e0edf07a1 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch1/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch1/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch1/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch1/output.txt index 863917568..5047215c4 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch1/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch1/output.txt @@ -1,5 +1,5 @@ Asset Size Chunks Chunk Names -bundle.js 4.36 KiB main [emitted] main +bundle.js 4.43 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] -[./lib/index.ts] 136 bytes {main} \ No newline at end of file +[./lib/out/index.js] 183 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch2/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch2/bundle.js index 8cf5e9561..e0edf07a1 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch2/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch2/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch2/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch2/output.txt index b24dcfcfb..13cd750b8 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch2/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch2/output.txt @@ -1,15 +1,13 @@ Asset Size Chunks Chunk Names -bundle.js 4.36 KiB main [emitted] main +bundle.js 4.43 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] -[./lib/index.ts] 136 bytes {main} [built] [2 errors] +[./lib/out/index.js] 183 bytes {main} ERROR in lib\index.ts -./lib/index.ts -[tsl] ERROR in lib\index.ts(6,3) +[tsl] ERROR in lib\index.ts(6,3)  TS1136: Property assignment expected. ERROR in lib\index.ts -./lib/index.ts -[tsl] ERROR in lib\index.ts(7,1) +[tsl] ERROR in lib\index.ts(7,1)  TS1128: Declaration or statement expected. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/bundle.js index f95b56d68..e0edf07a1 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/output.txt index 50b324a5b..0956a592e 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names - bundle.js 4.39 KiB main [emitted] main + bundle.js 4.43 KiB main [emitted] main lib/out/index.js.map 231 bytes [emitted] lib/out/index.js 188 bytes [emitted] lib/out/index.d.ts 127 bytes [emitted] lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] -[./lib/index.ts] 155 bytes {main} [built] \ No newline at end of file +[./lib/out/index.js] 183 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch4/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch4/bundle.js index d45f528f1..c4af1b158 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch4/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch4/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four, lib_1.lib.ffive); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four, lib_1.lib.ffive); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch4/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch4/output.txt index 0593bdf58..2d914655a 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch4/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch4/output.txt @@ -1,8 +1,8 @@ Asset Size Chunks Chunk Names -bundle.js 4.38 KiB main [emitted] main +bundle.js 4.44 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 186 bytes {main} [built] [1 error] -[./lib/index.ts] 132 bytes {main} +[./lib/out/index.js] 178 bytes {main} [built] ERROR in app.ts ./app.ts diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch5/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch5/bundle.js index 064d19ca9..08fa55bd4 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch5/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch5/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four, lib_1.lib.five); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four, lib_1.lib.five); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch5/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch5/output.txt index bd093b647..9eee18097 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch5/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch5/output.txt @@ -1,5 +1,5 @@ Asset Size Chunks Chunk Names -bundle.js 4.38 KiB main [emitted] main +bundle.js 4.44 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 185 bytes {main} [built] -[./lib/index.ts] 132 bytes {main} \ No newline at end of file +[./lib/out/index.js] 178 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/bundle.js index 71e75f124..573327ca6 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/output.txt index 09ed2d1c6..d3a6079bf 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names - bundle.js 4.36 KiB main [emitted] main + bundle.js 4.4 KiB main [emitted] main lib/out/index.js.map 191 bytes [emitted] lib/out/index.js 160 bytes [emitted] lib/out/index.d.ts 89 bytes [emitted] lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file +[./lib/out/index.js] 152 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/bundle.js index 746f03b67..4b58d689a 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/output.txt index 8b4785810..d91cf9eb5 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names - bundle.js 4.39 KiB main [emitted] main + bundle.js 4.43 KiB main [emitted] main lib/out/index.js.map 224 bytes [emitted] lib/out/index.js 192 bytes [emitted] lib/out/index.d.ts 108 bytes [emitted] lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 159 bytes {main} [built] \ No newline at end of file +[./lib/out/index.js] 183 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch1/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch1/bundle.js index 78ed26c6a..d1901ba32 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch1/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch1/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch1/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch1/output.txt index 055ff64ce..45ca4d5f4 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch1/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch1/output.txt @@ -1,5 +1,5 @@ Asset Size Chunks Chunk Names -bundle.js 4.42 KiB main [emitted] main +bundle.js 4.46 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] -[./lib/index.ts] 164 bytes {main} \ No newline at end of file +[./lib/out/index.js] 183 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch2/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch2/output.txt index a60242613..6047a25dc 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch2/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch2/output.txt @@ -1,11 +1,11 @@ - Asset Size Chunks Chunk Names -bundle.js 4.43 KiB main [emitted] main + Asset Size Chunks Chunk Names +bundle.js 4.46 KiB main main Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] [2 errors] -[./lib/index.ts] 168 bytes {main} [built] +[./lib/out/index.js] 183 bytes {main} -ERROR in [tsl] ERROR in lib\index.ts(6,3) +ERROR in [tsl] ERROR in lib\index.ts(6,3)  TS1136: Property assignment expected. -ERROR in [tsl] ERROR in lib\index.ts(7,1) +ERROR in [tsl] ERROR in lib\index.ts(7,1)  TS1128: Declaration or statement expected. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/output.txt index 8fe60452d..0a69f8b61 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names - bundle.js 4.42 KiB main [emitted] main + bundle.js 4.46 KiB main main lib/out/index.js.map 231 bytes [emitted] lib/out/index.js 188 bytes [emitted] lib/out/index.d.ts 127 bytes [emitted] lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] -[./lib/index.ts] 155 bytes {main} [built] \ No newline at end of file +[./lib/out/index.js] 183 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch4/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch4/bundle.js index c477f0bbc..5ea6d562c 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch4/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch4/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four, lib_1.lib.ffive); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four, lib_1.lib.ffive); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch4/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch4/output.txt index a866098ce..e2e95d648 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch4/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch4/output.txt @@ -1,5 +1,5 @@ Asset Size Chunks Chunk Names -bundle.js 4.44 KiB main [emitted] main +bundle.js 4.48 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 222 bytes {main} [built] -[./lib/index.ts] 160 bytes {main} \ No newline at end of file +[./lib/out/index.js] 178 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch5/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch5/bundle.js index d8959b73c..632383519 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch5/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch5/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four, lib_1.lib.five); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four, lib_1.lib.five); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch5/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch5/output.txt index dd53f5541..450b169d1 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch5/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch5/output.txt @@ -1,5 +1,5 @@ Asset Size Chunks Chunk Names -bundle.js 4.44 KiB main [emitted] main +bundle.js 4.48 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 221 bytes {main} [built] -[./lib/index.ts] 160 bytes {main} \ No newline at end of file +[./lib/out/index.js] 178 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/app/dist/index.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/app/dist/index.js index 1acee0957..6cae910da 100644 --- a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/app/dist/index.js +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/app/dist/index.js @@ -86,6 +86,30 @@ /************************************************************************/ /******/ ({ +/***/ "../common/dist/index.js": +/*!*******************************!*\ + !*** ../common/dist/index.js ***! + \*******************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife2 = void 0;\nexports.getMeaningOfLife2 = function () { return 45; };\n\n\n//# sourceURL=webpack:///../common/dist/index.js?"); + +/***/ }), + +/***/ "../lib/dist/index.js": +/*!****************************!*\ + !*** ../lib/dist/index.js ***! + \****************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife = void 0;\nvar common_1 = __webpack_require__(/*! common */ \"../common/dist/index.js\");\nexports.getMeaningOfLife = function () { return common_1.getMeaningOfLife2(); };\n\n\n//# sourceURL=webpack:///../lib/dist/index.js?"); + +/***/ }), + /***/ "./src/index.ts": /*!**********************!*\ !*** ./src/index.ts ***! @@ -94,7 +118,7 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(!(function webpackMissingModule() { var e = new Error(\"Cannot find module 'lib'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()));\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! lib */ \"../lib/dist/index.js\");\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.d.ts new file mode 100644 index 000000000..fdb004ae6 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.js new file mode 100644 index 000000000..0980fe240 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.js @@ -0,0 +1,5 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife = void 0; +var common_1 = require("common"); +exports.getMeaningOfLife = function () { return common_1.getMeaningOfLife2(); }; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..ad8dde310 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,67 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../common/dist/index.d.ts": { + "version": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "signature": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "affectsGlobalScope": false + }, + "./src/index.ts": { + "version": "1f22ba07ef5ca5b17da3030aee4582883803beb20e5bcc5b0cb29acb0289a635", + "signature": "c0374b8bd606e6c8e0156f10567ee0c6e08986bb37d64ed818d623829ec7e1c2", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "outDir": "./dist", + "rootDir": "./src", + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./src/index.ts": [ + "../common/dist/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../common/dist/index.d.ts", + "./src/index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/output.txt index 2a949a714..1a4cb7ee1 100644 --- a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/output.txt @@ -1,20 +1,12 @@ Asset Size Chunks Chunk Names - index.js 4.03 KiB main [emitted] main + index.js 4.9 KiB main [emitted] main ../../common/dist/index.js 137 bytes [emitted] ../../common/dist/index.d.ts 55 bytes [emitted] ../../common/tsconfig.tsbuildinfo 72.6 KiB [emitted] + ../../lib/dist/index.js 196 bytes [emitted] + ../../lib/dist/index.d.ts 54 bytes [emitted] + ../../lib/tsconfig.tsbuildinfo 73.3 KiB [emitted] Entrypoint main = index.js -[./src/index.ts] 108 bytes {main} [built] [1 error] - -ERROR in ./src/index.ts -Module not found: Error: Can't resolve 'lib' in 'app\src' - @ ./src/index.ts 3:12-26 - -ERROR in app\src\index.ts -./src/index.ts -[tsl] ERROR in app\src\index.ts(1,34) - TS2307: Cannot find module 'lib' or its corresponding type declarations. - -ERROR in lib\src\index.ts -[tsl] ERROR in lib\src\index.ts(1,35) - TS2307: Cannot find module 'common' or its corresponding type declarations. \ No newline at end of file +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 191 bytes {main} [built] +[./src/index.ts] 108 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/app/dist/index.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/app/dist/index.js index ca31929a0..39a5eaed0 100644 --- a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/app/dist/index.js +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/app/dist/index.js @@ -86,6 +86,30 @@ /************************************************************************/ /******/ ({ +/***/ "../common/dist/index.js": +/*!*******************************!*\ + !*** ../common/dist/index.js ***! + \*******************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife2 = void 0;\nexports.getMeaningOfLife2 = function () { return 45; };\n\n\n//# sourceURL=webpack:///../common/dist/index.js?"); + +/***/ }), + +/***/ "../lib/dist/index.js": +/*!****************************!*\ + !*** ../lib/dist/index.js ***! + \****************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife = void 0;\nvar common_1 = __webpack_require__(/*! common */ \"../common/dist/index.js\");\nexports.getMeaningOfLife = function () { return common_1.getMeaningOfLife2(); };\n\n\n//# sourceURL=webpack:///../lib/dist/index.js?"); + +/***/ }), + /***/ "./src/index.ts": /*!**********************!*\ !*** ./src/index.ts ***! @@ -94,7 +118,7 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(!(function webpackMissingModule() { var e = new Error(\"Cannot find module 'lib'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()));\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! lib */ \"../lib/dist/index.js\");\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.d.ts new file mode 100644 index 000000000..fdb004ae6 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.js new file mode 100644 index 000000000..0980fe240 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.js @@ -0,0 +1,5 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife = void 0; +var common_1 = require("common"); +exports.getMeaningOfLife = function () { return common_1.getMeaningOfLife2(); }; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..ad8dde310 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,67 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../common/dist/index.d.ts": { + "version": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "signature": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "affectsGlobalScope": false + }, + "./src/index.ts": { + "version": "1f22ba07ef5ca5b17da3030aee4582883803beb20e5bcc5b0cb29acb0289a635", + "signature": "c0374b8bd606e6c8e0156f10567ee0c6e08986bb37d64ed818d623829ec7e1c2", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "outDir": "./dist", + "rootDir": "./src", + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./src/index.ts": [ + "../common/dist/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../common/dist/index.d.ts", + "./src/index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/output.txt index ccea31dbd..c1e9f9faa 100644 --- a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/output.txt @@ -1,14 +1,12 @@ Asset Size Chunks Chunk Names - index.js 4.07 KiB main [emitted] main + index.js 4.93 KiB main [emitted] main ../../common/dist/index.js 137 bytes [emitted] ../../common/dist/index.d.ts 55 bytes [emitted] ../../common/tsconfig.tsbuildinfo 72.6 KiB [emitted] + ../../lib/dist/index.js 196 bytes [emitted] + ../../lib/dist/index.d.ts 54 bytes [emitted] + ../../lib/tsconfig.tsbuildinfo 73.3 KiB [emitted] Entrypoint main = index.js -[./src/index.ts] 144 bytes {main} [built] [1 error] - -ERROR in [tsl] ERROR in lib\src\index.ts(1,35) - TS2307: Cannot find module 'common' or its corresponding type declarations. - -ERROR in ./src/index.ts -Module not found: Error: Can't resolve 'lib' in 'app\src' - @ ./src/index.ts 3:12-26 \ No newline at end of file +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 191 bytes {main} [built] +[./src/index.ts] 144 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/app/dist/index.js b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/app/dist/index.js index 1acee0957..6cae910da 100644 --- a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/app/dist/index.js +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/app/dist/index.js @@ -86,6 +86,30 @@ /************************************************************************/ /******/ ({ +/***/ "../common/dist/index.js": +/*!*******************************!*\ + !*** ../common/dist/index.js ***! + \*******************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife2 = void 0;\nexports.getMeaningOfLife2 = function () { return 45; };\n\n\n//# sourceURL=webpack:///../common/dist/index.js?"); + +/***/ }), + +/***/ "../lib/dist/index.js": +/*!****************************!*\ + !*** ../lib/dist/index.js ***! + \****************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife = void 0;\nvar common_1 = __webpack_require__(/*! common */ \"../common/dist/index.js\");\nexports.getMeaningOfLife = function () { return common_1.getMeaningOfLife2(); };\n\n\n//# sourceURL=webpack:///../lib/dist/index.js?"); + +/***/ }), + /***/ "./src/index.ts": /*!**********************!*\ !*** ./src/index.ts ***! @@ -94,7 +118,7 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(!(function webpackMissingModule() { var e = new Error(\"Cannot find module 'lib'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()));\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! lib */ \"../lib/dist/index.js\");\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/lib/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/lib/dist/index.d.ts new file mode 100644 index 000000000..fdb004ae6 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/lib/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/lib/dist/index.js b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/lib/dist/index.js new file mode 100644 index 000000000..0980fe240 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/lib/dist/index.js @@ -0,0 +1,5 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife = void 0; +var common_1 = require("common"); +exports.getMeaningOfLife = function () { return common_1.getMeaningOfLife2(); }; diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..cd9a0e191 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,68 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../node_modules/common/dist/index.d.ts": { + "version": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "signature": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "affectsGlobalScope": false + }, + "./src/index.ts": { + "version": "1f22ba07ef5ca5b17da3030aee4582883803beb20e5bcc5b0cb29acb0289a635", + "signature": "c0374b8bd606e6c8e0156f10567ee0c6e08986bb37d64ed818d623829ec7e1c2", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "outDir": "./dist", + "rootDir": "./src", + "preserveSymlinks": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./src/index.ts": [ + "../node_modules/common/dist/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./src/index.ts", + "../node_modules/common/dist/index.d.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/output.txt index 2a949a714..7a55d3a38 100644 --- a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/output.txt @@ -1,20 +1,12 @@ Asset Size Chunks Chunk Names - index.js 4.03 KiB main [emitted] main + index.js 4.9 KiB main [emitted] main ../../common/dist/index.js 137 bytes [emitted] ../../common/dist/index.d.ts 55 bytes [emitted] -../../common/tsconfig.tsbuildinfo 72.6 KiB [emitted] +../../common/tsconfig.tsbuildinfo 72.7 KiB [emitted] + ../../lib/dist/index.js 196 bytes [emitted] + ../../lib/dist/index.d.ts 54 bytes [emitted] + ../../lib/tsconfig.tsbuildinfo 73.4 KiB [emitted] Entrypoint main = index.js -[./src/index.ts] 108 bytes {main} [built] [1 error] - -ERROR in ./src/index.ts -Module not found: Error: Can't resolve 'lib' in 'app\src' - @ ./src/index.ts 3:12-26 - -ERROR in app\src\index.ts -./src/index.ts -[tsl] ERROR in app\src\index.ts(1,34) - TS2307: Cannot find module 'lib' or its corresponding type declarations. - -ERROR in lib\src\index.ts -[tsl] ERROR in lib\src\index.ts(1,35) - TS2307: Cannot find module 'common' or its corresponding type declarations. \ No newline at end of file +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 191 bytes {main} [built] +[./src/index.ts] 108 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/app/dist/index.js b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/app/dist/index.js index ca31929a0..39a5eaed0 100644 --- a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/app/dist/index.js +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/app/dist/index.js @@ -86,6 +86,30 @@ /************************************************************************/ /******/ ({ +/***/ "../common/dist/index.js": +/*!*******************************!*\ + !*** ../common/dist/index.js ***! + \*******************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife2 = void 0;\nexports.getMeaningOfLife2 = function () { return 45; };\n\n\n//# sourceURL=webpack:///../common/dist/index.js?"); + +/***/ }), + +/***/ "../lib/dist/index.js": +/*!****************************!*\ + !*** ../lib/dist/index.js ***! + \****************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife = void 0;\nvar common_1 = __webpack_require__(/*! common */ \"../common/dist/index.js\");\nexports.getMeaningOfLife = function () { return common_1.getMeaningOfLife2(); };\n\n\n//# sourceURL=webpack:///../lib/dist/index.js?"); + +/***/ }), + /***/ "./src/index.ts": /*!**********************!*\ !*** ./src/index.ts ***! @@ -94,7 +118,7 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(!(function webpackMissingModule() { var e = new Error(\"Cannot find module 'lib'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()));\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! lib */ \"../lib/dist/index.js\");\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/lib/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/lib/dist/index.d.ts new file mode 100644 index 000000000..fdb004ae6 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/lib/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/lib/dist/index.js b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/lib/dist/index.js new file mode 100644 index 000000000..0980fe240 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/lib/dist/index.js @@ -0,0 +1,5 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife = void 0; +var common_1 = require("common"); +exports.getMeaningOfLife = function () { return common_1.getMeaningOfLife2(); }; diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..cd9a0e191 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,68 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../node_modules/common/dist/index.d.ts": { + "version": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "signature": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "affectsGlobalScope": false + }, + "./src/index.ts": { + "version": "1f22ba07ef5ca5b17da3030aee4582883803beb20e5bcc5b0cb29acb0289a635", + "signature": "c0374b8bd606e6c8e0156f10567ee0c6e08986bb37d64ed818d623829ec7e1c2", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "outDir": "./dist", + "rootDir": "./src", + "preserveSymlinks": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./src/index.ts": [ + "../node_modules/common/dist/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./src/index.ts", + "../node_modules/common/dist/index.d.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/output.txt index ccea31dbd..f311952ea 100644 --- a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/output.txt @@ -1,14 +1,12 @@ Asset Size Chunks Chunk Names - index.js 4.07 KiB main [emitted] main + index.js 4.93 KiB main [emitted] main ../../common/dist/index.js 137 bytes [emitted] ../../common/dist/index.d.ts 55 bytes [emitted] -../../common/tsconfig.tsbuildinfo 72.6 KiB [emitted] +../../common/tsconfig.tsbuildinfo 72.7 KiB [emitted] + ../../lib/dist/index.js 196 bytes [emitted] + ../../lib/dist/index.d.ts 54 bytes [emitted] + ../../lib/tsconfig.tsbuildinfo 73.4 KiB [emitted] Entrypoint main = index.js -[./src/index.ts] 144 bytes {main} [built] [1 error] - -ERROR in [tsl] ERROR in lib\src\index.ts(1,35) - TS2307: Cannot find module 'common' or its corresponding type declarations. - -ERROR in ./src/index.ts -Module not found: Error: Can't resolve 'lib' in 'app\src' - @ ./src/index.ts 3:12-26 \ No newline at end of file +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 191 bytes {main} [built] +[./src/index.ts] 144 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-3.9/output.txt index 2a949a714..7a55d3a38 100644 --- a/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-3.9/output.txt @@ -1,20 +1,12 @@ Asset Size Chunks Chunk Names - index.js 4.03 KiB main [emitted] main + index.js 4.9 KiB main [emitted] main ../../common/dist/index.js 137 bytes [emitted] ../../common/dist/index.d.ts 55 bytes [emitted] -../../common/tsconfig.tsbuildinfo 72.6 KiB [emitted] +../../common/tsconfig.tsbuildinfo 72.7 KiB [emitted] + ../../lib/dist/index.js 196 bytes [emitted] + ../../lib/dist/index.d.ts 54 bytes [emitted] + ../../lib/tsconfig.tsbuildinfo 73.4 KiB [emitted] Entrypoint main = index.js -[./src/index.ts] 108 bytes {main} [built] [1 error] - -ERROR in ./src/index.ts -Module not found: Error: Can't resolve 'lib' in 'app\src' - @ ./src/index.ts 3:12-26 - -ERROR in app\src\index.ts -./src/index.ts -[tsl] ERROR in app\src\index.ts(1,34) - TS2307: Cannot find module 'lib' or its corresponding type declarations. - -ERROR in lib\src\index.ts -[tsl] ERROR in lib\src\index.ts(1,35) - TS2307: Cannot find module 'common' or its corresponding type declarations. \ No newline at end of file +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 191 bytes {main} [built] +[./src/index.ts] 108 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-transpile-3.9/output.txt index ccea31dbd..f311952ea 100644 --- a/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-transpile-3.9/output.txt @@ -1,14 +1,12 @@ Asset Size Chunks Chunk Names - index.js 4.07 KiB main [emitted] main + index.js 4.93 KiB main [emitted] main ../../common/dist/index.js 137 bytes [emitted] ../../common/dist/index.d.ts 55 bytes [emitted] -../../common/tsconfig.tsbuildinfo 72.6 KiB [emitted] +../../common/tsconfig.tsbuildinfo 72.7 KiB [emitted] + ../../lib/dist/index.js 196 bytes [emitted] + ../../lib/dist/index.d.ts 54 bytes [emitted] + ../../lib/tsconfig.tsbuildinfo 73.4 KiB [emitted] Entrypoint main = index.js -[./src/index.ts] 144 bytes {main} [built] [1 error] - -ERROR in [tsl] ERROR in lib\src\index.ts(1,35) - TS2307: Cannot find module 'common' or its corresponding type declarations. - -ERROR in ./src/index.ts -Module not found: Error: Can't resolve 'lib' in 'app\src' - @ ./src/index.ts 3:12-26 \ No newline at end of file +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 191 bytes {main} [built] +[./src/index.ts] 144 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/output.txt index 2a949a714..1a4cb7ee1 100644 --- a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/output.txt @@ -1,20 +1,12 @@ Asset Size Chunks Chunk Names - index.js 4.03 KiB main [emitted] main + index.js 4.9 KiB main [emitted] main ../../common/dist/index.js 137 bytes [emitted] ../../common/dist/index.d.ts 55 bytes [emitted] ../../common/tsconfig.tsbuildinfo 72.6 KiB [emitted] + ../../lib/dist/index.js 196 bytes [emitted] + ../../lib/dist/index.d.ts 54 bytes [emitted] + ../../lib/tsconfig.tsbuildinfo 73.3 KiB [emitted] Entrypoint main = index.js -[./src/index.ts] 108 bytes {main} [built] [1 error] - -ERROR in ./src/index.ts -Module not found: Error: Can't resolve 'lib' in 'app\src' - @ ./src/index.ts 3:12-26 - -ERROR in app\src\index.ts -./src/index.ts -[tsl] ERROR in app\src\index.ts(1,34) - TS2307: Cannot find module 'lib' or its corresponding type declarations. - -ERROR in lib\src\index.ts -[tsl] ERROR in lib\src\index.ts(1,35) - TS2307: Cannot find module 'common' or its corresponding type declarations. \ No newline at end of file +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 191 bytes {main} [built] +[./src/index.ts] 108 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/output.txt index ccea31dbd..c1e9f9faa 100644 --- a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/output.txt @@ -1,14 +1,12 @@ Asset Size Chunks Chunk Names - index.js 4.07 KiB main [emitted] main + index.js 4.93 KiB main [emitted] main ../../common/dist/index.js 137 bytes [emitted] ../../common/dist/index.d.ts 55 bytes [emitted] ../../common/tsconfig.tsbuildinfo 72.6 KiB [emitted] + ../../lib/dist/index.js 196 bytes [emitted] + ../../lib/dist/index.d.ts 54 bytes [emitted] + ../../lib/tsconfig.tsbuildinfo 73.3 KiB [emitted] Entrypoint main = index.js -[./src/index.ts] 144 bytes {main} [built] [1 error] - -ERROR in [tsl] ERROR in lib\src\index.ts(1,35) - TS2307: Cannot find module 'common' or its corresponding type declarations. - -ERROR in ./src/index.ts -Module not found: Error: Can't resolve 'lib' in 'app\src' - @ ./src/index.ts 3:12-26 \ No newline at end of file +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 191 bytes {main} [built] +[./src/index.ts] 144 bytes {main} [built] \ No newline at end of file From 2f1d2b2914fa55b1b08a14455e31fafd9ab5d120 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 30 Jun 2020 15:35:49 -0700 Subject: [PATCH 06/15] Handle changes to referenced files --- src/after-compile.ts | 10 +- src/index.ts | 16 +- src/instances.ts | 2 - src/interfaces.ts | 18 +- src/servicesHost.ts | 176 +++++++++++------- src/utils.ts | 44 ++++- .../patch0/app/dist/index.js | 125 +++++++++++++ .../patch0/lib/dist/index.d.ts | 1 + .../patch0/lib/dist/index.js | 5 + .../patch0/lib/tsconfig.tsbuildinfo | 67 +++++++ .../expectedOutput-3.9/patch0/output.txt | 14 ++ .../patch0/app/dist/index.js | 125 +++++++++++++ .../patch0/lib/dist/index.d.ts | 1 + .../patch0/lib/dist/index.js | 5 + .../patch0/lib/tsconfig.tsbuildinfo | 67 +++++++ .../patch0/output.txt | 9 + .../patch0/lib/src/index.ts | 2 + .../patch0/app/dist/index.js | 125 +++++++++++++ .../patch0/lib/dist/index.d.ts | 1 + .../patch0/lib/dist/index.js | 5 + .../patch0/lib/tsconfig.tsbuildinfo | 68 +++++++ .../expectedOutput-3.9/patch0/output.txt | 14 ++ .../patch0/app/dist/index.js | 125 +++++++++++++ .../patch0/lib/dist/index.d.ts | 1 + .../patch0/lib/dist/index.js | 5 + .../patch0/lib/tsconfig.tsbuildinfo | 68 +++++++ .../patch0/output.txt | 9 + .../patch0/lib/src/index.ts | 2 + .../expectedOutput-3.9/patch0/output.txt | 14 ++ .../patch0/output.txt | 9 + .../expectedOutput-3.9/patch0/output.txt | 14 ++ .../patch0/output.txt | 9 + 32 files changed, 1068 insertions(+), 88 deletions(-) create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/app/dist/index.js create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/lib/dist/index.d.ts create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/lib/dist/index.js create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/output.txt create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/app/dist/index.js create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/lib/dist/index.d.ts create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/lib/dist/index.js create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/output.txt create mode 100644 test/comparison-tests/projectReferencesSymLinks/patch0/lib/src/index.ts create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/app/dist/index.js create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/lib/dist/index.d.ts create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/lib/dist/index.js create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/output.txt create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/app/dist/index.js create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/lib/dist/index.d.ts create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/lib/dist/index.js create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/output.txt create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve/patch0/lib/src/index.ts create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-3.9/patch0/output.txt create mode 100644 test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt create mode 100644 test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/patch0/output.txt create mode 100644 test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt diff --git a/src/after-compile.ts b/src/after-compile.ts index 68451ba59..f982f7758 100644 --- a/src/after-compile.ts +++ b/src/after-compile.ts @@ -20,6 +20,7 @@ import { ensureProgram, formatErrors, isUsingProjectReferences, + populateReverseDependencyGraph, } from './utils'; export function makeAfterCompile( @@ -158,11 +159,16 @@ function determineFilesToCheckForErrors( for (const [filePath, file] of otherFiles) { filesToCheckForErrors.set(filePath, file); } - } else if (modifiedFiles !== null && modifiedFiles !== undefined) { + } else if ( + modifiedFiles !== null && + modifiedFiles !== undefined && + modifiedFiles.size + ) { + const reverseDependencyGraph = populateReverseDependencyGraph(instance); // check all modified files, and all dependants for (const modifiedFileName of modifiedFiles.keys()) { for (const fileName of collectAllDependants( - instance.reverseDependencyGraph, + reverseDependencyGraph, modifiedFileName ).keys()) { const fileToCheckForErrors = diff --git a/src/index.ts b/src/index.ts index aabfe2e36..dbd9429a4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -451,9 +451,9 @@ function updateFileInCache( } if (instance.watchHost !== undefined && fileWatcherEventKind !== undefined) { - instance.hasUnaccountedModifiedFiles = true; - instance.watchHost.invokeFileWatcher(filePath, fileWatcherEventKind); - instance.watchHost.invokeDirectoryWatcher(path.dirname(filePath), filePath); + instance.hasUnaccountedModifiedFiles = + instance.watchHost.invokeFileWatcher(filePath, fileWatcherEventKind) || + instance.hasUnaccountedModifiedFiles; } if ( @@ -464,17 +464,13 @@ function updateFileInCache( filePath, fileWatcherEventKind ); - instance.solutionBuilderHost.invokeDirectoryWatcher( - path.dirname(filePath), - filePath - ); } // push this file to modified files hash. if (!instance.modifiedFiles) { instance.modifiedFiles = new Map(); } - instance.modifiedFiles.set(key, file); + instance.modifiedFiles.set(key, true); return file.version; } @@ -504,9 +500,9 @@ function getEmit( // Remove the project reference d.ts as we are adding dependency for .ts later // This removed extra build pass (resulting in new stats object in initial build) (!instance.solutionBuilderHost || - instance.solutionBuilderHost.getOutputFileFromReferencedProject( + !instance.solutionBuilderHost.getOutputFileKeyFromReferencedProject( defFilePath - ) !== undefined) + )) ) { addDependency(defFilePath); } diff --git a/src/instances.ts b/src/instances.ts index 20ca5dfc8..7085cddce 100644 --- a/src/instances.ts +++ b/src/instances.ts @@ -186,7 +186,6 @@ function successfulTypeScriptInstance( version: 0, program: undefined, // temporary, to be set later dependencyGraph: new Map(), - reverseDependencyGraph: new Map(), transformers: {} as typescript.CustomTransformers, // this is only set temporarily, custom transformers are created further down colors, initialSetupPending: true, @@ -240,7 +239,6 @@ function successfulTypeScriptInstance( version: 0, transformers: {} as typescript.CustomTransformers, // this is only set temporarily, custom transformers are created further down dependencyGraph: new Map(), - reverseDependencyGraph: new Map(), colors, initialSetupPending: true, configFilePath, diff --git a/src/interfaces.ts b/src/interfaces.ts index b89c28e15..b2dac2c2e 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -85,11 +85,7 @@ export interface WatchHost extends typescript.WatchCompilerHostOfFilesAndCompilerOptions< typescript.EmitAndSemanticDiagnosticsBuilderProgram > { - invokeFileWatcher( - fileName: string, - eventKind: typescript.FileWatcherEventKind - ): void; - invokeDirectoryWatcher(directory: string, fileAddedOrRemoved: string): void; + invokeFileWatcher: WatchFactory['invokeFileWatcher']; updateRootFileNames(): void; outputFiles: Map; tsbuildinfo?: typescript.OutputFile; @@ -108,8 +104,7 @@ export interface WatchFactory { invokeFileWatcher( fileName: string, eventKind: typescript.FileWatcherEventKind - ): void; - invokeDirectoryWatcher(directory: string, fileAddedOrRemoved: string): void; + ): boolean; /** Used to watch changes in source files, missing files needed to update the program or config file */ watchFile: typescript.WatchHost['watchFile']; /** Used to watch resolved module's failed lookup locations, config file specs, type roots where auto type reference directives are added */ @@ -133,9 +128,15 @@ export interface SolutionBuilderWithWatchHost writtenFiles: OutputFile[]; configFileInfo: Map; outputAffectingInstanceVersion: Map; + getOutputFileKeyFromReferencedProject( + outputFileName: string + ): FilePathKey | undefined; getOutputFileFromReferencedProject( outputFileName: string ): OutputFile | false | undefined; + getOutputFileAndKeyFromReferencedProject( + oututFileName: string + ): { key: FilePathKey; outputFile: OutputFile | false } | undefined; getInputFileNameFromOutput(outputFileName: string): string | undefined; getOutputFilesFromReferencedProjectInput(inputFileName: string): OutputFile[]; buildReferences(): void; @@ -171,7 +172,7 @@ export interface TSInstance { /** * contains the modified files - cleared each time after-compile is called */ - modifiedFiles?: TSFiles; + modifiedFiles?: Map; /** * Paths to project references that are missing source maps. * Cleared each time after-compile is called. Used to dedupe @@ -182,7 +183,6 @@ export interface TSInstance { languageService?: typescript.LanguageService | null; version: number; dependencyGraph: DependencyGraph; - reverseDependencyGraph: ReverseDependencyGraph; filesWithErrors?: TSFiles; transformers: typescript.CustomTransformers; colors: Chalk; diff --git a/src/servicesHost.ts b/src/servicesHost.ts index 7511df6fb..e850df2d2 100644 --- a/src/servicesHost.ts +++ b/src/servicesHost.ts @@ -30,6 +30,7 @@ import { ensureTrailingDirectorySeparator, formatErrors, fsReadFile, + populateDependencyGraph, unorderedRemoveItem, } from './utils'; @@ -212,18 +213,20 @@ export function makeServicesHost( if (file) { return file.version.toString(); } - const outputFile = + const outputFileAndKey = instance.solutionBuilderHost && - instance.solutionBuilderHost.getOutputFileFromReferencedProject( + instance.solutionBuilderHost.getOutputFileAndKeyFromReferencedProject( fileName ); - if (outputFile !== undefined) { + if (outputFileAndKey !== undefined) { instance.solutionBuilderHost!.outputAffectingInstanceVersion.set( - key, + outputFileAndKey.key, true ); } - return outputFile ? outputFile.version.toString() : ''; + return outputFileAndKey && outputFileAndKey.outputFile + ? outputFileAndKey.outputFile.version.toString() + : ''; }, getScriptSnapshot: (fileName: string) => { @@ -235,16 +238,18 @@ export function makeServicesHost( if (file === undefined) { if (instance.solutionBuilderHost) { - const outputFile = instance.solutionBuilderHost.getOutputFileFromReferencedProject( + const outputFileAndKey = instance.solutionBuilderHost.getOutputFileAndKeyFromReferencedProject( fileName ); - if (outputFile !== undefined) { + if (outputFileAndKey !== undefined) { instance.solutionBuilderHost!.outputAffectingInstanceVersion.set( - key, + outputFileAndKey.key, true ); - return outputFile - ? compiler.ScriptSnapshot.fromString(outputFile.text) + return outputFileAndKey && outputFileAndKey.outputFile + ? compiler.ScriptSnapshot.fromString( + outputFileAndKey.outputFile.text + ) : undefined; } } @@ -357,7 +362,7 @@ function makeResolvers( ) ); - populateDependencyGraphs(resolvedModules, instance, containingFile); + populateDependencyGraph(resolvedModules, instance, containingFile); return resolvedModules; }; @@ -381,7 +386,6 @@ function createWatchFactory( watchedDirectories, watchedDirectoriesRecursive, invokeFileWatcher, - invokeDirectoryWatcher, watchFile, watchDirectory, }; @@ -393,7 +397,7 @@ function createWatchFactory( key: string, fileName: string, eventKind?: typescript.FileWatcherEventKind - ) { + ): boolean { const callbacks = map.get(filePathKeyMapper(key))?.callbacks; if (callbacks !== undefined && callbacks.length) { // The array copy is made to ensure that even if one of the callback removes the callbacks, @@ -402,40 +406,49 @@ function createWatchFactory( for (const cb of cbs) { cb(fileName, eventKind as typescript.FileWatcherEventKind); } + return true; } + return false; } function invokeFileWatcher( fileName: string, eventKind: typescript.FileWatcherEventKind - ) { + ): boolean { fileName = path.normalize(fileName); - invokeWatcherCallbacks(watchedFiles, fileName, fileName, eventKind); - } - - function invokeDirectoryWatcher( - directory: string, - fileAddedOrRemoved: string - ) { - directory = path.normalize(directory); - invokeWatcherCallbacks(watchedDirectories, directory, fileAddedOrRemoved); - invokeRecursiveDirectoryWatcher(directory, fileAddedOrRemoved); + let result = invokeWatcherCallbacks( + watchedFiles, + fileName, + fileName, + eventKind + ); + if (eventKind !== typescript.FileWatcherEventKind.Changed) { + const directory = path.dirname(fileName); + result = + invokeWatcherCallbacks(watchedDirectories, directory, fileName) || + result; + result = invokeRecursiveDirectoryWatcher(directory, fileName) || result; + } + return result; } + ``; function invokeRecursiveDirectoryWatcher( directory: string, fileAddedOrRemoved: string - ) { + ): boolean { directory = path.normalize(directory); - invokeWatcherCallbacks( + let result = invokeWatcherCallbacks( watchedDirectoriesRecursive, directory, fileAddedOrRemoved ); const basePath = path.dirname(directory); if (directory !== basePath) { - invokeRecursiveDirectoryWatcher(basePath, fileAddedOrRemoved); + result = + invokeRecursiveDirectoryWatcher(basePath, fileAddedOrRemoved) || result; } + return result; } function createWatcher( @@ -505,7 +518,7 @@ export function updateFileWithText( if (!instance.modifiedFiles) { instance.modifiedFiles = new Map(); } - instance.modifiedFiles.set(key, file); + instance.modifiedFiles.set(key, true); if (instance.watchHost !== undefined) { instance.watchHost.invokeFileWatcher( nFilePath, @@ -539,12 +552,9 @@ export function makeWatchHost( filePathKeyMapper, } = instance; - const { - watchFile, - watchDirectory, - invokeFileWatcher, - invokeDirectoryWatcher, - } = createWatchFactory(filePathKeyMapper); + const { watchFile, watchDirectory, invokeFileWatcher } = createWatchFactory( + filePathKeyMapper + ); const { moduleResolutionHost: { fileExists, @@ -589,7 +599,28 @@ export function makeWatchHost( realpath, trace, - watchFile, + watchFile: (fileName, callback, pollingInterval, options) => { + const outputFileAndKey = instance.solutionBuilderHost?.getOutputFileAndKeyFromReferencedProject( + fileName + ); + if ( + !outputFileAndKey || + outputFileAndKey.key === filePathKeyMapper(fileName) + ) { + return watchFile(fileName, callback, pollingInterval, options); + } + + // Handle symlink to outputFile + const outputFileName = instance.solutionBuilderHost!.realpath!(fileName); + const watcher = watchFile( + outputFileName, + (_fileName, eventKind) => callback(fileName, eventKind), + pollingInterval, + options + ); + + return { close: () => watcher.close() }; + }, watchDirectory, // used for (/// ) see https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/250#issuecomment-485061329 @@ -597,7 +628,6 @@ export function makeWatchHost( resolveModuleNames, invokeFileWatcher, - invokeDirectoryWatcher, updateRootFileNames: () => { instance.changedFilesList = false; if (instance.watchOfFilesAndCompilerOptions !== undefined) { @@ -632,7 +662,13 @@ export function makeWatchHost( if (text === undefined) { return undefined; } - otherFiles.set(key, { fileName, version: 0, text }); + if ( + !instance.solutionBuilderHost?.getOutputFileKeyFromReferencedProject( + fileName + ) + ) { + otherFiles.set(key, { fileName, version: 0, text }); + } return text; } @@ -799,6 +835,26 @@ export function makeSolutionBuilderHost( ) { instance.version++; } + if ( + instance.watchHost && + !instance.files.has(key) && + !instance.otherFiles.has(key) + ) { + // If file wasnt updated in files or other files of instance, let watch host know of the change + if (!existing) { + instance.hasUnaccountedModifiedFiles = + instance.watchHost.invokeFileWatcher( + name, + typescript.FileWatcherEventKind.Created + ) || instance.hasUnaccountedModifiedFiles; + } else if (existing.version !== newOutputFile.version) { + instance.hasUnaccountedModifiedFiles = + instance.watchHost.invokeFileWatcher( + name, + typescript.FileWatcherEventKind.Changed + ) || instance.hasUnaccountedModifiedFiles; + } + } compiler.sys.writeFile(name, text, writeByteOrderMark); }, getModifiedTime: fileName => { @@ -878,12 +934,13 @@ export function makeSolutionBuilderHost( writtenFiles, configFileInfo, outputAffectingInstanceVersion, + getOutputFileKeyFromReferencedProject, getOutputFileFromReferencedProject, + getOutputFileAndKeyFromReferencedProject, getInputFileNameFromOutput: fileName => { const result = getInputFileNameFromOutput(fileName); return typeof result === 'string' ? result : undefined; }, - // Potentially Handle symlinks getOutputFilesFromReferencedProjectInput, buildReferences, clearCache, @@ -1079,16 +1136,30 @@ export function makeSolutionBuilderHost( ); } + function getOutputFileAndKeyFromReferencedProject( + outputFileName: string + ): { key: FilePathKey; outputFile: OutputFile | false } | undefined { + const key = getOutputFileKeyFromReferencedProject(outputFileName); + return key && { key, outputFile: outputFiles.get(key)! }; + } + function getOutputFileFromReferencedProject( outputFileName: string ): OutputFile | false | undefined { + const key = getOutputFileKeyFromReferencedProject(outputFileName); + return key && outputFiles.get(key); + } + + function getOutputFileKeyFromReferencedProject( + outputFileName: string + ): FilePathKey | undefined { const key = filePathKeyMapper(outputFileName); - const result = outputFiles.get(key); - if (result !== undefined) return result; + const result = outputFiles.has(key); + if (result) return key; const symlinkedOutputFileName = getRealpathOfFile(outputFileName); return symlinkedOutputFileName - ? getOutputFileFromReferencedProject(symlinkedOutputFileName) + ? getOutputFileKeyFromReferencedProject(symlinkedOutputFileName) : undefined; } @@ -1301,29 +1372,6 @@ function makeResolveModuleName( ); } -function populateDependencyGraphs( - resolvedModules: ResolvedModule[], - instance: TSInstance, - containingFile: string -) { - resolvedModules = resolvedModules.filter( - mod => mod !== null && mod !== undefined - ); - - const containingFileKey = instance.filePathKeyMapper(containingFile); - instance.dependencyGraph.set(containingFileKey, resolvedModules); - - resolvedModules.forEach(resolvedModule => { - const key = instance.filePathKeyMapper(resolvedModule.resolvedFileName); - let map = instance.reverseDependencyGraph.get(key); - if (!map) { - map = new Map(); - instance.reverseDependencyGraph.set(key, map); - } - map.set(containingFileKey, true); - }); -} - function addCache(host: CacheableHost): void { const clearCacheFunctions: Action[] = []; host.fileExists = createCache(host.fileExists); diff --git a/src/utils.ts b/src/utils.ts index 62059cfee..251582582 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -10,13 +10,14 @@ import { ErrorInfo, FilePathKey, LoaderOptions, + ResolvedModule, ReverseDependencyGraph, Severity, TSInstance, WebpackError, WebpackModule, } from './interfaces'; - +import { getInputFileNameFromOutput } from './instances'; /** * The default error formatter. */ @@ -174,6 +175,47 @@ export function unorderedRemoveItem(array: T[], item: T): boolean { return false; } +export function populateDependencyGraph( + resolvedModules: ResolvedModule[], + instance: TSInstance, + containingFile: string +) { + resolvedModules = resolvedModules.filter( + mod => mod !== null && mod !== undefined + ); + if (resolvedModules.length) { + const containingFileKey = instance.filePathKeyMapper(containingFile); + instance.dependencyGraph.set(containingFileKey, resolvedModules); + } +} + +export function populateReverseDependencyGraph(instance: TSInstance) { + const reverseDependencyGraph: ReverseDependencyGraph = new Map(); + for (const [fileKey, resolvedModules] of instance.dependencyGraph.entries()) { + const inputFileName = + instance.solutionBuilderHost && + getInputFileNameFromOutput(instance, fileKey); + const containingFileKey = inputFileName + ? instance.filePathKeyMapper(inputFileName) + : fileKey; + resolvedModules.forEach(({ resolvedFileName }) => { + const key = instance.filePathKeyMapper( + instance.solutionBuilderHost + ? getInputFileNameFromOutput(instance, resolvedFileName) || + resolvedFileName + : resolvedFileName + ); + let map = reverseDependencyGraph.get(key); + if (!map) { + map = new Map(); + reverseDependencyGraph.set(key, map); + } + map.set(containingFileKey, true); + }); + } + return reverseDependencyGraph; +} + /** * Recursively collect all possible dependants of passed file */ diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/app/dist/index.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/app/dist/index.js new file mode 100644 index 000000000..2fb9676d2 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/app/dist/index.js @@ -0,0 +1,125 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "../common/dist/index.js": +/*!*******************************!*\ + !*** ../common/dist/index.js ***! + \*******************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife2 = void 0;\nexports.getMeaningOfLife2 = function () { return 45; };\n\n\n//# sourceURL=webpack:///../common/dist/index.js?"); + +/***/ }), + +/***/ "../lib/dist/index.js": +/*!****************************!*\ + !*** ../lib/dist/index.js ***! + \****************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife3 = void 0;\nvar common_1 = __webpack_require__(/*! common */ \"../common/dist/index.js\");\nexports.getMeaningOfLife3 = function () { return common_1.getMeaningOfLife2(); };\n\n\n//# sourceURL=webpack:///../lib/dist/index.js?"); + +/***/ }), + +/***/ "./src/index.ts": +/*!**********************!*\ + !*** ./src/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! lib */ \"../lib/dist/index.js\");\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/lib/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/lib/dist/index.d.ts new file mode 100644 index 000000000..c8844a138 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/lib/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife3: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/lib/dist/index.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/lib/dist/index.js new file mode 100644 index 000000000..b86719621 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/lib/dist/index.js @@ -0,0 +1,5 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife3 = void 0; +var common_1 = require("common"); +exports.getMeaningOfLife3 = function () { return common_1.getMeaningOfLife2(); }; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..e1d10da75 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -0,0 +1,67 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../common/dist/index.d.ts": { + "version": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "signature": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "affectsGlobalScope": false + }, + "./src/index.ts": { + "version": "852833616e510f30b68b4efa8b8f0080c0936671acbf52967e72b6c4ab0a72e9", + "signature": "f4aed38b39d768d40d1a8c62105e87cb08b372540b80b4fa615291f2f37f2419", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "outDir": "./dist", + "rootDir": "./src", + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./src/index.ts": [ + "../common/dist/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../common/dist/index.d.ts", + "./src/index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/output.txt new file mode 100644 index 000000000..db36e96ae --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/output.txt @@ -0,0 +1,14 @@ + Asset Size Chunks Chunk Names + index.js 4.9 KiB main [emitted] main + ../../lib/dist/index.js 198 bytes [emitted] + ../../lib/dist/index.d.ts 55 bytes [emitted] +../../lib/tsconfig.tsbuildinfo 73.3 KiB [emitted] +Entrypoint main = index.js +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 193 bytes {main} [built] +[./src/index.ts] 108 bytes {main} [built] [1 error] + +ERROR in app\src\index.ts +./src/index.ts +[tsl] ERROR in app\src\index.ts(1,10) + TS2724: Module '"../../lib/dist"' has no exported member 'getMeaningOfLife'. Did you mean 'getMeaningOfLife3'? \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/app/dist/index.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/app/dist/index.js new file mode 100644 index 000000000..9dc613806 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/app/dist/index.js @@ -0,0 +1,125 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "../common/dist/index.js": +/*!*******************************!*\ + !*** ../common/dist/index.js ***! + \*******************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife2 = void 0;\nexports.getMeaningOfLife2 = function () { return 45; };\n\n\n//# sourceURL=webpack:///../common/dist/index.js?"); + +/***/ }), + +/***/ "../lib/dist/index.js": +/*!****************************!*\ + !*** ../lib/dist/index.js ***! + \****************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife3 = void 0;\nvar common_1 = __webpack_require__(/*! common */ \"../common/dist/index.js\");\nexports.getMeaningOfLife3 = function () { return common_1.getMeaningOfLife2(); };\n\n\n//# sourceURL=webpack:///../lib/dist/index.js?"); + +/***/ }), + +/***/ "./src/index.ts": +/*!**********************!*\ + !*** ./src/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! lib */ \"../lib/dist/index.js\");\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/lib/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/lib/dist/index.d.ts new file mode 100644 index 000000000..c8844a138 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/lib/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife3: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/lib/dist/index.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/lib/dist/index.js new file mode 100644 index 000000000..b86719621 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/lib/dist/index.js @@ -0,0 +1,5 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife3 = void 0; +var common_1 = require("common"); +exports.getMeaningOfLife3 = function () { return common_1.getMeaningOfLife2(); }; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..e1d10da75 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -0,0 +1,67 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../common/dist/index.d.ts": { + "version": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "signature": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "affectsGlobalScope": false + }, + "./src/index.ts": { + "version": "852833616e510f30b68b4efa8b8f0080c0936671acbf52967e72b6c4ab0a72e9", + "signature": "f4aed38b39d768d40d1a8c62105e87cb08b372540b80b4fa615291f2f37f2419", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "outDir": "./dist", + "rootDir": "./src", + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./src/index.ts": [ + "../common/dist/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../common/dist/index.d.ts", + "./src/index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/output.txt new file mode 100644 index 000000000..083b18466 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/output.txt @@ -0,0 +1,9 @@ + Asset Size Chunks Chunk Names + index.js 4.93 KiB main [emitted] main + ../../lib/dist/index.js 198 bytes [emitted] + ../../lib/dist/index.d.ts 55 bytes [emitted] +../../lib/tsconfig.tsbuildinfo 73.3 KiB [emitted] +Entrypoint main = index.js +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 193 bytes {main} [built] +[./src/index.ts] 144 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/patch0/lib/src/index.ts b/test/comparison-tests/projectReferencesSymLinks/patch0/lib/src/index.ts new file mode 100644 index 000000000..cfa6538fd --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/patch0/lib/src/index.ts @@ -0,0 +1,2 @@ +import { getMeaningOfLife2 } from "common"; +export const getMeaningOfLife3 = () => getMeaningOfLife2(); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/app/dist/index.js b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/app/dist/index.js new file mode 100644 index 000000000..2fb9676d2 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/app/dist/index.js @@ -0,0 +1,125 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "../common/dist/index.js": +/*!*******************************!*\ + !*** ../common/dist/index.js ***! + \*******************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife2 = void 0;\nexports.getMeaningOfLife2 = function () { return 45; };\n\n\n//# sourceURL=webpack:///../common/dist/index.js?"); + +/***/ }), + +/***/ "../lib/dist/index.js": +/*!****************************!*\ + !*** ../lib/dist/index.js ***! + \****************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife3 = void 0;\nvar common_1 = __webpack_require__(/*! common */ \"../common/dist/index.js\");\nexports.getMeaningOfLife3 = function () { return common_1.getMeaningOfLife2(); };\n\n\n//# sourceURL=webpack:///../lib/dist/index.js?"); + +/***/ }), + +/***/ "./src/index.ts": +/*!**********************!*\ + !*** ./src/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! lib */ \"../lib/dist/index.js\");\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/lib/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/lib/dist/index.d.ts new file mode 100644 index 000000000..c8844a138 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/lib/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife3: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/lib/dist/index.js b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/lib/dist/index.js new file mode 100644 index 000000000..b86719621 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/lib/dist/index.js @@ -0,0 +1,5 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife3 = void 0; +var common_1 = require("common"); +exports.getMeaningOfLife3 = function () { return common_1.getMeaningOfLife2(); }; diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..e42f35c4a --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -0,0 +1,68 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../node_modules/common/dist/index.d.ts": { + "version": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "signature": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "affectsGlobalScope": false + }, + "./src/index.ts": { + "version": "852833616e510f30b68b4efa8b8f0080c0936671acbf52967e72b6c4ab0a72e9", + "signature": "f4aed38b39d768d40d1a8c62105e87cb08b372540b80b4fa615291f2f37f2419", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "outDir": "./dist", + "rootDir": "./src", + "preserveSymlinks": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./src/index.ts": [ + "../node_modules/common/dist/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./src/index.ts", + "../node_modules/common/dist/index.d.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/output.txt new file mode 100644 index 000000000..18c5fa480 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/output.txt @@ -0,0 +1,14 @@ + Asset Size Chunks Chunk Names + index.js 4.9 KiB main [emitted] main + ../../lib/dist/index.js 198 bytes [emitted] + ../../lib/dist/index.d.ts 55 bytes [emitted] +../../lib/tsconfig.tsbuildinfo 73.4 KiB [emitted] +Entrypoint main = index.js +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 193 bytes {main} [built] +[./src/index.ts] 108 bytes {main} [built] [1 error] + +ERROR in app\src\index.ts +./src/index.ts +[tsl] ERROR in app\src\index.ts(1,10) + TS2724: Module '"../../node_modules/lib/dist"' has no exported member 'getMeaningOfLife'. Did you mean 'getMeaningOfLife3'? \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/app/dist/index.js b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/app/dist/index.js new file mode 100644 index 000000000..9dc613806 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/app/dist/index.js @@ -0,0 +1,125 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "../common/dist/index.js": +/*!*******************************!*\ + !*** ../common/dist/index.js ***! + \*******************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife2 = void 0;\nexports.getMeaningOfLife2 = function () { return 45; };\n\n\n//# sourceURL=webpack:///../common/dist/index.js?"); + +/***/ }), + +/***/ "../lib/dist/index.js": +/*!****************************!*\ + !*** ../lib/dist/index.js ***! + \****************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife3 = void 0;\nvar common_1 = __webpack_require__(/*! common */ \"../common/dist/index.js\");\nexports.getMeaningOfLife3 = function () { return common_1.getMeaningOfLife2(); };\n\n\n//# sourceURL=webpack:///../lib/dist/index.js?"); + +/***/ }), + +/***/ "./src/index.ts": +/*!**********************!*\ + !*** ./src/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! lib */ \"../lib/dist/index.js\");\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/lib/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/lib/dist/index.d.ts new file mode 100644 index 000000000..c8844a138 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/lib/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife3: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/lib/dist/index.js b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/lib/dist/index.js new file mode 100644 index 000000000..b86719621 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/lib/dist/index.js @@ -0,0 +1,5 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife3 = void 0; +var common_1 = require("common"); +exports.getMeaningOfLife3 = function () { return common_1.getMeaningOfLife2(); }; diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..e42f35c4a --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -0,0 +1,68 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../node_modules/common/dist/index.d.ts": { + "version": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "signature": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "affectsGlobalScope": false + }, + "./src/index.ts": { + "version": "852833616e510f30b68b4efa8b8f0080c0936671acbf52967e72b6c4ab0a72e9", + "signature": "f4aed38b39d768d40d1a8c62105e87cb08b372540b80b4fa615291f2f37f2419", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "outDir": "./dist", + "rootDir": "./src", + "preserveSymlinks": true, + "types": [], + "newLine": "LF", + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./src/index.ts": [ + "../node_modules/common/dist/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./src/index.ts", + "../node_modules/common/dist/index.d.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/output.txt new file mode 100644 index 000000000..154ec1738 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/output.txt @@ -0,0 +1,9 @@ + Asset Size Chunks Chunk Names + index.js 4.93 KiB main [emitted] main + ../../lib/dist/index.js 198 bytes [emitted] + ../../lib/dist/index.d.ts 55 bytes [emitted] +../../lib/tsconfig.tsbuildinfo 73.4 KiB [emitted] +Entrypoint main = index.js +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 193 bytes {main} [built] +[./src/index.ts] 144 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/patch0/lib/src/index.ts b/test/comparison-tests/projectReferencesSymLinksPreserve/patch0/lib/src/index.ts new file mode 100644 index 000000000..cfa6538fd --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/patch0/lib/src/index.ts @@ -0,0 +1,2 @@ +import { getMeaningOfLife2 } from "common"; +export const getMeaningOfLife3 = () => getMeaningOfLife2(); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-3.9/patch0/output.txt new file mode 100644 index 000000000..18c5fa480 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-3.9/patch0/output.txt @@ -0,0 +1,14 @@ + Asset Size Chunks Chunk Names + index.js 4.9 KiB main [emitted] main + ../../lib/dist/index.js 198 bytes [emitted] + ../../lib/dist/index.d.ts 55 bytes [emitted] +../../lib/tsconfig.tsbuildinfo 73.4 KiB [emitted] +Entrypoint main = index.js +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 193 bytes {main} [built] +[./src/index.ts] 108 bytes {main} [built] [1 error] + +ERROR in app\src\index.ts +./src/index.ts +[tsl] ERROR in app\src\index.ts(1,10) + TS2724: Module '"../../node_modules/lib/dist"' has no exported member 'getMeaningOfLife'. Did you mean 'getMeaningOfLife3'? \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt new file mode 100644 index 000000000..154ec1738 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt @@ -0,0 +1,9 @@ + Asset Size Chunks Chunk Names + index.js 4.93 KiB main [emitted] main + ../../lib/dist/index.js 198 bytes [emitted] + ../../lib/dist/index.d.ts 55 bytes [emitted] +../../lib/tsconfig.tsbuildinfo 73.4 KiB [emitted] +Entrypoint main = index.js +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 193 bytes {main} [built] +[./src/index.ts] 144 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/patch0/output.txt new file mode 100644 index 000000000..db36e96ae --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/patch0/output.txt @@ -0,0 +1,14 @@ + Asset Size Chunks Chunk Names + index.js 4.9 KiB main [emitted] main + ../../lib/dist/index.js 198 bytes [emitted] + ../../lib/dist/index.d.ts 55 bytes [emitted] +../../lib/tsconfig.tsbuildinfo 73.3 KiB [emitted] +Entrypoint main = index.js +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 193 bytes {main} [built] +[./src/index.ts] 108 bytes {main} [built] [1 error] + +ERROR in app\src\index.ts +./src/index.ts +[tsl] ERROR in app\src\index.ts(1,10) + TS2724: Module '"../../lib/dist"' has no exported member 'getMeaningOfLife'. Did you mean 'getMeaningOfLife3'? \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt new file mode 100644 index 000000000..083b18466 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt @@ -0,0 +1,9 @@ + Asset Size Chunks Chunk Names + index.js 4.93 KiB main [emitted] main + ../../lib/dist/index.js 198 bytes [emitted] + ../../lib/dist/index.d.ts 55 bytes [emitted] +../../lib/tsconfig.tsbuildinfo 73.3 KiB [emitted] +Entrypoint main = index.js +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 193 bytes {main} [built] +[./src/index.ts] 144 bytes {main} [built] \ No newline at end of file From 7038c646e823931d27133ca853a13f058033c471 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 1 Jul 2020 16:13:11 -0700 Subject: [PATCH 07/15] Update baselines correctly --- .../create-and-execute-test.js | 14 ++- .../patch2/bundle.js | 113 ------------------ .../patch3/bundle.js | 113 ------------------ .../expectedOutput-3.9/patch0/output.txt | 3 +- .../patch0/tsconfig.tsbuildinfo | 57 +++++++++ .../expectedOutput-3.9/patch0/output.txt | 3 +- .../patch0/tsconfig.tsbuildinfo | 57 +++++++++ .../expectedOutput-3.9/patch3/bundle.js | 4 +- .../expectedOutput-3.9/patch3/output.txt | 7 +- .../patch3/tsconfig.tsbuildinfo | 57 +++++++++ .../expectedOutput-3.9/patch4/bundle.js | 4 +- .../expectedOutput-3.9/patch5/bundle.js | 4 +- .../expectedOutput-3.9/patch3/bundle.js | 4 +- .../expectedOutput-3.9/patch4/bundle.js | 4 +- .../expectedOutput-3.9/patch5/bundle.js | 4 +- 15 files changed, 203 insertions(+), 245 deletions(-) delete mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch2/bundle.js delete mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/bundle.js create mode 100644 test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/tsconfig.tsbuildinfo create mode 100644 test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/tsconfig.tsbuildinfo diff --git a/test/comparison-tests/create-and-execute-test.js b/test/comparison-tests/create-and-execute-test.js index d1d50b1d0..5b957a424 100644 --- a/test/comparison-tests/create-and-execute-test.js +++ b/test/comparison-tests/create-and-execute-test.js @@ -268,8 +268,18 @@ function storeStats(stats, testState, paths) { function compareFiles(paths, test, patch) { if (saveOutputMode) { - const actualFiles = glob.sync('**/*', { cwd: paths.actualOutput, nodir: true, dot: true }); - actualFiles.forEach(function (file) { + const actualFiles = glob.sync('**/*', { cwd: paths.actualOutput, nodir: true, dot: true }), + expectedFiles = glob.sync('**/*', { cwd: paths.originalExpectedOutput, nodir: true, dot: true }) + .filter(function (file) { return !/^patch/.test(file); }), + allFiles = {}; + + actualFiles.forEach(function (file) { allFiles[file] = true }); + expectedFiles.forEach(function (file) { + if (!allFiles.hasOwnProperty(file)) { + fs.removeSync(path.join(paths.originalExpectedOutput, file)); + } + }); + Object.keys(allFiles).forEach(function (file) { const actual = getNormalisedFileContent(file, paths.actualOutput); const expected = getNormalisedFileContent(file, paths.expectedOutput); if (actual !== expected) { diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch2/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch2/bundle.js deleted file mode 100644 index 78ed26c6a..000000000 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch2/bundle.js +++ /dev/null @@ -1,113 +0,0 @@ -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ "./app.ts": -/*!****************!*\ - !*** ./app.ts ***! - \****************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); - -/***/ }), - -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); - -/***/ }) - -/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/bundle.js deleted file mode 100644 index ec0c99cc9..000000000 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/bundle.js +++ /dev/null @@ -1,113 +0,0 @@ -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ "./app.ts": -/*!****************!*\ - !*** ./app.ts ***! - \****************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); - -/***/ }), - -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); - -/***/ }) - -/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt index 2e327033b..4152cd2c0 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt @@ -1,13 +1,14 @@ Asset Size Chunks Chunk Names bundle.js 4.87 KiB main [emitted] main app.d.ts 11 bytes [emitted] + tsconfig.tsbuildinfo 1.55 KiB [emitted] lib/helper.js.map 190 bytes [emitted] lib/helper.js 167 bytes [emitted] lib/helper.d.ts 92 bytes [emitted] lib/index.js.map 252 bytes [emitted] lib/index.js 267 bytes [emitted] lib/index.d.ts 108 bytes [emitted] -lib/tsconfig.tsbuildinfo 73 KiB [emitted] +lib/tsconfig.tsbuildinfo 2.66 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 133 bytes {main} diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/tsconfig.tsbuildinfo new file mode 100644 index 000000000..9479bdded --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../node_modules/typescript/lib/lib.d.ts": { + "version": "-10496480823", + "signature": "-10496480823", + "affectsGlobalScope": false + }, + "../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "-218882352090", + "signature": "-218882352090", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "300634082611", + "signature": "300634082611", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "-24714112149", + "signature": "-24714112149", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "204309182321", + "signature": "204309182321", + "affectsGlobalScope": true + }, + "./lib/index.d.ts": { + "version": "5959019700", + "signature": "5959019700", + "affectsGlobalScope": false + }, + "./app.ts": { + "version": "-14331559384", + "signature": "-3531856636", + "affectsGlobalScope": false + } + }, + "options": { + "types": [], + "composite": true, + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./app.ts": [ + "./lib/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt index 1765c04bd..d23114635 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt @@ -1,10 +1,11 @@ Asset Size Chunks Chunk Names bundle.js 4.35 KiB main [emitted] main app.d.ts 11 bytes [emitted] + tsconfig.tsbuildinfo 1.55 KiB [emitted] lib/index.js.map 221 bytes [emitted] lib/index.js 192 bytes [emitted] lib/index.d.ts 108 bytes [emitted] -lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] +lib/tsconfig.tsbuildinfo 2.34 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 159 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/tsconfig.tsbuildinfo new file mode 100644 index 000000000..9479bdded --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../node_modules/typescript/lib/lib.d.ts": { + "version": "-10496480823", + "signature": "-10496480823", + "affectsGlobalScope": false + }, + "../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "-218882352090", + "signature": "-218882352090", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "300634082611", + "signature": "300634082611", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "-24714112149", + "signature": "-24714112149", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "204309182321", + "signature": "204309182321", + "affectsGlobalScope": true + }, + "./lib/index.d.ts": { + "version": "5959019700", + "signature": "5959019700", + "affectsGlobalScope": false + }, + "./app.ts": { + "version": "-14331559384", + "signature": "-3531856636", + "affectsGlobalScope": false + } + }, + "options": { + "types": [], + "composite": true, + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./app.ts": [ + "./lib/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/bundle.js b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/bundle.js index 079d64a01..8d307dba8 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/bundle.js @@ -94,7 +94,7 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = void 0;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/output.txt index 0a5086b9b..0fa4ee250 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/output.txt @@ -1,10 +1,11 @@ Asset Size Chunks Chunk Names - bundle.js 4.35 KiB main [emitted] main + bundle.js 4.39 KiB main [emitted] main app.d.ts 11 bytes [emitted] + tsconfig.tsbuildinfo 1.55 KiB [emitted] lib/index.js.map 228 bytes [emitted] lib/index.js 188 bytes [emitted] lib/index.d.ts 127 bytes [emitted] -lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] +lib/tsconfig.tsbuildinfo 2.34 KiB [emitted] Entrypoint main = bundle.js -[./app.ts] 131 bytes {main} [built] +[./app.ts] 169 bytes {main} [built] [./lib/index.ts] 155 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/tsconfig.tsbuildinfo new file mode 100644 index 000000000..7c0b7c95d --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../node_modules/typescript/lib/lib.d.ts": { + "version": "-10496480823", + "signature": "-10496480823", + "affectsGlobalScope": false + }, + "../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "-218882352090", + "signature": "-218882352090", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "300634082611", + "signature": "300634082611", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "-24714112149", + "signature": "-24714112149", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "204309182321", + "signature": "204309182321", + "affectsGlobalScope": true + }, + "./lib/index.d.ts": { + "version": "7269182451", + "signature": "7269182451", + "affectsGlobalScope": false + }, + "./app.ts": { + "version": "-16299197056", + "signature": "-3531856636", + "affectsGlobalScope": false + } + }, + "options": { + "types": [], + "composite": true, + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./app.ts": [ + "./lib/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch4/bundle.js b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch4/bundle.js index 079d64a01..8d307dba8 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch4/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch4/bundle.js @@ -94,7 +94,7 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = void 0;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch5/bundle.js b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch5/bundle.js index 079d64a01..8d307dba8 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch5/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch5/bundle.js @@ -94,7 +94,7 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = void 0;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch3/bundle.js b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch3/bundle.js index 079d64a01..8d307dba8 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch3/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch3/bundle.js @@ -94,7 +94,7 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = void 0;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch4/bundle.js b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch4/bundle.js index 079d64a01..8d307dba8 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch4/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch4/bundle.js @@ -94,7 +94,7 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = void 0;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch5/bundle.js b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch5/bundle.js index 079d64a01..8d307dba8 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch5/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch5/bundle.js @@ -94,7 +94,7 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = void 0;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) From 4588824e93d0909b6946425472ba18a6835035ad Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 2 Jul 2020 12:02:03 -0700 Subject: [PATCH 08/15] Add use correct FileWatcherEventKind --- src/servicesHost.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/servicesHost.ts b/src/servicesHost.ts index e850df2d2..c02dfcd2c 100644 --- a/src/servicesHost.ts +++ b/src/servicesHost.ts @@ -375,7 +375,8 @@ function makeResolvers( } function createWatchFactory( - filePathKeyMapper: (fileName: string) => FilePathKey + filePathKeyMapper: (fileName: string) => FilePathKey, + compiler: typeof typescript ): WatchFactory { const watchedFiles: WatchCallbacks = new Map(); const watchedDirectories: WatchCallbacks = new Map(); @@ -422,7 +423,7 @@ function createWatchFactory( fileName, eventKind ); - if (eventKind !== typescript.FileWatcherEventKind.Changed) { + if (eventKind !== compiler.FileWatcherEventKind.Changed) { const directory = path.dirname(fileName); result = invokeWatcherCallbacks(watchedDirectories, directory, fileName) || @@ -553,7 +554,8 @@ export function makeWatchHost( } = instance; const { watchFile, watchDirectory, invokeFileWatcher } = createWatchFactory( - filePathKeyMapper + filePathKeyMapper, + compiler ); const { moduleResolutionHost: { @@ -800,7 +802,7 @@ export function makeSolutionBuilderHost( reportWatchStatus ), diagnostics, - ...createWatchFactory(filePathKeyMapper), + ...createWatchFactory(filePathKeyMapper, compiler), // Overrides getCurrentDirectory, // behave as if there is no tsbuild info on disk since we want to generate all outputs in memory and only use those @@ -845,13 +847,13 @@ export function makeSolutionBuilderHost( instance.hasUnaccountedModifiedFiles = instance.watchHost.invokeFileWatcher( name, - typescript.FileWatcherEventKind.Created + compiler.FileWatcherEventKind.Created ) || instance.hasUnaccountedModifiedFiles; } else if (existing.version !== newOutputFile.version) { instance.hasUnaccountedModifiedFiles = instance.watchHost.invokeFileWatcher( name, - typescript.FileWatcherEventKind.Changed + compiler.FileWatcherEventKind.Changed ) || instance.hasUnaccountedModifiedFiles; } } From 5b62282c870bd79ee9e778eb889da3f4b751dc12 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 2 Jul 2020 12:17:45 -0700 Subject: [PATCH 09/15] Support typescript@3.6.3 or more --- .travis.yml | 12 ---- appveyor.yml | 13 +--- src/after-compile.ts | 38 ++++------- src/compilerSetup.ts | 2 +- src/config.ts | 11 ++- src/index.ts | 120 +++++--------------------------- src/instances.ts | 39 ++++------- src/utils.ts | 158 ++----------------------------------------- 8 files changed, 56 insertions(+), 337 deletions(-) diff --git a/.travis.yml b/.travis.yml index c93dcde10..e4b16bbf0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,16 +18,4 @@ env: - TYPESCRIPT=typescript@3.8.2 - TYPESCRIPT=typescript@3.7.4 - TYPESCRIPT=typescript@3.6.3 - - TYPESCRIPT=typescript@3.5.1 - - TYPESCRIPT=typescript@3.4.4 - - TYPESCRIPT=typescript@3.3.3 - - TYPESCRIPT=typescript@3.2.1 - - TYPESCRIPT=typescript@3.1.1 - - TYPESCRIPT=typescript@3.0.1 - - TYPESCRIPT=typescript@2.9.2 - - TYPESCRIPT=typescript@2.8.1 - - TYPESCRIPT=typescript@2.7.1 - - TYPESCRIPT=typescript@2.6.1 - - TYPESCRIPT=typescript@2.5.2 - - TYPESCRIPT=typescript@2.4.1 diff --git a/appveyor.yml b/appveyor.yml index c1e7e03a5..f7427980b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -8,18 +8,7 @@ environment: - TYPESCRIPT: typescript@3.8.2 - TYPESCRIPT: typescript@3.7.4 - TYPESCRIPT: typescript@3.6.3 - - TYPESCRIPT: typescript@3.5.1 - - TYPESCRIPT: typescript@3.4.4 - - TYPESCRIPT: typescript@3.3.3 - - TYPESCRIPT: typescript@3.2.1 - - TYPESCRIPT: typescript@3.1.1 - - TYPESCRIPT: typescript@3.0.1 - - TYPESCRIPT: typescript@2.9.2 - - TYPESCRIPT: typescript@2.8.1 - - TYPESCRIPT: typescript@2.7.1 - - TYPESCRIPT: typescript@2.6.1 - - TYPESCRIPT: typescript@2.5.2 - - TYPESCRIPT: typescript@2.4.1 + install: - ps: Install-Product node $env:nodejs_version - yarn install diff --git a/src/after-compile.ts b/src/after-compile.ts index f982f7758..1edefc4af 100644 --- a/src/after-compile.ts +++ b/src/after-compile.ts @@ -3,23 +3,20 @@ import * as ts from 'typescript'; import * as webpack from 'webpack'; import * as constants from './constants'; -import { - getEmitFromWatchHost, - getEmitOutput, - isReferencedFile, -} from './instances'; +import { getEmitFromWatchHost, getEmitOutput } from './instances'; import { FilePathKey, TSFiles, TSInstance, WebpackError, WebpackModule, + TSFile, } from './interfaces'; import { collectAllDependants, ensureProgram, formatErrors, - isUsingProjectReferences, + isReferencedFile, populateReverseDependencyGraph, } from './utils'; @@ -154,10 +151,10 @@ function determineFilesToCheckForErrors( if (checkAllFilesForErrors) { // check all files on initial run for (const [filePath, file] of files) { - filesToCheckForErrors.set(filePath, file); + addFileToCheckForErrors(filePath, file); } for (const [filePath, file] of otherFiles) { - filesToCheckForErrors.set(filePath, file); + addFileToCheckForErrors(filePath, file); } } else if ( modifiedFiles !== null && @@ -173,7 +170,7 @@ function determineFilesToCheckForErrors( ).keys()) { const fileToCheckForErrors = files.get(fileName) || otherFiles.get(fileName); - filesToCheckForErrors.set(fileName, fileToCheckForErrors!); + addFileToCheckForErrors(fileName, fileToCheckForErrors!); } } } @@ -181,10 +178,16 @@ function determineFilesToCheckForErrors( // re-check files with errors from previous build if (filesWithErrors !== undefined) { for (const [fileWithErrorName, fileWithErrors] of filesWithErrors) { - filesToCheckForErrors.set(fileWithErrorName, fileWithErrors); + addFileToCheckForErrors(fileWithErrorName, fileWithErrors); } } return filesToCheckForErrors; + + function addFileToCheckForErrors(filePath: FilePathKey, file: TSFile) { + if (!isReferencedFile(instance, filePath)) { + filesToCheckForErrors.set(filePath, file); + } + } } function provideErrorsToWebpack( @@ -215,14 +218,6 @@ function provideErrorsToWebpack( } const sourceFile = program && program.getSourceFile(fileName); - // If the source file is undefined, that probably means it’s actually part of an unbuilt project reference, - // which will have already produced a more useful error than the one we would get by proceeding here. - // If it’s undefined and we’re not using project references at all, I guess carry on so the user will - // get a useful error about which file was unexpectedly missing. - if (isUsingProjectReferences(instance) && sourceFile === undefined) { - continue; - } - const errors: ts.Diagnostic[] = []; if (program && sourceFile) { errors.push( @@ -358,12 +353,7 @@ function provideDeclarationFilesToWebpack( continue; } - if (!isReferencedFile(instance, fileName)) { - addDeclarationFilesAsAsset( - getEmitOutput(instance, fileName), - compilation - ); - } + addDeclarationFilesAsAsset(getEmitOutput(instance, fileName), compilation); } } diff --git a/src/compilerSetup.ts b/src/compilerSetup.ts index 8853aed92..3b53cc11c 100644 --- a/src/compilerSetup.ts +++ b/src/compilerSetup.ts @@ -27,7 +27,7 @@ export function getCompiler(loaderOptions: LoaderOptions, log: logger.Logger) { if (loaderOptions.compiler === 'typescript') { if ( compiler!.version !== undefined && - semver.gte(compiler!.version, '2.4.1') + semver.gte(compiler!.version, '3.6.3') ) { // don't log yet in this case, if a tsconfig.json exists we want to combine the message compilerCompatible = true; diff --git a/src/config.ts b/src/config.ts index fed977e38..507e69854 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,6 +1,5 @@ import { Chalk } from 'chalk'; import * as path from 'path'; -import * as semver from 'semver'; import * as typescript from 'typescript'; import * as webpack from 'webpack'; @@ -141,12 +140,10 @@ export function getConfigParseResult( configParseResult.projectReferences = undefined; } - if (semver.gte(compiler.version, '3.5.0')) { - // set internal options.configFilePath flag on options to denote that we read this from a file - configParseResult.options = Object.assign({}, configParseResult.options, { - configFilePath, - }); - } + // set internal options.configFilePath flag on options to denote that we read this from a file + configParseResult.options = Object.assign({}, configParseResult.options, { + configFilePath, + }); return configParseResult; } diff --git a/src/index.ts b/src/index.ts index dbd9429a4..84ab3d20b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -11,7 +11,6 @@ import { getInputFileNameFromOutput, getTypeScriptInstance, initializeInstance, - isReferencedFile, reportTranspileErrors, } from './instances'; import { @@ -25,9 +24,7 @@ import { appendSuffixesIfMatch, arrify, formatErrors, - getAndCacheOutputJSFileName, - getAndCacheProjectReference, - validateSourceMapOncePerProject, + isReferencedFile, } from './utils'; const webpackInstances: webpack.Compiler[] = []; @@ -79,85 +76,20 @@ function successLoader( contents, instance ); - const referencedProject = getAndCacheProjectReference(filePath, instance); - if (referencedProject !== undefined) { - const [relativeProjectConfigPath, relativeFilePath] = [ - path.relative( - loaderContext.rootContext, - referencedProject.sourceFile.fileName - ), - path.relative(loaderContext.rootContext, filePath), - ]; - if (referencedProject.commandLine.options.outFile !== undefined) { - throw new Error( - `The referenced project at ${relativeProjectConfigPath} is using ` + - `the outFile' option, which is not supported with ts-loader.` - ); - } - - const jsFileName = getAndCacheOutputJSFileName( - filePath, - referencedProject, - instance - ); - - const relativeJSFileName = path.relative( - loaderContext.rootContext, - jsFileName - ); - if (!instance.compiler.sys.fileExists(jsFileName)) { - throw new Error( - `Could not find output JavaScript file for input ` + - `${relativeFilePath} (looked at ${relativeJSFileName}).\n` + - `The input file is part of a project reference located at ` + - `${relativeProjectConfigPath}, so ts-loader is looking for the ` + - 'project’s pre-built output on disk. Try running `tsc --build` ' + - 'to build project references.' - ); - } - - // Since the output JS file is being read from disk instead of using the - // input TS file, we need to tell the loader that the compilation doesn’t - // actually depend on the current file, but depends on the JS file instead. - loaderContext.clearDependencies(); - loaderContext.addDependency(jsFileName); - - validateSourceMapOncePerProject( - instance, - loaderContext, - jsFileName, - referencedProject - ); - - const mapFileName = jsFileName + '.map'; - const outputText = instance.compiler.sys.readFile(jsFileName); - const sourceMapText = instance.compiler.sys.readFile(mapFileName); - makeSourceMapAndFinish( - sourceMapText, - outputText, - filePath, - contents, - loaderContext, - fileVersion, - callback, - instance - ); - } else { - const { outputText, sourceMapText } = instance.loaderOptions.transpileOnly - ? getTranspilationEmit(filePath, contents, instance, loaderContext) - : getEmit(rawFilePath, filePath, instance, loaderContext); + const { outputText, sourceMapText } = instance.loaderOptions.transpileOnly + ? getTranspilationEmit(filePath, contents, instance, loaderContext) + : getEmit(rawFilePath, filePath, instance, loaderContext); - makeSourceMapAndFinish( - sourceMapText, - outputText, - filePath, - contents, - loaderContext, - fileVersion, - callback, - instance - ); - } + makeSourceMapAndFinish( + sourceMapText, + outputText, + filePath, + contents, + loaderContext, + fileVersion, + callback, + instance + ); } function makeSourceMapAndFinish( @@ -515,28 +447,12 @@ function getEmit( ); if (fileDependencies) { for (const { resolvedFileName, originalFileName } of fileDependencies) { - const projectReference = getAndCacheProjectReference( - resolvedFileName, - instance - ); // In the case of dependencies that are part of a project reference, // the real dependency that webpack should watch is the JS output file. - if (projectReference !== undefined) { - addDependency( - getAndCacheOutputJSFileName( - resolvedFileName, - projectReference, - instance - ) - ); - } else { - addDependency( - getInputFileNameFromOutput( - instance, - path.resolve(resolvedFileName) - ) || originalFileName - ); - } + addDependency( + getInputFileNameFromOutput(instance, path.resolve(resolvedFileName)) || + originalFileName + ); } } diff --git a/src/instances.ts b/src/instances.ts index 7085cddce..295dc4cc5 100644 --- a/src/instances.ts +++ b/src/instances.ts @@ -27,7 +27,7 @@ import { appendSuffixesIfMatch, ensureProgram, formatErrors, - isUsingProjectReferences, + isReferencedFile, makeError, supportsSolutionBuild, } from './utils'; @@ -314,10 +314,7 @@ export function initializeInstance( ); } - if ( - instance.loaderOptions.experimentalWatchApi && - instance.compiler.createWatchProgram - ) { + if (instance.loaderOptions.experimentalWatchApi) { instance.log.logInfo('Using watch api'); // If there is api available for watch, use it instead of language service @@ -643,15 +640,6 @@ export function getInputFileNameFromOutput( ); } -export function isReferencedFile(instance: TSInstance, filePath: string) { - return ( - !!instance.solutionBuilderHost && - !!instance.solutionBuilderHost.watchedFiles.get( - instance.filePathKeyMapper(filePath) - ) - ); -} - export function getEmitFromWatchHost(instance: TSInstance, filePath?: string) { const program = ensureProgram(instance); const builderProgram = instance.builderProgram; @@ -728,20 +716,17 @@ export function getEmitOutput(instance: TSInstance, filePath: string) { text: string, writeByteOrderMark: boolean ) => outputFiles.push({ name: fileName, writeByteOrderMark, text }); - // The source file will be undefined if it’s part of an unbuilt project reference - if (sourceFile !== undefined || !isUsingProjectReferences(instance)) { - const outputFilesFromWatch = getEmitFromWatchHost(instance, filePath); - if (outputFilesFromWatch) { - return outputFilesFromWatch; - } - program.emit( - sourceFile, - writeFile, - /*cancellationToken*/ undefined, - /*emitOnlyDtsFiles*/ false, - instance.transformers - ); + const outputFilesFromWatch = getEmitFromWatchHost(instance, filePath); + if (outputFilesFromWatch) { + return outputFilesFromWatch; } + program.emit( + sourceFile, + writeFile, + /*cancellationToken*/ undefined, + /*emitOnlyDtsFiles*/ false, + instance.transformers + ); return outputFiles; } else { // Emit Javascript diff --git a/src/utils.ts b/src/utils.ts index 251582582..748f95f81 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -3,7 +3,6 @@ import * as fs from 'fs'; import * as micromatch from 'micromatch'; import * as path from 'path'; import * as typescript from 'typescript'; -import * as webpack from 'webpack'; import constants = require('./constants'); import { @@ -280,165 +279,20 @@ export function ensureProgram(instance: TSInstance) { return instance.program; } -export function supportsProjectReferences(instance: TSInstance) { - const program = ensureProgram(instance); - return program && !!program.getProjectReferences; -} - -export function isUsingProjectReferences(instance: TSInstance) { - if ( - instance.loaderOptions.projectReferences && - supportsProjectReferences(instance) - ) { - const program = ensureProgram(instance); - return Boolean(program && program.getProjectReferences()); - } - return false; -} - -/** - * Gets the project reference for a file from the cache if it exists, - * or gets it from TypeScript and caches it otherwise. - */ -export function getAndCacheProjectReference( - filePath: string, - instance: TSInstance -) { - // When using solution builder, dont do the project reference caching - if (instance.solutionBuilderHost) { - return undefined; - } - - const file = instance.files.get(instance.filePathKeyMapper(filePath)); - if (file !== undefined && file.projectReference) { - return file.projectReference.project; - } - - const projectReference = getProjectReferenceForFile(filePath, instance); - if (file !== undefined) { - file.projectReference = { project: projectReference }; - } - - return projectReference; -} - -function getResolvedProjectReferences( - program: typescript.Program -): typescript.ResolvedProjectReference[] | undefined { - const getProjectReferences = - (program as any).getResolvedProjectReferences || - program.getProjectReferences; - if (getProjectReferences) { - return getProjectReferences(); - } - return; -} - -function getProjectReferenceForFile(filePath: string, instance: TSInstance) { - if (isUsingProjectReferences(instance)) { - const key = instance.filePathKeyMapper(filePath); - const program = ensureProgram(instance); - return ( - program && - getResolvedProjectReferences(program)!.find( - ref => - (ref && - ref.commandLine.fileNames.some( - file => instance.filePathKeyMapper(file) === key - )) || - false - ) - ); - } - - return; -} - -export function validateSourceMapOncePerProject( - instance: TSInstance, - loader: webpack.loader.LoaderContext, - jsFileName: string, - project: typescript.ResolvedProjectReference -) { - const { projectsMissingSourceMaps = new Set() } = instance; - if (!projectsMissingSourceMaps.has(project.sourceFile.fileName)) { - instance.projectsMissingSourceMaps = projectsMissingSourceMaps; - projectsMissingSourceMaps.add(project.sourceFile.fileName); - const mapFileName = jsFileName + '.map'; - if (!instance.compiler.sys.fileExists(mapFileName)) { - const [relativeJSPath, relativeProjectConfigPath] = [ - path.relative(loader.rootContext, jsFileName), - path.relative(loader.rootContext, project.sourceFile.fileName), - ]; - loader.emitWarning( - new Error( - 'Could not find source map file for referenced project output ' + - `${relativeJSPath}. Ensure the 'sourceMap' compiler option ` + - `is enabled in ${relativeProjectConfigPath} to ensure Webpack ` + - 'can map project references to the appropriate source files.' - ) - ); - } - } -} - export function supportsSolutionBuild(instance: TSInstance) { return ( !!instance.configFilePath && !!instance.loaderOptions.projectReferences && - !!instance.compiler.InvalidatedProjectKind && !!instance.configParseResult.projectReferences && !!instance.configParseResult.projectReferences.length ); } -/** - * Gets the output JS file path for an input file governed by a composite project. - * Pulls from the cache if it exists; computes and caches the result otherwise. - */ -export function getAndCacheOutputJSFileName( - inputFileName: string, - projectReference: typescript.ResolvedProjectReference, - instance: TSInstance -) { - const file = instance.files.get(instance.filePathKeyMapper(inputFileName)); - if (file && file.projectReference && file.projectReference.outputFileName) { - return file.projectReference.outputFileName; - } - - const outputFileName = getOutputJavaScriptFileName( - inputFileName, - projectReference - ); - - if (file !== undefined) { - file.projectReference = file.projectReference || { - project: projectReference, - }; - file.projectReference.outputFileName = outputFileName; - } - - return outputFileName; -} - -// Adapted from https://github.com/Microsoft/TypeScript/blob/45101491c0b077c509b25830ef0ee5f85b293754/src/compiler/tsbuild.ts#L305 -function getOutputJavaScriptFileName( - inputFileName: string, - projectReference: typescript.ResolvedProjectReference -) { - const { options } = projectReference.commandLine; - const projectDirectory = - options.rootDir || path.dirname(projectReference.sourceFile.fileName); - const relativePath = path.relative(projectDirectory, inputFileName); - const outputPath = path.resolve( - options.outDir || projectDirectory, - relativePath +export function isReferencedFile(instance: TSInstance, filePath: string) { + return ( + !!instance.solutionBuilderHost && + !!instance.solutionBuilderHost.watchedFiles.get( + instance.filePathKeyMapper(filePath) + ) ); - const newExtension = constants.jsonRegex.test(inputFileName) - ? '.json' - : constants.tsxRegex.test(inputFileName) && - options.jsx === typescript.JsxEmit.Preserve - ? '.jsx' - : '.js'; - return outputPath.replace(constants.extensionRegex, newExtension); } From aeee8ea0fedf685842eddc379cbf77a33eedac91 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 2 Jul 2020 14:31:37 -0700 Subject: [PATCH 10/15] handle compiler options to extend correctly This is what resulted in using incorrect newLine in tests in SolutionBuilderHost --- src/config.ts | 35 +++++++++++++++---- src/instances.ts | 2 +- .../create-and-execute-test.js | 1 - .../lib/tsconfig.tsbuildinfo | 4 +-- .../lib/tsconfig.tsbuildinfo | 4 +-- .../common/tsconfig.tsbuildinfo | 4 +-- .../patch0/lib/tsconfig.tsbuildinfo | 6 ++-- .../indirectWithError/tsconfig.tsbuildinfo | 6 ++-- .../patch1/utils/tsconfig.tsbuildinfo | 8 ++--- .../patch2/unreferenced/tsconfig.tsbuildinfo | 4 +-- .../unreferencedIndirect/tsconfig.tsbuildinfo | 4 +-- .../unreferenced/tsconfig.tsbuildinfo | 4 +-- .../unreferencedIndirect/tsconfig.tsbuildinfo | 4 +-- .../common/tsconfig.tsbuildinfo | 4 +-- .../patch0/lib/tsconfig.tsbuildinfo | 6 ++-- .../indirectWithError/tsconfig.tsbuildinfo | 6 ++-- .../patch1/utils/tsconfig.tsbuildinfo | 8 ++--- .../unreferencedIndirect/tsconfig.tsbuildinfo | 4 +-- .../unreferenced/tsconfig.tsbuildinfo | 4 +-- .../unreferencedIndirect/tsconfig.tsbuildinfo | 4 +-- .../lib/tsconfig.tsbuildinfo | 6 ++-- .../lib/tsconfig.tsbuildinfo | 6 ++-- .../lib/tsconfig.tsbuildinfo | 4 +-- .../lib/tsconfig.tsbuildinfo | 4 +-- .../expectedOutput-3.9/tsconfig.tsbuildinfo | 4 +-- .../lib/tsconfig.tsbuildinfo | 4 +-- .../lib/tsconfig.tsbuildinfo | 4 +-- .../expectedOutput-3.9/tsconfig.tsbuildinfo | 4 +-- .../lib/out/tsconfig.tsbuildinfo | 4 +-- .../lib/out/tsconfig.tsbuildinfo | 4 +-- .../lib/out/tsconfig.tsbuildinfo | 4 +-- .../patch0/lib/out/tsconfig.tsbuildinfo | 4 +-- .../patch3/lib/out/tsconfig.tsbuildinfo | 4 +-- .../lib/out/tsconfig.tsbuildinfo | 4 +-- .../patch0/lib/out/tsconfig.tsbuildinfo | 4 +-- .../patch3/lib/out/tsconfig.tsbuildinfo | 4 +-- .../patch0/lib/out/tsconfig.tsbuildinfo | 4 +-- .../patch3/lib/out/tsconfig.tsbuildinfo | 4 +-- .../patch3/lib/out/tsconfig.tsbuildinfo | 4 +-- .../lib/tsconfig.tsbuildinfo | 4 +-- .../lib/tsconfig.tsbuildinfo | 4 +-- .../lib/tsconfig.tsbuildinfo | 4 +-- .../lib/tsconfig.tsbuildinfo | 4 +-- .../common/tsconfig.tsbuildinfo | 4 +-- .../lib/tsconfig.tsbuildinfo | 8 ++--- .../patch0/lib/tsconfig.tsbuildinfo | 8 ++--- .../common/tsconfig.tsbuildinfo | 4 +-- .../lib/tsconfig.tsbuildinfo | 8 ++--- .../patch0/lib/tsconfig.tsbuildinfo | 8 ++--- .../common/tsconfig.tsbuildinfo | 4 +-- .../lib/tsconfig.tsbuildinfo | 8 ++--- .../patch0/lib/tsconfig.tsbuildinfo | 8 ++--- .../common/tsconfig.tsbuildinfo | 4 +-- .../lib/tsconfig.tsbuildinfo | 8 ++--- .../patch0/lib/tsconfig.tsbuildinfo | 8 ++--- .../lib/tsconfig.tsbuildinfo | 4 +-- .../patch0/lib/tsconfig.tsbuildinfo | 4 +-- .../patch3/lib/tsconfig.tsbuildinfo | 4 +-- .../lib/tsconfig.tsbuildinfo | 4 +-- .../patch0/lib/tsconfig.tsbuildinfo | 4 +-- .../patch3/lib/tsconfig.tsbuildinfo | 4 +-- .../lib/tsconfig.tsbuildinfo | 6 ++-- .../patch0/lib/tsconfig.tsbuildinfo | 6 ++-- .../lib/tsconfig.tsbuildinfo | 6 ++-- .../patch0/lib/tsconfig.tsbuildinfo | 6 ++-- .../patch0/lib/tsconfig.tsbuildinfo | 6 ++-- .../patch1/lib/tsconfig.tsbuildinfo | 6 ++-- .../patch0/lib/tsconfig.tsbuildinfo | 6 ++-- .../patch1/lib/tsconfig.tsbuildinfo | 6 ++-- .../patch0/tsconfig.tsbuildinfo | 4 +-- .../expectedOutput-3.9/tsconfig.tsbuildinfo | 4 +-- .../patch0/tsconfig.tsbuildinfo | 4 +-- .../patch3/tsconfig.tsbuildinfo | 4 +-- .../expectedOutput-3.9/tsconfig.tsbuildinfo | 4 +-- 74 files changed, 206 insertions(+), 184 deletions(-) diff --git a/src/config.ts b/src/config.ts index 507e69854..d11450eb3 100644 --- a/src/config.ts +++ b/src/config.ts @@ -65,8 +65,7 @@ export function getConfigFile( if (configFileError === undefined) { configFile.config.compilerOptions = Object.assign( {}, - configFile.config.compilerOptions, - loaderOptions.compilerOptions + configFile.config.compilerOptions ); } @@ -128,15 +127,21 @@ export function getConfigParseResult( configFile: ConfigFile, basePath: string, configFilePath: string | undefined, - enableProjectReferences: boolean + loaderOptions: LoaderOptions ) { const configParseResult = compiler.parseJsonConfigFileContent( configFile.config, compiler.sys, - basePath + basePath, + getCompilerOptionsToExtend( + compiler, + loaderOptions, + basePath, + configFilePath || 'tsconfig.json' + ) ); - if (!enableProjectReferences) { + if (!loaderOptions.projectReferences) { configParseResult.projectReferences = undefined; } @@ -158,7 +163,12 @@ export function getParsedCommandLine( ): typescript.ParsedCommandLine | undefined { const result = compiler.getParsedCommandLineOfConfigFile( configFilePath, - loaderOptions.compilerOptions, + getCompilerOptionsToExtend( + compiler, + loaderOptions, + path.dirname(configFilePath), + configFilePath + ), { ...compiler.sys, // eslint-disable-next-line @typescript-eslint/no-empty-function @@ -171,3 +181,16 @@ export function getParsedCommandLine( } return result; } + +function getCompilerOptionsToExtend( + compiler: typeof typescript, + loaderOptions: LoaderOptions, + basePath: string, + configFileName: string +) { + return compiler.convertCompilerOptionsFromJson( + loaderOptions.compilerOptions, + basePath, + configFileName + ).options; +} diff --git a/src/instances.ts b/src/instances.ts index 295dc4cc5..7a49c1797 100644 --- a/src/instances.ts +++ b/src/instances.ts @@ -130,7 +130,7 @@ function successfulTypeScriptInstance( configFile, basePath, configFilePath, - loaderOptions.projectReferences + loaderOptions ); if (configParseResult.errors.length > 0 && !loaderOptions.happyPackMode) { diff --git a/test/comparison-tests/create-and-execute-test.js b/test/comparison-tests/create-and-execute-test.js index 5b957a424..b943eba5f 100644 --- a/test/comparison-tests/create-and-execute-test.js +++ b/test/comparison-tests/create-and-execute-test.js @@ -94,7 +94,6 @@ function createTest(test, testPath, options) { // Change the tsconfig to be composite const configPath = path.resolve(paths.testStagingPath, "tsconfig.json"); const config = JSON.parse(fs.readFileSync(configPath, "utf8")); - config.files = [ "./app.ts"]; config.compilerOptions = { ...(config.compilerOptions || {}), composite: true }; fs.writeFileSync(configPath, JSON.stringify(config, /*replacer*/ undefined, " ")); } diff --git a/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/tsconfig.tsbuildinfo index e06f978c9..8cfb6d671 100644 --- a/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "./index.ts": { "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", - "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", "affectsGlobalScope": false } }, @@ -36,7 +36,7 @@ "composite": true, "sourceMap": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo index e06f978c9..8cfb6d671 100644 --- a/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "./index.ts": { "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", - "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", "affectsGlobalScope": false } }, @@ -36,7 +36,7 @@ "composite": true, "sourceMap": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/common/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/common/tsconfig.tsbuildinfo index 33ab9a22e..3fc50b166 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/common/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/common/tsconfig.tsbuildinfo @@ -28,14 +28,14 @@ }, "./index.ts": { "version": "83a8bcfe78ca61ceac765c205ef0435e93f65e7bc386ea12d21e0c963a7e824e", - "signature": "9a693929ea8d5a70b61b9defd10fa182f10413470eb5011dc5a34846b246816d", + "signature": "43a7b48da056d56d751b52b1b22e1445fe52b56355f0adcbfd52c12ddc3e3ecb", "affectsGlobalScope": false } }, "options": { "composite": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo index 5f135e690..62e1acdf2 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -28,19 +28,19 @@ }, "./filewitherror.ts": { "version": "0dda94f9fb4df4c74ff92d8109d8db2122e4c980bb13857b2a538c2ac0b33c64", - "signature": "e2ae95931a4ae77b2a4b0ab6d012584f6eaa59c372e2037e011534f53239d15d", + "signature": "3dee7bbd2b685bdcb66cfc9b45605d6689ea42852231fa79cac9a40643c0fa22", "affectsGlobalScope": false }, "./index.ts": { "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", - "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", "affectsGlobalScope": false } }, "options": { "composite": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo index 390188390..7f90ef798 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo @@ -28,19 +28,19 @@ }, "./filewitherror.ts": { "version": "e8c36f5bf4681d8c0c1866ed04f823e66548c8a788b325b672026efb17e9a384", - "signature": "e2ae95931a4ae77b2a4b0ab6d012584f6eaa59c372e2037e011534f53239d15d", + "signature": "3dee7bbd2b685bdcb66cfc9b45605d6689ea42852231fa79cac9a40643c0fa22", "affectsGlobalScope": false }, "./index.ts": { "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", - "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", "affectsGlobalScope": false } }, "options": { "composite": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/utils/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/utils/tsconfig.tsbuildinfo index 75d2c4e66..9302ddcb9 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/utils/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/utils/tsconfig.tsbuildinfo @@ -27,20 +27,20 @@ "affectsGlobalScope": true }, "../common/index.d.ts": { - "version": "9a693929ea8d5a70b61b9defd10fa182f10413470eb5011dc5a34846b246816d", - "signature": "9a693929ea8d5a70b61b9defd10fa182f10413470eb5011dc5a34846b246816d", + "version": "43a7b48da056d56d751b52b1b22e1445fe52b56355f0adcbfd52c12ddc3e3ecb", + "signature": "43a7b48da056d56d751b52b1b22e1445fe52b56355f0adcbfd52c12ddc3e3ecb", "affectsGlobalScope": false }, "./index.ts": { "version": "4c7e50bd7f85cc5d64f963157685ca8eb1223e12466f47c719aaf1af32173088", - "signature": "7a6477b73af7a579b3b0b83c0235fa7ad3c9b6f9e7caadb58cb42167063e57a3", + "signature": "2c471583ee40dd55eed961a2de47a5014f6639fa90572027eec9139c40293e19", "affectsGlobalScope": false } }, "options": { "composite": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/unreferenced/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/unreferenced/tsconfig.tsbuildinfo index 5571d340a..348f626b9 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/unreferenced/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/unreferenced/tsconfig.tsbuildinfo @@ -28,14 +28,14 @@ }, "./index.ts": { "version": "bb8ba6128be1271d91fd80319ca81516b664c6a68b5409b2991f70018b6c9e67", - "signature": "9df66b1423d1b6b6e32097deabc9e884cd5baf6a03f5d60e3ab78206090c97c4", + "signature": "0de8093b7e96f737fa6d441f6d79e8ace62ba5d74bf9324a08fb773d8d32fc6d", "affectsGlobalScope": false } }, "options": { "composite": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/unreferencedIndirect/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/unreferencedIndirect/tsconfig.tsbuildinfo index a382e37b0..b3dfe5eff 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/unreferencedIndirect/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/unreferencedIndirect/tsconfig.tsbuildinfo @@ -28,14 +28,14 @@ }, "./index.ts": { "version": "25e6889f7998ef0640339eb29cd18ffe0a26a90d6ab573c95601f51593801064", - "signature": "4ef378092d53757f50da435f02bd8fbe215f1188c3978b9db24224a1cfdda817", + "signature": "5081781ea12d9924e909db967d29184ff3e0b8ca05d30ef60b8d696e0b50013e", "affectsGlobalScope": false } }, "options": { "composite": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferenced/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferenced/tsconfig.tsbuildinfo index 9661dea5f..e2ab712c0 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferenced/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferenced/tsconfig.tsbuildinfo @@ -28,14 +28,14 @@ }, "./index.ts": { "version": "71b9a35449a6c117c0de0bc5035eb20046c4d436d28294a9d6be2c1a9920ad98", - "signature": "9df66b1423d1b6b6e32097deabc9e884cd5baf6a03f5d60e3ab78206090c97c4", + "signature": "0de8093b7e96f737fa6d441f6d79e8ace62ba5d74bf9324a08fb773d8d32fc6d", "affectsGlobalScope": false } }, "options": { "composite": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferencedIndirect/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferencedIndirect/tsconfig.tsbuildinfo index b148de7e8..0d9c86ed5 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferencedIndirect/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferencedIndirect/tsconfig.tsbuildinfo @@ -28,14 +28,14 @@ }, "./index.ts": { "version": "d2b6e2d5879e5092e979620936598256494f23e7449ca2b326a2618f9b4488c2", - "signature": "4ef378092d53757f50da435f02bd8fbe215f1188c3978b9db24224a1cfdda817", + "signature": "5081781ea12d9924e909db967d29184ff3e0b8ca05d30ef60b8d696e0b50013e", "affectsGlobalScope": false } }, "options": { "composite": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo index 33ab9a22e..3fc50b166 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo @@ -28,14 +28,14 @@ }, "./index.ts": { "version": "83a8bcfe78ca61ceac765c205ef0435e93f65e7bc386ea12d21e0c963a7e824e", - "signature": "9a693929ea8d5a70b61b9defd10fa182f10413470eb5011dc5a34846b246816d", + "signature": "43a7b48da056d56d751b52b1b22e1445fe52b56355f0adcbfd52c12ddc3e3ecb", "affectsGlobalScope": false } }, "options": { "composite": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo index 5f135e690..62e1acdf2 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -28,19 +28,19 @@ }, "./filewitherror.ts": { "version": "0dda94f9fb4df4c74ff92d8109d8db2122e4c980bb13857b2a538c2ac0b33c64", - "signature": "e2ae95931a4ae77b2a4b0ab6d012584f6eaa59c372e2037e011534f53239d15d", + "signature": "3dee7bbd2b685bdcb66cfc9b45605d6689ea42852231fa79cac9a40643c0fa22", "affectsGlobalScope": false }, "./index.ts": { "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", - "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", "affectsGlobalScope": false } }, "options": { "composite": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo index 390188390..7f90ef798 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo @@ -28,19 +28,19 @@ }, "./filewitherror.ts": { "version": "e8c36f5bf4681d8c0c1866ed04f823e66548c8a788b325b672026efb17e9a384", - "signature": "e2ae95931a4ae77b2a4b0ab6d012584f6eaa59c372e2037e011534f53239d15d", + "signature": "3dee7bbd2b685bdcb66cfc9b45605d6689ea42852231fa79cac9a40643c0fa22", "affectsGlobalScope": false }, "./index.ts": { "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", - "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", "affectsGlobalScope": false } }, "options": { "composite": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/utils/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/utils/tsconfig.tsbuildinfo index 75d2c4e66..9302ddcb9 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/utils/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/utils/tsconfig.tsbuildinfo @@ -27,20 +27,20 @@ "affectsGlobalScope": true }, "../common/index.d.ts": { - "version": "9a693929ea8d5a70b61b9defd10fa182f10413470eb5011dc5a34846b246816d", - "signature": "9a693929ea8d5a70b61b9defd10fa182f10413470eb5011dc5a34846b246816d", + "version": "43a7b48da056d56d751b52b1b22e1445fe52b56355f0adcbfd52c12ddc3e3ecb", + "signature": "43a7b48da056d56d751b52b1b22e1445fe52b56355f0adcbfd52c12ddc3e3ecb", "affectsGlobalScope": false }, "./index.ts": { "version": "4c7e50bd7f85cc5d64f963157685ca8eb1223e12466f47c719aaf1af32173088", - "signature": "7a6477b73af7a579b3b0b83c0235fa7ad3c9b6f9e7caadb58cb42167063e57a3", + "signature": "2c471583ee40dd55eed961a2de47a5014f6639fa90572027eec9139c40293e19", "affectsGlobalScope": false } }, "options": { "composite": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/unreferencedIndirect/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/unreferencedIndirect/tsconfig.tsbuildinfo index a382e37b0..b3dfe5eff 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/unreferencedIndirect/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/unreferencedIndirect/tsconfig.tsbuildinfo @@ -28,14 +28,14 @@ }, "./index.ts": { "version": "25e6889f7998ef0640339eb29cd18ffe0a26a90d6ab573c95601f51593801064", - "signature": "4ef378092d53757f50da435f02bd8fbe215f1188c3978b9db24224a1cfdda817", + "signature": "5081781ea12d9924e909db967d29184ff3e0b8ca05d30ef60b8d696e0b50013e", "affectsGlobalScope": false } }, "options": { "composite": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferenced/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferenced/tsconfig.tsbuildinfo index 9661dea5f..e2ab712c0 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferenced/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferenced/tsconfig.tsbuildinfo @@ -28,14 +28,14 @@ }, "./index.ts": { "version": "71b9a35449a6c117c0de0bc5035eb20046c4d436d28294a9d6be2c1a9920ad98", - "signature": "9df66b1423d1b6b6e32097deabc9e884cd5baf6a03f5d60e3ab78206090c97c4", + "signature": "0de8093b7e96f737fa6d441f6d79e8ace62ba5d74bf9324a08fb773d8d32fc6d", "affectsGlobalScope": false } }, "options": { "composite": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferencedIndirect/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferencedIndirect/tsconfig.tsbuildinfo index b148de7e8..0d9c86ed5 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferencedIndirect/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferencedIndirect/tsconfig.tsbuildinfo @@ -28,14 +28,14 @@ }, "./index.ts": { "version": "d2b6e2d5879e5092e979620936598256494f23e7449ca2b326a2618f9b4488c2", - "signature": "4ef378092d53757f50da435f02bd8fbe215f1188c3978b9db24224a1cfdda817", + "signature": "5081781ea12d9924e909db967d29184ff3e0b8ca05d30ef60b8d696e0b50013e", "affectsGlobalScope": false } }, "options": { "composite": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/tsconfig.tsbuildinfo index 0e6cf7878..aa6c9d82a 100644 --- a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -28,19 +28,19 @@ }, "./foo.ts": { "version": "a43230ea8da8a5ab3adc7b12f9eb9d65d1d1e5c87896fb2d8747a1a3f7a3f759", - "signature": "b2811ac95bde466bba13760210304f6cc9909ea5ede3c596b531e20edd12d7c3", + "signature": "4c57bbad758e31eeba3abc8e95e00dbac67b9581c2e7d02884ffb14c672b1520", "affectsGlobalScope": false }, "./index.ts": { "version": "582b90393f0a99a0e2da27ccff010fe0b914246cc25e49da7e760543b0789cf8", - "signature": "edd57b2313e9d86003b42fa8c43ed02c946b5a4cc6fe56ec10a8279c470f8fa2", + "signature": "822618dba4b9d398326f33458039773f2c32dc8940c6134ce0b019b1ff20d068", "affectsGlobalScope": false } }, "options": { "composite": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo index 0e6cf7878..aa6c9d82a 100644 --- a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -28,19 +28,19 @@ }, "./foo.ts": { "version": "a43230ea8da8a5ab3adc7b12f9eb9d65d1d1e5c87896fb2d8747a1a3f7a3f759", - "signature": "b2811ac95bde466bba13760210304f6cc9909ea5ede3c596b531e20edd12d7c3", + "signature": "4c57bbad758e31eeba3abc8e95e00dbac67b9581c2e7d02884ffb14c672b1520", "affectsGlobalScope": false }, "./index.ts": { "version": "582b90393f0a99a0e2da27ccff010fe0b914246cc25e49da7e760543b0789cf8", - "signature": "edd57b2313e9d86003b42fa8c43ed02c946b5a4cc6fe56ec10a8279c470f8fa2", + "signature": "822618dba4b9d398326f33458039773f2c32dc8940c6134ce0b019b1ff20d068", "affectsGlobalScope": false } }, "options": { "composite": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/tsconfig.tsbuildinfo index e06f978c9..8cfb6d671 100644 --- a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "./index.ts": { "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", - "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", "affectsGlobalScope": false } }, @@ -36,7 +36,7 @@ "composite": true, "sourceMap": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo index e06f978c9..8cfb6d671 100644 --- a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "./index.ts": { "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", - "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", "affectsGlobalScope": false } }, @@ -36,7 +36,7 @@ "composite": true, "sourceMap": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo index 92ebe4bc9..2f1a5e06e 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo @@ -27,8 +27,8 @@ "affectsGlobalScope": true }, "./lib/index.d.ts": { - "version": "3525372579", - "signature": "3525372579", + "version": "12503634626", + "signature": "12503634626", "affectsGlobalScope": false }, "./app.ts": { diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/tsconfig.tsbuildinfo index e06f978c9..8cfb6d671 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "./index.ts": { "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", - "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", "affectsGlobalScope": false } }, @@ -36,7 +36,7 @@ "composite": true, "sourceMap": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo index e06f978c9..8cfb6d671 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "./index.ts": { "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", - "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", "affectsGlobalScope": false } }, @@ -36,7 +36,7 @@ "composite": true, "sourceMap": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo index 9aa6a631f..dd6e2320f 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo @@ -27,8 +27,8 @@ "affectsGlobalScope": true }, "./lib/index.d.ts": { - "version": "3525372579", - "signature": "3525372579", + "version": "12503634626", + "signature": "12503634626", "affectsGlobalScope": false }, "./app.ts": { diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/tsconfig.tsbuildinfo index 2a78b0fc0..0eb25c269 100644 --- a/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "../index.ts": { "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", - "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", "affectsGlobalScope": false } }, @@ -37,7 +37,7 @@ "sourceMap": true, "outDir": "./", "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "../tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/tsconfig.tsbuildinfo index 2a78b0fc0..0eb25c269 100644 --- a/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "../index.ts": { "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", - "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", "affectsGlobalScope": false } }, @@ -37,7 +37,7 @@ "sourceMap": true, "outDir": "./", "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "../tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/tsconfig.tsbuildinfo index 2a78b0fc0..0eb25c269 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "../index.ts": { "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", - "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", "affectsGlobalScope": false } }, @@ -37,7 +37,7 @@ "sourceMap": true, "outDir": "./", "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "../tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/tsconfig.tsbuildinfo index 7ca855d72..9f17945f9 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "../index.ts": { "version": "244518e7eae5520d792e5c61f0be65249602dd956014a68836c0a35ed686ba28", - "signature": "62ddf784ed6089de71b4c25f21fff18638b9f2aced0722673521c41ab6739ff3", + "signature": "4323a7ca8bb142ba56fd9c74334a9e3d4d521a10907662b5d9ccb24936767c1e", "affectsGlobalScope": false } }, @@ -37,7 +37,7 @@ "sourceMap": true, "outDir": "./", "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "../tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/tsconfig.tsbuildinfo index 256dd2553..558fb4544 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "../index.ts": { "version": "c250f21a4c1fc3baa49fd9af20e30f28a0c5a4c1ab58eead42bbca5482f3f963", - "signature": "91e339b852a37bfd9c724f31c9c6a973d4aef13027e3a86a4f7d76bd8e655452", + "signature": "64f0f3546d7b6f37dd84a10e5f8a7e22b917671569c4c3954c5a5cca5fcf74d8", "affectsGlobalScope": false } }, @@ -37,7 +37,7 @@ "sourceMap": true, "outDir": "./", "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "../tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/tsconfig.tsbuildinfo index 2a78b0fc0..0eb25c269 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "../index.ts": { "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", - "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", "affectsGlobalScope": false } }, @@ -37,7 +37,7 @@ "sourceMap": true, "outDir": "./", "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "../tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/tsconfig.tsbuildinfo index 7ca855d72..9f17945f9 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "../index.ts": { "version": "244518e7eae5520d792e5c61f0be65249602dd956014a68836c0a35ed686ba28", - "signature": "62ddf784ed6089de71b4c25f21fff18638b9f2aced0722673521c41ab6739ff3", + "signature": "4323a7ca8bb142ba56fd9c74334a9e3d4d521a10907662b5d9ccb24936767c1e", "affectsGlobalScope": false } }, @@ -37,7 +37,7 @@ "sourceMap": true, "outDir": "./", "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "../tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/tsconfig.tsbuildinfo index 256dd2553..558fb4544 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "../index.ts": { "version": "c250f21a4c1fc3baa49fd9af20e30f28a0c5a4c1ab58eead42bbca5482f3f963", - "signature": "91e339b852a37bfd9c724f31c9c6a973d4aef13027e3a86a4f7d76bd8e655452", + "signature": "64f0f3546d7b6f37dd84a10e5f8a7e22b917671569c4c3954c5a5cca5fcf74d8", "affectsGlobalScope": false } }, @@ -37,7 +37,7 @@ "sourceMap": true, "outDir": "./", "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "../tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/tsconfig.tsbuildinfo index 7ca855d72..9f17945f9 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "../index.ts": { "version": "244518e7eae5520d792e5c61f0be65249602dd956014a68836c0a35ed686ba28", - "signature": "62ddf784ed6089de71b4c25f21fff18638b9f2aced0722673521c41ab6739ff3", + "signature": "4323a7ca8bb142ba56fd9c74334a9e3d4d521a10907662b5d9ccb24936767c1e", "affectsGlobalScope": false } }, @@ -37,7 +37,7 @@ "sourceMap": true, "outDir": "./", "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "../tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/tsconfig.tsbuildinfo index 256dd2553..558fb4544 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "../index.ts": { "version": "c250f21a4c1fc3baa49fd9af20e30f28a0c5a4c1ab58eead42bbca5482f3f963", - "signature": "91e339b852a37bfd9c724f31c9c6a973d4aef13027e3a86a4f7d76bd8e655452", + "signature": "64f0f3546d7b6f37dd84a10e5f8a7e22b917671569c4c3954c5a5cca5fcf74d8", "affectsGlobalScope": false } }, @@ -37,7 +37,7 @@ "sourceMap": true, "outDir": "./", "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "../tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/tsconfig.tsbuildinfo index 256dd2553..558fb4544 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "../index.ts": { "version": "c250f21a4c1fc3baa49fd9af20e30f28a0c5a4c1ab58eead42bbca5482f3f963", - "signature": "91e339b852a37bfd9c724f31c9c6a973d4aef13027e3a86a4f7d76bd8e655452", + "signature": "64f0f3546d7b6f37dd84a10e5f8a7e22b917671569c4c3954c5a5cca5fcf74d8", "affectsGlobalScope": false } }, @@ -37,7 +37,7 @@ "sourceMap": true, "outDir": "./", "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "../tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/tsconfig.tsbuildinfo index 629434f09..0bb61f626 100644 --- a/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -223,7 +223,7 @@ }, "./src/index.ts": { "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", - "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", "affectsGlobalScope": false } }, @@ -234,7 +234,7 @@ "outDir": "./out", "rootDir": "./src", "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo index 629434f09..0bb61f626 100644 --- a/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -223,7 +223,7 @@ }, "./src/index.ts": { "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", - "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", "affectsGlobalScope": false } }, @@ -234,7 +234,7 @@ "outDir": "./out", "rootDir": "./src", "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/tsconfig.tsbuildinfo index 629434f09..0bb61f626 100644 --- a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -223,7 +223,7 @@ }, "./src/index.ts": { "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", - "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", "affectsGlobalScope": false } }, @@ -234,7 +234,7 @@ "outDir": "./out", "rootDir": "./src", "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo index 629434f09..0bb61f626 100644 --- a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -223,7 +223,7 @@ }, "./src/index.ts": { "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", - "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", "affectsGlobalScope": false } }, @@ -234,7 +234,7 @@ "outDir": "./out", "rootDir": "./src", "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/common/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/common/tsconfig.tsbuildinfo index c2510b6fb..905954094 100644 --- a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/common/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/common/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "./src/index.ts": { "version": "04a941e6fe6c7eb7913fa3105993c5282e1401287cef79308eed0201ee2c9ef9", - "signature": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "signature": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", "affectsGlobalScope": false } }, @@ -37,7 +37,7 @@ "outDir": "./dist", "rootDir": "./src", "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/tsconfig.tsbuildinfo index ad8dde310..54976b3e9 100644 --- a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -27,13 +27,13 @@ "affectsGlobalScope": true }, "../common/dist/index.d.ts": { - "version": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", - "signature": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "version": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "signature": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", "affectsGlobalScope": false }, "./src/index.ts": { "version": "1f22ba07ef5ca5b17da3030aee4582883803beb20e5bcc5b0cb29acb0289a635", - "signature": "c0374b8bd606e6c8e0156f10567ee0c6e08986bb37d64ed818d623829ec7e1c2", + "signature": "cb0c875cdccbe72f5bbcd75441105aaeeb7f2a8e425f0c4333fe810ec0259456", "affectsGlobalScope": false } }, @@ -42,7 +42,7 @@ "outDir": "./dist", "rootDir": "./src", "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo index e1d10da75..ef77c34d2 100644 --- a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -27,13 +27,13 @@ "affectsGlobalScope": true }, "../common/dist/index.d.ts": { - "version": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", - "signature": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "version": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "signature": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", "affectsGlobalScope": false }, "./src/index.ts": { "version": "852833616e510f30b68b4efa8b8f0080c0936671acbf52967e72b6c4ab0a72e9", - "signature": "f4aed38b39d768d40d1a8c62105e87cb08b372540b80b4fa615291f2f37f2419", + "signature": "f99922acc37970b3e751734a37d730d1382695bab7ffb6730f1aad484ef3828a", "affectsGlobalScope": false } }, @@ -42,7 +42,7 @@ "outDir": "./dist", "rootDir": "./src", "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo index c2510b6fb..905954094 100644 --- a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "./src/index.ts": { "version": "04a941e6fe6c7eb7913fa3105993c5282e1401287cef79308eed0201ee2c9ef9", - "signature": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "signature": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", "affectsGlobalScope": false } }, @@ -37,7 +37,7 @@ "outDir": "./dist", "rootDir": "./src", "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo index ad8dde310..54976b3e9 100644 --- a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -27,13 +27,13 @@ "affectsGlobalScope": true }, "../common/dist/index.d.ts": { - "version": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", - "signature": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "version": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "signature": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", "affectsGlobalScope": false }, "./src/index.ts": { "version": "1f22ba07ef5ca5b17da3030aee4582883803beb20e5bcc5b0cb29acb0289a635", - "signature": "c0374b8bd606e6c8e0156f10567ee0c6e08986bb37d64ed818d623829ec7e1c2", + "signature": "cb0c875cdccbe72f5bbcd75441105aaeeb7f2a8e425f0c4333fe810ec0259456", "affectsGlobalScope": false } }, @@ -42,7 +42,7 @@ "outDir": "./dist", "rootDir": "./src", "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo index e1d10da75..ef77c34d2 100644 --- a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -27,13 +27,13 @@ "affectsGlobalScope": true }, "../common/dist/index.d.ts": { - "version": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", - "signature": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "version": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "signature": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", "affectsGlobalScope": false }, "./src/index.ts": { "version": "852833616e510f30b68b4efa8b8f0080c0936671acbf52967e72b6c4ab0a72e9", - "signature": "f4aed38b39d768d40d1a8c62105e87cb08b372540b80b4fa615291f2f37f2419", + "signature": "f99922acc37970b3e751734a37d730d1382695bab7ffb6730f1aad484ef3828a", "affectsGlobalScope": false } }, @@ -42,7 +42,7 @@ "outDir": "./dist", "rootDir": "./src", "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/common/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/common/tsconfig.tsbuildinfo index 167da818a..6359a48d2 100644 --- a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/common/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/common/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "./src/index.ts": { "version": "04a941e6fe6c7eb7913fa3105993c5282e1401287cef79308eed0201ee2c9ef9", - "signature": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "signature": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", "affectsGlobalScope": false } }, @@ -38,7 +38,7 @@ "rootDir": "./src", "preserveSymlinks": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/lib/tsconfig.tsbuildinfo index cd9a0e191..a7d6c8c72 100644 --- a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -27,13 +27,13 @@ "affectsGlobalScope": true }, "../node_modules/common/dist/index.d.ts": { - "version": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", - "signature": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "version": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "signature": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", "affectsGlobalScope": false }, "./src/index.ts": { "version": "1f22ba07ef5ca5b17da3030aee4582883803beb20e5bcc5b0cb29acb0289a635", - "signature": "c0374b8bd606e6c8e0156f10567ee0c6e08986bb37d64ed818d623829ec7e1c2", + "signature": "cb0c875cdccbe72f5bbcd75441105aaeeb7f2a8e425f0c4333fe810ec0259456", "affectsGlobalScope": false } }, @@ -43,7 +43,7 @@ "rootDir": "./src", "preserveSymlinks": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo index e42f35c4a..2294224f7 100644 --- a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -27,13 +27,13 @@ "affectsGlobalScope": true }, "../node_modules/common/dist/index.d.ts": { - "version": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", - "signature": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "version": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "signature": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", "affectsGlobalScope": false }, "./src/index.ts": { "version": "852833616e510f30b68b4efa8b8f0080c0936671acbf52967e72b6c4ab0a72e9", - "signature": "f4aed38b39d768d40d1a8c62105e87cb08b372540b80b4fa615291f2f37f2419", + "signature": "f99922acc37970b3e751734a37d730d1382695bab7ffb6730f1aad484ef3828a", "affectsGlobalScope": false } }, @@ -43,7 +43,7 @@ "rootDir": "./src", "preserveSymlinks": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo index 167da818a..6359a48d2 100644 --- a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "./src/index.ts": { "version": "04a941e6fe6c7eb7913fa3105993c5282e1401287cef79308eed0201ee2c9ef9", - "signature": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "signature": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", "affectsGlobalScope": false } }, @@ -38,7 +38,7 @@ "rootDir": "./src", "preserveSymlinks": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo index cd9a0e191..a7d6c8c72 100644 --- a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -27,13 +27,13 @@ "affectsGlobalScope": true }, "../node_modules/common/dist/index.d.ts": { - "version": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", - "signature": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "version": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "signature": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", "affectsGlobalScope": false }, "./src/index.ts": { "version": "1f22ba07ef5ca5b17da3030aee4582883803beb20e5bcc5b0cb29acb0289a635", - "signature": "c0374b8bd606e6c8e0156f10567ee0c6e08986bb37d64ed818d623829ec7e1c2", + "signature": "cb0c875cdccbe72f5bbcd75441105aaeeb7f2a8e425f0c4333fe810ec0259456", "affectsGlobalScope": false } }, @@ -43,7 +43,7 @@ "rootDir": "./src", "preserveSymlinks": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo index e42f35c4a..2294224f7 100644 --- a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -27,13 +27,13 @@ "affectsGlobalScope": true }, "../node_modules/common/dist/index.d.ts": { - "version": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", - "signature": "50f1420a801028c6fbac3bc9471d819b47f9475ca24d7920f3266e000d4a77b5", + "version": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "signature": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", "affectsGlobalScope": false }, "./src/index.ts": { "version": "852833616e510f30b68b4efa8b8f0080c0936671acbf52967e72b6c4ab0a72e9", - "signature": "f4aed38b39d768d40d1a8c62105e87cb08b372540b80b4fa615291f2f37f2419", + "signature": "f99922acc37970b3e751734a37d730d1382695bab7ffb6730f1aad484ef3828a", "affectsGlobalScope": false } }, @@ -43,7 +43,7 @@ "rootDir": "./src", "preserveSymlinks": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/tsconfig.tsbuildinfo index e06f978c9..8cfb6d671 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "./index.ts": { "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", - "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", "affectsGlobalScope": false } }, @@ -36,7 +36,7 @@ "composite": true, "sourceMap": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo index 7a33d4755..bd0a3c2fb 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "./index.ts": { "version": "244518e7eae5520d792e5c61f0be65249602dd956014a68836c0a35ed686ba28", - "signature": "62ddf784ed6089de71b4c25f21fff18638b9f2aced0722673521c41ab6739ff3", + "signature": "4323a7ca8bb142ba56fd9c74334a9e3d4d521a10907662b5d9ccb24936767c1e", "affectsGlobalScope": false } }, @@ -36,7 +36,7 @@ "composite": true, "sourceMap": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/tsconfig.tsbuildinfo index d85855375..536710c25 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "./index.ts": { "version": "c250f21a4c1fc3baa49fd9af20e30f28a0c5a4c1ab58eead42bbca5482f3f963", - "signature": "91e339b852a37bfd9c724f31c9c6a973d4aef13027e3a86a4f7d76bd8e655452", + "signature": "64f0f3546d7b6f37dd84a10e5f8a7e22b917671569c4c3954c5a5cca5fcf74d8", "affectsGlobalScope": false } }, @@ -36,7 +36,7 @@ "composite": true, "sourceMap": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo index e06f978c9..8cfb6d671 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "./index.ts": { "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", - "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", "affectsGlobalScope": false } }, @@ -36,7 +36,7 @@ "composite": true, "sourceMap": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo index 7a33d4755..bd0a3c2fb 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "./index.ts": { "version": "244518e7eae5520d792e5c61f0be65249602dd956014a68836c0a35ed686ba28", - "signature": "62ddf784ed6089de71b4c25f21fff18638b9f2aced0722673521c41ab6739ff3", + "signature": "4323a7ca8bb142ba56fd9c74334a9e3d4d521a10907662b5d9ccb24936767c1e", "affectsGlobalScope": false } }, @@ -36,7 +36,7 @@ "composite": true, "sourceMap": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/tsconfig.tsbuildinfo index d85855375..536710c25 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/tsconfig.tsbuildinfo @@ -28,7 +28,7 @@ }, "./index.ts": { "version": "c250f21a4c1fc3baa49fd9af20e30f28a0c5a4c1ab58eead42bbca5482f3f963", - "signature": "91e339b852a37bfd9c724f31c9c6a973d4aef13027e3a86a4f7d76bd8e655452", + "signature": "64f0f3546d7b6f37dd84a10e5f8a7e22b917671569c4c3954c5a5cca5fcf74d8", "affectsGlobalScope": false } }, @@ -36,7 +36,7 @@ "composite": true, "sourceMap": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/tsconfig.tsbuildinfo index 0a549af42..adaa378d6 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -28,12 +28,12 @@ }, "./helper.ts": { "version": "bd8500a78d56a07c2de3c8c735ca2ea8bfba63861da1c1e6a77f96ac5526c238", - "signature": "affd04424229ba34162d389ba65c55af2f176324c07a2225509909a216b2b7b1", + "signature": "9547233658a31639485353eb30596a0329b38600ed28a2ce8d70e7f88b5a1d8c", "affectsGlobalScope": false }, "./index.ts": { "version": "bc4ed2b009cdf5f131d46c0ab70386155058ea9011c613bdf82b0b16dae6fa1c", - "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", "affectsGlobalScope": false } }, @@ -41,7 +41,7 @@ "composite": true, "sourceMap": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo index 5fa6ffcfd..2e8e496cb 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -28,12 +28,12 @@ }, "./helper.ts": { "version": "1fb681e6157008026aa84db0d697833c02fcb11e4b1cb011820844edbffa703c", - "signature": "c79e448f78bd9c48a9e0aabefabef9bf362709376fa9153291947d0c73b3a707", + "signature": "695f3f9978b7c5a431d1c0d00791cee3d41b76f2a13fddf525fd5d34431cab6a", "affectsGlobalScope": false }, "./index.ts": { "version": "bc4ed2b009cdf5f131d46c0ab70386155058ea9011c613bdf82b0b16dae6fa1c", - "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", "affectsGlobalScope": false } }, @@ -41,7 +41,7 @@ "composite": true, "sourceMap": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo index 0a549af42..adaa378d6 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -28,12 +28,12 @@ }, "./helper.ts": { "version": "bd8500a78d56a07c2de3c8c735ca2ea8bfba63861da1c1e6a77f96ac5526c238", - "signature": "affd04424229ba34162d389ba65c55af2f176324c07a2225509909a216b2b7b1", + "signature": "9547233658a31639485353eb30596a0329b38600ed28a2ce8d70e7f88b5a1d8c", "affectsGlobalScope": false }, "./index.ts": { "version": "bc4ed2b009cdf5f131d46c0ab70386155058ea9011c613bdf82b0b16dae6fa1c", - "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", "affectsGlobalScope": false } }, @@ -41,7 +41,7 @@ "composite": true, "sourceMap": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo index 5fa6ffcfd..2e8e496cb 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -28,12 +28,12 @@ }, "./helper.ts": { "version": "1fb681e6157008026aa84db0d697833c02fcb11e4b1cb011820844edbffa703c", - "signature": "c79e448f78bd9c48a9e0aabefabef9bf362709376fa9153291947d0c73b3a707", + "signature": "695f3f9978b7c5a431d1c0d00791cee3d41b76f2a13fddf525fd5d34431cab6a", "affectsGlobalScope": false }, "./index.ts": { "version": "bc4ed2b009cdf5f131d46c0ab70386155058ea9011c613bdf82b0b16dae6fa1c", - "signature": "0dd99d92de87be28f815ef57f516fb62cd7482c63a363827f154cf0821eaaf48", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", "affectsGlobalScope": false } }, @@ -41,7 +41,7 @@ "composite": true, "sourceMap": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo index 605d04eea..6f7438518 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -28,12 +28,12 @@ }, "./helper.ts": { "version": "bd8500a78d56a07c2de3c8c735ca2ea8bfba63861da1c1e6a77f96ac5526c238", - "signature": "affd04424229ba34162d389ba65c55af2f176324c07a2225509909a216b2b7b1", + "signature": "9547233658a31639485353eb30596a0329b38600ed28a2ce8d70e7f88b5a1d8c", "affectsGlobalScope": false }, "./index.ts": { "version": "2433124b24fe94913871ceba0ffaaa1bb06e73b73a6f6b4181c52b6208eb922e", - "signature": "62ddf784ed6089de71b4c25f21fff18638b9f2aced0722673521c41ab6739ff3", + "signature": "4323a7ca8bb142ba56fd9c74334a9e3d4d521a10907662b5d9ccb24936767c1e", "affectsGlobalScope": false } }, @@ -41,7 +41,7 @@ "composite": true, "sourceMap": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/tsconfig.tsbuildinfo index c162119bc..d029fb56d 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/tsconfig.tsbuildinfo @@ -28,12 +28,12 @@ }, "./helper.ts": { "version": "1fb681e6157008026aa84db0d697833c02fcb11e4b1cb011820844edbffa703c", - "signature": "c79e448f78bd9c48a9e0aabefabef9bf362709376fa9153291947d0c73b3a707", + "signature": "695f3f9978b7c5a431d1c0d00791cee3d41b76f2a13fddf525fd5d34431cab6a", "affectsGlobalScope": false }, "./index.ts": { "version": "2433124b24fe94913871ceba0ffaaa1bb06e73b73a6f6b4181c52b6208eb922e", - "signature": "62ddf784ed6089de71b4c25f21fff18638b9f2aced0722673521c41ab6739ff3", + "signature": "4323a7ca8bb142ba56fd9c74334a9e3d4d521a10907662b5d9ccb24936767c1e", "affectsGlobalScope": false } }, @@ -41,7 +41,7 @@ "composite": true, "sourceMap": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo index 605d04eea..6f7438518 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -28,12 +28,12 @@ }, "./helper.ts": { "version": "bd8500a78d56a07c2de3c8c735ca2ea8bfba63861da1c1e6a77f96ac5526c238", - "signature": "affd04424229ba34162d389ba65c55af2f176324c07a2225509909a216b2b7b1", + "signature": "9547233658a31639485353eb30596a0329b38600ed28a2ce8d70e7f88b5a1d8c", "affectsGlobalScope": false }, "./index.ts": { "version": "2433124b24fe94913871ceba0ffaaa1bb06e73b73a6f6b4181c52b6208eb922e", - "signature": "62ddf784ed6089de71b4c25f21fff18638b9f2aced0722673521c41ab6739ff3", + "signature": "4323a7ca8bb142ba56fd9c74334a9e3d4d521a10907662b5d9ccb24936767c1e", "affectsGlobalScope": false } }, @@ -41,7 +41,7 @@ "composite": true, "sourceMap": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/tsconfig.tsbuildinfo index c162119bc..d029fb56d 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/tsconfig.tsbuildinfo @@ -28,12 +28,12 @@ }, "./helper.ts": { "version": "1fb681e6157008026aa84db0d697833c02fcb11e4b1cb011820844edbffa703c", - "signature": "c79e448f78bd9c48a9e0aabefabef9bf362709376fa9153291947d0c73b3a707", + "signature": "695f3f9978b7c5a431d1c0d00791cee3d41b76f2a13fddf525fd5d34431cab6a", "affectsGlobalScope": false }, "./index.ts": { "version": "2433124b24fe94913871ceba0ffaaa1bb06e73b73a6f6b4181c52b6208eb922e", - "signature": "62ddf784ed6089de71b4c25f21fff18638b9f2aced0722673521c41ab6739ff3", + "signature": "4323a7ca8bb142ba56fd9c74334a9e3d4d521a10907662b5d9ccb24936767c1e", "affectsGlobalScope": false } }, @@ -41,7 +41,7 @@ "composite": true, "sourceMap": true, "types": [], - "newLine": "LF", + "newLine": 1, "configFilePath": "./tsconfig.json", "skipLibCheck": true, "suppressOutputPathCheck": true diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/tsconfig.tsbuildinfo index 9479bdded..83c16405e 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/tsconfig.tsbuildinfo @@ -27,8 +27,8 @@ "affectsGlobalScope": true }, "./lib/index.d.ts": { - "version": "5959019700", - "signature": "5959019700", + "version": "11215156582", + "signature": "11215156582", "affectsGlobalScope": false }, "./app.ts": { diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo index 92ebe4bc9..2f1a5e06e 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo @@ -27,8 +27,8 @@ "affectsGlobalScope": true }, "./lib/index.d.ts": { - "version": "3525372579", - "signature": "3525372579", + "version": "12503634626", + "signature": "12503634626", "affectsGlobalScope": false }, "./app.ts": { diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/tsconfig.tsbuildinfo index 9479bdded..83c16405e 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/tsconfig.tsbuildinfo @@ -27,8 +27,8 @@ "affectsGlobalScope": true }, "./lib/index.d.ts": { - "version": "5959019700", - "signature": "5959019700", + "version": "11215156582", + "signature": "11215156582", "affectsGlobalScope": false }, "./app.ts": { diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/tsconfig.tsbuildinfo index 7c0b7c95d..ad8cfa7ed 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/tsconfig.tsbuildinfo @@ -27,8 +27,8 @@ "affectsGlobalScope": true }, "./lib/index.d.ts": { - "version": "7269182451", - "signature": "7269182451", + "version": "11496633944", + "signature": "11496633944", "affectsGlobalScope": false }, "./app.ts": { diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo index 92ebe4bc9..2f1a5e06e 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo @@ -27,8 +27,8 @@ "affectsGlobalScope": true }, "./lib/index.d.ts": { - "version": "3525372579", - "signature": "3525372579", + "version": "12503634626", + "signature": "12503634626", "affectsGlobalScope": false }, "./app.ts": { From e0fd390b206f761f1fc2bf19485d4df30f69bc63 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 2 Jul 2020 17:44:42 -0700 Subject: [PATCH 11/15] Use casesensitive host to run tests --- src/config.ts | 14 ++++++++++++-- src/index.ts | 1 + src/instances.ts | 15 +++++++++++---- src/interfaces.ts | 1 + src/servicesHost.ts | 11 +++++++++-- src/utils.ts | 9 +++++++++ test/comparison-tests/create-and-execute-test.js | 3 ++- .../patch0/lib/tsconfig.tsbuildinfo | 4 ++-- .../patch1/indirectWithError/tsconfig.tsbuildinfo | 4 ++-- .../patch0/lib/tsconfig.tsbuildinfo | 4 ++-- .../patch1/indirectWithError/tsconfig.tsbuildinfo | 4 ++-- 11 files changed, 53 insertions(+), 17 deletions(-) diff --git a/src/config.ts b/src/config.ts index d11450eb3..caeb6bf0e 100644 --- a/src/config.ts +++ b/src/config.ts @@ -6,7 +6,7 @@ import * as webpack from 'webpack'; import { getCompilerOptions } from './compilerSetup'; import { LoaderOptions, WebpackError } from './interfaces'; import * as logger from './logger'; -import { formatErrors } from './utils'; +import { formatErrors, useCaseSensitiveFileNames } from './utils'; interface ConfigFile { config?: any; @@ -131,7 +131,13 @@ export function getConfigParseResult( ) { const configParseResult = compiler.parseJsonConfigFileContent( configFile.config, - compiler.sys, + { + ...compiler.sys, + useCaseSensitiveFileNames: useCaseSensitiveFileNames( + compiler, + loaderOptions + ), + }, basePath, getCompilerOptionsToExtend( compiler, @@ -171,6 +177,10 @@ export function getParsedCommandLine( ), { ...compiler.sys, + useCaseSensitiveFileNames: useCaseSensitiveFileNames( + compiler, + loaderOptions + ), // eslint-disable-next-line @typescript-eslint/no-empty-function onUnRecoverableConfigFileDiagnostic: () => {}, }, diff --git a/src/index.ts b/src/index.ts index 84ab3d20b..b218a4611 100644 --- a/src/index.ts +++ b/src/index.ts @@ -235,6 +235,7 @@ const validLoaderOptions: ValidLoaderOptions[] = [ 'projectReferences', 'resolveModuleName', 'resolveTypeReferenceDirective', + 'useCaseSensitiveFileNames', ]; /** diff --git a/src/instances.ts b/src/instances.ts index 7a49c1797..916f139b4 100644 --- a/src/instances.ts +++ b/src/instances.ts @@ -30,6 +30,7 @@ import { isReferencedFile, makeError, supportsSolutionBuild, + useCaseSensitiveFileNames, } from './utils'; import { makeWatchRun } from './watch-run'; @@ -73,10 +74,13 @@ export function getTypeScriptInstance( ); } -function createFilePathKeyMapper(compiler: typeof typescript) { +function createFilePathKeyMapper( + compiler: typeof typescript, + loaderOptions: LoaderOptions +) { // FileName lowercasing copied from typescript const fileNameLowerCaseRegExp = /[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g; - return compiler.sys.useCaseSensitiveFileNames + return useCaseSensitiveFileNames(compiler, loaderOptions) ? pathResolve : toFileNameLowerCase; @@ -170,7 +174,7 @@ function successfulTypeScriptInstance( filePath ) : (filePath: string) => filePath; - const filePathKeyMapper = createFilePathKeyMapper(compiler); + const filePathKeyMapper = createFilePathKeyMapper(compiler, loaderOptions); if (loaderOptions.transpileOnly) { // quick return for transpiling @@ -567,7 +571,10 @@ export function getOutputFileNames( configFile: typescript.ParsedCommandLine, inputFileName: string ): string[] { - const ignoreCase = !instance.compiler.sys.useCaseSensitiveFileNames; + const ignoreCase = !useCaseSensitiveFileNames( + instance.compiler, + instance.loaderOptions + ); if ((instance.compiler as any).getOutputFileNames) { return (instance.compiler as any).getOutputFileNames( configFile, diff --git a/src/interfaces.ts b/src/interfaces.ts index b2dac2c2e..ce44d98f9 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -275,6 +275,7 @@ export interface LoaderOptions { projectReferences: boolean; resolveModuleName: CustomResolveModuleName; resolveTypeReferenceDirective: CustomResolveTypeReferenceDirective; + useCaseSensitiveFileNames?: boolean; } export interface TSFile { diff --git a/src/servicesHost.ts b/src/servicesHost.ts index c02dfcd2c..9ecf3a6dd 100644 --- a/src/servicesHost.ts +++ b/src/servicesHost.ts @@ -32,6 +32,7 @@ import { fsReadFile, populateDependencyGraph, unorderedRemoveItem, + useCaseSensitiveFileNames, } from './utils'; function makeResolversHandlingProjectReferences( @@ -74,7 +75,8 @@ function makeResolversHandlingProjectReferences( getDirectories, readDirectory, - useCaseSensitiveFileNames: () => compiler.sys.useCaseSensitiveFileNames, + useCaseSensitiveFileNames: () => + useCaseSensitiveFileNames(compiler, instance.loaderOptions), getNewLine: () => newLine, getDefaultLibFileName: options => compiler.getDefaultLibFilePath(options), }; @@ -730,7 +732,10 @@ export function makeSolutionBuilderHost( const getCurrentDirectory = () => loader.context; const formatDiagnosticHost: typescript.FormatDiagnosticsHost = { getCurrentDirectory: compiler.sys.getCurrentDirectory, - getCanonicalFileName: compiler.sys.useCaseSensitiveFileNames + getCanonicalFileName: useCaseSensitiveFileNames( + compiler, + instance.loaderOptions + ) ? s => s : s => s.toLowerCase(), getNewLine: () => compiler.sys.newLine, @@ -801,6 +806,8 @@ export function makeSolutionBuilderHost( reportSolutionBuilderStatus, reportWatchStatus ), + useCaseSensitiveFileNames: () => + useCaseSensitiveFileNames(compiler, instance.loaderOptions), diagnostics, ...createWatchFactory(filePathKeyMapper, compiler), // Overrides diff --git a/src/utils.ts b/src/utils.ts index 748f95f81..7a03543dd 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -296,3 +296,12 @@ export function isReferencedFile(instance: TSInstance, filePath: string) { ) ); } + +export function useCaseSensitiveFileNames( + compiler: typeof typescript, + loaderOptions: LoaderOptions +) { + return loaderOptions.useCaseSensitiveFileNames !== undefined + ? loaderOptions.useCaseSensitiveFileNames + : compiler.sys.useCaseSensitiveFileNames; +} diff --git a/test/comparison-tests/create-and-execute-test.js b/test/comparison-tests/create-and-execute-test.js index b943eba5f..abb6f89f6 100644 --- a/test/comparison-tests/create-and-execute-test.js +++ b/test/comparison-tests/create-and-execute-test.js @@ -171,7 +171,8 @@ function createWebpackConfig(paths, optionsOriginal, useWatchApi) { compilerOptions: { newLine: 'LF' }, - experimentalWatchApi: !!useWatchApi + experimentalWatchApi: !!useWatchApi, + useCaseSensitiveFileNames: true }, optionsOriginal, extraOptionMaybe); const tsLoaderPath = path.join(__dirname, "../../index.js"); diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo index 62e1acdf2..82b7110f2 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -26,7 +26,7 @@ "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", "affectsGlobalScope": true }, - "./filewitherror.ts": { + "./fileWithError.ts": { "version": "0dda94f9fb4df4c74ff92d8109d8db2122e4c980bb13857b2a538c2ac0b33c64", "signature": "3dee7bbd2b685bdcb66cfc9b45605d6689ea42852231fa79cac9a40643c0fa22", "affectsGlobalScope": false @@ -48,7 +48,7 @@ "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "./filewitherror.ts", + "./fileWithError.ts", "./index.ts", "../../../node_modules/typescript/lib/lib.d.ts", "../../../node_modules/typescript/lib/lib.dom.d.ts", diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo index 7f90ef798..3f35eb680 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo @@ -26,7 +26,7 @@ "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", "affectsGlobalScope": true }, - "./filewitherror.ts": { + "./fileWithError.ts": { "version": "e8c36f5bf4681d8c0c1866ed04f823e66548c8a788b325b672026efb17e9a384", "signature": "3dee7bbd2b685bdcb66cfc9b45605d6689ea42852231fa79cac9a40643c0fa22", "affectsGlobalScope": false @@ -48,7 +48,7 @@ "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "./filewitherror.ts", + "./fileWithError.ts", "./index.ts", "../../../node_modules/typescript/lib/lib.d.ts", "../../../node_modules/typescript/lib/lib.dom.d.ts", diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo index 62e1acdf2..82b7110f2 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -26,7 +26,7 @@ "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", "affectsGlobalScope": true }, - "./filewitherror.ts": { + "./fileWithError.ts": { "version": "0dda94f9fb4df4c74ff92d8109d8db2122e4c980bb13857b2a538c2ac0b33c64", "signature": "3dee7bbd2b685bdcb66cfc9b45605d6689ea42852231fa79cac9a40643c0fa22", "affectsGlobalScope": false @@ -48,7 +48,7 @@ "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "./filewitherror.ts", + "./fileWithError.ts", "./index.ts", "../../../node_modules/typescript/lib/lib.d.ts", "../../../node_modules/typescript/lib/lib.dom.d.ts", diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo index 7f90ef798..3f35eb680 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo @@ -26,7 +26,7 @@ "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", "affectsGlobalScope": true }, - "./filewitherror.ts": { + "./fileWithError.ts": { "version": "e8c36f5bf4681d8c0c1866ed04f823e66548c8a788b325b672026efb17e9a384", "signature": "3dee7bbd2b685bdcb66cfc9b45605d6689ea42852231fa79cac9a40643c0fa22", "affectsGlobalScope": false @@ -48,7 +48,7 @@ "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "./filewitherror.ts", + "./fileWithError.ts", "./index.ts", "../../../node_modules/typescript/lib/lib.d.ts", "../../../node_modules/typescript/lib/lib.dom.d.ts", From 5fb8adbc8b3c1acb9b4573fa556333c91295e58d Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 3 Jul 2020 10:25:14 -0700 Subject: [PATCH 12/15] More test fixes --- .../expectedOutput-3.9/bundle.js | 2 +- .../expectedOutput-3.9/output.txt | 10 +++++----- .../expectedOutput-transpile-3.9/bundle.js | 2 +- .../expectedOutput-transpile-3.9/output.txt | 10 +++++----- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/test/comparison-tests/validateLoaderOptionNames/expectedOutput-3.9/bundle.js b/test/comparison-tests/validateLoaderOptionNames/expectedOutput-3.9/bundle.js index 2915d7665..2700c4b8a 100644 --- a/test/comparison-tests/validateLoaderOptionNames/expectedOutput-3.9/bundle.js +++ b/test/comparison-tests/validateLoaderOptionNames/expectedOutput-3.9/bundle.js @@ -93,7 +93,7 @@ /*! no static exports found */ /***/ (function(module, exports) { -eval("throw new Error(\"Module build failed (from C:/source/ts-loader/index.js):/nError: ts-loader was supplied with an unexpected loader option: notRealOption/n/nPlease take a look at the options you are supplying; the following are valid options:/nsilent / logLevel / logInfoToStdOut / instance / compiler / context / configFile / transpileOnly / ignoreDiagnostics / errorFormatter / colors / compilerOptions / appendTsSuffixTo / appendTsxSuffixTo / onlyCompileBundledFiles / happyPackMode / getCustomTransformers / reportFiles / experimentalWatchApi / allowTsInNodeModules / experimentalFileCaching / projectReferences / resolveModuleName / resolveTypeReferenceDirective/n/n at validateLoaderOptions (C://source//ts-loader//dist//index.js:155:19)/n at getLoaderOptions (C://source//ts-loader//dist//index.js:112:5)/n at Object.loader (C://source//ts-loader//dist//index.js:16:21)\");\n\n//# sourceURL=webpack:///./app.ts?"); +eval("throw new Error(\"Module build failed (from c:/github/ts-loader/index.js):/nError: ts-loader was supplied with an unexpected loader option: notRealOption/n/nPlease take a look at the options you are supplying; the following are valid options:/nsilent / logLevel / logInfoToStdOut / instance / compiler / context / configFile / transpileOnly / ignoreDiagnostics / errorFormatter / colors / compilerOptions / appendTsSuffixTo / appendTsxSuffixTo / onlyCompileBundledFiles / happyPackMode / getCustomTransformers / reportFiles / experimentalWatchApi / allowTsInNodeModules / experimentalFileCaching / projectReferences / resolveModuleName / resolveTypeReferenceDirective / useCaseSensitiveFileNames/n/n at validateLoaderOptions (c://github//ts-loader//dist//index.js:153:19)/n at getLoaderOptions (c://github//ts-loader//dist//index.js:110:5)/n at Object.loader (c://github//ts-loader//dist//index.js:16:21)\");\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }) diff --git a/test/comparison-tests/validateLoaderOptionNames/expectedOutput-3.9/output.txt b/test/comparison-tests/validateLoaderOptionNames/expectedOutput-3.9/output.txt index 698615f4f..87738e429 100644 --- a/test/comparison-tests/validateLoaderOptionNames/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/validateLoaderOptionNames/expectedOutput-3.9/output.txt @@ -1,15 +1,15 @@ Asset Size Chunks Chunk Names -bundle.js 4.63 KiB main [emitted] main +bundle.js 4.66 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 887 bytes {main} [built] [failed] [1 error] +[./app.ts] 915 bytes {main} [built] [failed] [1 error] ERROR in ./app.ts Module build failed (from /index.js): Error: ts-loader was supplied with an unexpected loader option: notRealOption Please take a look at the options you are supplying; the following are valid options: -silent / logLevel / logInfoToStdOut / instance / compiler / context / configFile / transpileOnly / ignoreDiagnostics / errorFormatter / colors / compilerOptions / appendTsSuffixTo / appendTsxSuffixTo / onlyCompileBundledFiles / happyPackMode / getCustomTransformers / reportFiles / experimentalWatchApi / allowTsInNodeModules / experimentalFileCaching / projectReferences / resolveModuleName / resolveTypeReferenceDirective +silent / logLevel / logInfoToStdOut / instance / compiler / context / configFile / transpileOnly / ignoreDiagnostics / errorFormatter / colors / compilerOptions / appendTsSuffixTo / appendTsxSuffixTo / onlyCompileBundledFiles / happyPackMode / getCustomTransformers / reportFiles / experimentalWatchApi / allowTsInNodeModules / experimentalFileCaching / projectReferences / resolveModuleName / resolveTypeReferenceDirective / useCaseSensitiveFileNames - at validateLoaderOptions (dist\index.js:155:19) - at getLoaderOptions (dist\index.js:112:5) + at validateLoaderOptions (dist\index.js:153:19) + at getLoaderOptions (dist\index.js:110:5) at Object.loader (dist\index.js:16:21) \ No newline at end of file diff --git a/test/comparison-tests/validateLoaderOptionNames/expectedOutput-transpile-3.9/bundle.js b/test/comparison-tests/validateLoaderOptionNames/expectedOutput-transpile-3.9/bundle.js index 9c4d394ca..2700c4b8a 100644 --- a/test/comparison-tests/validateLoaderOptionNames/expectedOutput-transpile-3.9/bundle.js +++ b/test/comparison-tests/validateLoaderOptionNames/expectedOutput-transpile-3.9/bundle.js @@ -93,7 +93,7 @@ /*! no static exports found */ /***/ (function(module, exports) { -eval("throw new Error(\"Module build failed (from c:/github/ts-loader/index.js):/nError: ts-loader was supplied with an unexpected loader option: notRealOption/n/nPlease take a look at the options you are supplying; the following are valid options:/nsilent / logLevel / logInfoToStdOut / instance / compiler / context / configFile / transpileOnly / ignoreDiagnostics / errorFormatter / colors / compilerOptions / appendTsSuffixTo / appendTsxSuffixTo / onlyCompileBundledFiles / happyPackMode / getCustomTransformers / reportFiles / experimentalWatchApi / allowTsInNodeModules / experimentalFileCaching / projectReferences / resolveModuleName / resolveTypeReferenceDirective/n/n at validateLoaderOptions (c://github//ts-loader//dist//index.js:155:19)/n at getLoaderOptions (c://github//ts-loader//dist//index.js:112:5)/n at Object.loader (c://github//ts-loader//dist//index.js:16:21)\");\n\n//# sourceURL=webpack:///./app.ts?"); +eval("throw new Error(\"Module build failed (from c:/github/ts-loader/index.js):/nError: ts-loader was supplied with an unexpected loader option: notRealOption/n/nPlease take a look at the options you are supplying; the following are valid options:/nsilent / logLevel / logInfoToStdOut / instance / compiler / context / configFile / transpileOnly / ignoreDiagnostics / errorFormatter / colors / compilerOptions / appendTsSuffixTo / appendTsxSuffixTo / onlyCompileBundledFiles / happyPackMode / getCustomTransformers / reportFiles / experimentalWatchApi / allowTsInNodeModules / experimentalFileCaching / projectReferences / resolveModuleName / resolveTypeReferenceDirective / useCaseSensitiveFileNames/n/n at validateLoaderOptions (c://github//ts-loader//dist//index.js:153:19)/n at getLoaderOptions (c://github//ts-loader//dist//index.js:110:5)/n at Object.loader (c://github//ts-loader//dist//index.js:16:21)\");\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }) diff --git a/test/comparison-tests/validateLoaderOptionNames/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/validateLoaderOptionNames/expectedOutput-transpile-3.9/output.txt index 698615f4f..87738e429 100644 --- a/test/comparison-tests/validateLoaderOptionNames/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/validateLoaderOptionNames/expectedOutput-transpile-3.9/output.txt @@ -1,15 +1,15 @@ Asset Size Chunks Chunk Names -bundle.js 4.63 KiB main [emitted] main +bundle.js 4.66 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 887 bytes {main} [built] [failed] [1 error] +[./app.ts] 915 bytes {main} [built] [failed] [1 error] ERROR in ./app.ts Module build failed (from /index.js): Error: ts-loader was supplied with an unexpected loader option: notRealOption Please take a look at the options you are supplying; the following are valid options: -silent / logLevel / logInfoToStdOut / instance / compiler / context / configFile / transpileOnly / ignoreDiagnostics / errorFormatter / colors / compilerOptions / appendTsSuffixTo / appendTsxSuffixTo / onlyCompileBundledFiles / happyPackMode / getCustomTransformers / reportFiles / experimentalWatchApi / allowTsInNodeModules / experimentalFileCaching / projectReferences / resolveModuleName / resolveTypeReferenceDirective +silent / logLevel / logInfoToStdOut / instance / compiler / context / configFile / transpileOnly / ignoreDiagnostics / errorFormatter / colors / compilerOptions / appendTsSuffixTo / appendTsxSuffixTo / onlyCompileBundledFiles / happyPackMode / getCustomTransformers / reportFiles / experimentalWatchApi / allowTsInNodeModules / experimentalFileCaching / projectReferences / resolveModuleName / resolveTypeReferenceDirective / useCaseSensitiveFileNames - at validateLoaderOptions (dist\index.js:155:19) - at getLoaderOptions (dist\index.js:112:5) + at validateLoaderOptions (dist\index.js:153:19) + at getLoaderOptions (dist\index.js:110:5) at Object.loader (dist\index.js:16:21) \ No newline at end of file From 6a9f3b855605504967fc66e8cfa7a4e5090cad20 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 3 Jul 2020 10:44:02 -0700 Subject: [PATCH 13/15] Use LF to build already built program --- test/comparison-tests/create-and-execute-test.js | 2 +- test/comparison-tests/getProgram.js | 4 ++-- .../expectedOutput-3.9/tsconfig.tsbuildinfo | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/comparison-tests/create-and-execute-test.js b/test/comparison-tests/create-and-execute-test.js index abb6f89f6..074ef1d84 100644 --- a/test/comparison-tests/create-and-execute-test.js +++ b/test/comparison-tests/create-and-execute-test.js @@ -106,7 +106,7 @@ function createTest(test, testPath, options) { fs.symlinkSync(path.resolve(paths.testStagingPath, "common"), path.resolve(paths.testStagingPath, "node_modules/common"), "junction"); } if (test.indexOf("AlreadyBuilt") !== -1) { - const program = getProgram(path.resolve(paths.testStagingPath, "lib/tsconfig.json")); + const program = getProgram(path.resolve(paths.testStagingPath, "lib/tsconfig.json"), { newLine: typescript.NewLineKind.LineFeed }); program.emit(); } diff --git a/test/comparison-tests/getProgram.js b/test/comparison-tests/getProgram.js index 4146cd7de..06e23db4b 100644 --- a/test/comparison-tests/getProgram.js +++ b/test/comparison-tests/getProgram.js @@ -1,6 +1,6 @@ const typescript = require('typescript'); -module.exports = function getProgram(tsconfigPath) { - const parsedCommandLine = typescript.getParsedCommandLineOfConfigFile(tsconfigPath, {}, { +module.exports = function getProgram(tsconfigPath, optionsToExtend) { + const parsedCommandLine = typescript.getParsedCommandLineOfConfigFile(tsconfigPath, optionsToExtend || {}, { fileExists: typescript.sys.fileExists, getCurrentDirectory: typescript.sys.getCurrentDirectory, onUnRecoverableConfigFileDiagnostic: function () { throw new Error("Error building project") }, diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo index 92ebe4bc9..2f1a5e06e 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo @@ -27,8 +27,8 @@ "affectsGlobalScope": true }, "./lib/index.d.ts": { - "version": "3525372579", - "signature": "3525372579", + "version": "12503634626", + "signature": "12503634626", "affectsGlobalScope": false }, "./app.ts": { From 91a63295ed5fa213343332e85a657744e5cf69a7 Mon Sep 17 00:00:00 2001 From: John Reilly Date: Sat, 4 Jul 2020 08:39:03 +0100 Subject: [PATCH 14/15] Update version to 8.0.0 in package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4da50ebe0..a4684059f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ts-loader", - "version": "7.0.5", + "version": "8.0.0", "description": "TypeScript loader for webpack", "main": "index.js", "types": "dist", From 7f5be4938cef4943eda168bddb1fa7b15bdbc55a Mon Sep 17 00:00:00 2001 From: John Reilly Date: Sat, 4 Jul 2020 08:42:18 +0100 Subject: [PATCH 15/15] Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 44198ccf6..120cd7eff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v8.0.0 +* [Support for symlinks in project references](https://github.com/TypeStrong/ts-loader/pull/1136) - thanks @sheetalkamat! +* `ts-loader` now supports TypeScript 3.6 and greater **BREAKING CHANGE** + ## v7.0.5 * [Add a delay before starting the comparison tests to avoid failures under WSL](https://github.com/TypeStrong/ts-loader/pull/1109) - thanks @appzuka * [Apply other loaders when updating files in watch mode](https://github.com/TypeStrong/ts-loader/pull/1115) - thanks @iorate