/>; // existing type argument with no internal issues
//// [jsxIntrinsicElementsTypeArgumentErrors.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
///
-var React = require("react");
+var React = __importStar(require("react"));
// opening + closing
const a = React.createElement("div", null); // empty type args
const b = React.createElement("div", null); // trailing comma type args
diff --git a/tests/baselines/reference/jsxIntrinsicUnions.js b/tests/baselines/reference/jsxIntrinsicUnions.js
index 5b6bc29563064..1116ff2c3b653 100644
--- a/tests/baselines/reference/jsxIntrinsicUnions.js
+++ b/tests/baselines/reference/jsxIntrinsicUnions.js
@@ -13,7 +13,40 @@ const tag =
{"Title"};
//// [jsxIntrinsicUnions.js]
"use strict";
///
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
-var React = require("react");
+var React = __importStar(require("react"));
const El = Math.random() ? 'h1' : 'h2';
const tag = React.createElement(El, { className: "ok", key: "key" }, "Title");
diff --git a/tests/baselines/reference/jsxIssuesErrorWhenTagExpectsTooManyArguments.js b/tests/baselines/reference/jsxIssuesErrorWhenTagExpectsTooManyArguments.js
index 91775ff811897..02741f0bc0459 100644
--- a/tests/baselines/reference/jsxIssuesErrorWhenTagExpectsTooManyArguments.js
+++ b/tests/baselines/reference/jsxIssuesErrorWhenTagExpectsTooManyArguments.js
@@ -29,8 +29,41 @@ const d =
; // Technically OK, but probably
//// [jsxIssuesErrorWhenTagExpectsTooManyArguments.js]
"use strict";
///
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
-var React = require("react");
+var React = __importStar(require("react"));
function MyComp4(props, context, bad, verybad) {
return React.createElement("div", null);
}
diff --git a/tests/baselines/reference/jsxNamespaceReexports.js b/tests/baselines/reference/jsxNamespaceReexports.js
index e6058d6b89ae5..c7415fbe30f43 100644
--- a/tests/baselines/reference/jsxNamespaceReexports.js
+++ b/tests/baselines/reference/jsxNamespaceReexports.js
@@ -22,6 +22,39 @@ exports.createElement = createElement;
function createElement(element, props, ...children) { }
//// [index.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
-var MyLib = require("./library");
+var MyLib = __importStar(require("./library"));
const content = MyLib.createElement("my-element", null);
diff --git a/tests/baselines/reference/jsxRuntimePragma(jsx=preserve).js b/tests/baselines/reference/jsxRuntimePragma(jsx=preserve).js
index 009386c5b18c5..3ce808d1d7268 100644
--- a/tests/baselines/reference/jsxRuntimePragma(jsx=preserve).js
+++ b/tests/baselines/reference/jsxRuntimePragma(jsx=preserve).js
@@ -36,11 +36,44 @@ export * as four from "./four.js";
//// [one.jsx]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.selfClosing = exports.frag = exports.HelloWorld = void 0;
///
/* @jsxRuntime classic */
-var React = require("react");
+var React = __importStar(require("react"));
const HelloWorld = () =>
Hello world
;
exports.HelloWorld = HelloWorld;
exports.frag = <>
>;
@@ -68,21 +101,87 @@ exports.frag = <>
>;
exports.selfClosing =

;
//// [four.jsx]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.selfClosing = exports.frag = exports.HelloWorld = void 0;
///
/* @jsxRuntime automatic */
/* @jsxRuntime classic */
-var React = require("react");
+var React = __importStar(require("react"));
const HelloWorld = () =>
Hello world
;
exports.HelloWorld = HelloWorld;
exports.frag = <>
>;
exports.selfClosing =

;
//// [index.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.four = exports.three = exports.two = exports.one = void 0;
-exports.one = require("./one.js");
-exports.two = require("./two.js");
-exports.three = require("./three.js");
-exports.four = require("./four.js");
+exports.one = __importStar(require("./one.js"));
+exports.two = __importStar(require("./two.js"));
+exports.three = __importStar(require("./three.js"));
+exports.four = __importStar(require("./four.js"));
diff --git a/tests/baselines/reference/jsxRuntimePragma(jsx=react).js b/tests/baselines/reference/jsxRuntimePragma(jsx=react).js
index c03d8ca2427f6..76f86255a96bf 100644
--- a/tests/baselines/reference/jsxRuntimePragma(jsx=react).js
+++ b/tests/baselines/reference/jsxRuntimePragma(jsx=react).js
@@ -36,11 +36,44 @@ export * as four from "./four.js";
//// [one.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.selfClosing = exports.frag = exports.HelloWorld = void 0;
///
/* @jsxRuntime classic */
-var React = require("react");
+var React = __importStar(require("react"));
const HelloWorld = () => React.createElement("h1", null, "Hello world");
exports.HelloWorld = HelloWorld;
exports.frag = React.createElement(React.Fragment, null,
@@ -71,12 +104,45 @@ exports.frag = (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, js
exports.selfClosing = (0, jsx_runtime_1.jsx)("img", { src: "./image.png" });
//// [four.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.selfClosing = exports.frag = exports.HelloWorld = void 0;
///
/* @jsxRuntime automatic */
/* @jsxRuntime classic */
-var React = require("react");
+var React = __importStar(require("react"));
const HelloWorld = () => React.createElement("h1", null, "Hello world");
exports.HelloWorld = HelloWorld;
exports.frag = React.createElement(React.Fragment, null,
@@ -84,9 +150,42 @@ exports.frag = React.createElement(React.Fragment, null,
exports.selfClosing = React.createElement("img", { src: "./image.png" });
//// [index.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.four = exports.three = exports.two = exports.one = void 0;
-exports.one = require("./one.js");
-exports.two = require("./two.js");
-exports.three = require("./three.js");
-exports.four = require("./four.js");
+exports.one = __importStar(require("./one.js"));
+exports.two = __importStar(require("./two.js"));
+exports.three = __importStar(require("./three.js"));
+exports.four = __importStar(require("./four.js"));
diff --git a/tests/baselines/reference/jsxRuntimePragma(jsx=react-jsx).js b/tests/baselines/reference/jsxRuntimePragma(jsx=react-jsx).js
index c03d8ca2427f6..76f86255a96bf 100644
--- a/tests/baselines/reference/jsxRuntimePragma(jsx=react-jsx).js
+++ b/tests/baselines/reference/jsxRuntimePragma(jsx=react-jsx).js
@@ -36,11 +36,44 @@ export * as four from "./four.js";
//// [one.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.selfClosing = exports.frag = exports.HelloWorld = void 0;
///
/* @jsxRuntime classic */
-var React = require("react");
+var React = __importStar(require("react"));
const HelloWorld = () => React.createElement("h1", null, "Hello world");
exports.HelloWorld = HelloWorld;
exports.frag = React.createElement(React.Fragment, null,
@@ -71,12 +104,45 @@ exports.frag = (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, js
exports.selfClosing = (0, jsx_runtime_1.jsx)("img", { src: "./image.png" });
//// [four.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.selfClosing = exports.frag = exports.HelloWorld = void 0;
///
/* @jsxRuntime automatic */
/* @jsxRuntime classic */
-var React = require("react");
+var React = __importStar(require("react"));
const HelloWorld = () => React.createElement("h1", null, "Hello world");
exports.HelloWorld = HelloWorld;
exports.frag = React.createElement(React.Fragment, null,
@@ -84,9 +150,42 @@ exports.frag = React.createElement(React.Fragment, null,
exports.selfClosing = React.createElement("img", { src: "./image.png" });
//// [index.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.four = exports.three = exports.two = exports.one = void 0;
-exports.one = require("./one.js");
-exports.two = require("./two.js");
-exports.three = require("./three.js");
-exports.four = require("./four.js");
+exports.one = __importStar(require("./one.js"));
+exports.two = __importStar(require("./two.js"));
+exports.three = __importStar(require("./three.js"));
+exports.four = __importStar(require("./four.js"));
diff --git a/tests/baselines/reference/jsxRuntimePragma(jsx=react-jsxdev).js b/tests/baselines/reference/jsxRuntimePragma(jsx=react-jsxdev).js
index ff0038217a318..16ee376f3a577 100644
--- a/tests/baselines/reference/jsxRuntimePragma(jsx=react-jsxdev).js
+++ b/tests/baselines/reference/jsxRuntimePragma(jsx=react-jsxdev).js
@@ -36,11 +36,44 @@ export * as four from "./four.js";
//// [one.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.selfClosing = exports.frag = exports.HelloWorld = void 0;
///
/* @jsxRuntime classic */
-var React = require("react");
+var React = __importStar(require("react"));
const HelloWorld = () => React.createElement("h1", null, "Hello world");
exports.HelloWorld = HelloWorld;
exports.frag = React.createElement(React.Fragment, null,
@@ -73,12 +106,45 @@ exports.frag = (0, jsx_dev_runtime_1.jsxDEV)(jsx_dev_runtime_1.Fragment, { child
exports.selfClosing = (0, jsx_dev_runtime_1.jsxDEV)("img", { src: "./image.png" }, void 0, false, { fileName: _jsxFileName, lineNumber: 6, columnNumber: 27 }, this);
//// [four.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.selfClosing = exports.frag = exports.HelloWorld = void 0;
///
/* @jsxRuntime automatic */
/* @jsxRuntime classic */
-var React = require("react");
+var React = __importStar(require("react"));
const HelloWorld = () => React.createElement("h1", null, "Hello world");
exports.HelloWorld = HelloWorld;
exports.frag = React.createElement(React.Fragment, null,
@@ -86,9 +152,42 @@ exports.frag = React.createElement(React.Fragment, null,
exports.selfClosing = React.createElement("img", { src: "./image.png" });
//// [index.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.four = exports.three = exports.two = exports.one = void 0;
-exports.one = require("./one.js");
-exports.two = require("./two.js");
-exports.three = require("./three.js");
-exports.four = require("./four.js");
+exports.one = __importStar(require("./one.js"));
+exports.two = __importStar(require("./two.js"));
+exports.three = __importStar(require("./three.js"));
+exports.four = __importStar(require("./four.js"));
diff --git a/tests/baselines/reference/jsxSpreadFirstUnionNoErrors.js b/tests/baselines/reference/jsxSpreadFirstUnionNoErrors.js
index 0df6e9b8e7a26..a557a085b112c 100644
--- a/tests/baselines/reference/jsxSpreadFirstUnionNoErrors.js
+++ b/tests/baselines/reference/jsxSpreadFirstUnionNoErrors.js
@@ -31,8 +31,11 @@ var __assign = (this && this.__assign) || function () {
};
return __assign.apply(this, arguments);
};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
Object.defineProperty(exports, "__esModule", { value: true });
-var react_1 = require("react");
+var react_1 = __importDefault(require("react"));
const Info = (props) => props.status === "hidden"
? react_1.default.createElement("noscript", null)
: react_1.default.createElement("div", null, props.content);
diff --git a/tests/baselines/reference/jsxViaImport.2.js b/tests/baselines/reference/jsxViaImport.2.js
index 66fe9912e4d7b..e887f316c8e1f 100644
--- a/tests/baselines/reference/jsxViaImport.2.js
+++ b/tests/baselines/reference/jsxViaImport.2.js
@@ -24,9 +24,12 @@ class TestComponent extends React.Component
{
//// [consumer.jsx]
"use strict";
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
Object.defineProperty(exports, "__esModule", { value: true });
///
-var BaseComponent_1 = require("BaseComponent");
+var BaseComponent_1 = __importDefault(require("BaseComponent"));
class TestComponent extends React.Component {
render() {
return ;
diff --git a/tests/baselines/reference/keepImportsInDts1.errors.txt b/tests/baselines/reference/keepImportsInDts1.errors.txt
new file mode 100644
index 0000000000000..f97a0bc46f547
--- /dev/null
+++ b/tests/baselines/reference/keepImportsInDts1.errors.txt
@@ -0,0 +1,8 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== c:/test.d.ts (0 errors) ====
+ export {};
+==== c:/app/main.ts (0 errors) ====
+ import "test"
\ No newline at end of file
diff --git a/tests/baselines/reference/keepImportsInDts2.errors.txt b/tests/baselines/reference/keepImportsInDts2.errors.txt
new file mode 100644
index 0000000000000..5d2e2145509e0
--- /dev/null
+++ b/tests/baselines/reference/keepImportsInDts2.errors.txt
@@ -0,0 +1,8 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== folder/test.ts (0 errors) ====
+ export {};
+==== main.ts (0 errors) ====
+ import "./folder/test"
\ No newline at end of file
diff --git a/tests/baselines/reference/keepImportsInDts3.errors.txt b/tests/baselines/reference/keepImportsInDts3.errors.txt
new file mode 100644
index 0000000000000..ab575337fb28a
--- /dev/null
+++ b/tests/baselines/reference/keepImportsInDts3.errors.txt
@@ -0,0 +1,9 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== c:/test.ts (0 errors) ====
+ export {};
+==== c:/app/main.ts (0 errors) ====
+ import "test"
+
\ No newline at end of file
diff --git a/tests/baselines/reference/keepImportsInDts4.errors.txt b/tests/baselines/reference/keepImportsInDts4.errors.txt
new file mode 100644
index 0000000000000..1fc5e4d5f136a
--- /dev/null
+++ b/tests/baselines/reference/keepImportsInDts4.errors.txt
@@ -0,0 +1,9 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== folder/test.ts (0 errors) ====
+ export {};
+==== main.ts (0 errors) ====
+ import "./folder/test"
+
\ No newline at end of file
diff --git a/tests/baselines/reference/keyofModuleObjectHasCorrectKeys.js b/tests/baselines/reference/keyofModuleObjectHasCorrectKeys.js
index 17e01e6a40fca..0ff6fc8623243 100644
--- a/tests/baselines/reference/keyofModuleObjectHasCorrectKeys.js
+++ b/tests/baselines/reference/keyofModuleObjectHasCorrectKeys.js
@@ -22,6 +22,39 @@ function add(a, b) {
}
//// [test.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
-var example = require("./example");
+var example = __importStar(require("./example"));
test(example, "default");
diff --git a/tests/baselines/reference/labeledStatementExportDeclarationNoCrash1(module=system).errors.txt b/tests/baselines/reference/labeledStatementExportDeclarationNoCrash1(module=system).errors.txt
index c82821c21e508..3f04b2a944f07 100644
--- a/tests/baselines/reference/labeledStatementExportDeclarationNoCrash1(module=system).errors.txt
+++ b/tests/baselines/reference/labeledStatementExportDeclarationNoCrash1(module=system).errors.txt
@@ -1,8 +1,10 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
labeledStatementExportDeclarationNoCrash1.ts(3,14): error TS1155: 'const' declarations must be initialized.
labeledStatementExportDeclarationNoCrash1.ts(5,1): error TS1184: Modifiers cannot appear here.
labeledStatementExportDeclarationNoCrash1.ts(5,14): error TS1155: 'const' declarations must be initialized.
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== labeledStatementExportDeclarationNoCrash1.ts (3 errors) ====
// https://github.com/microsoft/TypeScript/issues/59372
diff --git a/tests/baselines/reference/legacyNodeModulesExportsSpecifierGenerationConditions.js b/tests/baselines/reference/legacyNodeModulesExportsSpecifierGenerationConditions.js
index a7585b517f9d5..afc7fbeff1c6b 100644
--- a/tests/baselines/reference/legacyNodeModulesExportsSpecifierGenerationConditions.js
+++ b/tests/baselines/reference/legacyNodeModulesExportsSpecifierGenerationConditions.js
@@ -33,6 +33,39 @@ export interface Thing {} // not exported in export map, inaccessible under new
//// [index.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
@@ -44,5 +77,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.a = void 0;
-const a = () => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(function () { return require("inner"); })).x(); });
+const a = () => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(function () { return __importStar(require("inner")); })).x(); });
exports.a = a;
diff --git a/tests/baselines/reference/libReferenceDeclarationEmitBundle.errors.txt b/tests/baselines/reference/libReferenceDeclarationEmitBundle.errors.txt
new file mode 100644
index 0000000000000..35581620421d6
--- /dev/null
+++ b/tests/baselines/reference/libReferenceDeclarationEmitBundle.errors.txt
@@ -0,0 +1,12 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== file1.ts (0 errors) ====
+ ///
+ export declare const elem: HTMLElement;
+
+==== file2.ts (0 errors) ====
+ ///
+ export {}
+ declare const elem: HTMLElement;
\ No newline at end of file
diff --git a/tests/baselines/reference/libReferenceNoLibBundle.errors.txt b/tests/baselines/reference/libReferenceNoLibBundle.errors.txt
new file mode 100644
index 0000000000000..2f82acb2c125b
--- /dev/null
+++ b/tests/baselines/reference/libReferenceNoLibBundle.errors.txt
@@ -0,0 +1,20 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== fakelib.ts (0 errors) ====
+ interface Object { }
+ interface Array { }
+ interface String { }
+ interface Boolean { }
+ interface Number { }
+ interface Function { }
+ interface RegExp { }
+ interface IArguments { }
+
+
+==== file1.ts (0 errors) ====
+ ///
+ export declare interface HTMLElement { field: string; }
+ export const elem: HTMLElement = { field: 'a' };
+
\ No newline at end of file
diff --git a/tests/baselines/reference/memberAccessMustUseModuleInstances.errors.txt b/tests/baselines/reference/memberAccessMustUseModuleInstances.errors.txt
new file mode 100644
index 0000000000000..ab36e8b411a4a
--- /dev/null
+++ b/tests/baselines/reference/memberAccessMustUseModuleInstances.errors.txt
@@ -0,0 +1,17 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== memberAccessMustUseModuleInstances_1.ts (0 errors) ====
+ ///
+ import WinJS = require('memberAccessMustUseModuleInstances_0');
+
+ WinJS.Promise.timeout(10);
+
+==== memberAccessMustUseModuleInstances_0.ts (0 errors) ====
+ export class Promise {
+ static timeout(delay: number): Promise {
+ return null;
+ }
+ }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/mergedDeclarations6.errors.txt b/tests/baselines/reference/mergedDeclarations6.errors.txt
new file mode 100644
index 0000000000000..cea7df9f75504
--- /dev/null
+++ b/tests/baselines/reference/mergedDeclarations6.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== a.ts (0 errors) ====
+ export class A {
+ protected protected: any;
+
+ protected setProtected(val: any) {
+ this.protected = val;
+ }
+ }
+
+==== b.ts (0 errors) ====
+ import {A} from './a';
+
+ declare module "./a" {
+ interface A { }
+ }
+
+ export class B extends A {
+ protected setProtected() {
+
+ }
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/mergedDeclarations6.types b/tests/baselines/reference/mergedDeclarations6.types
index 9cc38a99f3dad..5962489ce7a2c 100644
--- a/tests/baselines/reference/mergedDeclarations6.types
+++ b/tests/baselines/reference/mergedDeclarations6.types
@@ -7,20 +7,25 @@ export class A {
protected protected: any;
>protected : any
+> : ^^^
protected setProtected(val: any) {
>setProtected : (val: any) => void
> : ^ ^^ ^^^^^^^^^
>val : any
+> : ^^^
this.protected = val;
>this.protected = val : any
+> : ^^^
>this.protected : any
+> : ^^^
>this : this
> : ^^^^
>protected : any
> : ^^^
>val : any
+> : ^^^
}
}
diff --git a/tests/baselines/reference/mergedDeclarations7.js b/tests/baselines/reference/mergedDeclarations7.js
index 3f332d2d356c5..0c99d5300b74c 100644
--- a/tests/baselines/reference/mergedDeclarations7.js
+++ b/tests/baselines/reference/mergedDeclarations7.js
@@ -24,6 +24,39 @@ let p: Passport = passport.use();
//// [test.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
-var passport = require("passport");
+var passport = __importStar(require("passport"));
let p = passport.use();
diff --git a/tests/baselines/reference/moduleAliasAsFunctionArgument.errors.txt b/tests/baselines/reference/moduleAliasAsFunctionArgument.errors.txt
new file mode 100644
index 0000000000000..df4a18a2ed0ee
--- /dev/null
+++ b/tests/baselines/reference/moduleAliasAsFunctionArgument.errors.txt
@@ -0,0 +1,17 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== moduleAliasAsFunctionArgument_1.ts (0 errors) ====
+ ///
+ import a = require('moduleAliasAsFunctionArgument_0');
+
+ function fn(arg: { x: number }) {
+ }
+
+ a.x; // OK
+ fn(a); // Error: property 'x' is missing from 'a'
+
+==== moduleAliasAsFunctionArgument_0.ts (0 errors) ====
+ export var x: number;
+
\ No newline at end of file
diff --git a/tests/baselines/reference/moduleAugmentationCollidingNamesInAugmentation1.errors.txt b/tests/baselines/reference/moduleAugmentationCollidingNamesInAugmentation1.errors.txt
new file mode 100644
index 0000000000000..ab7230781a1f1
--- /dev/null
+++ b/tests/baselines/reference/moduleAugmentationCollidingNamesInAugmentation1.errors.txt
@@ -0,0 +1,35 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== map1.ts (0 errors) ====
+ import { Observable } from "./observable"
+
+ (Observable.prototype).map = function() { }
+
+ declare module "./observable" {
+ interface I {x0}
+ }
+
+==== map2.ts (0 errors) ====
+ import { Observable } from "./observable"
+
+ (Observable.prototype).map = function() { }
+
+ declare module "./observable" {
+ interface I {x1}
+ }
+
+
+==== observable.ts (0 errors) ====
+ export declare class Observable {
+ filter(pred: (e:T) => boolean): Observable;
+ }
+
+==== main.ts (0 errors) ====
+ import { Observable } from "./observable"
+ import "./map1";
+ import "./map2";
+
+ let x: Observable;
+
\ No newline at end of file
diff --git a/tests/baselines/reference/moduleAugmentationCollidingNamesInAugmentation1.types b/tests/baselines/reference/moduleAugmentationCollidingNamesInAugmentation1.types
index ad9049c840c54..5cf30422617b6 100644
--- a/tests/baselines/reference/moduleAugmentationCollidingNamesInAugmentation1.types
+++ b/tests/baselines/reference/moduleAugmentationCollidingNamesInAugmentation1.types
@@ -9,9 +9,11 @@ import { Observable } from "./observable"
>(Observable.prototype).map = function() { } : () => void
> : ^^^^^^^^^^
>(Observable.prototype).map : any
+> : ^^^
>(Observable.prototype) : any
> : ^^^
>Observable.prototype : any
+> : ^^^
>Observable.prototype : Observable
> : ^^^^^^^^^^^^^^^
>Observable : typeof Observable
@@ -29,6 +31,7 @@ declare module "./observable" {
interface I {x0}
>x0 : any
+> : ^^^
}
=== map2.ts ===
@@ -40,9 +43,11 @@ import { Observable } from "./observable"
>(Observable.prototype).map = function() { } : () => void
> : ^^^^^^^^^^
>(Observable.prototype).map : any
+> : ^^^
>(Observable.prototype) : any
> : ^^^
>Observable.prototype : any
+> : ^^^
>Observable.prototype : Observable
> : ^^^^^^^^^^^^^^^
>Observable : typeof Observable
@@ -60,6 +65,7 @@ declare module "./observable" {
interface I {x1}
>x1 : any
+> : ^^^
}
diff --git a/tests/baselines/reference/moduleAugmentationDoesNamespaceEnumMergeOfReexport.js b/tests/baselines/reference/moduleAugmentationDoesNamespaceEnumMergeOfReexport.js
index 31744db418389..14ce8305a950e 100644
--- a/tests/baselines/reference/moduleAugmentationDoesNamespaceEnumMergeOfReexport.js
+++ b/tests/baselines/reference/moduleAugmentationDoesNamespaceEnumMergeOfReexport.js
@@ -50,7 +50,40 @@ Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./file"), exports);
//// [augment.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
-var ns = require("./reexport");
+var ns = __importStar(require("./reexport"));
const g = ns.Root.A;
f.x;
diff --git a/tests/baselines/reference/moduleAugmentationGlobal8.js b/tests/baselines/reference/moduleAugmentationGlobal8.js
index 2b15cca3f095a..6b4db1bd3fdbf 100644
--- a/tests/baselines/reference/moduleAugmentationGlobal8.js
+++ b/tests/baselines/reference/moduleAugmentationGlobal8.js
@@ -10,7 +10,4 @@ export {}
//// [moduleAugmentationGlobal8.js]
-define(["require", "exports"], function (require, exports) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
-});
+export {};
diff --git a/tests/baselines/reference/moduleAugmentationGlobal8_1.js b/tests/baselines/reference/moduleAugmentationGlobal8_1.js
index c4de5018bf775..66a7d16991c4d 100644
--- a/tests/baselines/reference/moduleAugmentationGlobal8_1.js
+++ b/tests/baselines/reference/moduleAugmentationGlobal8_1.js
@@ -10,7 +10,4 @@ export {}
//// [moduleAugmentationGlobal8_1.js]
-define(["require", "exports"], function (require, exports) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
-});
+export {};
diff --git a/tests/baselines/reference/moduleAugmentationsBundledOutput1.errors.txt b/tests/baselines/reference/moduleAugmentationsBundledOutput1.errors.txt
new file mode 100644
index 0000000000000..a45ae85babde3
--- /dev/null
+++ b/tests/baselines/reference/moduleAugmentationsBundledOutput1.errors.txt
@@ -0,0 +1,57 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export class Cls {
+ }
+
+==== m2.ts (0 errors) ====
+ import {Cls} from "./m1";
+ (Cls.prototype).foo = function() { return 1; };
+ (Cls.prototype).bar = function() { return "1"; };
+
+ declare module "./m1" {
+ interface Cls {
+ foo(): number;
+ }
+ }
+
+ declare module "./m1" {
+ interface Cls {
+ bar(): string;
+ }
+ }
+
+==== m3.ts (0 errors) ====
+ export class C1 { x: number }
+ export class C2 { x: string }
+
+==== m4.ts (0 errors) ====
+ import {Cls} from "./m1";
+ import {C1, C2} from "./m3";
+ (Cls.prototype).baz1 = function() { return undefined };
+ (Cls.prototype).baz2 = function() { return undefined };
+
+ declare module "./m1" {
+ interface Cls {
+ baz1(): C1;
+ }
+ }
+
+ declare module "./m1" {
+ interface Cls {
+ baz2(): C2;
+ }
+ }
+
+==== test.ts (0 errors) ====
+ import { Cls } from "./m1";
+ import "m2";
+ import "m4";
+ let c: Cls;
+ c.foo().toExponential();
+ c.bar().toLowerCase();
+ c.baz1().x.toExponential();
+ c.baz2().x.toLowerCase();
+
\ No newline at end of file
diff --git a/tests/baselines/reference/moduleAugmentationsBundledOutput1.types b/tests/baselines/reference/moduleAugmentationsBundledOutput1.types
index 5af7b27038a40..665aff9a89ab8 100644
--- a/tests/baselines/reference/moduleAugmentationsBundledOutput1.types
+++ b/tests/baselines/reference/moduleAugmentationsBundledOutput1.types
@@ -15,9 +15,11 @@ import {Cls} from "./m1";
>(Cls.prototype).foo = function() { return 1; } : () => number
> : ^^^^^^^^^^^^
>(Cls.prototype).foo : any
+> : ^^^
>(Cls.prototype) : any
> : ^^^
>Cls.prototype : any
+> : ^^^
>Cls.prototype : Cls
> : ^^^
>Cls : typeof Cls
@@ -35,9 +37,11 @@ import {Cls} from "./m1";
>(Cls.prototype).bar = function() { return "1"; } : () => string
> : ^^^^^^^^^^^^
>(Cls.prototype).bar : any
+> : ^^^
>(Cls.prototype) : any
> : ^^^
>Cls.prototype : any
+> : ^^^
>Cls.prototype : Cls
> : ^^^
>Cls : typeof Cls
@@ -101,9 +105,11 @@ import {C1, C2} from "./m3";
>(Cls.prototype).baz1 = function() { return undefined } : () => any
> : ^^^^^^^^^
>(Cls.prototype).baz1 : any
+> : ^^^
>(Cls.prototype) : any
> : ^^^
>Cls.prototype : any
+> : ^^^
>Cls.prototype : Cls
> : ^^^
>Cls : typeof Cls
@@ -121,9 +127,11 @@ import {C1, C2} from "./m3";
>(Cls.prototype).baz2 = function() { return undefined } : () => any
> : ^^^^^^^^^
>(Cls.prototype).baz2 : any
+> : ^^^
>(Cls.prototype) : any
> : ^^^
>Cls.prototype : any
+> : ^^^
>Cls.prototype : Cls
> : ^^^
>Cls : typeof Cls
diff --git a/tests/baselines/reference/moduleAugmentationsImports1.errors.txt b/tests/baselines/reference/moduleAugmentationsImports1.errors.txt
new file mode 100644
index 0000000000000..eddd60c92f3de
--- /dev/null
+++ b/tests/baselines/reference/moduleAugmentationsImports1.errors.txt
@@ -0,0 +1,45 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== a.ts (0 errors) ====
+ export class A {}
+
+==== b.ts (0 errors) ====
+ export class B {x: number;}
+
+==== c.d.ts (0 errors) ====
+ declare module "C" {
+ class Cls {y: string; }
+ }
+
+==== d.ts (0 errors) ====
+ ///
+
+ import {A} from "./a";
+ import {B} from "./b";
+ import {Cls} from "C";
+
+ A.prototype.getB = function () { return undefined; }
+ A.prototype.getCls = function () { return undefined; }
+
+ declare module "./a" {
+ interface A {
+ getB(): B;
+ }
+ }
+
+ declare module "./a" {
+ interface A {
+ getCls(): Cls;
+ }
+ }
+
+==== main.ts (0 errors) ====
+ import {A} from "./a";
+ import "d";
+
+ let a: A;
+ let b = a.getB().x.toFixed();
+ let c = a.getCls().y.toLowerCase();
+
\ No newline at end of file
diff --git a/tests/baselines/reference/moduleAugmentationsImports2.errors.txt b/tests/baselines/reference/moduleAugmentationsImports2.errors.txt
new file mode 100644
index 0000000000000..230be8a692bf6
--- /dev/null
+++ b/tests/baselines/reference/moduleAugmentationsImports2.errors.txt
@@ -0,0 +1,50 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== a.ts (0 errors) ====
+ export class A {}
+
+==== b.ts (0 errors) ====
+ export class B {x: number;}
+
+==== c.d.ts (0 errors) ====
+ declare module "C" {
+ class Cls {y: string; }
+ }
+
+==== d.ts (0 errors) ====
+ ///
+
+ import {A} from "./a";
+ import {B} from "./b";
+
+ A.prototype.getB = function () { return undefined; }
+
+ declare module "./a" {
+ interface A {
+ getB(): B;
+ }
+ }
+
+==== e.ts (0 errors) ====
+ import {A} from "./a";
+ import {Cls} from "C";
+
+ A.prototype.getCls = function () { return undefined; }
+
+ declare module "./a" {
+ interface A {
+ getCls(): Cls;
+ }
+ }
+
+==== main.ts (0 errors) ====
+ import {A} from "./a";
+ import "d";
+ import "e";
+
+ let a: A;
+ let b = a.getB().x.toFixed();
+ let c = a.getCls().y.toLowerCase();
+
\ No newline at end of file
diff --git a/tests/baselines/reference/moduleAugmentationsImports3.errors.txt b/tests/baselines/reference/moduleAugmentationsImports3.errors.txt
new file mode 100644
index 0000000000000..bdce32fc03a65
--- /dev/null
+++ b/tests/baselines/reference/moduleAugmentationsImports3.errors.txt
@@ -0,0 +1,49 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== main.ts (0 errors) ====
+ ///
+ import {A} from "./a";
+ import "D";
+ import "e";
+
+ let a: A;
+ let b = a.getB().x.toFixed();
+ let c = a.getCls().y.toLowerCase();
+
+==== a.ts (0 errors) ====
+ export class A {}
+
+==== b.ts (0 errors) ====
+ export class B {x: number;}
+
+==== c.d.ts (0 errors) ====
+ declare module "C" {
+ class Cls {y: string; }
+ }
+
+==== d.d.ts (0 errors) ====
+ declare module "D" {
+ import {A} from "a";
+ import {B} from "b";
+ module "a" {
+ interface A {
+ getB(): B;
+ }
+ }
+ }
+
+==== e.ts (0 errors) ====
+ ///
+ import {A} from "./a";
+ import {Cls} from "C";
+
+ A.prototype.getCls = function () { return undefined; }
+
+ declare module "./a" {
+ interface A {
+ getCls(): Cls;
+ }
+ }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/moduleAugmentationsImports4.errors.txt b/tests/baselines/reference/moduleAugmentationsImports4.errors.txt
new file mode 100644
index 0000000000000..f2647f4fc4f1c
--- /dev/null
+++ b/tests/baselines/reference/moduleAugmentationsImports4.errors.txt
@@ -0,0 +1,50 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== main.ts (0 errors) ====
+ ///
+ ///
+ import {A} from "./a";
+ import "D";
+ import "E";
+
+ let a: A;
+ let b = a.getB().x.toFixed();
+ let c = a.getCls().y.toLowerCase();
+
+==== a.ts (0 errors) ====
+ export class A {}
+
+==== b.ts (0 errors) ====
+ export class B {x: number;}
+
+==== c.d.ts (0 errors) ====
+ declare module "C" {
+ class Cls {y: string; }
+ }
+
+==== d.d.ts (0 errors) ====
+ declare module "D" {
+ import {A} from "a";
+ import {B} from "b";
+ module "a" {
+ interface A {
+ getB(): B;
+ }
+ }
+ }
+
+==== e.d.ts (0 errors) ====
+ ///
+ declare module "E" {
+ import {A} from "a";
+ import {Cls} from "C";
+
+ module "a" {
+ interface A {
+ getCls(): Cls;
+ }
+ }
+ }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/moduleExportAliasImported.types b/tests/baselines/reference/moduleExportAliasImported.types
index d6a765c755544..5b05aacaf5bfc 100644
--- a/tests/baselines/reference/moduleExportAliasImported.types
+++ b/tests/baselines/reference/moduleExportAliasImported.types
@@ -31,8 +31,8 @@ module.exports = alias
=== importer.js ===
import('./bug28014')
->import('./bug28014') : Promise<{ (): void; version: 1; }>
-> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+>import('./bug28014') : Promise<{ version: 1; default: { (): void; version: 1; }; }>
+> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>'./bug28014' : "./bug28014"
> : ^^^^^^^^^^^^
diff --git a/tests/baselines/reference/moduleExports1.errors.txt b/tests/baselines/reference/moduleExports1.errors.txt
index 299a23e0e3243..94e406a31318e 100644
--- a/tests/baselines/reference/moduleExports1.errors.txt
+++ b/tests/baselines/reference/moduleExports1.errors.txt
@@ -1,9 +1,27 @@
-moduleExports1.ts(13,6): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
-moduleExports1.ts(13,22): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
+moduleExports1.ts(1,1): error TS1185: Merge conflict marker encountered.
+moduleExports1.ts(3,1): error TS1185: Merge conflict marker encountered.
+moduleExports1.ts(5,1): error TS1185: Merge conflict marker encountered.
+moduleExports1.ts(7,1): error TS1185: Merge conflict marker encountered.
+moduleExports1.ts(19,6): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
+moduleExports1.ts(19,22): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
-==== moduleExports1.ts (2 errors) ====
+==== moduleExports1.ts (6 errors) ====
+ <<<<<<< HEAD
+ ~~~~~~~
+!!! error TS1185: Merge conflict marker encountered.
export module TypeScript.Strasse.Street {
+ ||||||| parent of 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669))
+ ~~~~~~~
+!!! error TS1185: Merge conflict marker encountered.
+ export namespace TypeScript.Strasse.Street {
+ =======
+ ~~~~~~~
+!!! error TS1185: Merge conflict marker encountered.
+ export namespace TypeScript.Strasse.Street {
+ >>>>>>> 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669))
+ ~~~~~~~
+!!! error TS1185: Merge conflict marker encountered.
export class Rue {
public address:string;
}
diff --git a/tests/baselines/reference/moduleExports1.js b/tests/baselines/reference/moduleExports1.js
index f2d4058514615..f9c8c95e11995 100644
--- a/tests/baselines/reference/moduleExports1.js
+++ b/tests/baselines/reference/moduleExports1.js
@@ -1,7 +1,13 @@
//// [tests/cases/compiler/moduleExports1.ts] ////
//// [moduleExports1.ts]
+<<<<<<< HEAD
export module TypeScript.Strasse.Street {
+||||||| parent of 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669))
+export namespace TypeScript.Strasse.Street {
+=======
+export namespace TypeScript.Strasse.Street {
+>>>>>>> 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669))
export class Rue {
public address:string;
}
@@ -16,25 +22,23 @@ void 0;
if (!module.exports) module.exports = "";
//// [moduleExports1.js]
-define(["require", "exports"], function (require, exports) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.TypeScript = void 0;
- var TypeScript;
- (function (TypeScript) {
- var Strasse;
- (function (Strasse) {
- var Street;
- (function (Street) {
- class Rue {
- }
- Street.Rue = Rue;
- })(Street = Strasse.Street || (Strasse.Street = {}));
- })(Strasse = TypeScript.Strasse || (TypeScript.Strasse = {}));
- })(TypeScript || (exports.TypeScript = TypeScript = {}));
- var rue = new TypeScript.Strasse.Street.Rue();
- rue.address = "1 Main Street";
- void 0;
- if (!module.exports)
- module.exports = "";
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.TypeScript = void 0;
+var TypeScript;
+(function (TypeScript) {
+ var Strasse;
+ (function (Strasse) {
+ var Street;
+ (function (Street) {
+ class Rue {
+ }
+ Street.Rue = Rue;
+ })(Street = Strasse.Street || (Strasse.Street = {}));
+ })(Strasse = TypeScript.Strasse || (TypeScript.Strasse = {}));
+})(TypeScript || (exports.TypeScript = TypeScript = {}));
+var rue = new TypeScript.Strasse.Street.Rue();
+rue.address = "1 Main Street";
+void 0;
+if (!module.exports)
+ module.exports = "";
diff --git a/tests/baselines/reference/moduleExports1.symbols b/tests/baselines/reference/moduleExports1.symbols
index b0c54318c3d14..7a861a27b15df 100644
--- a/tests/baselines/reference/moduleExports1.symbols
+++ b/tests/baselines/reference/moduleExports1.symbols
@@ -1,33 +1,39 @@
//// [tests/cases/compiler/moduleExports1.ts] ////
=== moduleExports1.ts ===
+<<<<<<< HEAD
export module TypeScript.Strasse.Street {
>TypeScript : Symbol(TypeScript, Decl(moduleExports1.ts, 0, 0))
->Strasse : Symbol(Strasse, Decl(moduleExports1.ts, 0, 25))
->Street : Symbol(Street, Decl(moduleExports1.ts, 0, 33))
+>Strasse : Symbol(Strasse, Decl(moduleExports1.ts, 1, 25))
+>Street : Symbol(Street, Decl(moduleExports1.ts, 1, 33))
+||||||| parent of 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669))
+export namespace TypeScript.Strasse.Street {
+=======
+export namespace TypeScript.Strasse.Street {
+>>>>>>> 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669))
export class Rue {
->Rue : Symbol(Rue, Decl(moduleExports1.ts, 0, 41))
+>Rue : Symbol(Rue, Decl(moduleExports1.ts, 1, 41))
public address:string;
->address : Symbol(Rue.address, Decl(moduleExports1.ts, 1, 19))
+>address : Symbol(Rue.address, Decl(moduleExports1.ts, 7, 19))
}
}
var rue = new TypeScript.Strasse.Street.Rue();
->rue : Symbol(rue, Decl(moduleExports1.ts, 6, 3))
->TypeScript.Strasse.Street.Rue : Symbol(TypeScript.Strasse.Street.Rue, Decl(moduleExports1.ts, 0, 41))
->TypeScript.Strasse.Street : Symbol(TypeScript.Strasse.Street, Decl(moduleExports1.ts, 0, 33))
->TypeScript.Strasse : Symbol(TypeScript.Strasse, Decl(moduleExports1.ts, 0, 25))
+>rue : Symbol(rue, Decl(moduleExports1.ts, 12, 3))
+>TypeScript.Strasse.Street.Rue : Symbol(TypeScript.Strasse.Street.Rue, Decl(moduleExports1.ts, 1, 41))
+>TypeScript.Strasse.Street : Symbol(TypeScript.Strasse.Street, Decl(moduleExports1.ts, 1, 33))
+>TypeScript.Strasse : Symbol(TypeScript.Strasse, Decl(moduleExports1.ts, 1, 25))
>TypeScript : Symbol(TypeScript, Decl(moduleExports1.ts, 0, 0))
->Strasse : Symbol(TypeScript.Strasse, Decl(moduleExports1.ts, 0, 25))
->Street : Symbol(TypeScript.Strasse.Street, Decl(moduleExports1.ts, 0, 33))
->Rue : Symbol(TypeScript.Strasse.Street.Rue, Decl(moduleExports1.ts, 0, 41))
+>Strasse : Symbol(TypeScript.Strasse, Decl(moduleExports1.ts, 1, 25))
+>Street : Symbol(TypeScript.Strasse.Street, Decl(moduleExports1.ts, 1, 33))
+>Rue : Symbol(TypeScript.Strasse.Street.Rue, Decl(moduleExports1.ts, 1, 41))
rue.address = "1 Main Street";
->rue.address : Symbol(TypeScript.Strasse.Street.Rue.address, Decl(moduleExports1.ts, 1, 19))
->rue : Symbol(rue, Decl(moduleExports1.ts, 6, 3))
->address : Symbol(TypeScript.Strasse.Street.Rue.address, Decl(moduleExports1.ts, 1, 19))
+>rue.address : Symbol(TypeScript.Strasse.Street.Rue.address, Decl(moduleExports1.ts, 7, 19))
+>rue : Symbol(rue, Decl(moduleExports1.ts, 12, 3))
+>address : Symbol(TypeScript.Strasse.Street.Rue.address, Decl(moduleExports1.ts, 7, 19))
void 0;
diff --git a/tests/baselines/reference/moduleExports1.types b/tests/baselines/reference/moduleExports1.types
index 6aeb420d7ee37..5e9720ea7b3a8 100644
--- a/tests/baselines/reference/moduleExports1.types
+++ b/tests/baselines/reference/moduleExports1.types
@@ -1,6 +1,7 @@
//// [tests/cases/compiler/moduleExports1.ts] ////
=== moduleExports1.ts ===
+<<<<<<< HEAD
export module TypeScript.Strasse.Street {
>TypeScript : typeof TypeScript
> : ^^^^^^^^^^^^^^^^^
@@ -9,6 +10,11 @@ export module TypeScript.Strasse.Street {
>Street : typeof Street
> : ^^^^^^^^^^^^^
+||||||| parent of 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669))
+export namespace TypeScript.Strasse.Street {
+=======
+export namespace TypeScript.Strasse.Street {
+>>>>>>> 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669))
export class Rue {
>Rue : Rue
> : ^^^
diff --git a/tests/baselines/reference/moduleImportedForTypeArgumentPosition.errors.txt b/tests/baselines/reference/moduleImportedForTypeArgumentPosition.errors.txt
new file mode 100644
index 0000000000000..582decfe9ccc2
--- /dev/null
+++ b/tests/baselines/reference/moduleImportedForTypeArgumentPosition.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== moduleImportedForTypeArgumentPosition_1.ts (0 errors) ====
+ /**This is on import declaration*/
+ import M2 = require("moduleImportedForTypeArgumentPosition_0");
+ class C1{ }
+ class Test1 extends C1 {
+ }
+
+==== moduleImportedForTypeArgumentPosition_0.ts (0 errors) ====
+ export interface M2C { }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/moduleMergeConstructor.errors.txt b/tests/baselines/reference/moduleMergeConstructor.errors.txt
new file mode 100644
index 0000000000000..eb50eb679b69b
--- /dev/null
+++ b/tests/baselines/reference/moduleMergeConstructor.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== foo.d.ts (0 errors) ====
+ declare module "foo" {
+ export class Foo {
+ constructor();
+ method1(): any;
+ }
+ }
+
+==== foo-ext.d.ts (0 errors) ====
+ declare module "foo" {
+ export interface Foo {
+ method2(): any;
+ }
+ }
+
+==== index.ts (0 errors) ====
+ import * as foo from "foo";
+
+ class Test {
+ bar: foo.Foo;
+ constructor() {
+ this.bar = new foo.Foo();
+ }
+ }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/moduleMergeConstructor.js b/tests/baselines/reference/moduleMergeConstructor.js
index 011d72b2fce75..905951ffc961c 100644
--- a/tests/baselines/reference/moduleMergeConstructor.js
+++ b/tests/baselines/reference/moduleMergeConstructor.js
@@ -27,9 +27,43 @@ class Test {
//// [index.js]
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
define(["require", "exports", "foo"], function (require, exports, foo) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+ foo = __importStar(foo);
class Test {
constructor() {
this.bar = new foo.Foo();
diff --git a/tests/baselines/reference/moduleNoneDynamicImport(target=es2015).errors.txt b/tests/baselines/reference/moduleNoneDynamicImport(target=es2015).errors.txt
new file mode 100644
index 0000000000000..506f5a57da502
--- /dev/null
+++ b/tests/baselines/reference/moduleNoneDynamicImport(target=es2015).errors.txt
@@ -0,0 +1,10 @@
+error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== /a.ts (0 errors) ====
+ const foo = import("./b");
+
+==== /b.js (0 errors) ====
+ export default 1;
+
\ No newline at end of file
diff --git a/tests/baselines/reference/moduleNoneDynamicImport(target=es2015).js b/tests/baselines/reference/moduleNoneDynamicImport(target=es2015).js
index e112ffae2889c..44c04563b1c64 100644
--- a/tests/baselines/reference/moduleNoneDynamicImport(target=es2015).js
+++ b/tests/baselines/reference/moduleNoneDynamicImport(target=es2015).js
@@ -8,4 +8,37 @@ export default 1;
//// [a.js]
-const foo = Promise.resolve().then(() => require("b"));
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
+const foo = Promise.resolve().then(() => __importStar(require("b")));
diff --git a/tests/baselines/reference/moduleNoneDynamicImport(target=es2020).errors.txt b/tests/baselines/reference/moduleNoneDynamicImport(target=es2020).errors.txt
new file mode 100644
index 0000000000000..506f5a57da502
--- /dev/null
+++ b/tests/baselines/reference/moduleNoneDynamicImport(target=es2020).errors.txt
@@ -0,0 +1,10 @@
+error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== /a.ts (0 errors) ====
+ const foo = import("./b");
+
+==== /b.js (0 errors) ====
+ export default 1;
+
\ No newline at end of file
diff --git a/tests/baselines/reference/moduleNoneErrors.errors.txt b/tests/baselines/reference/moduleNoneErrors.errors.txt
index 1c79566fe7150..7ff5b8706838c 100644
--- a/tests/baselines/reference/moduleNoneErrors.errors.txt
+++ b/tests/baselines/reference/moduleNoneErrors.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
a.ts(1,14): error TS1148: Cannot use imports, exports, or module augmentations when '--module' is 'none'.
+!!! error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== a.ts (1 errors) ====
export class Foo {
~~~
diff --git a/tests/baselines/reference/moduleNoneOutFile.errors.txt b/tests/baselines/reference/moduleNoneOutFile.errors.txt
new file mode 100644
index 0000000000000..12037428e5f2a
--- /dev/null
+++ b/tests/baselines/reference/moduleNoneOutFile.errors.txt
@@ -0,0 +1,8 @@
+error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== first.ts (0 errors) ====
+ class Foo {}
+==== second.ts (0 errors) ====
+ class Bar extends Foo {}
\ No newline at end of file
diff --git a/tests/baselines/reference/modulePrologueAMD.errors.txt b/tests/baselines/reference/modulePrologueAMD.errors.txt
new file mode 100644
index 0000000000000..ed9351bbd350f
--- /dev/null
+++ b/tests/baselines/reference/modulePrologueAMD.errors.txt
@@ -0,0 +1,8 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== modulePrologueAMD.ts (0 errors) ====
+ "use strict";
+
+ export class Foo {}
\ No newline at end of file
diff --git a/tests/baselines/reference/modulePrologueSystem.errors.txt b/tests/baselines/reference/modulePrologueSystem.errors.txt
new file mode 100644
index 0000000000000..4c128553e2f44
--- /dev/null
+++ b/tests/baselines/reference/modulePrologueSystem.errors.txt
@@ -0,0 +1,8 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== modulePrologueSystem.ts (0 errors) ====
+ "use strict";
+
+ export class Foo {}
\ No newline at end of file
diff --git a/tests/baselines/reference/modulePrologueUmd.errors.txt b/tests/baselines/reference/modulePrologueUmd.errors.txt
new file mode 100644
index 0000000000000..70ed6ce2dd894
--- /dev/null
+++ b/tests/baselines/reference/modulePrologueUmd.errors.txt
@@ -0,0 +1,8 @@
+error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== modulePrologueUmd.ts (0 errors) ====
+ "use strict";
+
+ export class Foo {}
\ No newline at end of file
diff --git a/tests/baselines/reference/moduleResolution/same-file-is-referenced-using-absolute-and-relative-names.js b/tests/baselines/reference/moduleResolution/same-file-is-referenced-using-absolute-and-relative-names.js
index 61a7354cee492..7800c822f4a29 100644
--- a/tests/baselines/reference/moduleResolution/same-file-is-referenced-using-absolute-and-relative-names.js
+++ b/tests/baselines/reference/moduleResolution/same-file-is-referenced-using-absolute-and-relative-names.js
@@ -5,4 +5,5 @@
var x
Diagnostics::
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
diff --git a/tests/baselines/reference/moduleResolution/two-files-exist-on-disk-that-differs-only-in-casing.js b/tests/baselines/reference/moduleResolution/two-files-exist-on-disk-that-differs-only-in-casing.js
index 6966f7bd7ddc7..f604a4236ec6d 100644
--- a/tests/baselines/reference/moduleResolution/two-files-exist-on-disk-that-differs-only-in-casing.js
+++ b/tests/baselines/reference/moduleResolution/two-files-exist-on-disk-that-differs-only-in-casing.js
@@ -8,6 +8,7 @@ export var x
export var y
Diagnostics::
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
c.ts(1,17): error TS1261: Already included file name '/a/b/D.ts' differs from file name 'd.ts' only in casing.
The file is in the program because:
Imported via "D" from file 'c.ts'
diff --git a/tests/baselines/reference/moduleResolution/two-files-used-in-program-differ-only-in-casing-(imports).js b/tests/baselines/reference/moduleResolution/two-files-used-in-program-differ-only-in-casing-(imports).js
index 61962b8246048..f48832a77572b 100644
--- a/tests/baselines/reference/moduleResolution/two-files-used-in-program-differ-only-in-casing-(imports).js
+++ b/tests/baselines/reference/moduleResolution/two-files-used-in-program-differ-only-in-casing-(imports).js
@@ -5,6 +5,7 @@ import {x} from "D"
export var x
Diagnostics::
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
c.ts(1,17): error TS1261: Already included file name '/a/b/D.ts' differs from file name 'd.ts' only in casing.
The file is in the program because:
Imported via "D" from file 'c.ts'
diff --git a/tests/baselines/reference/moduleResolution/two-files-used-in-program-differ-only-in-casing-(tripleslash-references).js b/tests/baselines/reference/moduleResolution/two-files-used-in-program-differ-only-in-casing-(tripleslash-references).js
index 8ad1ff74f131c..9983eaff2b6ce 100644
--- a/tests/baselines/reference/moduleResolution/two-files-used-in-program-differ-only-in-casing-(tripleslash-references).js
+++ b/tests/baselines/reference/moduleResolution/two-files-used-in-program-differ-only-in-casing-(tripleslash-references).js
@@ -5,6 +5,7 @@
var x
Diagnostics::
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
c.ts(1,22): error TS1261: Already included file name 'D.ts' differs from file name 'd.ts' only in casing.
The file is in the program because:
Referenced via 'D.ts' from file 'c.ts'
diff --git a/tests/baselines/reference/moduleResolutionPackageIdWithRelativeAndAbsolutePath.errors.txt b/tests/baselines/reference/moduleResolutionPackageIdWithRelativeAndAbsolutePath.errors.txt
new file mode 100644
index 0000000000000..23839775ea15d
--- /dev/null
+++ b/tests/baselines/reference/moduleResolutionPackageIdWithRelativeAndAbsolutePath.errors.txt
@@ -0,0 +1,55 @@
+/project/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
+
+
+==== /project/tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": {
+ "baseUrl": ".",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
+ "paths": {
+ "@shared/*": ["../shared/*"]
+ }
+ },
+ //"files": ["src/app.ts"]
+ }
+==== /project/src/app.ts (0 errors) ====
+ import * as t from "anotherLib"; // Include the lib that recursively includes option as relative module resolution in this directory
+ import { makeSharedOption } from "@shared/lib/app"; // Includes option as module in shared folder but as module in node_modules folder
+
+==== /shared/node_modules/troublesome-lib/package.json (0 errors) ====
+ {
+ "name": "troublesome-lib",
+ "version": "1.17.1"
+ }
+==== /shared/node_modules/troublesome-lib/lib/Compactable.d.ts (0 errors) ====
+ import { Option } from './Option';
+ export class Compactable {
+ option: Option;
+ }
+==== /shared/node_modules/troublesome-lib/lib/Option.d.ts (0 errors) ====
+ export class Option {
+ someProperty: string;
+ }
+==== /shared/lib/app.d.ts (0 errors) ====
+ import { Option } from "troublesome-lib/lib/Option";
+ export class SharedOption extends Option { }
+ export const makeSharedOption: () => SharedOption;
+==== /project/node_modules/anotherLib/index.d.ts (0 errors) ====
+ import { Compactable } from "troublesome-lib/lib/Compactable"; // Including this will resolve Option as relative through the imports of compactable
+==== /project/node_modules/troublesome-lib/package.json (0 errors) ====
+ {
+ "name": "troublesome-lib",
+ "version": "1.17.1"
+ }
+==== /project/node_modules/troublesome-lib/lib/Compactable.d.ts (0 errors) ====
+ import { Option } from './Option';
+ export class Compactable {
+ option: Option;
+ }
+==== /project/node_modules/troublesome-lib/lib/Option.d.ts (0 errors) ====
+ export class Option {
+ someProperty: string;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/moduleResolutionWithExtensions_withPaths.errors.txt b/tests/baselines/reference/moduleResolutionWithExtensions_withPaths.errors.txt
index 2587c1b8e015d..389e538803259 100644
--- a/tests/baselines/reference/moduleResolutionWithExtensions_withPaths.errors.txt
+++ b/tests/baselines/reference/moduleResolutionWithExtensions_withPaths.errors.txt
@@ -1,16 +1,23 @@
+/tsconfig.json(6,3): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
/tsconfig.json(7,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
-==== /tsconfig.json (1 errors) ====
+==== /tsconfig.json (2 errors) ====
{
"compilerOptions": {
"outDir": "lib",
"target": "ES6",
"module": "ES6",
"baseUrl": "/",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
"moduleResolution": "Node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
"noImplicitAny": true,
"traceResolution": true,
"paths": {
diff --git a/tests/baselines/reference/moduleResolutionWithModule(module=commonjs,moduleresolution=node16).js b/tests/baselines/reference/moduleResolutionWithModule(module=commonjs,moduleresolution=node16).js
index e992b995bc517..26acc87112bcc 100644
--- a/tests/baselines/reference/moduleResolutionWithModule(module=commonjs,moduleresolution=node16).js
+++ b/tests/baselines/reference/moduleResolutionWithModule(module=commonjs,moduleresolution=node16).js
@@ -14,6 +14,39 @@ p.thing();
//// [index.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
-var p = require("pkg");
+var p = __importStar(require("pkg"));
p.thing();
diff --git a/tests/baselines/reference/moduleResolutionWithModule(module=commonjs,moduleresolution=nodenext).js b/tests/baselines/reference/moduleResolutionWithModule(module=commonjs,moduleresolution=nodenext).js
index e992b995bc517..26acc87112bcc 100644
--- a/tests/baselines/reference/moduleResolutionWithModule(module=commonjs,moduleresolution=nodenext).js
+++ b/tests/baselines/reference/moduleResolutionWithModule(module=commonjs,moduleresolution=nodenext).js
@@ -14,6 +14,39 @@ p.thing();
//// [index.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
-var p = require("pkg");
+var p = __importStar(require("pkg"));
p.thing();
diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_empty.errors.txt b/tests/baselines/reference/moduleResolutionWithSuffixes_empty.errors.txt
index 5340a556ae601..b1672f87def9b 100644
--- a/tests/baselines/reference/moduleResolutionWithSuffixes_empty.errors.txt
+++ b/tests/baselines/reference/moduleResolutionWithSuffixes_empty.errors.txt
@@ -1,4 +1,5 @@
/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
==== /tsconfig.json (1 errors) ====
@@ -7,6 +8,7 @@
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
"traceResolution": true,
"moduleSuffixes": []
}
diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_notSpecified.errors.txt b/tests/baselines/reference/moduleResolutionWithSuffixes_notSpecified.errors.txt
index 806fe2c84eca2..11f2ee099308e 100644
--- a/tests/baselines/reference/moduleResolutionWithSuffixes_notSpecified.errors.txt
+++ b/tests/baselines/reference/moduleResolutionWithSuffixes_notSpecified.errors.txt
@@ -1,4 +1,5 @@
/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
==== /tsconfig.json (1 errors) ====
@@ -7,6 +8,7 @@
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
"traceResolution": true,
}
}
diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one.errors.txt b/tests/baselines/reference/moduleResolutionWithSuffixes_one.errors.txt
index 38eb8c1d4ecd2..bf1c1f10e3194 100644
--- a/tests/baselines/reference/moduleResolutionWithSuffixes_one.errors.txt
+++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one.errors.txt
@@ -1,4 +1,5 @@
/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
==== /tsconfig.json (1 errors) ====
@@ -7,6 +8,7 @@
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
"traceResolution": true,
"moduleSuffixes": [".ios"]
}
diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_oneBlank.errors.txt b/tests/baselines/reference/moduleResolutionWithSuffixes_oneBlank.errors.txt
index e3997b190cb72..679362960699a 100644
--- a/tests/baselines/reference/moduleResolutionWithSuffixes_oneBlank.errors.txt
+++ b/tests/baselines/reference/moduleResolutionWithSuffixes_oneBlank.errors.txt
@@ -1,4 +1,5 @@
/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
==== /tsconfig.json (1 errors) ====
@@ -7,6 +8,7 @@
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
"traceResolution": true,
"moduleSuffixes": [""]
}
diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_oneNotFound.errors.txt b/tests/baselines/reference/moduleResolutionWithSuffixes_oneNotFound.errors.txt
index 14e951443ce3b..b03a6481f3b00 100644
--- a/tests/baselines/reference/moduleResolutionWithSuffixes_oneNotFound.errors.txt
+++ b/tests/baselines/reference/moduleResolutionWithSuffixes_oneNotFound.errors.txt
@@ -1,4 +1,5 @@
/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
/index.ts(1,21): error TS2307: Cannot find module './foo' or its corresponding type declarations.
@@ -8,6 +9,7 @@
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
"traceResolution": true,
"moduleSuffixes": [".ios"]
}
diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_dirModuleWithIndex.errors.txt b/tests/baselines/reference/moduleResolutionWithSuffixes_one_dirModuleWithIndex.errors.txt
index 0cf6e58012702..5c92db20079b5 100644
--- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_dirModuleWithIndex.errors.txt
+++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_dirModuleWithIndex.errors.txt
@@ -1,4 +1,5 @@
/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
==== /tsconfig.json (1 errors) ====
@@ -7,6 +8,7 @@
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
"traceResolution": true,
"moduleSuffixes": [".ios"]
}
diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule.errors.txt b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule.errors.txt
index 92a701e6a7a32..5e8484ec00b9f 100644
--- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule.errors.txt
+++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule.errors.txt
@@ -1,4 +1,5 @@
/tsconfig.json(6,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
==== /tsconfig.json (1 errors) ====
@@ -10,6 +11,7 @@
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
"traceResolution": true,
"moduleSuffixes": [".ios"]
}
diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModulePath.errors.txt b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModulePath.errors.txt
index 151262113cc3e..dbd53a140ae73 100644
--- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModulePath.errors.txt
+++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModulePath.errors.txt
@@ -1,4 +1,5 @@
/tsconfig.json(6,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
==== /tsconfig.json (1 errors) ====
@@ -10,6 +11,7 @@
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
"traceResolution": true,
"moduleSuffixes": [".ios"]
}
diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule_withPaths.errors.txt b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule_withPaths.errors.txt
index f433b11ed6640..76e8f535eb542 100644
--- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule_withPaths.errors.txt
+++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule_withPaths.errors.txt
@@ -1,7 +1,10 @@
/tsconfig.json(6,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
+/tsconfig.json(9,3): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
-==== /tsconfig.json (1 errors) ====
+==== /tsconfig.json (2 errors) ====
{
"compilerOptions": {
"allowJs": true,
@@ -10,9 +13,13 @@
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
"traceResolution": true,
"moduleSuffixes": [".ios"],
"baseUrl": "/",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
"paths": {
"some-library": ["node_modules/some-library/lib"],
"some-library/*": ["node_modules/some-library/lib/*"]
diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalTSModule.errors.txt b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalTSModule.errors.txt
index a74bab1368f06..45043bb0c4809 100644
--- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalTSModule.errors.txt
+++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalTSModule.errors.txt
@@ -1,4 +1,5 @@
/tsconfig.json(4,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
==== /tsconfig.json (1 errors) ====
@@ -8,6 +9,7 @@
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
"traceResolution": true,
"moduleSuffixes": [".ios"]
}
diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsModule.errors.txt b/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsModule.errors.txt
index fa4fc2da349f2..bc5c802d10c07 100644
--- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsModule.errors.txt
+++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsModule.errors.txt
@@ -1,4 +1,5 @@
/tsconfig.json(6,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
==== /tsconfig.json (1 errors) ====
@@ -10,6 +11,7 @@
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
"traceResolution": true,
"moduleSuffixes": [".ios"]
}
diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsonModule.errors.txt b/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsonModule.errors.txt
index 73a7bf7c6a2bf..8b2c1d5b4ad1d 100644
--- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsonModule.errors.txt
+++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsonModule.errors.txt
@@ -1,4 +1,5 @@
/tsconfig.json(6,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
==== /tsconfig.json (1 errors) ====
@@ -10,6 +11,7 @@
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
"traceResolution": true,
"moduleSuffixes": [".ios"]
}
diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank1.errors.txt b/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank1.errors.txt
index cac9052c8fe0d..b4ca34a3f60c6 100644
--- a/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank1.errors.txt
+++ b/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank1.errors.txt
@@ -1,4 +1,5 @@
/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
==== /tsconfig.json (1 errors) ====
@@ -7,6 +8,7 @@
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
"traceResolution": true,
"moduleSuffixes": ["-ios", "__native", ""]
}
diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank2.errors.txt b/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank2.errors.txt
index 2b642a1d4240f..21f1986086825 100644
--- a/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank2.errors.txt
+++ b/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank2.errors.txt
@@ -1,4 +1,5 @@
/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
==== /tsconfig.json (1 errors) ====
@@ -7,6 +8,7 @@
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
"traceResolution": true,
"moduleSuffixes": ["-ios", "__native", ""]
}
diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank3.errors.txt b/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank3.errors.txt
index 355ed32c08739..cf3c3af3c7ef6 100644
--- a/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank3.errors.txt
+++ b/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank3.errors.txt
@@ -1,4 +1,5 @@
/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
==== /tsconfig.json (1 errors) ====
@@ -7,6 +8,7 @@
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
"traceResolution": true,
"moduleSuffixes": ["-ios", "__native", ""]
}
diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank4.errors.txt b/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank4.errors.txt
index 7e5c6fc204675..c80ae870600d7 100644
--- a/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank4.errors.txt
+++ b/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank4.errors.txt
@@ -1,4 +1,5 @@
/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
/index.ts(1,22): error TS2307: Cannot find module './foo' or its corresponding type declarations.
@@ -8,6 +9,7 @@
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
"traceResolution": true,
"moduleSuffixes": ["-ios", "__native", ""]
}
diff --git a/tests/baselines/reference/moduleResolution_classicPrefersTs.errors.txt b/tests/baselines/reference/moduleResolution_classicPrefersTs.errors.txt
new file mode 100644
index 0000000000000..15dcc5fb668cf
--- /dev/null
+++ b/tests/baselines/reference/moduleResolution_classicPrefersTs.errors.txt
@@ -0,0 +1,13 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== /dir1/dir2/dir3/a.js (0 errors) ====
+ export default "dir1/dir2/dir3/a.js";
+
+==== /dir1/dir2/a.ts (0 errors) ====
+ export default "dir1/dir2/a.ts";
+
+==== /dir1/dir2/dir3/index.ts (0 errors) ====
+ import a from "a";
+
\ No newline at end of file
diff --git a/tests/baselines/reference/multiline.js b/tests/baselines/reference/multiline.js
index 61871b4eb1294..9e46985c14f5d 100644
--- a/tests/baselines/reference/multiline.js
+++ b/tests/baselines/reference/multiline.js
@@ -69,9 +69,42 @@ exports.texts.push(100);
exports.texts.push("100");
//// [b.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.MyComponent = MyComponent;
-var React = require("react");
+var React = __importStar(require("react"));
function MyComponent(props) {
return React.createElement("div", null);
}
diff --git a/tests/baselines/reference/multipleDefaultExports01.js b/tests/baselines/reference/multipleDefaultExports01.js
index 9dd7dc90e71d7..dcd805c0bf70e 100644
--- a/tests/baselines/reference/multipleDefaultExports01.js
+++ b/tests/baselines/reference/multipleDefaultExports01.js
@@ -30,6 +30,9 @@ var x = 10;
exports.default = x;
//// [m2.js]
"use strict";
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
Object.defineProperty(exports, "__esModule", { value: true });
-var m1_1 = require("./m1");
+var m1_1 = __importDefault(require("./m1"));
(0, m1_1.default)();
diff --git a/tests/baselines/reference/multipleDefaultExports02.js b/tests/baselines/reference/multipleDefaultExports02.js
index fbf2a88633f22..063bbaeedeb22 100644
--- a/tests/baselines/reference/multipleDefaultExports02.js
+++ b/tests/baselines/reference/multipleDefaultExports02.js
@@ -25,6 +25,9 @@ function bar() {
}
//// [m2.js]
"use strict";
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
Object.defineProperty(exports, "__esModule", { value: true });
-var m1_1 = require("./m1");
+var m1_1 = __importDefault(require("./m1"));
(0, m1_1.default)();
diff --git a/tests/baselines/reference/namespaceMemberAccess.js b/tests/baselines/reference/namespaceMemberAccess.js
index 1adce4c49e861..eb5f1ca98e862 100644
--- a/tests/baselines/reference/namespaceMemberAccess.js
+++ b/tests/baselines/reference/namespaceMemberAccess.js
@@ -16,7 +16,40 @@ class A {
}
//// [b.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
-var types = require("./a");
+var types = __importStar(require("./a"));
types.A;
const { A } = types;
diff --git a/tests/baselines/reference/narrowedImports.js b/tests/baselines/reference/narrowedImports.js
index cdb21762f5314..714c99059ae41 100644
--- a/tests/baselines/reference/narrowedImports.js
+++ b/tests/baselines/reference/narrowedImports.js
@@ -26,9 +26,42 @@ if (b1) x = b1;
//// [x.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
-var a_1 = require("./a");
-var b0 = require("./b");
+var a_1 = __importStar(require("./a"));
+var b0 = __importStar(require("./b"));
var b1 = require("./b");
let x;
if (a_1.default)
diff --git a/tests/baselines/reference/nestedRedeclarationInES6AMD.errors.txt b/tests/baselines/reference/nestedRedeclarationInES6AMD.errors.txt
new file mode 100644
index 0000000000000..d77ca1b616b35
--- /dev/null
+++ b/tests/baselines/reference/nestedRedeclarationInES6AMD.errors.txt
@@ -0,0 +1,11 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== nestedRedeclarationInES6AMD.ts (0 errors) ====
+ function a() {
+ {
+ let status = 1;
+ status = 2;
+ }
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/newAbstractInstance2.js b/tests/baselines/reference/newAbstractInstance2.js
index c15444061d7d0..d28b3c8929b7b 100644
--- a/tests/baselines/reference/newAbstractInstance2.js
+++ b/tests/baselines/reference/newAbstractInstance2.js
@@ -16,6 +16,9 @@ class default_1 {
exports.default = default_1;
//// [b.js]
"use strict";
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
Object.defineProperty(exports, "__esModule", { value: true });
-var a_1 = require("./a");
+var a_1 = __importDefault(require("./a"));
new a_1.default();
diff --git a/tests/baselines/reference/noBundledEmitFromNodeModules.errors.txt b/tests/baselines/reference/noBundledEmitFromNodeModules.errors.txt
index 7af8f8770a0f1..d6f3865e2b2ee 100644
--- a/tests/baselines/reference/noBundledEmitFromNodeModules.errors.txt
+++ b/tests/baselines/reference/noBundledEmitFromNodeModules.errors.txt
@@ -1,9 +1,11 @@
error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.
error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.
!!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== /a.ts (0 errors) ====
import { C } from "projB";
diff --git a/tests/baselines/reference/noCrashOnImportShadowing.js b/tests/baselines/reference/noCrashOnImportShadowing.js
index 777ca243edfe2..27d00259288c3 100644
--- a/tests/baselines/reference/noCrashOnImportShadowing.js
+++ b/tests/baselines/reference/noCrashOnImportShadowing.js
@@ -33,18 +33,84 @@ exports.zzz = void 0;
exports.zzz = 123;
//// [a.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.B = void 0;
-var B = require("./b");
+var B = __importStar(require("./b"));
exports.B = B;
const x = { x: "" };
B.zzz;
//// [index.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
var a_1 = require("./a");
const x = { x: "" };
a_1.B.zzz;
-var OriginalB = require("./b");
+var OriginalB = __importStar(require("./b"));
OriginalB.zzz;
const y = x;
diff --git a/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile1.errors.txt b/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile1.errors.txt
new file mode 100644
index 0000000000000..693651860fc9d
--- /dev/null
+++ b/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile1.errors.txt
@@ -0,0 +1,7 @@
+error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== 0.d.ts (0 errors) ====
+ export = a;
+ declare var a: number;
\ No newline at end of file
diff --git a/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile2.errors.txt b/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile2.errors.txt
index 1c7d11cc7fa23..7ad4ea8858b04 100644
--- a/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile2.errors.txt
+++ b/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile2.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
1.ts(1,1): error TS1148: Cannot use imports, exports, or module augmentations when '--module' is 'none'.
+!!! error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== 1.ts (1 errors) ====
export var j = "hello"; // error
~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile3.errors.txt b/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile3.errors.txt
index 0a62b57721c02..ba676c872cc92 100644
--- a/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile3.errors.txt
+++ b/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile3.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
1.ts(1,1): error TS1148: Cannot use imports, exports, or module augmentations when '--module' is 'none'.
+!!! error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== 0.d.ts (0 errors) ====
export = a;
declare var a: number;
diff --git a/tests/baselines/reference/noImplicitUseStrict_amd.errors.txt b/tests/baselines/reference/noImplicitUseStrict_amd.errors.txt
index 22b673a5b420c..e7b3c26f924dd 100644
--- a/tests/baselines/reference/noImplicitUseStrict_amd.errors.txt
+++ b/tests/baselines/reference/noImplicitUseStrict_amd.errors.txt
@@ -1,6 +1,8 @@
error TS5102: Option 'noImplicitUseStrict' has been removed. Please remove it from your configuration.
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS5102: Option 'noImplicitUseStrict' has been removed. Please remove it from your configuration.
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== noImplicitUseStrict_amd.ts (0 errors) ====
export var x = 0;
\ No newline at end of file
diff --git a/tests/baselines/reference/noImplicitUseStrict_system.errors.txt b/tests/baselines/reference/noImplicitUseStrict_system.errors.txt
index ecc0908057d97..c2aa7f00a82e7 100644
--- a/tests/baselines/reference/noImplicitUseStrict_system.errors.txt
+++ b/tests/baselines/reference/noImplicitUseStrict_system.errors.txt
@@ -1,6 +1,8 @@
error TS5102: Option 'noImplicitUseStrict' has been removed. Please remove it from your configuration.
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS5102: Option 'noImplicitUseStrict' has been removed. Please remove it from your configuration.
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== noImplicitUseStrict_system.ts (0 errors) ====
export var x = 0;
\ No newline at end of file
diff --git a/tests/baselines/reference/noImplicitUseStrict_umd.errors.txt b/tests/baselines/reference/noImplicitUseStrict_umd.errors.txt
index 98e34e0171f66..97189216236cd 100644
--- a/tests/baselines/reference/noImplicitUseStrict_umd.errors.txt
+++ b/tests/baselines/reference/noImplicitUseStrict_umd.errors.txt
@@ -1,6 +1,8 @@
error TS5102: Option 'noImplicitUseStrict' has been removed. Please remove it from your configuration.
+error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS5102: Option 'noImplicitUseStrict' has been removed. Please remove it from your configuration.
+!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== noImplicitUseStrict_umd.ts (0 errors) ====
export var x = 0;
\ No newline at end of file
diff --git a/tests/baselines/reference/node10AlternateResult_noResolution.errors.txt b/tests/baselines/reference/node10AlternateResult_noResolution.errors.txt
index dee485238c2c4..6d6771036e59e 100644
--- a/tests/baselines/reference/node10AlternateResult_noResolution.errors.txt
+++ b/tests/baselines/reference/node10AlternateResult_noResolution.errors.txt
@@ -1,9 +1,11 @@
error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
/index.ts(1,21): error TS2307: Cannot find module 'pkg' or its corresponding type declarations.
There are types at '/node_modules/pkg/definitely-not-index.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
==== /node_modules/pkg/package.json (0 errors) ====
{
"name": "pkg",
diff --git a/tests/baselines/reference/node10Alternateresult_noTypes.errors.txt b/tests/baselines/reference/node10Alternateresult_noTypes.errors.txt
index 65eca3ffd926d..67cbf1889750b 100644
--- a/tests/baselines/reference/node10Alternateresult_noTypes.errors.txt
+++ b/tests/baselines/reference/node10Alternateresult_noTypes.errors.txt
@@ -1,4 +1,5 @@
error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
error TS6504: File '/node_modules/pkg/untyped.js' is a JavaScript file. Did you mean to enable the 'allowJs' option?
The file is in the program because:
Root file specified for compilation
@@ -7,6 +8,7 @@ error TS6504: File '/node_modules/pkg/untyped.js' is a JavaScript file. Did you
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
!!! error TS6504: File '/node_modules/pkg/untyped.js' is a JavaScript file. Did you mean to enable the 'allowJs' option?
!!! error TS6504: The file is in the program because:
!!! error TS6504: Root file specified for compilation
diff --git a/tests/baselines/reference/node10IsNode_node.errors.txt b/tests/baselines/reference/node10IsNode_node.errors.txt
index c04ca1cadcb61..afc5dad7f74f2 100644
--- a/tests/baselines/reference/node10IsNode_node.errors.txt
+++ b/tests/baselines/reference/node10IsNode_node.errors.txt
@@ -1,7 +1,9 @@
error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
==== /node_modules/fancy-lib/package.json (0 errors) ====
{
"name": "fancy-lib",
diff --git a/tests/baselines/reference/nodeColonModuleResolution.js b/tests/baselines/reference/nodeColonModuleResolution.js
index 40ba92a641ebd..9991001cf4a0a 100644
--- a/tests/baselines/reference/nodeColonModuleResolution.js
+++ b/tests/baselines/reference/nodeColonModuleResolution.js
@@ -26,6 +26,39 @@ console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE)
//// [main.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
-var ph = require("node:ph");
+var ph = __importStar(require("node:ph"));
console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE);
diff --git a/tests/baselines/reference/nodeColonModuleResolution2.js b/tests/baselines/reference/nodeColonModuleResolution2.js
index bbf0729e89776..4ac2ca8c3e69a 100644
--- a/tests/baselines/reference/nodeColonModuleResolution2.js
+++ b/tests/baselines/reference/nodeColonModuleResolution2.js
@@ -21,6 +21,39 @@ console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE)
//// [main.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
-var ph = require("fake:thing");
+var ph = __importStar(require("fake:thing"));
console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE);
diff --git a/tests/baselines/reference/objectIndexer.errors.txt b/tests/baselines/reference/objectIndexer.errors.txt
new file mode 100644
index 0000000000000..2095fa771df5b
--- /dev/null
+++ b/tests/baselines/reference/objectIndexer.errors.txt
@@ -0,0 +1,20 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== objectIndexer.ts (0 errors) ====
+ export interface Callback {
+ (value: any): void;
+ }
+
+ interface IMap {
+ [s: string]: Callback;
+ }
+
+ class Emitter {
+ private listeners: IMap;
+ constructor () {
+ this.listeners = {};
+ }
+ }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/objectIndexer.types b/tests/baselines/reference/objectIndexer.types
index 835bfb70fff40..d67c0922f0793 100644
--- a/tests/baselines/reference/objectIndexer.types
+++ b/tests/baselines/reference/objectIndexer.types
@@ -4,6 +4,7 @@
export interface Callback {
(value: any): void;
>value : any
+> : ^^^
}
interface IMap {
diff --git a/tests/baselines/reference/outFilerootDirModuleNamesAmd.errors.txt b/tests/baselines/reference/outFilerootDirModuleNamesAmd.errors.txt
new file mode 100644
index 0000000000000..757436d42452f
--- /dev/null
+++ b/tests/baselines/reference/outFilerootDirModuleNamesAmd.errors.txt
@@ -0,0 +1,15 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== src/a.ts (0 errors) ====
+ import foo from "./b";
+ export default class Foo {}
+ foo();
+
+==== src/b.ts (0 errors) ====
+ import Foo from "./a";
+ export default function foo() { new Foo(); }
+
+ // https://github.com/microsoft/TypeScript/issues/37429
+ import("./a");
\ No newline at end of file
diff --git a/tests/baselines/reference/outFilerootDirModuleNamesAmd.js b/tests/baselines/reference/outFilerootDirModuleNamesAmd.js
index 478d3b018971c..1b45a14d3f8ea 100644
--- a/tests/baselines/reference/outFilerootDirModuleNamesAmd.js
+++ b/tests/baselines/reference/outFilerootDirModuleNamesAmd.js
@@ -13,17 +13,55 @@ export default function foo() { new Foo(); }
import("./a");
//// [output.js]
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
define("b", ["require", "exports", "a"], function (require, exports, a_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = foo;
+ a_1 = __importDefault(a_1);
function foo() { new a_1.default(); }
// https://github.com/microsoft/TypeScript/issues/37429
- new Promise((resolve_1, reject_1) => { require(["a"], resolve_1, reject_1); });
+ new Promise((resolve_1, reject_1) => { require(["a"], resolve_1, reject_1); }).then(__importStar);
});
define("a", ["require", "exports", "b"], function (require, exports, b_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+ b_1 = __importDefault(b_1);
class Foo {
}
exports.default = Foo;
diff --git a/tests/baselines/reference/outFilerootDirModuleNamesSystem.errors.txt b/tests/baselines/reference/outFilerootDirModuleNamesSystem.errors.txt
new file mode 100644
index 0000000000000..978901f629afd
--- /dev/null
+++ b/tests/baselines/reference/outFilerootDirModuleNamesSystem.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== src/a.ts (0 errors) ====
+ import foo from "./b";
+ export default class Foo {}
+ foo();
+
+==== src/b.ts (0 errors) ====
+ import Foo from "./a";
+ export default function foo() { new Foo(); }
+
+ // https://github.com/microsoft/TypeScript/issues/37429
+ import("./a");
+
\ No newline at end of file
diff --git a/tests/baselines/reference/outModuleConcatAmd.errors.txt b/tests/baselines/reference/outModuleConcatAmd.errors.txt
new file mode 100644
index 0000000000000..bf1bdc018fc57
--- /dev/null
+++ b/tests/baselines/reference/outModuleConcatAmd.errors.txt
@@ -0,0 +1,10 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/a.ts (0 errors) ====
+ export class A { }
+
+==== b.ts (0 errors) ====
+ import {A} from "./ref/a";
+ export class B extends A { }
\ No newline at end of file
diff --git a/tests/baselines/reference/outModuleConcatSystem.errors.txt b/tests/baselines/reference/outModuleConcatSystem.errors.txt
new file mode 100644
index 0000000000000..635a9186a3446
--- /dev/null
+++ b/tests/baselines/reference/outModuleConcatSystem.errors.txt
@@ -0,0 +1,10 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/a.ts (0 errors) ====
+ export class A { }
+
+==== b.ts (0 errors) ====
+ import {A} from "./ref/a";
+ export class B extends A { }
\ No newline at end of file
diff --git a/tests/baselines/reference/outModuleConcatUmd.errors.txt b/tests/baselines/reference/outModuleConcatUmd.errors.txt
index c4a744578f784..142e3121e87af 100644
--- a/tests/baselines/reference/outModuleConcatUmd.errors.txt
+++ b/tests/baselines/reference/outModuleConcatUmd.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/a.ts (0 errors) ====
export class A { }
diff --git a/tests/baselines/reference/outModuleTripleSlashRefs.errors.txt b/tests/baselines/reference/outModuleTripleSlashRefs.errors.txt
new file mode 100644
index 0000000000000..743cc840fe165
--- /dev/null
+++ b/tests/baselines/reference/outModuleTripleSlashRefs.errors.txt
@@ -0,0 +1,32 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/a.ts (0 errors) ====
+ ///
+ export class A {
+ member: typeof GlobalFoo;
+ }
+
+==== ref/b.ts (0 errors) ====
+ ///
+ class Foo {
+ member: Bar;
+ }
+ declare var GlobalFoo: Foo;
+
+==== ref/c.d.ts (0 errors) ====
+ ///
+ declare class Bar {
+ member: Baz;
+ }
+
+==== ref/d.d.ts (0 errors) ====
+ declare class Baz {
+ member: number;
+ }
+
+==== b.ts (0 errors) ====
+ import {A} from "./ref/a";
+ export class B extends A { }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/packageJsonExportsOptionsCompat.errors.txt b/tests/baselines/reference/packageJsonExportsOptionsCompat.errors.txt
index 435349fe337d7..3ff1544aade3e 100644
--- a/tests/baselines/reference/packageJsonExportsOptionsCompat.errors.txt
+++ b/tests/baselines/reference/packageJsonExportsOptionsCompat.errors.txt
@@ -1,12 +1,15 @@
+/tsconfig.json(3,25): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
/tsconfig.json(4,5): error TS5098: Option 'customConditions' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'.
/tsconfig.json(5,5): error TS5098: Option 'resolvePackageJsonExports' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'.
/tsconfig.json(6,5): error TS5098: Option 'resolvePackageJsonImports' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'.
-==== /tsconfig.json (3 errors) ====
+==== /tsconfig.json (4 errors) ====
{
"compilerOptions": {
"moduleResolution": "classic",
+ ~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"customConditions": ["webpack", "browser"],
~~~~~~~~~~~~~~~~~~
!!! error TS5098: Option 'customConditions' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'.
diff --git a/tests/baselines/reference/packageJsonImportsExportsOptionCompat(moduleresolution=classic).errors.txt b/tests/baselines/reference/packageJsonImportsExportsOptionCompat(moduleresolution=classic).errors.txt
index 5d90d36e485be..bc6129833a4db 100644
--- a/tests/baselines/reference/packageJsonImportsExportsOptionCompat(moduleresolution=classic).errors.txt
+++ b/tests/baselines/reference/packageJsonImportsExportsOptionCompat(moduleresolution=classic).errors.txt
@@ -1,8 +1,10 @@
error TS5098: Option 'resolvePackageJsonExports' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'.
error TS5098: Option 'resolvePackageJsonImports' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS5098: Option 'resolvePackageJsonExports' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'.
!!! error TS5098: Option 'resolvePackageJsonImports' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== index.ts (0 errors) ====
\ No newline at end of file
diff --git a/tests/baselines/reference/packageJsonImportsExportsOptionCompat(moduleresolution=node).errors.txt b/tests/baselines/reference/packageJsonImportsExportsOptionCompat(moduleresolution=node).errors.txt
index 4cb493c094bda..d162fe8e327d6 100644
--- a/tests/baselines/reference/packageJsonImportsExportsOptionCompat(moduleresolution=node).errors.txt
+++ b/tests/baselines/reference/packageJsonImportsExportsOptionCompat(moduleresolution=node).errors.txt
@@ -1,10 +1,12 @@
error TS5098: Option 'resolvePackageJsonExports' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'.
error TS5098: Option 'resolvePackageJsonImports' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'.
error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
!!! error TS5098: Option 'resolvePackageJsonExports' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'.
!!! error TS5098: Option 'resolvePackageJsonImports' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'.
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
==== index.ts (0 errors) ====
\ No newline at end of file
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution1_amd.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution1_amd.errors.txt
index 71451c8ef60dd..cbc48cbb0ad9a 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution1_amd.errors.txt
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution1_amd.errors.txt
@@ -1,10 +1,13 @@
+c:/root/tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
c:/root/tsconfig.json(5,17): error TS5090: Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?
c:/root/tsconfig.json(6,17): error TS5090: Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?
-==== c:/root/tsconfig.json (2 errors) ====
+==== c:/root/tsconfig.json (3 errors) ====
{
"compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"paths": {
"*": [
"*",
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution2_classic.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution2_classic.errors.txt
index 3f4b7a24edf25..2576b70838980 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution2_classic.errors.txt
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution2_classic.errors.txt
@@ -1,11 +1,19 @@
+root/tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+root/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
root/tsconfig.json(5,13): error TS5061: Pattern '*1*' can have at most one '*' character.
root/tsconfig.json(5,22): error TS5062: Substitution '*2*' in pattern '*1*' can have at most one '*' character.
-==== root/tsconfig.json (2 errors) ====
+==== root/tsconfig.json (4 errors) ====
{
"compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"baseUrl": "./src",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
"paths": {
"*1*": [ "*2*" ]
~~~~~
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution2_node.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution2_node.errors.txt
index 3f4b7a24edf25..9bf5684ae2246 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution2_node.errors.txt
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution2_node.errors.txt
@@ -1,11 +1,16 @@
+root/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
root/tsconfig.json(5,13): error TS5061: Pattern '*1*' can have at most one '*' character.
root/tsconfig.json(5,22): error TS5062: Substitution '*2*' in pattern '*1*' can have at most one '*' character.
-==== root/tsconfig.json (2 errors) ====
+==== root/tsconfig.json (3 errors) ====
{
"compilerOptions": {
"baseUrl": "./src",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
"paths": {
"*1*": [ "*2*" ]
~~~~~
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution3_classic.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution3_classic.errors.txt
new file mode 100644
index 0000000000000..954947986d00f
--- /dev/null
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution3_classic.errors.txt
@@ -0,0 +1,25 @@
+error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== c:/root/folder1/file1.ts (0 errors) ====
+ import {x} from "folder2/file2"
+ declare function use(a: any): void;
+ use(x.toExponential());
+
+==== c:/root/folder2/file2.ts (0 errors) ====
+ import {x as a} from "./file3" // found with baseurl
+ import {y as b} from "file4" // found with fallback
+ export var x = a + b;
+
+==== c:/root/folder2/file3.ts (0 errors) ====
+ export var x = 1;
+
+==== c:/file4.ts (0 errors) ====
+ export var y = 100;
\ No newline at end of file
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution3_classic.types b/tests/baselines/reference/pathMappingBasedModuleResolution3_classic.types
index 9dd70eaa6a659..f2218da4c56a8 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution3_classic.types
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution3_classic.types
@@ -9,6 +9,7 @@ declare function use(a: any): void;
>use : (a: any) => void
> : ^ ^^ ^^^^^
>a : any
+> : ^^^
use(x.toExponential());
>use(x.toExponential()) : void
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution3_node.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution3_node.errors.txt
new file mode 100644
index 0000000000000..d9ca06c604d8f
--- /dev/null
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution3_node.errors.txt
@@ -0,0 +1,21 @@
+error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
+
+
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
+==== c:/root/folder1/file1.ts (0 errors) ====
+ import {x} from "folder2/file2"
+ declare function use(a: any): void;
+ use(x.toExponential());
+
+==== c:/root/folder2/file2.ts (0 errors) ====
+ import {x as a} from "./file3" // found with baseurl
+ import {y as b} from "file4" // found with fallback
+ export var x = a + b;
+
+==== c:/root/folder2/file3.ts (0 errors) ====
+ export var x = 1;
+
+==== c:/node_modules/file4/index.d.ts (0 errors) ====
+ export var y: number;
\ No newline at end of file
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution3_node.types b/tests/baselines/reference/pathMappingBasedModuleResolution3_node.types
index 33456a972a9db..380f5c4d635bb 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution3_node.types
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution3_node.types
@@ -9,6 +9,7 @@ declare function use(a: any): void;
>use : (a: any) => void
> : ^ ^^ ^^^^^
>a : any
+> : ^^^
use(x.toExponential());
>use(x.toExponential()) : void
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution4_classic.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution4_classic.errors.txt
new file mode 100644
index 0000000000000..e26a99f3bff90
--- /dev/null
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution4_classic.errors.txt
@@ -0,0 +1,35 @@
+c:/root/tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+c:/root/tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+c:/root/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
+
+
+==== c:/root/tsconfig.json (3 errors) ====
+ {
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "baseUrl": "."
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
+ }
+ }
+
+==== c:/root/folder1/file1.ts (0 errors) ====
+ import {x} from "folder2/file2"
+ declare function use(a: any): void;
+ use(x.toExponential());
+
+==== c:/root/folder2/file2.ts (0 errors) ====
+ import {x as a} from "./file3" // found with baseurl
+ import {y as b} from "file4" // found with fallback
+ export var x = a + b;
+
+==== c:/root/folder2/file3.ts (0 errors) ====
+ export var x = 1;
+
+==== c:/file4.ts (0 errors) ====
+ export var y = 100;
\ No newline at end of file
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution4_classic.types b/tests/baselines/reference/pathMappingBasedModuleResolution4_classic.types
index 48feb81a3a3ef..8d0f66acef6a4 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution4_classic.types
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution4_classic.types
@@ -9,6 +9,7 @@ declare function use(a: any): void;
>use : (a: any) => void
> : ^ ^^ ^^^^^
>a : any
+> : ^^^
use(x.toExponential());
>use(x.toExponential()) : void
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution4_node.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution4_node.errors.txt
new file mode 100644
index 0000000000000..775285c2751d1
--- /dev/null
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution4_node.errors.txt
@@ -0,0 +1,29 @@
+c:/root/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
+
+
+==== c:/root/tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": {
+ "baseUrl": "."
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
+ }
+ }
+
+==== c:/root/folder1/file1.ts (0 errors) ====
+ import {x} from "folder2/file2"
+ declare function use(a: any): void;
+ use(x.toExponential());
+
+==== c:/root/folder2/file2.ts (0 errors) ====
+ import {x as a} from "./file3" // found with baseurl
+ import {y as b} from "file4" // found with fallback
+ export var x = a + b;
+
+==== c:/root/folder2/file3.ts (0 errors) ====
+ export var x = 1;
+
+==== c:/node_modules/file4/index.d.ts (0 errors) ====
+ export var y: number;
\ No newline at end of file
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution4_node.types b/tests/baselines/reference/pathMappingBasedModuleResolution4_node.types
index ca6e3d690b0e2..2a73f2d6c321d 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution4_node.types
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution4_node.types
@@ -9,6 +9,7 @@ declare function use(a: any): void;
>use : (a: any) => void
> : ^ ^^ ^^^^^
>a : any
+> : ^^^
use(x.toExponential());
>use(x.toExponential()) : void
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution5_classic.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution5_classic.errors.txt
new file mode 100644
index 0000000000000..21f6617166d4c
--- /dev/null
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution5_classic.errors.txt
@@ -0,0 +1,49 @@
+c:/root/tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+c:/root/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
+
+
+==== c:/root/tsconfig.json (2 errors) ====
+ {
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "baseUrl": ".",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
+ "paths": {
+ "*": [
+ "*",
+ "generated/*"
+ ],
+ "components/*": [
+ "shared/components/*"
+ ]
+ }
+ }
+ }
+==== c:/root/folder1/file1.ts (0 errors) ====
+ import {x} from "folder2/file1"
+ import {y} from "folder3/file2"
+ import {z} from "components/file3"
+ import {z1} from "file4"
+
+ declare function use(a: any): void;
+
+ use(x.toExponential());
+ use(y.toExponential());
+ use(z.toExponential());
+ use(z1.toExponential());
+
+==== c:/root/folder2/file1.ts (0 errors) ====
+ export var x = 1;
+
+==== c:/root/generated/folder3/file2.ts (0 errors) ====
+ export var y = 1;
+
+==== c:/root/shared/components/file3.ts (0 errors) ====
+ export var z = 1;
+
+==== c:/file4.ts (0 errors) ====
+ export var z1 = 1;
\ No newline at end of file
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution5_classic.types b/tests/baselines/reference/pathMappingBasedModuleResolution5_classic.types
index e9296ecf3f3d9..74d04563de98f 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution5_classic.types
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution5_classic.types
@@ -21,6 +21,7 @@ declare function use(a: any): void;
>use : (a: any) => void
> : ^ ^^ ^^^^^
>a : any
+> : ^^^
use(x.toExponential());
>use(x.toExponential()) : void
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution5_node.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.errors.txt
new file mode 100644
index 0000000000000..36ef96f68e118
--- /dev/null
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.errors.txt
@@ -0,0 +1,47 @@
+c:/root/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
+
+
+==== c:/root/tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": {
+ "baseUrl": ".",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
+ "paths": {
+ "*": [
+ "*",
+ "generated/*"
+ ],
+ "components/*": [
+ "shared/components/*"
+ ]
+ }
+ }
+ }
+==== c:/root/folder1/file1.ts (0 errors) ====
+ import {x} from "folder2/file1"
+ import {y} from "folder3/file2"
+ import {z} from "components/file3"
+ import {z1} from "file4"
+
+ declare function use(a: any): void;
+
+ use(x.toExponential());
+ use(y.toExponential());
+ use(z.toExponential());
+ use(z1.toExponential());
+
+==== c:/root/folder2/file1.ts (0 errors) ====
+ export var x = 1;
+
+==== c:/root/generated/folder3/file2.ts (0 errors) ====
+ export var y = 1;
+
+==== c:/root/shared/components/file3/index.d.ts (0 errors) ====
+ export var z: number;
+
+==== c:/node_modules/file4.ts (0 errors) ====
+ export var z1 = 1;
+
\ No newline at end of file
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution5_node.types b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.types
index ce53f71e8d777..ca7f9c11dcaa8 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution5_node.types
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.types
@@ -21,6 +21,7 @@ declare function use(a: any): void;
>use : (a: any) => void
> : ^ ^^ ^^^^^
>a : any
+> : ^^^
use(x.toExponential());
>use(x.toExponential()) : void
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution6_classic.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution6_classic.errors.txt
new file mode 100644
index 0000000000000..23c68b4af9411
--- /dev/null
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution6_classic.errors.txt
@@ -0,0 +1,25 @@
+c:/root/src/tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== c:/root/src/tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "rootDirs": [
+ ".",
+ "../generated/src"
+ ]
+ }
+ }
+
+==== c:/root/src/file1.ts (0 errors) ====
+ import {x} from "./project/file3";
+ declare function use(x: string);
+ use(x.toExponential());
+
+==== c:/root/src/file2.d.ts (0 errors) ====
+ export let x: number;
+
+==== c:/root/generated/src/project/file3.ts (0 errors) ====
+ export {x} from "../file2";
\ No newline at end of file
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution6_classic.types b/tests/baselines/reference/pathMappingBasedModuleResolution6_classic.types
index 2bdb131bb68b1..ec6e6bf5fc670 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution6_classic.types
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution6_classic.types
@@ -13,6 +13,7 @@ declare function use(x: string);
use(x.toExponential());
>use(x.toExponential()) : any
+> : ^^^
>use : (x: string) => any
> : ^ ^^ ^^^^^^^^
>x.toExponential() : string
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution7_classic.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution7_classic.errors.txt
new file mode 100644
index 0000000000000..5508ee7c19e1f
--- /dev/null
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution7_classic.errors.txt
@@ -0,0 +1,57 @@
+c:/root/src/tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+c:/root/src/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
+
+
+==== c:/root/src/tsconfig.json (2 errors) ====
+ {
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "baseUrl": "../",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
+ "paths": {
+ "*": [
+ "*",
+ "c:/shared/*"
+ ],
+ "templates/*": [
+ "generated/src/templates/*"
+ ]
+ },
+ "rootDirs": [
+ ".",
+ "../generated/src"
+ ]
+ }
+ }
+
+==== c:/root/src/file1.ts (0 errors) ====
+ import {x} from "./project/file2";
+ import {y} from "module3";
+
+ declare function use(x: string);
+ use(x.toFixed());
+ use(y.toFixed());
+
+==== c:/root/src/file3.d.ts (0 errors) ====
+ export let x: number;
+
+==== c:/root/generated/src/project/file2.ts (0 errors) ====
+ import {a} from "module1";
+ import {b} from "templates/module2";
+ import {x as c} from "../file3";
+ export let x = a + b + c;
+
+==== c:/shared/module1.d.ts (0 errors) ====
+ export let a: number
+
+==== c:/root/generated/src/templates/module2.ts (0 errors) ====
+ export let b: number;
+
+==== c:/module3.d.ts (0 errors) ====
+ export let y: number;
+
+
\ No newline at end of file
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution7_classic.types b/tests/baselines/reference/pathMappingBasedModuleResolution7_classic.types
index fa6254e61aafb..2914e4a839386 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution7_classic.types
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution7_classic.types
@@ -17,6 +17,7 @@ declare function use(x: string);
use(x.toFixed());
>use(x.toFixed()) : any
+> : ^^^
>use : (x: string) => any
> : ^ ^^ ^^^^^^^^
>x.toFixed() : string
@@ -30,6 +31,7 @@ use(x.toFixed());
use(y.toFixed());
>use(y.toFixed()) : any
+> : ^^^
>use : (x: string) => any
> : ^ ^^ ^^^^^^^^
>y.toFixed() : string
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution7_node.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.errors.txt
new file mode 100644
index 0000000000000..cdfe1c094e96c
--- /dev/null
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.errors.txt
@@ -0,0 +1,54 @@
+c:/root/src/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
+
+
+==== c:/root/src/tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": {
+ "baseUrl": "../",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
+ "paths": {
+ "*": [
+ "*",
+ "c:/shared/*"
+ ],
+ "templates/*": [
+ "generated/src/templates/*"
+ ]
+ },
+ "rootDirs": [
+ ".",
+ "../generated/src"
+ ]
+ }
+ }
+
+==== c:/root/src/file1.ts (0 errors) ====
+ import {x} from "./project/file2";
+ import {y} from "module3";
+
+ declare function use(x: string);
+ use(x.toFixed());
+ use(y.toFixed());
+
+==== c:/root/src/file3/index.d.ts (0 errors) ====
+ export let x: number;
+
+==== c:/root/generated/src/project/file2.ts (0 errors) ====
+ import {a} from "module1";
+ import {b} from "templates/module2";
+ import {x as c} from "../file3";
+ export let x = a + b + c;
+
+==== c:/shared/module1/index.d.ts (0 errors) ====
+ export let a: number
+
+==== c:/root/generated/src/templates/module2.ts (0 errors) ====
+ export let b: number;
+
+==== c:/node_modules/module3.d.ts (0 errors) ====
+ export let y: number;
+
+
\ No newline at end of file
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution7_node.types b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.types
index 476d6bc06ae38..280dca8a6a642 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution7_node.types
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.types
@@ -17,6 +17,7 @@ declare function use(x: string);
use(x.toFixed());
>use(x.toFixed()) : any
+> : ^^^
>use : (x: string) => any
> : ^ ^^ ^^^^^^^^
>x.toFixed() : string
@@ -30,6 +31,7 @@ use(x.toFixed());
use(y.toFixed());
>use(y.toFixed()) : any
+> : ^^^
>use : (x: string) => any
> : ^ ^^ ^^^^^^^^
>y.toFixed() : string
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution8_classic.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution8_classic.errors.txt
new file mode 100644
index 0000000000000..95c012f361034
--- /dev/null
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution8_classic.errors.txt
@@ -0,0 +1,31 @@
+c:/root/tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+c:/root/tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+c:/root/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
+
+
+==== c:/root/tsconfig.json (3 errors) ====
+ {
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "baseUrl": ".",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
+ "paths": {
+ "@speedy/*/testing": [
+ "*/dist/index.ts"
+ ]
+ }
+ }
+ }
+
+==== c:/root/index.ts (0 errors) ====
+ import {x} from "@speedy/folder1/testing"
+
+==== c:/root/folder1/dist/index.ts (0 errors) ====
+ export const x = 1 + 2;
+
\ No newline at end of file
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution8_node.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution8_node.errors.txt
new file mode 100644
index 0000000000000..d5b374cce184c
--- /dev/null
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution8_node.errors.txt
@@ -0,0 +1,25 @@
+c:/root/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
+
+
+==== c:/root/tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": {
+ "baseUrl": ".",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
+ "paths": {
+ "@speedy/*/testing": [
+ "*/dist/index.ts"
+ ]
+ }
+ }
+ }
+
+==== c:/root/index.ts (0 errors) ====
+ import {x} from "@speedy/folder1/testing"
+
+==== c:/root/folder1/dist/index.ts (0 errors) ====
+ export const x = 1 + 2;
+
\ No newline at end of file
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.errors.txt
new file mode 100644
index 0000000000000..e9ee39e9edb06
--- /dev/null
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.errors.txt
@@ -0,0 +1,29 @@
+/root/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
+
+
+==== /root/tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": {
+ "baseUrl": ".",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
+ "paths": {
+ "/*": ["./src/*"]
+ },
+ "allowJs": true,
+ "outDir": "bin"
+ }
+ }
+
+==== /root/src/foo.ts (0 errors) ====
+ export function foo() {}
+
+==== /root/src/bar.js (0 errors) ====
+ export function bar() {}
+
+==== /root/a.ts (0 errors) ====
+ import { foo } from "/foo";
+ import { bar } from "/bar";
+
\ No newline at end of file
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.errors.txt
new file mode 100644
index 0000000000000..35193e23dbe44
--- /dev/null
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.errors.txt
@@ -0,0 +1,53 @@
+/root/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
+
+
+==== /root/tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": {
+ "baseUrl": ".",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
+ "paths": {
+ "/*": ["./src/*"],
+ "c:/*": ["./src/*"],
+ "c:\\*": ["./src/*"],
+ "//server/*": ["./src/*"],
+ "\\\\server\\*": ["./src/*"],
+ "file:///*": ["./src/*"],
+ "file://c:/*": ["./src/*"],
+ "file://server/*": ["./src/*"],
+ "http://server/*": ["./src/*"]
+ },
+ "allowJs": true,
+ "outDir": "bin"
+ }
+ }
+
+==== /root/src/foo.ts (0 errors) ====
+ export function foo() {}
+
+==== /root/src/bar.js (0 errors) ====
+ export function bar() {}
+
+==== /root/a.ts (0 errors) ====
+ import { foo as foo1 } from "/foo";
+ import { bar as bar1 } from "/bar";
+ import { foo as foo2 } from "c:/foo";
+ import { bar as bar2 } from "c:/bar";
+ import { foo as foo3 } from "c:\\foo";
+ import { bar as bar3 } from "c:\\bar";
+ import { foo as foo4 } from "//server/foo";
+ import { bar as bar4 } from "//server/bar";
+ import { foo as foo5 } from "\\\\server\\foo";
+ import { bar as bar5 } from "\\\\server\\bar";
+ import { foo as foo6 } from "file:///foo";
+ import { bar as bar6 } from "file:///bar";
+ import { foo as foo7 } from "file://c:/foo";
+ import { bar as bar7 } from "file://c:/bar";
+ import { foo as foo8 } from "file://server/foo";
+ import { bar as bar8 } from "file://server/bar";
+ import { foo as foo9 } from "http://server/foo";
+ import { bar as bar9 } from "http://server/bar";
+
\ No newline at end of file
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.errors.txt
new file mode 100644
index 0000000000000..360d70103cc2a
--- /dev/null
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.errors.txt
@@ -0,0 +1,30 @@
+/root/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
+
+
+==== /root/tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": {
+ "baseUrl": ".",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
+ "paths": {
+ "/client/*": ["./client/*"],
+ "/import/*": ["./import/*"]
+ },
+ "allowJs": true,
+ "outDir": "bin"
+ }
+ }
+
+==== /root/import/foo.ts (0 errors) ====
+ export function foo() {}
+
+==== /root/client/bar.js (0 errors) ====
+ export function bar() {}
+
+==== /root/src/a.ts (0 errors) ====
+ import { foo } from "/import/foo";
+ import { bar } from "/client/bar";
+
\ No newline at end of file
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.errors.txt
new file mode 100644
index 0000000000000..b1c065299a09f
--- /dev/null
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.errors.txt
@@ -0,0 +1,29 @@
+/root/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
+
+
+==== /root/tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": {
+ "baseUrl": ".",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
+ "paths": {
+ "/*": ["./src/*"]
+ },
+ "allowJs": true,
+ "outDir": "bin"
+ }
+ }
+
+==== /root/a.ts (0 errors) ====
+ import { foo } from "/foo";
+ import { bar } from "/bar";
+
+==== /foo.ts (0 errors) ====
+ export function foo() {}
+
+==== /bar.js (0 errors) ====
+ export function bar() {}
+
\ No newline at end of file
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.errors.txt
new file mode 100644
index 0000000000000..e1c6280515dda
--- /dev/null
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.errors.txt
@@ -0,0 +1,29 @@
+/root/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
+
+
+==== /root/tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": {
+ "baseUrl": ".",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
+ "paths": {
+ "*": ["./src/*"]
+ },
+ "allowJs": true,
+ "outDir": "bin"
+ }
+ }
+
+==== /root/src/foo.ts (0 errors) ====
+ export function foo() {}
+
+==== /root/src/bar.js (0 errors) ====
+ export function bar() {}
+
+==== /root/a.ts (0 errors) ====
+ import { foo } from "/foo";
+ import { bar } from "/bar";
+
\ No newline at end of file
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt
new file mode 100644
index 0000000000000..dd15993906e4e
--- /dev/null
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt
@@ -0,0 +1,29 @@
+/root/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
+
+
+==== /root/tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": {
+ "baseUrl": ".",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
+ "paths": {
+ "*": ["./src/*"]
+ },
+ "allowJs": true,
+ "outDir": "bin"
+ }
+ }
+
+==== /root/a.ts (0 errors) ====
+ import { foo } from "/foo";
+ import { bar } from "/bar";
+
+==== /foo.ts (0 errors) ====
+ export function foo() {}
+
+==== /bar.js (0 errors) ====
+ export function bar() {}
+
\ No newline at end of file
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension.errors.txt
new file mode 100644
index 0000000000000..341bdec92c8b6
--- /dev/null
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension.errors.txt
@@ -0,0 +1,30 @@
+/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
+
+
+==== /tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": {
+ "baseUrl": ".",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
+ "paths": {
+ "foo": ["foo/foo.ts"],
+ "bar": ["bar/bar.js"]
+ },
+ "allowJs": true,
+ "outDir": "bin"
+ }
+ }
+
+==== /foo/foo.ts (0 errors) ====
+ export function foo() {}
+
+==== /bar/bar.js (0 errors) ====
+ export function bar() {}
+
+==== /a.ts (0 errors) ====
+ import { foo } from "foo";
+ import { bar } from "bar";
+
\ No newline at end of file
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_withExtensionInName.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtensionInName.errors.txt
new file mode 100644
index 0000000000000..d3de848b54ed2
--- /dev/null
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtensionInName.errors.txt
@@ -0,0 +1,27 @@
+/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
+
+
+==== /tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": {
+ "baseUrl": ".",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
+ "paths": {
+ "*": ["foo/*"]
+ }
+ }
+ }
+
+==== /foo/zone.js/index.d.ts (0 errors) ====
+ export const x: number;
+
+==== /foo/zone.tsx/index.d.ts (0 errors) ====
+ export const y: number;
+
+==== /a.ts (0 errors) ====
+ import { x } from "zone.js";
+ import { y } from "zone.tsx";
+
\ No newline at end of file
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.errors.txt
new file mode 100644
index 0000000000000..2cd07bd7d6816
--- /dev/null
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.errors.txt
@@ -0,0 +1,25 @@
+/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
+
+
+==== /tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": {
+ "baseUrl": ".",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
+ "paths": {
+ "*": ["node_modules/*", "src/types"]
+ },
+ "allowJs": true,
+ "outDir": "bin"
+ }
+ }
+
+==== /a.ts (0 errors) ====
+ import foobar from "foo/bar/foobar.js";
+
+==== /node_modules/foo/bar/foobar.js (0 errors) ====
+ module.exports = { a: 10 };
+
\ No newline at end of file
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_failedLookup.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_failedLookup.errors.txt
index 5bbf4b220f7d1..621bb254290a6 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_failedLookup.errors.txt
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_failedLookup.errors.txt
@@ -1,10 +1,15 @@
+/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
/a.ts(1,21): error TS2307: Cannot find module 'foo' or its corresponding type declarations.
-==== /tsconfig.json (0 errors) ====
+==== /tsconfig.json (1 errors) ====
{
"compilerOptions": {
"baseUrl": ".",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
"paths": {
"foo": ["foo/foo.ts"]
}
diff --git a/tests/baselines/reference/pathMappingInheritedBaseUrl.errors.txt b/tests/baselines/reference/pathMappingInheritedBaseUrl.errors.txt
new file mode 100644
index 0000000000000..700ac66fcca9c
--- /dev/null
+++ b/tests/baselines/reference/pathMappingInheritedBaseUrl.errors.txt
@@ -0,0 +1,31 @@
+/project/tsconfig.json(3,3): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
+
+
+==== /project/tsconfig.json (1 errors) ====
+ {
+ "extends": "../other/tsconfig.base.json",
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
+ "module": "commonjs",
+ "paths": {
+ "p1": ["./lib/p1"]
+ }
+ }
+ }
+
+==== /project/index.ts (0 errors) ====
+ import { p1 } from "p1";
+
+==== /other/tsconfig.base.json (0 errors) ====
+ {
+ "compilerOptions": {
+ "baseUrl": "."
+ }
+ }
+
+==== /other/lib/p1/index.ts (0 errors) ====
+ export const p1 = 0;
+
\ No newline at end of file
diff --git a/tests/baselines/reference/pathsValidation1.errors.txt b/tests/baselines/reference/pathsValidation1.errors.txt
index 2c6784d00d715..3d6ff41d7e009 100644
--- a/tests/baselines/reference/pathsValidation1.errors.txt
+++ b/tests/baselines/reference/pathsValidation1.errors.txt
@@ -1,10 +1,15 @@
+tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
tsconfig.json(5,18): error TS5063: Substitutions for pattern '*' should be an array.
-==== tsconfig.json (1 errors) ====
+==== tsconfig.json (2 errors) ====
{
"compilerOptions": {
"baseUrl": ".",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
"paths": {
"*": "*"
~~~
diff --git a/tests/baselines/reference/pathsValidation2.errors.txt b/tests/baselines/reference/pathsValidation2.errors.txt
index 65391139631e9..deab5ab9c2209 100644
--- a/tests/baselines/reference/pathsValidation2.errors.txt
+++ b/tests/baselines/reference/pathsValidation2.errors.txt
@@ -1,10 +1,15 @@
+tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
tsconfig.json(5,19): error TS5064: Substitution '1' for pattern '*' has incorrect type, expected 'string', got 'number'.
-==== tsconfig.json (1 errors) ====
+==== tsconfig.json (2 errors) ====
{
"compilerOptions": {
"baseUrl": ".",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
"paths": {
"*": [1]
~
diff --git a/tests/baselines/reference/pathsValidation3.errors.txt b/tests/baselines/reference/pathsValidation3.errors.txt
index fd7f026ca1443..ba5ebd225da61 100644
--- a/tests/baselines/reference/pathsValidation3.errors.txt
+++ b/tests/baselines/reference/pathsValidation3.errors.txt
@@ -1,10 +1,15 @@
+tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
tsconfig.json(5,20): error TS5066: Substitutions for pattern 'foo' shouldn't be an empty array.
-==== tsconfig.json (1 errors) ====
+==== tsconfig.json (2 errors) ====
{
"compilerOptions": {
"baseUrl": ".",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
"paths": {
"foo": []
~~
diff --git a/tests/baselines/reference/pathsValidation4.errors.txt b/tests/baselines/reference/pathsValidation4.errors.txt
index 386079a29503b..352b9a80d7af4 100644
--- a/tests/baselines/reference/pathsValidation4.errors.txt
+++ b/tests/baselines/reference/pathsValidation4.errors.txt
@@ -1,13 +1,18 @@
+tsconfig.json(4,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
tsconfig.json(6,11): error TS5061: Pattern '@interface/**/*' can have at most one '*' character.
tsconfig.json(7,11): error TS5061: Pattern '@service/**/*' can have at most one '*' character.
tsconfig.json(7,29): error TS5062: Substitution './src/service/**/*' in pattern '@service/**/*' can have at most one '*' character.
-==== tsconfig.json (3 errors) ====
+==== tsconfig.json (4 errors) ====
{
"compilerOptions": {
"traceResolution": true,
"baseUrl": "./src",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
"paths": {
"@interface/**/*" : ["./src/interface/*"],
~~~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables.errors.txt b/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables.errors.txt
index aed0d9c6b8c59..d120082362e17 100644
--- a/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables.errors.txt
+++ b/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
prefixUnaryOperatorsOnExportedVariables.ts(19,5): error TS2873: This kind of expression is always falsy.
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== prefixUnaryOperatorsOnExportedVariables.ts (1 errors) ====
export var x = false;
export var y = 1;
diff --git a/tests/baselines/reference/preserveValueImports_module(module=amd).errors.txt b/tests/baselines/reference/preserveValueImports_module(module=amd).errors.txt
index 6421fbec30524..6ec5a25b34247 100644
--- a/tests/baselines/reference/preserveValueImports_module(module=amd).errors.txt
+++ b/tests/baselines/reference/preserveValueImports_module(module=amd).errors.txt
@@ -1,9 +1,11 @@
error TS5102: Option 'preserveValueImports' has been removed. Please remove it from your configuration.
Use 'verbatimModuleSyntax' instead.
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS5102: Option 'preserveValueImports' has been removed. Please remove it from your configuration.
!!! error TS5102: Use 'verbatimModuleSyntax' instead.
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== preserveValueImports_module.ts (0 errors) ====
export {};
\ No newline at end of file
diff --git a/tests/baselines/reference/preserveValueImports_module(module=system).errors.txt b/tests/baselines/reference/preserveValueImports_module(module=system).errors.txt
index 6421fbec30524..86cb91cee5af7 100644
--- a/tests/baselines/reference/preserveValueImports_module(module=system).errors.txt
+++ b/tests/baselines/reference/preserveValueImports_module(module=system).errors.txt
@@ -1,9 +1,11 @@
error TS5102: Option 'preserveValueImports' has been removed. Please remove it from your configuration.
Use 'verbatimModuleSyntax' instead.
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS5102: Option 'preserveValueImports' has been removed. Please remove it from your configuration.
!!! error TS5102: Use 'verbatimModuleSyntax' instead.
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== preserveValueImports_module.ts (0 errors) ====
export {};
\ No newline at end of file
diff --git a/tests/baselines/reference/privacyCheckAnonymousFunctionParameter2.errors.txt b/tests/baselines/reference/privacyCheckAnonymousFunctionParameter2.errors.txt
new file mode 100644
index 0000000000000..e4d27b5054bc1
--- /dev/null
+++ b/tests/baselines/reference/privacyCheckAnonymousFunctionParameter2.errors.txt
@@ -0,0 +1,19 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== privacyCheckAnonymousFunctionParameter2.ts (0 errors) ====
+ export var x = 1; // Makes this an external module
+ interface Iterator { x: T }
+
+ module Q {
+ export function foo(x: (a: Iterator) => number) {
+ return x;
+ }
+ }
+
+ module Q {
+ function bar() {
+ foo(null);
+ }
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/privacyCheckCallbackOfInterfaceMethodWithTypeParameter.errors.txt b/tests/baselines/reference/privacyCheckCallbackOfInterfaceMethodWithTypeParameter.errors.txt
new file mode 100644
index 0000000000000..000fe280b9dd0
--- /dev/null
+++ b/tests/baselines/reference/privacyCheckCallbackOfInterfaceMethodWithTypeParameter.errors.txt
@@ -0,0 +1,12 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== privacyCheckCallbackOfInterfaceMethodWithTypeParameter.ts (0 errors) ====
+ export interface A {
+ f1(callback: (p: T) => any);
+ }
+
+ export interface B extends A {
+ }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/privacyCheckExportAssignmentOnExportedGenericInterface2.errors.txt b/tests/baselines/reference/privacyCheckExportAssignmentOnExportedGenericInterface2.errors.txt
new file mode 100644
index 0000000000000..a731f0fded1d1
--- /dev/null
+++ b/tests/baselines/reference/privacyCheckExportAssignmentOnExportedGenericInterface2.errors.txt
@@ -0,0 +1,18 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== privacyCheckExportAssignmentOnExportedGenericInterface2.ts (0 errors) ====
+ export = Foo;
+
+ interface Foo {
+ }
+
+ function Foo(array: T[]): Foo {
+ return undefined;
+ }
+
+ module Foo {
+ export var x = "hello";
+ }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/privacyCheckOnTypeParameterReferenceInConstructorParameter.errors.txt b/tests/baselines/reference/privacyCheckOnTypeParameterReferenceInConstructorParameter.errors.txt
new file mode 100644
index 0000000000000..7dc06a25ca05d
--- /dev/null
+++ b/tests/baselines/reference/privacyCheckOnTypeParameterReferenceInConstructorParameter.errors.txt
@@ -0,0 +1,15 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== privacyCheckOnTypeParameterReferenceInConstructorParameter.ts (0 errors) ====
+ export class A{
+ constructor(callback: (self: A) => void) {
+ var child = new B(this);
+ }
+ }
+
+ export class B {
+ constructor(parent: T2) { }
+ }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/privacyGetter.errors.txt b/tests/baselines/reference/privacyGetter.errors.txt
new file mode 100644
index 0000000000000..aac49281ef928
--- /dev/null
+++ b/tests/baselines/reference/privacyGetter.errors.txt
@@ -0,0 +1,212 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== privacyGetter.ts (0 errors) ====
+ export module m1 {
+ export class C1_public {
+ private f1() {
+ }
+ }
+
+ class C2_private {
+ }
+
+ export class C3_public {
+ private get p1_private() {
+ return new C1_public();
+ }
+
+ private set p1_private(m1_c3_p1_arg: C1_public) {
+ }
+
+ private get p2_private() {
+ return new C1_public();
+ }
+
+ private set p2_private(m1_c3_p2_arg: C1_public) {
+ }
+
+ private get p3_private() {
+ return new C2_private();
+ }
+
+ private set p3_private(m1_c3_p3_arg: C2_private) {
+ }
+
+ public get p4_public(): C2_private { // error
+ return new C2_private(); //error
+ }
+
+ public set p4_public(m1_c3_p4_arg: C2_private) { // error
+ }
+ }
+
+ class C4_private {
+ private get p1_private() {
+ return new C1_public();
+ }
+
+ private set p1_private(m1_c3_p1_arg: C1_public) {
+ }
+
+ private get p2_private() {
+ return new C1_public();
+ }
+
+ private set p2_private(m1_c3_p2_arg: C1_public) {
+ }
+
+ private get p3_private() {
+ return new C2_private();
+ }
+
+ private set p3_private(m1_c3_p3_arg: C2_private) {
+ }
+
+ public get p4_public(): C2_private {
+ return new C2_private();
+ }
+
+ public set p4_public(m1_c3_p4_arg: C2_private) {
+ }
+ }
+ }
+
+ module m2 {
+ export class m2_C1_public {
+ private f1() {
+ }
+ }
+
+ class m2_C2_private {
+ }
+
+ export class m2_C3_public {
+ private get p1_private() {
+ return new m2_C1_public();
+ }
+
+ private set p1_private(m2_c3_p1_arg: m2_C1_public) {
+ }
+
+ private get p2_private() {
+ return new m2_C1_public();
+ }
+
+ private set p2_private(m2_c3_p2_arg: m2_C1_public) {
+ }
+
+ private get p3_private() {
+ return new m2_C2_private();
+ }
+
+ private set p3_private(m2_c3_p3_arg: m2_C2_private) {
+ }
+
+ public get p4_public(): m2_C2_private {
+ return new m2_C2_private();
+ }
+
+ public set p4_public(m2_c3_p4_arg: m2_C2_private) {
+ }
+ }
+
+ class m2_C4_private {
+ private get p1_private() {
+ return new m2_C1_public();
+ }
+
+ private set p1_private(m2_c3_p1_arg: m2_C1_public) {
+ }
+
+ private get p2_private() {
+ return new m2_C1_public();
+ }
+
+ private set p2_private(m2_c3_p2_arg: m2_C1_public) {
+ }
+
+ private get p3_private() {
+ return new m2_C2_private();
+ }
+
+ private set p3_private(m2_c3_p3_arg: m2_C2_private) {
+ }
+
+ public get p4_public(): m2_C2_private {
+ return new m2_C2_private();
+ }
+
+ public set p4_public(m2_c3_p4_arg: m2_C2_private) {
+ }
+ }
+ }
+
+ class C5_private {
+ private f() {
+ }
+ }
+
+ export class C6_public {
+ }
+
+ export class C7_public {
+ private get p1_private() {
+ return new C6_public();
+ }
+
+ private set p1_private(m1_c3_p1_arg: C6_public) {
+ }
+
+ private get p2_private() {
+ return new C6_public();
+ }
+
+ private set p2_private(m1_c3_p2_arg: C6_public) {
+ }
+
+ private get p3_private() {
+ return new C5_private();
+ }
+
+ private set p3_private(m1_c3_p3_arg: C5_private) {
+ }
+
+ public get p4_public(): C5_private { // error
+ return new C5_private(); //error
+ }
+
+ public set p4_public(m1_c3_p4_arg: C5_private) { // error
+ }
+ }
+
+ class C8_private {
+ private get p1_private() {
+ return new C6_public();
+ }
+
+ private set p1_private(m1_c3_p1_arg: C6_public) {
+ }
+
+ private get p2_private() {
+ return new C6_public();
+ }
+
+ private set p2_private(m1_c3_p2_arg: C6_public) {
+ }
+
+ private get p3_private() {
+ return new C5_private();
+ }
+
+ private set p3_private(m1_c3_p3_arg: C5_private) {
+ }
+
+ public get p4_public(): C5_private {
+ return new C5_private();
+ }
+
+ public set p4_public(m1_c3_p4_arg: C5_private) {
+ }
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/privacyGloFunc.errors.txt b/tests/baselines/reference/privacyGloFunc.errors.txt
new file mode 100644
index 0000000000000..f5e4ed9e643c7
--- /dev/null
+++ b/tests/baselines/reference/privacyGloFunc.errors.txt
@@ -0,0 +1,535 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== privacyGloFunc.ts (0 errors) ====
+ export module m1 {
+ export class C1_public {
+ private f1() {
+ }
+ }
+
+ class C2_private {
+ }
+
+ export class C3_public {
+ constructor (m1_c3_c1: C1_public);
+ constructor (m1_c3_c2: C2_private); //error
+ constructor (m1_c3_c1_2: any) {
+ }
+
+ private f1_private(m1_c3_f1_arg: C1_public) {
+ }
+
+ public f2_public(m1_c3_f2_arg: C1_public) {
+ }
+
+ private f3_private(m1_c3_f3_arg: C2_private) {
+ }
+
+ public f4_public(m1_c3_f4_arg: C2_private) { // error
+ }
+
+ private f5_private() {
+ return new C1_public();
+ }
+
+ public f6_public() {
+ return new C1_public();
+ }
+
+ private f7_private() {
+ return new C2_private();
+ }
+
+ public f8_public() {
+ return new C2_private(); // error
+ }
+
+ private f9_private(): C1_public {
+ return new C1_public();
+ }
+
+ public f10_public(): C1_public {
+ return new C1_public();
+ }
+
+ private f11_private(): C2_private {
+ return new C2_private();
+ }
+
+ public f12_public(): C2_private { // error
+ return new C2_private(); //error
+ }
+ }
+
+ class C4_private {
+ constructor (m1_c4_c1: C1_public);
+ constructor (m1_c4_c2: C2_private);
+ constructor (m1_c4_c1_2: any) {
+ }
+ private f1_private(m1_c4_f1_arg: C1_public) {
+ }
+
+ public f2_public(m1_c4_f2_arg: C1_public) {
+ }
+
+ private f3_private(m1_c4_f3_arg: C2_private) {
+ }
+
+ public f4_public(m1_c4_f4_arg: C2_private) {
+ }
+
+
+ private f5_private() {
+ return new C1_public();
+ }
+
+ public f6_public() {
+ return new C1_public();
+ }
+
+ private f7_private() {
+ return new C2_private();
+ }
+
+ public f8_public() {
+ return new C2_private();
+ }
+
+
+ private f9_private(): C1_public {
+ return new C1_public();
+ }
+
+ public f10_public(): C1_public {
+ return new C1_public();
+ }
+
+ private f11_private(): C2_private {
+ return new C2_private();
+ }
+
+ public f12_public(): C2_private {
+ return new C2_private();
+ }
+ }
+
+ export class C5_public {
+ constructor (m1_c5_c: C1_public) {
+ }
+ }
+
+ class C6_private {
+ constructor (m1_c6_c: C1_public) {
+ }
+ }
+ export class C7_public {
+ constructor (m1_c7_c: C2_private) { // error
+ }
+ }
+
+ class C8_private {
+ constructor (m1_c8_c: C2_private) {
+ }
+ }
+
+ function f1_public(m1_f1_arg: C1_public) {
+ }
+
+ export function f2_public(m1_f2_arg: C1_public) {
+ }
+
+ function f3_public(m1_f3_arg: C2_private) {
+ }
+
+ export function f4_public(m1_f4_arg: C2_private) { // error
+ }
+
+
+ function f5_public() {
+ return new C1_public();
+ }
+
+ export function f6_public() {
+ return new C1_public();
+ }
+
+ function f7_public() {
+ return new C2_private();
+ }
+
+ export function f8_public() {
+ return new C2_private(); // error
+ }
+
+
+ function f9_private(): C1_public {
+ return new C1_public();
+ }
+
+ export function f10_public(): C1_public {
+ return new C1_public();
+ }
+
+ function f11_private(): C2_private {
+ return new C2_private();
+ }
+
+ export function f12_public(): C2_private { // error
+ return new C2_private(); //error
+ }
+ }
+
+ module m2 {
+ export class m2_C1_public {
+ private f() {
+ }
+ }
+
+ class m2_C2_private {
+ }
+
+ export class m2_C3_public {
+ constructor (m2_c3_c1: m2_C1_public);
+ constructor (m2_c3_c2: m2_C2_private);
+ constructor (m2_c3_c1_2: any) {
+ }
+
+ private f1_private(m2_c3_f1_arg: m2_C1_public) {
+ }
+
+ public f2_public(m2_c3_f2_arg: m2_C1_public) {
+ }
+
+ private f3_private(m2_c3_f3_arg: m2_C2_private) {
+ }
+
+ public f4_public(m2_c3_f4_arg: m2_C2_private) {
+ }
+
+ private f5_private() {
+ return new m2_C1_public();
+ }
+
+ public f6_public() {
+ return new m2_C1_public();
+ }
+
+ private f7_private() {
+ return new m2_C2_private();
+ }
+
+ public f8_public() {
+ return new m2_C2_private();
+ }
+
+ private f9_private(): m2_C1_public {
+ return new m2_C1_public();
+ }
+
+ public f10_public(): m2_C1_public {
+ return new m2_C1_public();
+ }
+
+ private f11_private(): m2_C2_private {
+ return new m2_C2_private();
+ }
+
+ public f12_public(): m2_C2_private {
+ return new m2_C2_private();
+ }
+ }
+
+ class m2_C4_private {
+ constructor (m2_c4_c1: m2_C1_public);
+ constructor (m2_c4_c2: m2_C2_private);
+ constructor (m2_c4_c1_2: any) {
+ }
+
+ private f1_private(m2_c4_f1_arg: m2_C1_public) {
+ }
+
+ public f2_public(m2_c4_f2_arg: m2_C1_public) {
+ }
+
+ private f3_private(m2_c4_f3_arg: m2_C2_private) {
+ }
+
+ public f4_public(m2_c4_f4_arg: m2_C2_private) {
+ }
+
+
+ private f5_private() {
+ return new m2_C1_public();
+ }
+
+ public f6_public() {
+ return new m2_C1_public();
+ }
+
+ private f7_private() {
+ return new m2_C2_private();
+ }
+
+ public f8_public() {
+ return new m2_C2_private();
+ }
+
+
+ private f9_private(): m2_C1_public {
+ return new m2_C1_public();
+ }
+
+ public f10_public(): m2_C1_public {
+ return new m2_C1_public();
+ }
+
+ private f11_private(): m2_C2_private {
+ return new m2_C2_private();
+ }
+
+ public f12_public(): m2_C2_private {
+ return new m2_C2_private();
+ }
+ }
+
+ export class m2_C5_public {
+ constructor (m2_c5_c: m2_C1_public) {
+ }
+ }
+
+ class m2_C6_private {
+ constructor (m2_c6_c: m2_C1_public) {
+ }
+ }
+ export class m2_C7_public {
+ constructor (m2_c7_c: m2_C2_private) {
+ }
+ }
+
+ class m2_C8_private {
+ constructor (m2_c8_c: m2_C2_private) {
+ }
+ }
+
+ function f1_public(m2_f1_arg: m2_C1_public) {
+ }
+
+ export function f2_public(m2_f2_arg: m2_C1_public) {
+ }
+
+ function f3_public(m2_f3_arg: m2_C2_private) {
+ }
+
+ export function f4_public(m2_f4_arg: m2_C2_private) {
+ }
+
+
+ function f5_public() {
+ return new m2_C1_public();
+ }
+
+ export function f6_public() {
+ return new m2_C1_public();
+ }
+
+ function f7_public() {
+ return new m2_C2_private();
+ }
+
+ export function f8_public() {
+ return new m2_C2_private();
+ }
+
+
+ function f9_private(): m2_C1_public {
+ return new m2_C1_public();
+ }
+
+ export function f10_public(): m2_C1_public {
+ return new m2_C1_public();
+ }
+
+ function f11_private(): m2_C2_private {
+ return new m2_C2_private();
+ }
+
+ export function f12_public(): m2_C2_private {
+ return new m2_C2_private();
+ }
+ }
+
+ class C5_private {
+ private f() {
+ }
+ }
+
+ export class C6_public {
+ }
+
+ export class C7_public {
+ constructor (c7_c1: C5_private); // error
+ constructor (c7_c2: C6_public);
+ constructor (c7_c1_2: any) {
+ }
+ private f1_private(c7_f1_arg: C6_public) {
+ }
+
+ public f2_public(c7_f2_arg: C6_public) {
+ }
+
+ private f3_private(c7_f3_arg: C5_private) {
+ }
+
+ public f4_public(c7_f4_arg: C5_private) { //error
+ }
+
+ private f5_private() {
+ return new C6_public();
+ }
+
+ public f6_public() {
+ return new C6_public();
+ }
+
+ private f7_private() {
+ return new C5_private();
+ }
+
+ public f8_public() {
+ return new C5_private(); //error
+ }
+
+ private f9_private(): C6_public {
+ return new C6_public();
+ }
+
+ public f10_public(): C6_public {
+ return new C6_public();
+ }
+
+ private f11_private(): C5_private {
+ return new C5_private();
+ }
+
+ public f12_public(): C5_private { //error
+ return new C5_private(); //error
+ }
+ }
+
+ class C8_private {
+ constructor (c8_c1: C5_private);
+ constructor (c8_c2: C6_public);
+ constructor (c8_c1_2: any) {
+ }
+
+ private f1_private(c8_f1_arg: C6_public) {
+ }
+
+ public f2_public(c8_f2_arg: C6_public) {
+ }
+
+ private f3_private(c8_f3_arg: C5_private) {
+ }
+
+ public f4_public(c8_f4_arg: C5_private) {
+ }
+
+ private f5_private() {
+ return new C6_public();
+ }
+
+ public f6_public() {
+ return new C6_public();
+ }
+
+ private f7_private() {
+ return new C5_private();
+ }
+
+ public f8_public() {
+ return new C5_private();
+ }
+
+ private f9_private(): C6_public {
+ return new C6_public();
+ }
+
+ public f10_public(): C6_public {
+ return new C6_public();
+ }
+
+ private f11_private(): C5_private {
+ return new C5_private();
+ }
+
+ public f12_public(): C5_private {
+ return new C5_private();
+ }
+ }
+
+
+ export class C9_public {
+ constructor (c9_c: C6_public) {
+ }
+ }
+
+ class C10_private {
+ constructor (c10_c: C6_public) {
+ }
+ }
+ export class C11_public {
+ constructor (c11_c: C5_private) { // error
+ }
+ }
+
+ class C12_private {
+ constructor (c12_c: C5_private) {
+ }
+ }
+
+ function f1_private(f1_arg: C5_private) {
+ }
+
+ export function f2_public(f2_arg: C5_private) { // error
+ }
+
+ function f3_private(f3_arg: C6_public) {
+ }
+
+ export function f4_public(f4_arg: C6_public) {
+ }
+
+ function f5_private() {
+ return new C6_public();
+ }
+
+ export function f6_public() {
+ return new C6_public();
+ }
+
+ function f7_private() {
+ return new C5_private();
+ }
+
+ export function f8_public() {
+ return new C5_private(); //error
+ }
+
+ function f9_private(): C6_public {
+ return new C6_public();
+ }
+
+ export function f10_public(): C6_public {
+ return new C6_public();
+ }
+
+ function f11_private(): C5_private {
+ return new C5_private();
+ }
+
+ export function f12_public(): C5_private { //error
+ return new C5_private(); //error
+ }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/privacyGloFunc.types b/tests/baselines/reference/privacyGloFunc.types
index 46a8ca6c38256..720918c8accf4 100644
--- a/tests/baselines/reference/privacyGloFunc.types
+++ b/tests/baselines/reference/privacyGloFunc.types
@@ -34,6 +34,7 @@ export module m1 {
constructor (m1_c3_c1_2: any) {
>m1_c3_c1_2 : any
+> : ^^^
}
private f1_private(m1_c3_f1_arg: C1_public) {
@@ -167,6 +168,7 @@ export module m1 {
constructor (m1_c4_c1_2: any) {
>m1_c4_c1_2 : any
+> : ^^^
}
private f1_private(m1_c4_f1_arg: C1_public) {
>f1_private : (m1_c4_f1_arg: C1_public) => void
@@ -478,6 +480,7 @@ module m2 {
constructor (m2_c3_c1_2: any) {
>m2_c3_c1_2 : any
+> : ^^^
}
private f1_private(m2_c3_f1_arg: m2_C1_public) {
@@ -611,6 +614,7 @@ module m2 {
constructor (m2_c4_c1_2: any) {
>m2_c4_c1_2 : any
+> : ^^^
}
private f1_private(m2_c4_f1_arg: m2_C1_public) {
@@ -919,6 +923,7 @@ export class C7_public {
constructor (c7_c1_2: any) {
>c7_c1_2 : any
+> : ^^^
}
private f1_private(c7_f1_arg: C6_public) {
>f1_private : (c7_f1_arg: C6_public) => void
@@ -1051,6 +1056,7 @@ class C8_private {
constructor (c8_c1_2: any) {
>c8_c1_2 : any
+> : ^^^
}
private f1_private(c8_f1_arg: C6_public) {
diff --git a/tests/baselines/reference/privacyLocalInternalReferenceImportWithoutExport.errors.txt b/tests/baselines/reference/privacyLocalInternalReferenceImportWithoutExport.errors.txt
new file mode 100644
index 0000000000000..4af6daf69184f
--- /dev/null
+++ b/tests/baselines/reference/privacyLocalInternalReferenceImportWithoutExport.errors.txt
@@ -0,0 +1,157 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== privacyLocalInternalReferenceImportWithoutExport.ts (0 errors) ====
+ // private elements
+ module m_private {
+ export class c_private {
+ }
+ export enum e_private {
+ Happy,
+ Grumpy
+ }
+ export function f_private() {
+ return new c_private();
+ }
+ export var v_private = new c_private();
+ export interface i_private {
+ }
+ export module mi_private {
+ export class c {
+ }
+ }
+ export module mu_private {
+ export interface i {
+ }
+ }
+ }
+
+ // Public elements
+ export module m_public {
+ export class c_public {
+ }
+ export enum e_public {
+ Happy,
+ Grumpy
+ }
+ export function f_public() {
+ return new c_public();
+ }
+ export var v_public = 10;
+ export interface i_public {
+ }
+ export module mi_public {
+ export class c {
+ }
+ }
+ export module mu_public {
+ export interface i {
+ }
+ }
+ }
+
+ export module import_public {
+ // No Privacy errors - importing private elements
+ import im_private_c_private = m_private.c_private;
+ import im_private_e_private = m_private.e_private;
+ import im_private_f_private = m_private.f_private;
+ import im_private_v_private = m_private.v_private;
+ import im_private_i_private = m_private.i_private;
+ import im_private_mi_private = m_private.mi_private;
+ import im_private_mu_private = m_private.mu_private;
+
+ // Usage of above decls
+ var privateUse_im_private_c_private = new im_private_c_private();
+ export var publicUse_im_private_c_private = new im_private_c_private();
+ var privateUse_im_private_e_private = im_private_e_private.Happy;
+ export var publicUse_im_private_e_private = im_private_e_private.Grumpy;
+ var privateUse_im_private_f_private = im_private_f_private();
+ export var publicUse_im_private_f_private = im_private_f_private();
+ var privateUse_im_private_v_private = im_private_v_private;
+ export var publicUse_im_private_v_private = im_private_v_private;
+ var privateUse_im_private_i_private: im_private_i_private;
+ export var publicUse_im_private_i_private: im_private_i_private;
+ var privateUse_im_private_mi_private = new im_private_mi_private.c();
+ export var publicUse_im_private_mi_private = new im_private_mi_private.c();
+ var privateUse_im_private_mu_private: im_private_mu_private.i;
+ export var publicUse_im_private_mu_private: im_private_mu_private.i;
+
+
+ // No Privacy errors - importing public elements
+ import im_private_c_public = m_public.c_public;
+ import im_private_e_public = m_public.e_public;
+ import im_private_f_public = m_public.f_public;
+ import im_private_v_public = m_public.v_public;
+ import im_private_i_public = m_public.i_public;
+ import im_private_mi_public = m_public.mi_public;
+ import im_private_mu_public = m_public.mu_public;
+
+ // Usage of above decls
+ var privateUse_im_private_c_public = new im_private_c_public();
+ export var publicUse_im_private_c_public = new im_private_c_public();
+ var privateUse_im_private_e_public = im_private_e_public.Happy;
+ export var publicUse_im_private_e_public = im_private_e_public.Grumpy;
+ var privateUse_im_private_f_public = im_private_f_public();
+ export var publicUse_im_private_f_public = im_private_f_public();
+ var privateUse_im_private_v_public = im_private_v_public;
+ export var publicUse_im_private_v_public = im_private_v_public;
+ var privateUse_im_private_i_public: im_private_i_public;
+ export var publicUse_im_private_i_public: im_private_i_public;
+ var privateUse_im_private_mi_public = new im_private_mi_public.c();
+ export var publicUse_im_private_mi_public = new im_private_mi_public.c();
+ var privateUse_im_private_mu_public: im_private_mu_public.i;
+ export var publicUse_im_private_mu_public: im_private_mu_public.i;
+ }
+
+ module import_private {
+ // No Privacy errors - importing private elements
+ import im_private_c_private = m_private.c_private;
+ import im_private_e_private = m_private.e_private;
+ import im_private_f_private = m_private.f_private;
+ import im_private_v_private = m_private.v_private;
+ import im_private_i_private = m_private.i_private;
+ import im_private_mi_private = m_private.mi_private;
+ import im_private_mu_private = m_private.mu_private;
+
+ // Usage of above decls
+ var privateUse_im_private_c_private = new im_private_c_private();
+ export var publicUse_im_private_c_private = new im_private_c_private();
+ var privateUse_im_private_e_private = im_private_e_private.Happy;
+ export var publicUse_im_private_e_private = im_private_e_private.Grumpy;
+ var privateUse_im_private_f_private = im_private_f_private();
+ export var publicUse_im_private_f_private = im_private_f_private();
+ var privateUse_im_private_v_private = im_private_v_private;
+ export var publicUse_im_private_v_private = im_private_v_private;
+ var privateUse_im_private_i_private: im_private_i_private;
+ export var publicUse_im_private_i_private: im_private_i_private;
+ var privateUse_im_private_mi_private = new im_private_mi_private.c();
+ export var publicUse_im_private_mi_private = new im_private_mi_private.c();
+ var privateUse_im_private_mu_private: im_private_mu_private.i;
+ export var publicUse_im_private_mu_private: im_private_mu_private.i;
+
+ // No privacy Error - importing public elements
+ import im_private_c_public = m_public.c_public;
+ import im_private_e_public = m_public.e_public;
+ import im_private_f_public = m_public.f_public;
+ import im_private_v_public = m_public.v_public;
+ import im_private_i_public = m_public.i_public;
+ import im_private_mi_public = m_public.mi_public;
+ import im_private_mu_public = m_public.mu_public;
+
+ // Usage of above decls
+ var privateUse_im_private_c_public = new im_private_c_public();
+ export var publicUse_im_private_c_public = new im_private_c_public();
+ var privateUse_im_private_e_public = im_private_e_public.Happy;
+ export var publicUse_im_private_e_public = im_private_e_public.Grumpy;
+ var privateUse_im_private_f_public = im_private_f_public();
+ export var publicUse_im_private_f_public = im_private_f_public();
+ var privateUse_im_private_v_public = im_private_v_public;
+ export var publicUse_im_private_v_public = im_private_v_public;
+ var privateUse_im_private_i_public: im_private_i_public;
+ export var publicUse_im_private_i_public: im_private_i_public;
+ var privateUse_im_private_mi_public = new im_private_mi_public.c();
+ export var publicUse_im_private_mi_public = new im_private_mi_public.c();
+ var privateUse_im_private_mu_public: im_private_mu_public.i;
+ export var publicUse_im_private_mu_public: im_private_mu_public.i;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.errors.txt b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.errors.txt
index 1ecaca60d6aa6..eeb5964c4b96c 100644
--- a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.errors.txt
+++ b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.errors.txt
@@ -8,8 +8,8 @@ privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts(17,12): error TS
// Privacy errors - importing private elements
import im_private_mi_private = require("m");
import im_private_mu_private = require("m2");
- import im_private_mi_public = require("privacyTopLevelAmbientExternalModuleImportWithoutExport_require");
- import im_private_mu_public = require("privacyTopLevelAmbientExternalModuleImportWithoutExport_require1");
+ import im_private_mi_public = require("./privacyTopLevelAmbientExternalModuleImportWithoutExport_require");
+ import im_private_mu_public = require("./privacyTopLevelAmbientExternalModuleImportWithoutExport_require1");
// Usage of privacy error imports
var privateUse_im_private_mi_private = new im_private_mi_private.c_private();
diff --git a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.js b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.js
index fd0ba91c8aab0..0f3df7475c600 100644
--- a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.js
+++ b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.js
@@ -33,8 +33,8 @@ declare module 'm2' {
// Privacy errors - importing private elements
import im_private_mi_private = require("m");
import im_private_mu_private = require("m2");
-import im_private_mi_public = require("privacyTopLevelAmbientExternalModuleImportWithoutExport_require");
-import im_private_mu_public = require("privacyTopLevelAmbientExternalModuleImportWithoutExport_require1");
+import im_private_mi_public = require("./privacyTopLevelAmbientExternalModuleImportWithoutExport_require");
+import im_private_mu_public = require("./privacyTopLevelAmbientExternalModuleImportWithoutExport_require1");
// Usage of privacy error imports
var privateUse_im_private_mi_private = new im_private_mi_private.c_private();
@@ -50,39 +50,39 @@ export var publicUse_im_private_mi_public = new im_private_mi_public.c_public();
//// [privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.js]
//// [privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.js]
//// [privacyTopLevelAmbientExternalModuleImportWithoutExport_require.js]
-define(["require", "exports"], function (require, exports) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.c_public = void 0;
- // Public elements
- class c_public {
- }
- exports.c_public = c_public;
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.c_public = void 0;
+// Public elements
+class c_public {
+}
+exports.c_public = c_public;
//// [privacyTopLevelAmbientExternalModuleImportWithoutExport_require1.js]
-define(["require", "exports"], function (require, exports) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.c_public = void 0;
- class c_public {
- }
- exports.c_public = c_public;
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.c_public = void 0;
+class c_public {
+}
+exports.c_public = c_public;
//// [privacyTopLevelAmbientExternalModuleImportWithoutExport_core.js]
-define(["require", "exports", "m", "m2", "privacyTopLevelAmbientExternalModuleImportWithoutExport_require"], function (require, exports, im_private_mi_private, im_private_mu_private, im_private_mi_public) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.publicUse_im_private_mi_public = exports.publicUse_im_private_mu_private = exports.publicUse_im_private_mi_private = void 0;
- // Usage of privacy error imports
- var privateUse_im_private_mi_private = new im_private_mi_private.c_private();
- exports.publicUse_im_private_mi_private = new im_private_mi_private.c_private();
- var privateUse_im_private_mu_private = new im_private_mu_private.c_private();
- exports.publicUse_im_private_mu_private = new im_private_mu_private.c_private();
- var privateUse_im_private_mi_public = new im_private_mi_public.c_public();
- exports.publicUse_im_private_mi_public = new im_private_mi_public.c_public();
- var privateUse_im_private_mi_public = new im_private_mi_public.c_public();
- exports.publicUse_im_private_mi_public = new im_private_mi_public.c_public();
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.publicUse_im_private_mi_public = exports.publicUse_im_private_mu_private = exports.publicUse_im_private_mi_private = void 0;
+///
+///
+// Privacy errors - importing private elements
+var im_private_mi_private = require("m");
+var im_private_mu_private = require("m2");
+var im_private_mi_public = require("./privacyTopLevelAmbientExternalModuleImportWithoutExport_require");
+// Usage of privacy error imports
+var privateUse_im_private_mi_private = new im_private_mi_private.c_private();
+exports.publicUse_im_private_mi_private = new im_private_mi_private.c_private();
+var privateUse_im_private_mu_private = new im_private_mu_private.c_private();
+exports.publicUse_im_private_mu_private = new im_private_mu_private.c_private();
+var privateUse_im_private_mi_public = new im_private_mi_public.c_public();
+exports.publicUse_im_private_mi_public = new im_private_mi_public.c_public();
+var privateUse_im_private_mi_public = new im_private_mi_public.c_public();
+exports.publicUse_im_private_mi_public = new im_private_mi_public.c_public();
//// [privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.d.ts]
@@ -108,7 +108,7 @@ export declare class c_public {
//// [privacyTopLevelAmbientExternalModuleImportWithoutExport_core.d.ts]
import im_private_mi_private = require("m");
import im_private_mu_private = require("m2");
-import im_private_mi_public = require("privacyTopLevelAmbientExternalModuleImportWithoutExport_require");
+import im_private_mi_public = require("./privacyTopLevelAmbientExternalModuleImportWithoutExport_require");
export declare var publicUse_im_private_mi_private: im_private_mi_private.c_private;
export declare var publicUse_im_private_mu_private: im_private_mu_private.c_private;
export declare var publicUse_im_private_mi_public: im_private_mi_public.c_public;
diff --git a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.symbols b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.symbols
index 2d499c0ba7207..a3d75551a39b8 100644
--- a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.symbols
+++ b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.symbols
@@ -10,11 +10,11 @@ import im_private_mi_private = require("m");
import im_private_mu_private = require("m2");
>im_private_mu_private : Symbol(im_private_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 3, 44))
-import im_private_mi_public = require("privacyTopLevelAmbientExternalModuleImportWithoutExport_require");
+import im_private_mi_public = require("./privacyTopLevelAmbientExternalModuleImportWithoutExport_require");
>im_private_mi_public : Symbol(im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 4, 45))
-import im_private_mu_public = require("privacyTopLevelAmbientExternalModuleImportWithoutExport_require1");
->im_private_mu_public : Symbol(im_private_mu_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 5, 105))
+import im_private_mu_public = require("./privacyTopLevelAmbientExternalModuleImportWithoutExport_require1");
+>im_private_mu_public : Symbol(im_private_mu_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 5, 107))
// Usage of privacy error imports
var privateUse_im_private_mi_private = new im_private_mi_private.c_private();
diff --git a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.types b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.types
index 4864e24a2b60f..b6028d861566b 100644
--- a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.types
+++ b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.types
@@ -12,11 +12,11 @@ import im_private_mu_private = require("m2");
>im_private_mu_private : typeof im_private_mu_private
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-import im_private_mi_public = require("privacyTopLevelAmbientExternalModuleImportWithoutExport_require");
+import im_private_mi_public = require("./privacyTopLevelAmbientExternalModuleImportWithoutExport_require");
>im_private_mi_public : typeof im_private_mi_public
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^
-import im_private_mu_public = require("privacyTopLevelAmbientExternalModuleImportWithoutExport_require1");
+import im_private_mu_public = require("./privacyTopLevelAmbientExternalModuleImportWithoutExport_require1");
>im_private_mu_public : typeof im_private_mu_public
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^
diff --git a/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithExport.errors.txt b/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithExport.errors.txt
new file mode 100644
index 0000000000000..6fa03c4b1c8f7
--- /dev/null
+++ b/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithExport.errors.txt
@@ -0,0 +1,104 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== privacyTopLevelInternalReferenceImportWithExport.ts (0 errors) ====
+ // private elements
+ module m_private {
+ export class c_private {
+ }
+ export enum e_private {
+ Happy,
+ Grumpy
+ }
+ export function f_private() {
+ return new c_private();
+ }
+ export var v_private = new c_private();
+ export interface i_private {
+ }
+ export module mi_private {
+ export class c {
+ }
+ }
+ export module mu_private {
+ export interface i {
+ }
+ }
+ }
+
+ // Public elements
+ export module m_public {
+ export class c_public {
+ }
+ export enum e_public {
+ Happy,
+ Grumpy
+ }
+ export function f_public() {
+ return new c_public();
+ }
+ export var v_public = 10;
+ export interface i_public {
+ }
+ export module mi_public {
+ export class c {
+ }
+ }
+ export module mu_public {
+ export interface i {
+ }
+ }
+ }
+
+ // Privacy errors - importing private elements
+ export import im_public_c_private = m_private.c_private;
+ export import im_public_e_private = m_private.e_private;
+ export import im_public_f_private = m_private.f_private;
+ export import im_public_v_private = m_private.v_private;
+ export import im_public_i_private = m_private.i_private;
+ export import im_public_mi_private = m_private.mi_private;
+ export import im_public_mu_private = m_private.mu_private;
+
+ // Usage of privacy error imports
+ var privateUse_im_public_c_private = new im_public_c_private();
+ export var publicUse_im_public_c_private = new im_public_c_private();
+ var privateUse_im_public_e_private = im_public_e_private.Happy;
+ export var publicUse_im_public_e_private = im_public_e_private.Grumpy;
+ var privateUse_im_public_f_private = im_public_f_private();
+ export var publicUse_im_public_f_private = im_public_f_private();
+ var privateUse_im_public_v_private = im_public_v_private;
+ export var publicUse_im_public_v_private = im_public_v_private;
+ var privateUse_im_public_i_private: im_public_i_private;
+ export var publicUse_im_public_i_private: im_public_i_private;
+ var privateUse_im_public_mi_private = new im_public_mi_private.c();
+ export var publicUse_im_public_mi_private = new im_public_mi_private.c();
+ var privateUse_im_public_mu_private: im_public_mu_private.i;
+ export var publicUse_im_public_mu_private: im_public_mu_private.i;
+
+
+ // No Privacy errors - importing public elements
+ export import im_public_c_public = m_public.c_public;
+ export import im_public_e_public = m_public.e_public;
+ export import im_public_f_public = m_public.f_public;
+ export import im_public_v_public = m_public.v_public;
+ export import im_public_i_public = m_public.i_public;
+ export import im_public_mi_public = m_public.mi_public;
+ export import im_public_mu_public = m_public.mu_public;
+
+ // Usage of above decls
+ var privateUse_im_public_c_public = new im_public_c_public();
+ export var publicUse_im_public_c_public = new im_public_c_public();
+ var privateUse_im_public_e_public = im_public_e_public.Happy;
+ export var publicUse_im_public_e_public = im_public_e_public.Grumpy;
+ var privateUse_im_public_f_public = im_public_f_public();
+ export var publicUse_im_public_f_public = im_public_f_public();
+ var privateUse_im_public_v_public = im_public_v_public;
+ export var publicUse_im_public_v_public = im_public_v_public;
+ var privateUse_im_public_i_public: im_public_i_public;
+ export var publicUse_im_public_i_public: im_public_i_public;
+ var privateUse_im_public_mi_public = new im_public_mi_public.c();
+ export var publicUse_im_public_mi_public = new im_public_mi_public.c();
+ var privateUse_im_public_mu_public: im_public_mu_public.i;
+ export var publicUse_im_public_mu_public: im_public_mu_public.i;
+
\ No newline at end of file
diff --git a/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithoutExport.errors.txt b/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithoutExport.errors.txt
new file mode 100644
index 0000000000000..728f9ef2e50e3
--- /dev/null
+++ b/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithoutExport.errors.txt
@@ -0,0 +1,104 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== privacyTopLevelInternalReferenceImportWithoutExport.ts (0 errors) ====
+ // private elements
+ module m_private {
+ export class c_private {
+ }
+ export enum e_private {
+ Happy,
+ Grumpy
+ }
+ export function f_private() {
+ return new c_private();
+ }
+ export var v_private = new c_private();
+ export interface i_private {
+ }
+ export module mi_private {
+ export class c {
+ }
+ }
+ export module mu_private {
+ export interface i {
+ }
+ }
+ }
+
+ // Public elements
+ export module m_public {
+ export class c_public {
+ }
+ export enum e_public {
+ Happy,
+ Grumpy
+ }
+ export function f_public() {
+ return new c_public();
+ }
+ export var v_public = 10;
+ export interface i_public {
+ }
+ export module mi_public {
+ export class c {
+ }
+ }
+ export module mu_public {
+ export interface i {
+ }
+ }
+ }
+
+ // No Privacy errors - importing private elements
+ import im_private_c_private = m_private.c_private;
+ import im_private_e_private = m_private.e_private;
+ import im_private_f_private = m_private.f_private;
+ import im_private_v_private = m_private.v_private;
+ import im_private_i_private = m_private.i_private;
+ import im_private_mi_private = m_private.mi_private;
+ import im_private_mu_private = m_private.mu_private;
+
+ // Usage of above decls
+ var privateUse_im_private_c_private = new im_private_c_private();
+ export var publicUse_im_private_c_private = new im_private_c_private();
+ var privateUse_im_private_e_private = im_private_e_private.Happy;
+ export var publicUse_im_private_e_private = im_private_e_private.Grumpy;
+ var privateUse_im_private_f_private = im_private_f_private();
+ export var publicUse_im_private_f_private = im_private_f_private();
+ var privateUse_im_private_v_private = im_private_v_private;
+ export var publicUse_im_private_v_private = im_private_v_private;
+ var privateUse_im_private_i_private: im_private_i_private;
+ export var publicUse_im_private_i_private: im_private_i_private;
+ var privateUse_im_private_mi_private = new im_private_mi_private.c();
+ export var publicUse_im_private_mi_private = new im_private_mi_private.c();
+ var privateUse_im_private_mu_private: im_private_mu_private.i;
+ export var publicUse_im_private_mu_private: im_private_mu_private.i;
+
+
+ // No Privacy errors - importing public elements
+ import im_private_c_public = m_public.c_public;
+ import im_private_e_public = m_public.e_public;
+ import im_private_f_public = m_public.f_public;
+ import im_private_v_public = m_public.v_public;
+ import im_private_i_public = m_public.i_public;
+ import im_private_mi_public = m_public.mi_public;
+ import im_private_mu_public = m_public.mu_public;
+
+ // Usage of above decls
+ var privateUse_im_private_c_public = new im_private_c_public();
+ export var publicUse_im_private_c_public = new im_private_c_public();
+ var privateUse_im_private_e_public = im_private_e_public.Happy;
+ export var publicUse_im_private_e_public = im_private_e_public.Grumpy;
+ var privateUse_im_private_f_public = im_private_f_public();
+ export var publicUse_im_private_f_public = im_private_f_public();
+ var privateUse_im_private_v_public = im_private_v_public;
+ export var publicUse_im_private_v_public = im_private_v_public;
+ var privateUse_im_private_i_public: im_private_i_public;
+ export var publicUse_im_private_i_public: im_private_i_public;
+ var privateUse_im_private_mi_public = new im_private_mi_public.c();
+ export var publicUse_im_private_mi_public = new im_private_mi_public.c();
+ var privateUse_im_private_mu_public: im_private_mu_public.i;
+ export var publicUse_im_private_mu_public: im_private_mu_public.i;
+
\ No newline at end of file
diff --git a/tests/baselines/reference/privateNameEmitHelpers.errors.txt b/tests/baselines/reference/privateNameEmitHelpers.errors.txt
index 8b9314cc44bd1..92f3c7e9663d6 100644
--- a/tests/baselines/reference/privateNameEmitHelpers.errors.txt
+++ b/tests/baselines/reference/privateNameEmitHelpers.errors.txt
@@ -13,7 +13,7 @@ main.ts(4,25): error TS2807: This syntax requires an imported helper named '__cl
!!! error TS2807: This syntax requires an imported helper named '__classPrivateFieldGet' with 4 parameters, which is not compatible with the one in 'tslib'. Consider upgrading your version of 'tslib'.
}
-==== tslib.d.ts (0 errors) ====
+==== node_modules/tslib/index.d.ts (0 errors) ====
// these are pre-TS4.3 versions of emit helpers, which only supported private instance fields
export declare function __classPrivateFieldGet(receiver: T, state: any): V;
export declare function __classPrivateFieldSet(receiver: T, state: any, value: V): V;
diff --git a/tests/baselines/reference/privateNameEmitHelpers.js b/tests/baselines/reference/privateNameEmitHelpers.js
index 1c46c25afa8fe..844aecf231cf1 100644
--- a/tests/baselines/reference/privateNameEmitHelpers.js
+++ b/tests/baselines/reference/privateNameEmitHelpers.js
@@ -7,7 +7,7 @@ export class C {
set #c(v: number) { this.#a += v; }
}
-//// [tslib.d.ts]
+//// [index.d.ts]
// these are pre-TS4.3 versions of emit helpers, which only supported private instance fields
export declare function __classPrivateFieldGet(receiver: T, state: any): V;
export declare function __classPrivateFieldSet(receiver: T, state: any, value: V): V;
diff --git a/tests/baselines/reference/privateNameEmitHelpers.symbols b/tests/baselines/reference/privateNameEmitHelpers.symbols
index e3ba295c724e5..b13f7512037e9 100644
--- a/tests/baselines/reference/privateNameEmitHelpers.symbols
+++ b/tests/baselines/reference/privateNameEmitHelpers.symbols
@@ -20,25 +20,25 @@ export class C {
>v : Symbol(v, Decl(main.ts, 3, 11))
}
-=== tslib.d.ts ===
+=== node_modules/tslib/index.d.ts ===
// these are pre-TS4.3 versions of emit helpers, which only supported private instance fields
export declare function __classPrivateFieldGet(receiver: T, state: any): V;
->__classPrivateFieldGet : Symbol(__classPrivateFieldGet, Decl(tslib.d.ts, --, --))
->T : Symbol(T, Decl(tslib.d.ts, --, --))
->V : Symbol(V, Decl(tslib.d.ts, --, --))
->receiver : Symbol(receiver, Decl(tslib.d.ts, --, --))
->T : Symbol(T, Decl(tslib.d.ts, --, --))
->state : Symbol(state, Decl(tslib.d.ts, --, --))
->V : Symbol(V, Decl(tslib.d.ts, --, --))
+>__classPrivateFieldGet : Symbol(__classPrivateFieldGet, Decl(index.d.ts, 0, 0))
+>T : Symbol(T, Decl(index.d.ts, 1, 47))
+>V : Symbol(V, Decl(index.d.ts, 1, 64))
+>receiver : Symbol(receiver, Decl(index.d.ts, 1, 68))
+>T : Symbol(T, Decl(index.d.ts, 1, 47))
+>state : Symbol(state, Decl(index.d.ts, 1, 80))
+>V : Symbol(V, Decl(index.d.ts, 1, 64))
export declare function __classPrivateFieldSet(receiver: T, state: any, value: V): V;
->__classPrivateFieldSet : Symbol(__classPrivateFieldSet, Decl(tslib.d.ts, --, --))
->T : Symbol(T, Decl(tslib.d.ts, --, --))
->V : Symbol(V, Decl(tslib.d.ts, --, --))
->receiver : Symbol(receiver, Decl(tslib.d.ts, --, --))
->T : Symbol(T, Decl(tslib.d.ts, --, --))
->state : Symbol(state, Decl(tslib.d.ts, --, --))
->value : Symbol(value, Decl(tslib.d.ts, --, --))
->V : Symbol(V, Decl(tslib.d.ts, --, --))
->V : Symbol(V, Decl(tslib.d.ts, --, --))
+>__classPrivateFieldSet : Symbol(__classPrivateFieldSet, Decl(index.d.ts, 1, 96))
+>T : Symbol(T, Decl(index.d.ts, 2, 47))
+>V : Symbol(V, Decl(index.d.ts, 2, 64))
+>receiver : Symbol(receiver, Decl(index.d.ts, 2, 68))
+>T : Symbol(T, Decl(index.d.ts, 2, 47))
+>state : Symbol(state, Decl(index.d.ts, 2, 80))
+>value : Symbol(value, Decl(index.d.ts, 2, 92))
+>V : Symbol(V, Decl(index.d.ts, 2, 64))
+>V : Symbol(V, Decl(index.d.ts, 2, 64))
diff --git a/tests/baselines/reference/privateNameEmitHelpers.types b/tests/baselines/reference/privateNameEmitHelpers.types
index 69f0d4f6a284d..2e7be91970d54 100644
--- a/tests/baselines/reference/privateNameEmitHelpers.types
+++ b/tests/baselines/reference/privateNameEmitHelpers.types
@@ -38,7 +38,7 @@ export class C {
> : ^^^^^^
}
-=== tslib.d.ts ===
+=== node_modules/tslib/index.d.ts ===
// these are pre-TS4.3 versions of emit helpers, which only supported private instance fields
export declare function __classPrivateFieldGet(receiver: T, state: any): V;
>__classPrivateFieldGet : (receiver: T, state: any) => V
diff --git a/tests/baselines/reference/privateNameStaticEmitHelpers.errors.txt b/tests/baselines/reference/privateNameStaticEmitHelpers.errors.txt
index 525d1034bf26b..2b2cea73b5092 100644
--- a/tests/baselines/reference/privateNameStaticEmitHelpers.errors.txt
+++ b/tests/baselines/reference/privateNameStaticEmitHelpers.errors.txt
@@ -13,7 +13,7 @@ main.ts(4,30): error TS2807: This syntax requires an imported helper named '__cl
!!! error TS2807: This syntax requires an imported helper named '__classPrivateFieldGet' with 4 parameters, which is not compatible with the one in 'tslib'. Consider upgrading your version of 'tslib'.
}
-==== tslib.d.ts (0 errors) ====
+==== node_modules/tslib/index.d.ts (0 errors) ====
// these are pre-TS4.3 versions of emit helpers, which only supported private instance fields
export declare function __classPrivateFieldGet(receiver: T, state: any): V;
export declare function __classPrivateFieldSet(receiver: T, state: any, value: V): V;
diff --git a/tests/baselines/reference/privateNameStaticEmitHelpers.js b/tests/baselines/reference/privateNameStaticEmitHelpers.js
index da1af623fe312..8ed176b162d1c 100644
--- a/tests/baselines/reference/privateNameStaticEmitHelpers.js
+++ b/tests/baselines/reference/privateNameStaticEmitHelpers.js
@@ -7,7 +7,7 @@ export class S {
static get #c() { return S.#b(); }
}
-//// [tslib.d.ts]
+//// [index.d.ts]
// these are pre-TS4.3 versions of emit helpers, which only supported private instance fields
export declare function __classPrivateFieldGet(receiver: T, state: any): V;
export declare function __classPrivateFieldSet(receiver: T, state: any, value: V): V;
diff --git a/tests/baselines/reference/privateNameStaticEmitHelpers.symbols b/tests/baselines/reference/privateNameStaticEmitHelpers.symbols
index 6b1b76dfe9947..681c0bd0efef7 100644
--- a/tests/baselines/reference/privateNameStaticEmitHelpers.symbols
+++ b/tests/baselines/reference/privateNameStaticEmitHelpers.symbols
@@ -18,25 +18,25 @@ export class S {
>S : Symbol(S, Decl(main.ts, 0, 0))
}
-=== tslib.d.ts ===
+=== node_modules/tslib/index.d.ts ===
// these are pre-TS4.3 versions of emit helpers, which only supported private instance fields
export declare function __classPrivateFieldGet(receiver: T, state: any): V;
->__classPrivateFieldGet : Symbol(__classPrivateFieldGet, Decl(tslib.d.ts, --, --))
->T : Symbol(T, Decl(tslib.d.ts, --, --))
->V : Symbol(V, Decl(tslib.d.ts, --, --))
->receiver : Symbol(receiver, Decl(tslib.d.ts, --, --))
->T : Symbol(T, Decl(tslib.d.ts, --, --))
->state : Symbol(state, Decl(tslib.d.ts, --, --))
->V : Symbol(V, Decl(tslib.d.ts, --, --))
+>__classPrivateFieldGet : Symbol(__classPrivateFieldGet, Decl(index.d.ts, 0, 0))
+>T : Symbol(T, Decl(index.d.ts, 1, 47))
+>V : Symbol(V, Decl(index.d.ts, 1, 64))
+>receiver : Symbol(receiver, Decl(index.d.ts, 1, 68))
+>T : Symbol(T, Decl(index.d.ts, 1, 47))
+>state : Symbol(state, Decl(index.d.ts, 1, 80))
+>V : Symbol(V, Decl(index.d.ts, 1, 64))
export declare function __classPrivateFieldSet(receiver: T, state: any, value: V): V;
->__classPrivateFieldSet : Symbol(__classPrivateFieldSet, Decl(tslib.d.ts, --, --))
->T : Symbol(T, Decl(tslib.d.ts, --, --))
->V : Symbol(V, Decl(tslib.d.ts, --, --))
->receiver : Symbol(receiver, Decl(tslib.d.ts, --, --))
->T : Symbol(T, Decl(tslib.d.ts, --, --))
->state : Symbol(state, Decl(tslib.d.ts, --, --))
->value : Symbol(value, Decl(tslib.d.ts, --, --))
->V : Symbol(V, Decl(tslib.d.ts, --, --))
->V : Symbol(V, Decl(tslib.d.ts, --, --))
+>__classPrivateFieldSet : Symbol(__classPrivateFieldSet, Decl(index.d.ts, 1, 96))
+>T : Symbol(T, Decl(index.d.ts, 2, 47))
+>V : Symbol(V, Decl(index.d.ts, 2, 64))
+>receiver : Symbol(receiver, Decl(index.d.ts, 2, 68))
+>T : Symbol(T, Decl(index.d.ts, 2, 47))
+>state : Symbol(state, Decl(index.d.ts, 2, 80))
+>value : Symbol(value, Decl(index.d.ts, 2, 92))
+>V : Symbol(V, Decl(index.d.ts, 2, 64))
+>V : Symbol(V, Decl(index.d.ts, 2, 64))
diff --git a/tests/baselines/reference/privateNameStaticEmitHelpers.types b/tests/baselines/reference/privateNameStaticEmitHelpers.types
index 2cf321bb0a728..bd4d15344e8e0 100644
--- a/tests/baselines/reference/privateNameStaticEmitHelpers.types
+++ b/tests/baselines/reference/privateNameStaticEmitHelpers.types
@@ -34,7 +34,7 @@ export class S {
> : ^^^^^^^^
}
-=== tslib.d.ts ===
+=== node_modules/tslib/index.d.ts ===
// these are pre-TS4.3 versions of emit helpers, which only supported private instance fields
export declare function __classPrivateFieldGet(receiver: T, state: any): V;
>__classPrivateFieldGet : (receiver: T, state: any) => V
diff --git a/tests/baselines/reference/privatePropertyUsingObjectType.errors.txt b/tests/baselines/reference/privatePropertyUsingObjectType.errors.txt
new file mode 100644
index 0000000000000..301401deeeded
--- /dev/null
+++ b/tests/baselines/reference/privatePropertyUsingObjectType.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== privatePropertyUsingObjectType.ts (0 errors) ====
+ export class FilterManager {
+ private _filterProviders: { index: IFilterProvider; };
+ private _filterProviders2: { [index: number]: IFilterProvider; };
+ private _filterProviders3: { (index: number): IFilterProvider; };
+ private _filterProviders4: (index: number) => IFilterProvider;
+ }
+ export interface IFilterProvider {
+ }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/project/baseline/amd/baseline.errors.txt b/tests/baselines/reference/project/baseline/amd/baseline.errors.txt
new file mode 100644
index 0000000000000..7a2f702213bb1
--- /dev/null
+++ b/tests/baselines/reference/project/baseline/amd/baseline.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== decl.ts (0 errors) ====
+ export interface Point { x: number; y: number; };
+ export function point (x: number, y: number): Point {
+ return { x: x, y: y };
+ }
+==== emit.ts (0 errors) ====
+ import g = require("./decl");
+ var p = g.point(10,20);
\ No newline at end of file
diff --git a/tests/baselines/reference/project/baseline/node/baseline.errors.txt b/tests/baselines/reference/project/baseline/node/baseline.errors.txt
new file mode 100644
index 0000000000000..30ec6e699721c
--- /dev/null
+++ b/tests/baselines/reference/project/baseline/node/baseline.errors.txt
@@ -0,0 +1,12 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== decl.ts (0 errors) ====
+ export interface Point { x: number; y: number; };
+ export function point (x: number, y: number): Point {
+ return { x: x, y: y };
+ }
+==== emit.ts (0 errors) ====
+ import g = require("./decl");
+ var p = g.point(10,20);
\ No newline at end of file
diff --git a/tests/baselines/reference/project/baseline2/amd/baseline2.errors.txt b/tests/baselines/reference/project/baseline2/amd/baseline2.errors.txt
new file mode 100644
index 0000000000000..d515b287e96e1
--- /dev/null
+++ b/tests/baselines/reference/project/baseline2/amd/baseline2.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== decl.ts (0 errors) ====
+ export interface Point { x: number; y: number; };
+ export function point (x: number, y: number): Point {
+ return { x: x, y: y };
+ }
+==== dont_emit.ts (0 errors) ====
+ import g = require("decl");
+ var p: g.Point = { x: 10, y: 20 };
\ No newline at end of file
diff --git a/tests/baselines/reference/project/baseline2/node/baseline2.errors.txt b/tests/baselines/reference/project/baseline2/node/baseline2.errors.txt
new file mode 100644
index 0000000000000..617a04f2151c7
--- /dev/null
+++ b/tests/baselines/reference/project/baseline2/node/baseline2.errors.txt
@@ -0,0 +1,12 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== decl.ts (0 errors) ====
+ export interface Point { x: number; y: number; };
+ export function point (x: number, y: number): Point {
+ return { x: x, y: y };
+ }
+==== dont_emit.ts (0 errors) ====
+ import g = require("decl");
+ var p: g.Point = { x: 10, y: 20 };
\ No newline at end of file
diff --git a/tests/baselines/reference/project/baseline3/amd/baseline3.errors.txt b/tests/baselines/reference/project/baseline3/amd/baseline3.errors.txt
new file mode 100644
index 0000000000000..5d8e6b6e6bfe0
--- /dev/null
+++ b/tests/baselines/reference/project/baseline3/amd/baseline3.errors.txt
@@ -0,0 +1,13 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== nestedModule.ts (0 errors) ====
+ export module outer {
+ export module inner {
+ var local = 1;
+ export var a = local;
+ }
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/baseline3/node/baseline3.errors.txt b/tests/baselines/reference/project/baseline3/node/baseline3.errors.txt
new file mode 100644
index 0000000000000..9f4ea9300c863
--- /dev/null
+++ b/tests/baselines/reference/project/baseline3/node/baseline3.errors.txt
@@ -0,0 +1,11 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== nestedModule.ts (0 errors) ====
+ export module outer {
+ export module inner {
+ var local = 1;
+ export var a = local;
+ }
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/cantFindTheModule/amd/cantFindTheModule.errors.txt b/tests/baselines/reference/project/cantFindTheModule/amd/cantFindTheModule.errors.txt
index 09e738e27c13d..b9d9e8b2b893e 100644
--- a/tests/baselines/reference/project/cantFindTheModule/amd/cantFindTheModule.errors.txt
+++ b/tests/baselines/reference/project/cantFindTheModule/amd/cantFindTheModule.errors.txt
@@ -1,8 +1,12 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
decl.ts(1,26): error TS2792: Cannot find module './foo/bar.tx'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
decl.ts(2,26): error TS2792: Cannot find module 'baz'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
decl.ts(3,26): error TS2792: Cannot find module './baz'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== decl.ts (3 errors) ====
import modErr = require("./foo/bar.tx");
~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/project/cantFindTheModule/node/cantFindTheModule.errors.txt b/tests/baselines/reference/project/cantFindTheModule/node/cantFindTheModule.errors.txt
index 09e738e27c13d..48a6b2a4975ba 100644
--- a/tests/baselines/reference/project/cantFindTheModule/node/cantFindTheModule.errors.txt
+++ b/tests/baselines/reference/project/cantFindTheModule/node/cantFindTheModule.errors.txt
@@ -1,8 +1,10 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
decl.ts(1,26): error TS2792: Cannot find module './foo/bar.tx'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
decl.ts(2,26): error TS2792: Cannot find module 'baz'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
decl.ts(3,26): error TS2792: Cannot find module './baz'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== decl.ts (3 errors) ====
import modErr = require("./foo/bar.tx");
~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/project/circularReferencing/amd/circularReferencing.errors.txt b/tests/baselines/reference/project/circularReferencing/amd/circularReferencing.errors.txt
new file mode 100644
index 0000000000000..cf15263948181
--- /dev/null
+++ b/tests/baselines/reference/project/circularReferencing/amd/circularReferencing.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== decl.ts (0 errors) ====
+ import mod = require("consume");
+ export function call() {
+ mod.call();
+ }
+==== consume.ts (0 errors) ====
+ import mod = require("decl");
+ export function call() {
+ mod.call();
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/circularReferencing/node/circularReferencing.errors.txt b/tests/baselines/reference/project/circularReferencing/node/circularReferencing.errors.txt
new file mode 100644
index 0000000000000..e6f259522ede2
--- /dev/null
+++ b/tests/baselines/reference/project/circularReferencing/node/circularReferencing.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== decl.ts (0 errors) ====
+ import mod = require("consume");
+ export function call() {
+ mod.call();
+ }
+==== consume.ts (0 errors) ====
+ import mod = require("decl");
+ export function call() {
+ mod.call();
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/circularReferencing2/amd/circularReferencing2.errors.txt b/tests/baselines/reference/project/circularReferencing2/amd/circularReferencing2.errors.txt
new file mode 100644
index 0000000000000..d699f043eeab4
--- /dev/null
+++ b/tests/baselines/reference/project/circularReferencing2/amd/circularReferencing2.errors.txt
@@ -0,0 +1,30 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== b.ts (0 errors) ====
+ import A = require("a");
+
+ export class B extends A.A {
+ constructor () {
+ super();
+ }
+ }
+==== c.ts (0 errors) ====
+ import B = require("b");
+
+ export class C extends B.B {
+ constructor () {
+ super();
+ }
+ }
+
+==== a.ts (0 errors) ====
+ import C = require("c");
+
+ export class A {
+ constructor () { }
+ }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/project/circularReferencing2/node/circularReferencing2.errors.txt b/tests/baselines/reference/project/circularReferencing2/node/circularReferencing2.errors.txt
new file mode 100644
index 0000000000000..cd945d1f622d7
--- /dev/null
+++ b/tests/baselines/reference/project/circularReferencing2/node/circularReferencing2.errors.txt
@@ -0,0 +1,28 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== b.ts (0 errors) ====
+ import A = require("a");
+
+ export class B extends A.A {
+ constructor () {
+ super();
+ }
+ }
+==== c.ts (0 errors) ====
+ import B = require("b");
+
+ export class C extends B.B {
+ constructor () {
+ super();
+ }
+ }
+
+==== a.ts (0 errors) ====
+ import C = require("c");
+
+ export class A {
+ constructor () { }
+ }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/project/declarationDir/amd/declarationDir.errors.txt b/tests/baselines/reference/project/declarationDir/amd/declarationDir.errors.txt
new file mode 100644
index 0000000000000..0d8c2778d28cf
--- /dev/null
+++ b/tests/baselines/reference/project/declarationDir/amd/declarationDir.errors.txt
@@ -0,0 +1,21 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== b.ts (0 errors) ====
+ export class B {
+
+ }
+==== a.ts (0 errors) ====
+ import {B} from './subfolder/b';
+ export class A {
+ b: B;
+ }
+==== subfolder/c.ts (0 errors) ====
+ import {A} from '../a';
+
+ export class C {
+ a: A;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/declarationDir/node/declarationDir.errors.txt b/tests/baselines/reference/project/declarationDir/node/declarationDir.errors.txt
new file mode 100644
index 0000000000000..7595d62dab7a2
--- /dev/null
+++ b/tests/baselines/reference/project/declarationDir/node/declarationDir.errors.txt
@@ -0,0 +1,19 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== b.ts (0 errors) ====
+ export class B {
+
+ }
+==== a.ts (0 errors) ====
+ import {B} from './subfolder/b';
+ export class A {
+ b: B;
+ }
+==== subfolder/c.ts (0 errors) ====
+ import {A} from '../a';
+
+ export class C {
+ a: A;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/declarationDir2/amd/declarationDir2.errors.txt b/tests/baselines/reference/project/declarationDir2/amd/declarationDir2.errors.txt
new file mode 100644
index 0000000000000..0d8c2778d28cf
--- /dev/null
+++ b/tests/baselines/reference/project/declarationDir2/amd/declarationDir2.errors.txt
@@ -0,0 +1,21 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== b.ts (0 errors) ====
+ export class B {
+
+ }
+==== a.ts (0 errors) ====
+ import {B} from './subfolder/b';
+ export class A {
+ b: B;
+ }
+==== subfolder/c.ts (0 errors) ====
+ import {A} from '../a';
+
+ export class C {
+ a: A;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/declarationDir2/node/declarationDir2.errors.txt b/tests/baselines/reference/project/declarationDir2/node/declarationDir2.errors.txt
new file mode 100644
index 0000000000000..7595d62dab7a2
--- /dev/null
+++ b/tests/baselines/reference/project/declarationDir2/node/declarationDir2.errors.txt
@@ -0,0 +1,19 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== b.ts (0 errors) ====
+ export class B {
+
+ }
+==== a.ts (0 errors) ====
+ import {B} from './subfolder/b';
+ export class A {
+ b: B;
+ }
+==== subfolder/c.ts (0 errors) ====
+ import {A} from '../a';
+
+ export class C {
+ a: A;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/declarationDir3/amd/declarationDir3.errors.txt b/tests/baselines/reference/project/declarationDir3/amd/declarationDir3.errors.txt
index 4dfbd076cc92f..fdd4900316bb9 100644
--- a/tests/baselines/reference/project/declarationDir3/amd/declarationDir3.errors.txt
+++ b/tests/baselines/reference/project/declarationDir3/amd/declarationDir3.errors.txt
@@ -1,7 +1,11 @@
error TS5053: Option 'declarationDir' cannot be specified with option 'outFile'.
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS5053: Option 'declarationDir' cannot be specified with option 'outFile'.
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== b.ts (0 errors) ====
export class B {
diff --git a/tests/baselines/reference/project/declarationDir3/node/declarationDir3.errors.txt b/tests/baselines/reference/project/declarationDir3/node/declarationDir3.errors.txt
index c877782f38964..5ed911b169808 100644
--- a/tests/baselines/reference/project/declarationDir3/node/declarationDir3.errors.txt
+++ b/tests/baselines/reference/project/declarationDir3/node/declarationDir3.errors.txt
@@ -1,8 +1,10 @@
error TS5053: Option 'declarationDir' cannot be specified with option 'outFile'.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
!!! error TS5053: Option 'declarationDir' cannot be specified with option 'outFile'.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== b.ts (0 errors) ====
export class B {
diff --git a/tests/baselines/reference/project/declarationsCascadingImports/amd/declarationsCascadingImports.errors.txt b/tests/baselines/reference/project/declarationsCascadingImports/amd/declarationsCascadingImports.errors.txt
new file mode 100644
index 0000000000000..5befa870d86ac
--- /dev/null
+++ b/tests/baselines/reference/project/declarationsCascadingImports/amd/declarationsCascadingImports.errors.txt
@@ -0,0 +1,30 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m4.ts (0 errors) ====
+ export class d {
+ };
+ export var x: d;
+ export function foo() {
+ return new d();
+ }
+
+==== useModule.ts (0 errors) ====
+ declare module "quotedm1" {
+ import m4 = require("m4");
+ export class v {
+ public c: m4.d;
+ }
+ }
+
+ declare module "quotedm2" {
+ import m1 = require("quotedm1");
+ export var c: m1.v;
+ }
+
+
+
+
\ No newline at end of file
diff --git a/tests/baselines/reference/project/declarationsCascadingImports/node/declarationsCascadingImports.errors.txt b/tests/baselines/reference/project/declarationsCascadingImports/node/declarationsCascadingImports.errors.txt
new file mode 100644
index 0000000000000..a70585d1ef8fc
--- /dev/null
+++ b/tests/baselines/reference/project/declarationsCascadingImports/node/declarationsCascadingImports.errors.txt
@@ -0,0 +1,28 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m4.ts (0 errors) ====
+ export class d {
+ };
+ export var x: d;
+ export function foo() {
+ return new d();
+ }
+
+==== useModule.ts (0 errors) ====
+ declare module "quotedm1" {
+ import m4 = require("m4");
+ export class v {
+ public c: m4.d;
+ }
+ }
+
+ declare module "quotedm2" {
+ import m1 = require("quotedm1");
+ export var c: m1.v;
+ }
+
+
+
+
\ No newline at end of file
diff --git a/tests/baselines/reference/project/declarationsExportNamespace/amd/declarationsExportNamespace.errors.txt b/tests/baselines/reference/project/declarationsExportNamespace/amd/declarationsExportNamespace.errors.txt
new file mode 100644
index 0000000000000..531f35ce8cc2e
--- /dev/null
+++ b/tests/baselines/reference/project/declarationsExportNamespace/amd/declarationsExportNamespace.errors.txt
@@ -0,0 +1,17 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== decl.d.ts (0 errors) ====
+ export interface A {
+ b: number;
+ }
+ export as namespace moduleA;
+==== useModule.ts (0 errors) ====
+ module moduleB {
+ export interface IUseModuleA {
+ a: moduleA.A;
+ }
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/declarationsExportNamespace/node/declarationsExportNamespace.errors.txt b/tests/baselines/reference/project/declarationsExportNamespace/node/declarationsExportNamespace.errors.txt
new file mode 100644
index 0000000000000..046be3577d207
--- /dev/null
+++ b/tests/baselines/reference/project/declarationsExportNamespace/node/declarationsExportNamespace.errors.txt
@@ -0,0 +1,15 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== decl.d.ts (0 errors) ====
+ export interface A {
+ b: number;
+ }
+ export as namespace moduleA;
+==== useModule.ts (0 errors) ====
+ module moduleB {
+ export interface IUseModuleA {
+ a: moduleA.A;
+ }
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/declarationsGlobalImport/amd/declarationsGlobalImport.errors.txt b/tests/baselines/reference/project/declarationsGlobalImport/amd/declarationsGlobalImport.errors.txt
new file mode 100644
index 0000000000000..71f7e801d987e
--- /dev/null
+++ b/tests/baselines/reference/project/declarationsGlobalImport/amd/declarationsGlobalImport.errors.txt
@@ -0,0 +1,21 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== glo_m4.ts (0 errors) ====
+
+ export class d {
+ };
+ export var x: d;
+ export function foo(): d {
+ return new d();
+ }
+
+
+==== useModule.ts (0 errors) ====
+ import glo_m4 = require("glo_m4");
+ export var useGlo_m4_x4 = glo_m4.x;
+ export var useGlo_m4_d4 = glo_m4.d;
+ export var useGlo_m4_f4 = glo_m4.foo();
\ No newline at end of file
diff --git a/tests/baselines/reference/project/declarationsGlobalImport/node/declarationsGlobalImport.errors.txt b/tests/baselines/reference/project/declarationsGlobalImport/node/declarationsGlobalImport.errors.txt
new file mode 100644
index 0000000000000..70efa77735aab
--- /dev/null
+++ b/tests/baselines/reference/project/declarationsGlobalImport/node/declarationsGlobalImport.errors.txt
@@ -0,0 +1,19 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== glo_m4.ts (0 errors) ====
+
+ export class d {
+ };
+ export var x: d;
+ export function foo(): d {
+ return new d();
+ }
+
+
+==== useModule.ts (0 errors) ====
+ import glo_m4 = require("glo_m4");
+ export var useGlo_m4_x4 = glo_m4.x;
+ export var useGlo_m4_d4 = glo_m4.d;
+ export var useGlo_m4_f4 = glo_m4.foo();
\ No newline at end of file
diff --git a/tests/baselines/reference/project/declarationsImportedInPrivate/amd/declarationsImportedInPrivate.errors.txt b/tests/baselines/reference/project/declarationsImportedInPrivate/amd/declarationsImportedInPrivate.errors.txt
new file mode 100644
index 0000000000000..ba4203a99052b
--- /dev/null
+++ b/tests/baselines/reference/project/declarationsImportedInPrivate/amd/declarationsImportedInPrivate.errors.txt
@@ -0,0 +1,26 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== private_m4.ts (0 errors) ====
+
+ export class d {
+ };
+ export var x: d;
+ export function foo(): d {
+ return new d();
+ }
+
+
+==== useModule.ts (0 errors) ====
+ // only used privately no need to emit
+ import private_m4 = require("private_m4");
+ export module usePrivate_m4_m1 {
+ var x3 = private_m4.x;
+ var d3 = private_m4.d;
+ var f3 = private_m4.foo();
+
+ export var numberVar: number;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/declarationsImportedInPrivate/node/declarationsImportedInPrivate.errors.txt b/tests/baselines/reference/project/declarationsImportedInPrivate/node/declarationsImportedInPrivate.errors.txt
new file mode 100644
index 0000000000000..cdb65a3d93662
--- /dev/null
+++ b/tests/baselines/reference/project/declarationsImportedInPrivate/node/declarationsImportedInPrivate.errors.txt
@@ -0,0 +1,24 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== private_m4.ts (0 errors) ====
+
+ export class d {
+ };
+ export var x: d;
+ export function foo(): d {
+ return new d();
+ }
+
+
+==== useModule.ts (0 errors) ====
+ // only used privately no need to emit
+ import private_m4 = require("private_m4");
+ export module usePrivate_m4_m1 {
+ var x3 = private_m4.x;
+ var d3 = private_m4.d;
+ var f3 = private_m4.foo();
+
+ export var numberVar: number;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/declarationsImportedUseInFunction/amd/declarationsImportedUseInFunction.errors.txt b/tests/baselines/reference/project/declarationsImportedUseInFunction/amd/declarationsImportedUseInFunction.errors.txt
new file mode 100644
index 0000000000000..9c0dcb6ab676b
--- /dev/null
+++ b/tests/baselines/reference/project/declarationsImportedUseInFunction/amd/declarationsImportedUseInFunction.errors.txt
@@ -0,0 +1,19 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== fncOnly_m4.ts (0 errors) ====
+
+ export class d {
+ };
+ export var x: d;
+ export function foo(): d {
+ return new d();
+ }
+
+
+==== useModule.ts (0 errors) ====
+ import fncOnly_m4 = require("fncOnly_m4");
+ export var useFncOnly_m4_f4 = fncOnly_m4.foo();
\ No newline at end of file
diff --git a/tests/baselines/reference/project/declarationsImportedUseInFunction/node/declarationsImportedUseInFunction.errors.txt b/tests/baselines/reference/project/declarationsImportedUseInFunction/node/declarationsImportedUseInFunction.errors.txt
new file mode 100644
index 0000000000000..800a0933dc5c8
--- /dev/null
+++ b/tests/baselines/reference/project/declarationsImportedUseInFunction/node/declarationsImportedUseInFunction.errors.txt
@@ -0,0 +1,17 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== fncOnly_m4.ts (0 errors) ====
+
+ export class d {
+ };
+ export var x: d;
+ export function foo(): d {
+ return new d();
+ }
+
+
+==== useModule.ts (0 errors) ====
+ import fncOnly_m4 = require("fncOnly_m4");
+ export var useFncOnly_m4_f4 = fncOnly_m4.foo();
\ No newline at end of file
diff --git a/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/amd/declarationsIndirectImportShouldResultInError.errors.txt b/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/amd/declarationsIndirectImportShouldResultInError.errors.txt
new file mode 100644
index 0000000000000..f2d98e4b42baa
--- /dev/null
+++ b/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/amd/declarationsIndirectImportShouldResultInError.errors.txt
@@ -0,0 +1,28 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m4.ts (0 errors) ====
+ export class d {
+ };
+ export var x: d;
+ export function foo() {
+ return new d();
+ }
+
+==== m5.ts (0 errors) ====
+ import m4 = require("m4"); // Emit used
+ export function foo2() {
+ return new m4.d();
+ }
+==== useModule.ts (0 errors) ====
+ // Do not emit unused import
+ import m5 = require("m5");
+ export var d = m5.foo2();
+ export var x = m5.foo2;
+
+ export function n() {
+ return m5.foo2();
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/node/declarationsIndirectImportShouldResultInError.errors.txt b/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/node/declarationsIndirectImportShouldResultInError.errors.txt
new file mode 100644
index 0000000000000..2eb82cb61b2e5
--- /dev/null
+++ b/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/node/declarationsIndirectImportShouldResultInError.errors.txt
@@ -0,0 +1,26 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m4.ts (0 errors) ====
+ export class d {
+ };
+ export var x: d;
+ export function foo() {
+ return new d();
+ }
+
+==== m5.ts (0 errors) ====
+ import m4 = require("m4"); // Emit used
+ export function foo2() {
+ return new m4.d();
+ }
+==== useModule.ts (0 errors) ====
+ // Do not emit unused import
+ import m5 = require("m5");
+ export var d = m5.foo2();
+ export var x = m5.foo2;
+
+ export function n() {
+ return m5.foo2();
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/declarationsMultipleTimesImport/amd/declarationsMultipleTimesImport.errors.txt b/tests/baselines/reference/project/declarationsMultipleTimesImport/amd/declarationsMultipleTimesImport.errors.txt
new file mode 100644
index 0000000000000..16c5346b90e3b
--- /dev/null
+++ b/tests/baselines/reference/project/declarationsMultipleTimesImport/amd/declarationsMultipleTimesImport.errors.txt
@@ -0,0 +1,35 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m4.ts (0 errors) ====
+ export class d {
+ };
+ export var x: d;
+ export function foo() {
+ return new d();
+ }
+
+==== useModule.ts (0 errors) ====
+ import m4 = require("m4"); // Emit used
+ export var x4 = m4.x;
+ export var d4 = m4.d;
+ export var f4 = m4.foo();
+
+ export module m1 {
+ export var x2 = m4.x;
+ export var d2 = m4.d;
+ export var f2 = m4.foo();
+
+ var x3 = m4.x;
+ var d3 = m4.d;
+ var f3 = m4.foo();
+ }
+
+ // Do not emit multiple used import statements
+ import multiImport_m4 = require("m4"); // Emit used
+ export var useMultiImport_m4_x4 = multiImport_m4.x;
+ export var useMultiImport_m4_d4 = multiImport_m4.d;
+ export var useMultiImport_m4_f4 = multiImport_m4.foo();
\ No newline at end of file
diff --git a/tests/baselines/reference/project/declarationsMultipleTimesImport/node/declarationsMultipleTimesImport.errors.txt b/tests/baselines/reference/project/declarationsMultipleTimesImport/node/declarationsMultipleTimesImport.errors.txt
new file mode 100644
index 0000000000000..c998ea2814973
--- /dev/null
+++ b/tests/baselines/reference/project/declarationsMultipleTimesImport/node/declarationsMultipleTimesImport.errors.txt
@@ -0,0 +1,33 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m4.ts (0 errors) ====
+ export class d {
+ };
+ export var x: d;
+ export function foo() {
+ return new d();
+ }
+
+==== useModule.ts (0 errors) ====
+ import m4 = require("m4"); // Emit used
+ export var x4 = m4.x;
+ export var d4 = m4.d;
+ export var f4 = m4.foo();
+
+ export module m1 {
+ export var x2 = m4.x;
+ export var d2 = m4.d;
+ export var f2 = m4.foo();
+
+ var x3 = m4.x;
+ var d3 = m4.d;
+ var f3 = m4.foo();
+ }
+
+ // Do not emit multiple used import statements
+ import multiImport_m4 = require("m4"); // Emit used
+ export var useMultiImport_m4_x4 = multiImport_m4.x;
+ export var useMultiImport_m4_d4 = multiImport_m4.d;
+ export var useMultiImport_m4_f4 = multiImport_m4.foo();
\ No newline at end of file
diff --git a/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/amd/declarationsMultipleTimesMultipleImport.errors.txt b/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/amd/declarationsMultipleTimesMultipleImport.errors.txt
new file mode 100644
index 0000000000000..d4671cbb2d84a
--- /dev/null
+++ b/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/amd/declarationsMultipleTimesMultipleImport.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m4.ts (0 errors) ====
+ export class d {
+ };
+ export var x: d;
+ export function foo() {
+ return new d();
+ }
+
+==== m5.ts (0 errors) ====
+ import m4 = require("m4"); // Emit used
+ export function foo2() {
+ return new m4.d();
+ }
+==== useModule.ts (0 errors) ====
+ import m4 = require("m4"); // Emit used
+ export var x4 = m4.x;
+ export var d4 = m4.d;
+ export var f4 = m4.foo();
+
+ export module m1 {
+ export var x2 = m4.x;
+ export var d2 = m4.d;
+ export var f2 = m4.foo();
+
+ var x3 = m4.x;
+ var d3 = m4.d;
+ var f3 = m4.foo();
+ }
+
+ // Do not emit unused import
+ import m5 = require("m5");
+ export var d = m5.foo2();
\ No newline at end of file
diff --git a/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/node/declarationsMultipleTimesMultipleImport.errors.txt b/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/node/declarationsMultipleTimesMultipleImport.errors.txt
new file mode 100644
index 0000000000000..6736fd3889a29
--- /dev/null
+++ b/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/node/declarationsMultipleTimesMultipleImport.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m4.ts (0 errors) ====
+ export class d {
+ };
+ export var x: d;
+ export function foo() {
+ return new d();
+ }
+
+==== m5.ts (0 errors) ====
+ import m4 = require("m4"); // Emit used
+ export function foo2() {
+ return new m4.d();
+ }
+==== useModule.ts (0 errors) ====
+ import m4 = require("m4"); // Emit used
+ export var x4 = m4.x;
+ export var d4 = m4.d;
+ export var f4 = m4.foo();
+
+ export module m1 {
+ export var x2 = m4.x;
+ export var d2 = m4.d;
+ export var f2 = m4.foo();
+
+ var x3 = m4.x;
+ var d3 = m4.d;
+ var f3 = m4.foo();
+ }
+
+ // Do not emit unused import
+ import m5 = require("m5");
+ export var d = m5.foo2();
\ No newline at end of file
diff --git a/tests/baselines/reference/project/declarationsSimpleImport/amd/declarationsSimpleImport.errors.txt b/tests/baselines/reference/project/declarationsSimpleImport/amd/declarationsSimpleImport.errors.txt
new file mode 100644
index 0000000000000..36e24bcba9fd5
--- /dev/null
+++ b/tests/baselines/reference/project/declarationsSimpleImport/amd/declarationsSimpleImport.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m4.ts (0 errors) ====
+ export class d {
+ };
+ export var x: d;
+ export function foo() {
+ return new d();
+ }
+
+==== useModule.ts (0 errors) ====
+ import m4 = require("m4"); // Emit used
+ export var x4 = m4.x;
+ export var d4 = m4.d;
+ export var f4 = m4.foo();
+
+ export module m1 {
+ export var x2 = m4.x;
+ export var d2 = m4.d;
+ export var f2 = m4.foo();
+
+ var x3 = m4.x;
+ var d3 = m4.d;
+ var f3 = m4.foo();
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/declarationsSimpleImport/node/declarationsSimpleImport.errors.txt b/tests/baselines/reference/project/declarationsSimpleImport/node/declarationsSimpleImport.errors.txt
new file mode 100644
index 0000000000000..9d422bd692286
--- /dev/null
+++ b/tests/baselines/reference/project/declarationsSimpleImport/node/declarationsSimpleImport.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m4.ts (0 errors) ====
+ export class d {
+ };
+ export var x: d;
+ export function foo() {
+ return new d();
+ }
+
+==== useModule.ts (0 errors) ====
+ import m4 = require("m4"); // Emit used
+ export var x4 = m4.x;
+ export var d4 = m4.d;
+ export var f4 = m4.foo();
+
+ export module m1 {
+ export var x2 = m4.x;
+ export var d2 = m4.d;
+ export var f2 = m4.foo();
+
+ var x3 = m4.x;
+ var d3 = m4.d;
+ var f3 = m4.foo();
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/declareExportAdded/amd/declareExportAdded.errors.txt b/tests/baselines/reference/project/declareExportAdded/amd/declareExportAdded.errors.txt
new file mode 100644
index 0000000000000..1ca880ef898ef
--- /dev/null
+++ b/tests/baselines/reference/project/declareExportAdded/amd/declareExportAdded.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref.d.ts (0 errors) ====
+ declare module M1
+ {
+ export function f1(): void;
+ }
+==== consumer.ts (0 errors) ====
+ ///
+
+ // in the generated code a 'this' is added before this call
+ M1.f1();
\ No newline at end of file
diff --git a/tests/baselines/reference/project/declareExportAdded/node/declareExportAdded.errors.txt b/tests/baselines/reference/project/declareExportAdded/node/declareExportAdded.errors.txt
new file mode 100644
index 0000000000000..cec554c516db9
--- /dev/null
+++ b/tests/baselines/reference/project/declareExportAdded/node/declareExportAdded.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref.d.ts (0 errors) ====
+ declare module M1
+ {
+ export function f1(): void;
+ }
+==== consumer.ts (0 errors) ====
+ ///
+
+ // in the generated code a 'this' is added before this call
+ M1.f1();
\ No newline at end of file
diff --git a/tests/baselines/reference/project/declareVariableCollision/amd/declareVariableCollision.errors.txt b/tests/baselines/reference/project/declareVariableCollision/amd/declareVariableCollision.errors.txt
index 73d3a86d014bc..b1f81b629f7d4 100644
--- a/tests/baselines/reference/project/declareVariableCollision/amd/declareVariableCollision.errors.txt
+++ b/tests/baselines/reference/project/declareVariableCollision/amd/declareVariableCollision.errors.txt
@@ -1,7 +1,11 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
in1.d.ts(1,8): error TS2300: Duplicate identifier 'a'.
in2.d.ts(1,8): error TS2300: Duplicate identifier 'a'.
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== decl.d.ts (0 errors) ====
// bug 535531: duplicate identifier error reported for "import" declarations in separate files
diff --git a/tests/baselines/reference/project/declareVariableCollision/node/declareVariableCollision.errors.txt b/tests/baselines/reference/project/declareVariableCollision/node/declareVariableCollision.errors.txt
index 73d3a86d014bc..a2584e6b97c29 100644
--- a/tests/baselines/reference/project/declareVariableCollision/node/declareVariableCollision.errors.txt
+++ b/tests/baselines/reference/project/declareVariableCollision/node/declareVariableCollision.errors.txt
@@ -1,7 +1,9 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
in1.d.ts(1,8): error TS2300: Duplicate identifier 'a'.
in2.d.ts(1,8): error TS2300: Duplicate identifier 'a'.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== decl.d.ts (0 errors) ====
// bug 535531: duplicate identifier error reported for "import" declarations in separate files
diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/defaultExcludeNodeModulesAndOutDir.errors.txt b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/defaultExcludeNodeModulesAndOutDir.errors.txt
new file mode 100644
index 0000000000000..1a9ede8c45089
--- /dev/null
+++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/defaultExcludeNodeModulesAndOutDir.errors.txt
@@ -0,0 +1,17 @@
+tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== tsconfig.json (2 errors) ====
+ {
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "outDir": "OutDir",
+ "declaration": true
+ }
+ }
+==== a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/node/defaultExcludeNodeModulesAndOutDir.errors.txt b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/node/defaultExcludeNodeModulesAndOutDir.errors.txt
new file mode 100644
index 0000000000000..c152eb847a1e5
--- /dev/null
+++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/node/defaultExcludeNodeModulesAndOutDir.errors.txt
@@ -0,0 +1,14 @@
+tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "outDir": "OutDir",
+ "declaration": true
+ }
+ }
+==== a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndOutDirWithAllowJS.errors.txt b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndOutDirWithAllowJS.errors.txt
new file mode 100644
index 0000000000000..0994c19e96f40
--- /dev/null
+++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndOutDirWithAllowJS.errors.txt
@@ -0,0 +1,17 @@
+tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== tsconfig.json (2 errors) ====
+ {
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "outDir": "OutDir",
+ "allowJs": true
+ }
+ }
+==== a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/node/defaultExcludeNodeModulesAndOutDirWithAllowJS.errors.txt b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/node/defaultExcludeNodeModulesAndOutDirWithAllowJS.errors.txt
new file mode 100644
index 0000000000000..89f9957c19347
--- /dev/null
+++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/node/defaultExcludeNodeModulesAndOutDirWithAllowJS.errors.txt
@@ -0,0 +1,14 @@
+tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "outDir": "OutDir",
+ "allowJs": true
+ }
+ }
+==== a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/amd/defaultExcludeNodeModulesAndRelativePathOutDir.errors.txt b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/amd/defaultExcludeNodeModulesAndRelativePathOutDir.errors.txt
new file mode 100644
index 0000000000000..c17623171c4b4
--- /dev/null
+++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/amd/defaultExcludeNodeModulesAndRelativePathOutDir.errors.txt
@@ -0,0 +1,17 @@
+tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== tsconfig.json (2 errors) ====
+ {
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "outDir": "./OutDir",
+ "declaration": true
+ }
+ }
+==== a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/node/defaultExcludeNodeModulesAndRelativePathOutDir.errors.txt b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/node/defaultExcludeNodeModulesAndRelativePathOutDir.errors.txt
new file mode 100644
index 0000000000000..b8ef2bd450e25
--- /dev/null
+++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/node/defaultExcludeNodeModulesAndRelativePathOutDir.errors.txt
@@ -0,0 +1,14 @@
+tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "outDir": "./OutDir",
+ "declaration": true
+ }
+ }
+==== a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.errors.txt b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.errors.txt
new file mode 100644
index 0000000000000..33138ca2028ff
--- /dev/null
+++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.errors.txt
@@ -0,0 +1,17 @@
+tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== tsconfig.json (2 errors) ====
+ {
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "outDir": "./OutDir",
+ "allowJs": true
+ }
+ }
+==== a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/node/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.errors.txt b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/node/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.errors.txt
new file mode 100644
index 0000000000000..6fae14f105e6b
--- /dev/null
+++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/node/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.errors.txt
@@ -0,0 +1,14 @@
+tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "outDir": "./OutDir",
+ "allowJs": true
+ }
+ }
+==== a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/amd/defaultExcludeOnlyNodeModules.errors.txt b/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/amd/defaultExcludeOnlyNodeModules.errors.txt
new file mode 100644
index 0000000000000..ef94fccaf8f8b
--- /dev/null
+++ b/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/amd/defaultExcludeOnlyNodeModules.errors.txt
@@ -0,0 +1,16 @@
+tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== tsconfig.json (2 errors) ====
+ {
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "target": "es5"
+ }
+ }
+==== a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/node/defaultExcludeOnlyNodeModules.errors.txt b/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/node/defaultExcludeOnlyNodeModules.errors.txt
new file mode 100644
index 0000000000000..593927f1e7d0e
--- /dev/null
+++ b/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/node/defaultExcludeOnlyNodeModules.errors.txt
@@ -0,0 +1,13 @@
+tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "target": "es5"
+ }
+ }
+==== a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/amd/emitDecoratorMetadataCommonJSISolatedModules.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/amd/emitDecoratorMetadataCommonJSISolatedModules.errors.txt
index e645d251235a1..06a7bb238c97a 100644
--- a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/amd/emitDecoratorMetadataCommonJSISolatedModules.errors.txt
+++ b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/amd/emitDecoratorMetadataCommonJSISolatedModules.errors.txt
@@ -1,12 +1,18 @@
+tsconfig.json(3,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+tsconfig.json(5,15): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
-==== tsconfig.json (0 errors) ====
+==== tsconfig.json (2 errors) ====
{
"compileOnSave": true,
"compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"target": "es5",
"module": "commonjs",
+ ~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"isolatedModules": true
diff --git a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/amd/main.js b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/amd/main.js
index f97c2d4ee68f0..a39e146283a8f 100644
--- a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/amd/main.js
+++ b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/amd/main.js
@@ -1,9 +1,42 @@
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
@@ -11,6 +44,7 @@ define(["require", "exports", "angular2/core"], function (require, exports, ng)
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MyClass1 = void 0;
+ ng = __importStar(ng);
let MyClass1 = (() => {
var _a;
let MyClass1 = class MyClass1 {
diff --git a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/node/emitDecoratorMetadataCommonJSISolatedModules.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/node/emitDecoratorMetadataCommonJSISolatedModules.errors.txt
index e645d251235a1..9ced49cce9130 100644
--- a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/node/emitDecoratorMetadataCommonJSISolatedModules.errors.txt
+++ b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/node/emitDecoratorMetadataCommonJSISolatedModules.errors.txt
@@ -1,10 +1,13 @@
+tsconfig.json(3,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
-==== tsconfig.json (0 errors) ====
+==== tsconfig.json (1 errors) ====
{
"compileOnSave": true,
"compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"target": "es5",
"module": "commonjs",
"emitDecoratorMetadata": true,
diff --git a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/node/main.js b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/node/main.js
index 880da0cfdf600..a0ed1444e8541 100644
--- a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/node/main.js
+++ b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/node/main.js
@@ -1,16 +1,49 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MyClass1 = void 0;
-var ng = require("angular2/core");
+var ng = __importStar(require("angular2/core"));
let MyClass1 = (() => {
var _a;
let MyClass1 = class MyClass1 {
diff --git a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/amd/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/amd/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt
index 4362efe8f139e..762e07cf1d37d 100644
--- a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/amd/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt
+++ b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/amd/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt
@@ -1,12 +1,18 @@
+tsconfig.json(3,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+tsconfig.json(5,15): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
-==== tsconfig.json (0 errors) ====
+==== tsconfig.json (2 errors) ====
{
"compileOnSave": true,
"compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"target": "es5",
"module": "commonjs",
+ ~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"isolatedModules": true,
diff --git a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/amd/main.js b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/amd/main.js
index f97c2d4ee68f0..a39e146283a8f 100644
--- a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/amd/main.js
+++ b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/amd/main.js
@@ -1,9 +1,42 @@
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
@@ -11,6 +44,7 @@ define(["require", "exports", "angular2/core"], function (require, exports, ng)
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MyClass1 = void 0;
+ ng = __importStar(ng);
let MyClass1 = (() => {
var _a;
let MyClass1 = class MyClass1 {
diff --git a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/node/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/node/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt
index 4362efe8f139e..4f2e4137d9955 100644
--- a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/node/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt
+++ b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/node/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt
@@ -1,10 +1,13 @@
+tsconfig.json(3,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
-==== tsconfig.json (0 errors) ====
+==== tsconfig.json (1 errors) ====
{
"compileOnSave": true,
"compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"target": "es5",
"module": "commonjs",
"emitDecoratorMetadata": true,
diff --git a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/node/main.js b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/node/main.js
index 880da0cfdf600..a0ed1444e8541 100644
--- a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/node/main.js
+++ b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/node/main.js
@@ -1,16 +1,49 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MyClass1 = void 0;
-var ng = require("angular2/core");
+var ng = __importStar(require("angular2/core"));
let MyClass1 = (() => {
var _a;
let MyClass1 = class MyClass1 {
diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/amd/emitDecoratorMetadataSystemJS.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/amd/emitDecoratorMetadataSystemJS.errors.txt
index b8ae506a1ffa4..4c3cba22b2566 100644
--- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/amd/emitDecoratorMetadataSystemJS.errors.txt
+++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/amd/emitDecoratorMetadataSystemJS.errors.txt
@@ -1,12 +1,18 @@
+tsconfig.json(3,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+tsconfig.json(5,15): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
-==== tsconfig.json (0 errors) ====
+==== tsconfig.json (2 errors) ====
{
"compileOnSave": true,
"compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"target": "es5",
"module": "system",
+ ~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"emitDecoratorMetadata": true,
"experimentalDecorators": true
},
diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/amd/main.js b/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/amd/main.js
index f97c2d4ee68f0..a39e146283a8f 100644
--- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/amd/main.js
+++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/amd/main.js
@@ -1,9 +1,42 @@
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
@@ -11,6 +44,7 @@ define(["require", "exports", "angular2/core"], function (require, exports, ng)
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MyClass1 = void 0;
+ ng = __importStar(ng);
let MyClass1 = (() => {
var _a;
let MyClass1 = class MyClass1 {
diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/node/emitDecoratorMetadataSystemJS.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/node/emitDecoratorMetadataSystemJS.errors.txt
index b8ae506a1ffa4..1e19b3cfa4c97 100644
--- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/node/emitDecoratorMetadataSystemJS.errors.txt
+++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/node/emitDecoratorMetadataSystemJS.errors.txt
@@ -1,10 +1,13 @@
+tsconfig.json(3,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
-==== tsconfig.json (0 errors) ====
+==== tsconfig.json (1 errors) ====
{
"compileOnSave": true,
"compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"target": "es5",
"module": "system",
"emitDecoratorMetadata": true,
diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/node/main.js b/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/node/main.js
index 880da0cfdf600..a0ed1444e8541 100644
--- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/node/main.js
+++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/node/main.js
@@ -1,16 +1,49 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MyClass1 = void 0;
-var ng = require("angular2/core");
+var ng = __importStar(require("angular2/core"));
let MyClass1 = (() => {
var _a;
let MyClass1 = class MyClass1 {
diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/amd/emitDecoratorMetadataSystemJSISolatedModules.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/amd/emitDecoratorMetadataSystemJSISolatedModules.errors.txt
index 05181175f9372..cb44c70831178 100644
--- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/amd/emitDecoratorMetadataSystemJSISolatedModules.errors.txt
+++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/amd/emitDecoratorMetadataSystemJSISolatedModules.errors.txt
@@ -1,13 +1,19 @@
+tsconfig.json(5,15): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+tsconfig.json(6,25): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
-==== tsconfig.json (0 errors) ====
+==== tsconfig.json (2 errors) ====
{
"compileOnSave": true,
"compilerOptions": {
"target": "es5",
"module": "system",
+ ~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"moduleResolution": "node",
+ ~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"isolatedModules": true
diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/amd/main.js b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/amd/main.js
index f97c2d4ee68f0..a39e146283a8f 100644
--- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/amd/main.js
+++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/amd/main.js
@@ -1,9 +1,42 @@
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
@@ -11,6 +44,7 @@ define(["require", "exports", "angular2/core"], function (require, exports, ng)
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MyClass1 = void 0;
+ ng = __importStar(ng);
let MyClass1 = (() => {
var _a;
let MyClass1 = class MyClass1 {
diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/node/emitDecoratorMetadataSystemJSISolatedModules.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/node/emitDecoratorMetadataSystemJSISolatedModules.errors.txt
index 05181175f9372..f2f6708ec1f3e 100644
--- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/node/emitDecoratorMetadataSystemJSISolatedModules.errors.txt
+++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/node/emitDecoratorMetadataSystemJSISolatedModules.errors.txt
@@ -1,13 +1,16 @@
+tsconfig.json(6,25): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
-==== tsconfig.json (0 errors) ====
+==== tsconfig.json (1 errors) ====
{
"compileOnSave": true,
"compilerOptions": {
"target": "es5",
"module": "system",
"moduleResolution": "node",
+ ~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"isolatedModules": true
diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/node/main.js b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/node/main.js
index 880da0cfdf600..a0ed1444e8541 100644
--- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/node/main.js
+++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/node/main.js
@@ -1,16 +1,49 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MyClass1 = void 0;
-var ng = require("angular2/core");
+var ng = __importStar(require("angular2/core"));
let MyClass1 = (() => {
var _a;
let MyClass1 = class MyClass1 {
diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/amd/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/amd/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt
index 555f6f1a7ccb6..4dd71c2480382 100644
--- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/amd/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt
+++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/amd/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt
@@ -1,13 +1,19 @@
+tsconfig.json(5,15): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+tsconfig.json(6,25): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
-==== tsconfig.json (0 errors) ====
+==== tsconfig.json (2 errors) ====
{
"compileOnSave": true,
"compilerOptions": {
"target": "es5",
"module": "system",
+ ~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"moduleResolution": "node",
+ ~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"isolatedModules": true,
diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/amd/main.js b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/amd/main.js
index f97c2d4ee68f0..a39e146283a8f 100644
--- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/amd/main.js
+++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/amd/main.js
@@ -1,9 +1,42 @@
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
@@ -11,6 +44,7 @@ define(["require", "exports", "angular2/core"], function (require, exports, ng)
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MyClass1 = void 0;
+ ng = __importStar(ng);
let MyClass1 = (() => {
var _a;
let MyClass1 = class MyClass1 {
diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/node/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/node/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt
index 555f6f1a7ccb6..6f129bfd68837 100644
--- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/node/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt
+++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/node/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt
@@ -1,13 +1,16 @@
+tsconfig.json(6,25): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
-==== tsconfig.json (0 errors) ====
+==== tsconfig.json (1 errors) ====
{
"compileOnSave": true,
"compilerOptions": {
"target": "es5",
"module": "system",
"moduleResolution": "node",
+ ~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"isolatedModules": true,
diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/node/main.js b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/node/main.js
index 880da0cfdf600..a0ed1444e8541 100644
--- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/node/main.js
+++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/node/main.js
@@ -1,16 +1,49 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MyClass1 = void 0;
-var ng = require("angular2/core");
+var ng = __importStar(require("angular2/core"));
let MyClass1 = (() => {
var _a;
let MyClass1 = class MyClass1 {
diff --git a/tests/baselines/reference/project/extReferencingExtAndInt/amd/extReferencingExtAndInt.errors.txt b/tests/baselines/reference/project/extReferencingExtAndInt/amd/extReferencingExtAndInt.errors.txt
new file mode 100644
index 0000000000000..ede7e72d6eb9a
--- /dev/null
+++ b/tests/baselines/reference/project/extReferencingExtAndInt/amd/extReferencingExtAndInt.errors.txt
@@ -0,0 +1,20 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== internal.ts (0 errors) ====
+ module outer {
+ export var b = "foo";
+ }
+==== external2.ts (0 errors) ====
+ export function square(x: number) {
+ return (x * x);
+ }
+==== external.ts (0 errors) ====
+ ///
+ import a = require("external2");
+
+ outer.b = "bar";
+ var c = a.square(5);
\ No newline at end of file
diff --git a/tests/baselines/reference/project/extReferencingExtAndInt/node/extReferencingExtAndInt.errors.txt b/tests/baselines/reference/project/extReferencingExtAndInt/node/extReferencingExtAndInt.errors.txt
new file mode 100644
index 0000000000000..d7612e78e15c1
--- /dev/null
+++ b/tests/baselines/reference/project/extReferencingExtAndInt/node/extReferencingExtAndInt.errors.txt
@@ -0,0 +1,18 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== internal.ts (0 errors) ====
+ module outer {
+ export var b = "foo";
+ }
+==== external2.ts (0 errors) ====
+ export function square(x: number) {
+ return (x * x);
+ }
+==== external.ts (0 errors) ====
+ ///
+ import a = require("external2");
+
+ outer.b = "bar";
+ var c = a.square(5);
\ No newline at end of file
diff --git a/tests/baselines/reference/project/intReferencingExtAndInt/amd/intReferencingExtAndInt.errors.txt b/tests/baselines/reference/project/intReferencingExtAndInt/amd/intReferencingExtAndInt.errors.txt
index 5bdeea3038458..14c40e0580669 100644
--- a/tests/baselines/reference/project/intReferencingExtAndInt/amd/intReferencingExtAndInt.errors.txt
+++ b/tests/baselines/reference/project/intReferencingExtAndInt/amd/intReferencingExtAndInt.errors.txt
@@ -1,7 +1,11 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
internal2.ts(2,21): error TS1147: Import declarations in a namespace cannot reference a module.
internal2.ts(2,21): error TS2792: Cannot find module 'external2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== internal2.ts (2 errors) ====
module outer {
import g = require("external2")
diff --git a/tests/baselines/reference/project/intReferencingExtAndInt/node/intReferencingExtAndInt.errors.txt b/tests/baselines/reference/project/intReferencingExtAndInt/node/intReferencingExtAndInt.errors.txt
index 5bdeea3038458..0e270b2332f7d 100644
--- a/tests/baselines/reference/project/intReferencingExtAndInt/node/intReferencingExtAndInt.errors.txt
+++ b/tests/baselines/reference/project/intReferencingExtAndInt/node/intReferencingExtAndInt.errors.txt
@@ -1,7 +1,9 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
internal2.ts(2,21): error TS1147: Import declarations in a namespace cannot reference a module.
internal2.ts(2,21): error TS2792: Cannot find module 'external2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== internal2.ts (2 errors) ====
module outer {
import g = require("external2")
diff --git a/tests/baselines/reference/project/invalidRootFile/amd/invalidRootFile.errors.txt b/tests/baselines/reference/project/invalidRootFile/amd/invalidRootFile.errors.txt
index ce9c2a81f90ee..d45c4c02594e3 100644
--- a/tests/baselines/reference/project/invalidRootFile/amd/invalidRootFile.errors.txt
+++ b/tests/baselines/reference/project/invalidRootFile/amd/invalidRootFile.errors.txt
@@ -1,3 +1,5 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6053: File 'a.ts' not found.
The file is in the program because:
Root file specified for compilation
@@ -9,6 +11,8 @@ error TS6231: Could not resolve the path 'a' with the extensions: '.ts', '.tsx',
Root file specified for compilation
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6053: File 'a.ts' not found.
!!! error TS6053: The file is in the program because:
!!! error TS6053: Root file specified for compilation
diff --git a/tests/baselines/reference/project/invalidRootFile/node/invalidRootFile.errors.txt b/tests/baselines/reference/project/invalidRootFile/node/invalidRootFile.errors.txt
index ce9c2a81f90ee..4fcba270f6d00 100644
--- a/tests/baselines/reference/project/invalidRootFile/node/invalidRootFile.errors.txt
+++ b/tests/baselines/reference/project/invalidRootFile/node/invalidRootFile.errors.txt
@@ -1,3 +1,4 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6053: File 'a.ts' not found.
The file is in the program because:
Root file specified for compilation
@@ -9,6 +10,7 @@ error TS6231: Could not resolve the path 'a' with the extensions: '.ts', '.tsx',
Root file specified for compilation
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6053: File 'a.ts' not found.
!!! error TS6053: The file is in the program because:
!!! error TS6053: Root file specified for compilation
diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/amd/jsFileCompilationDifferentNamesNotSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/amd/jsFileCompilationDifferentNamesNotSpecified.errors.txt
new file mode 100644
index 0000000000000..3d0b1a53d87a5
--- /dev/null
+++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/amd/jsFileCompilationDifferentNamesNotSpecified.errors.txt
@@ -0,0 +1,15 @@
+DifferentNamesNotSpecified/tsconfig.json(2,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+DifferentNamesNotSpecified/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== DifferentNamesNotSpecified/tsconfig.json (2 errors) ====
+ {
+ "compilerOptions": { "outFile": "test.js" }
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ }
+
+==== DifferentNamesNotSpecified/a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/node/jsFileCompilationDifferentNamesNotSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/node/jsFileCompilationDifferentNamesNotSpecified.errors.txt
index 94920694c0774..7ecee4af6d6cc 100644
--- a/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/node/jsFileCompilationDifferentNamesNotSpecified.errors.txt
+++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/node/jsFileCompilationDifferentNamesNotSpecified.errors.txt
@@ -1,9 +1,12 @@
+DifferentNamesNotSpecified/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
DifferentNamesNotSpecified/tsconfig.json(2,24): error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
-==== DifferentNamesNotSpecified/tsconfig.json (1 errors) ====
+==== DifferentNamesNotSpecified/tsconfig.json (2 errors) ====
{
"compilerOptions": { "outFile": "test.js" }
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
~~~~~~~~~
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
}
diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt
new file mode 100644
index 0000000000000..b40a4ad1bab39
--- /dev/null
+++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt
@@ -0,0 +1,20 @@
+DifferentNamesNotSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+DifferentNamesNotSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== DifferentNamesNotSpecifiedWithAllowJs/tsconfig.json (2 errors) ====
+ {
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "outFile": "test.js",
+ "allowJs": true
+ }
+ }
+
+==== DifferentNamesNotSpecifiedWithAllowJs/a.ts (0 errors) ====
+ var test = 10;
+==== DifferentNamesNotSpecifiedWithAllowJs/b.js (0 errors) ====
+ var test2 = 10; // Should get compiled
\ No newline at end of file
diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/node/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/node/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt
index f6601905979af..454843c1b1547 100644
--- a/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/node/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt
+++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/node/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt
@@ -1,9 +1,12 @@
+DifferentNamesNotSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
DifferentNamesNotSpecifiedWithAllowJs/tsconfig.json(3,5): error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
-==== DifferentNamesNotSpecifiedWithAllowJs/tsconfig.json (1 errors) ====
+==== DifferentNamesNotSpecifiedWithAllowJs/tsconfig.json (2 errors) ====
{
"compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"outFile": "test.js",
~~~~~~~~~
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/amd/jsFileCompilationDifferentNamesSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/amd/jsFileCompilationDifferentNamesSpecified.errors.txt
index bc59a1a6546c5..e1eb0c3dc70ae 100644
--- a/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/amd/jsFileCompilationDifferentNamesSpecified.errors.txt
+++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/amd/jsFileCompilationDifferentNamesSpecified.errors.txt
@@ -1,15 +1,21 @@
error TS6504: File 'DifferentNamesSpecified/b.js' is a JavaScript file. Did you mean to enable the 'allowJs' option?
The file is in the program because:
Part of 'files' list in tsconfig.json
+DifferentNamesSpecified/tsconfig.json(2,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+DifferentNamesSpecified/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6504: File 'DifferentNamesSpecified/b.js' is a JavaScript file. Did you mean to enable the 'allowJs' option?
!!! error TS6504: The file is in the program because:
!!! error TS6504: Part of 'files' list in tsconfig.json
!!! related TS1410 DifferentNamesSpecified/tsconfig.json:3:22: File is matched by 'files' list specified here.
-==== DifferentNamesSpecified/tsconfig.json (0 errors) ====
+==== DifferentNamesSpecified/tsconfig.json (2 errors) ====
{
"compilerOptions": { "outFile": "test.js" },
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"files": [ "a.ts", "b.js" ]
}
diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/node/jsFileCompilationDifferentNamesSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/node/jsFileCompilationDifferentNamesSpecified.errors.txt
index 2a527c77f34d7..29b42d19cdc69 100644
--- a/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/node/jsFileCompilationDifferentNamesSpecified.errors.txt
+++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/node/jsFileCompilationDifferentNamesSpecified.errors.txt
@@ -1,6 +1,7 @@
error TS6504: File 'DifferentNamesSpecified/b.js' is a JavaScript file. Did you mean to enable the 'allowJs' option?
The file is in the program because:
Part of 'files' list in tsconfig.json
+DifferentNamesSpecified/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
DifferentNamesSpecified/tsconfig.json(2,24): error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
@@ -8,9 +9,11 @@ DifferentNamesSpecified/tsconfig.json(2,24): error TS6082: Only 'amd' and 'syste
!!! error TS6504: The file is in the program because:
!!! error TS6504: Part of 'files' list in tsconfig.json
!!! related TS1410 DifferentNamesSpecified/tsconfig.json:3:22: File is matched by 'files' list specified here.
-==== DifferentNamesSpecified/tsconfig.json (1 errors) ====
+==== DifferentNamesSpecified/tsconfig.json (2 errors) ====
{
"compilerOptions": { "outFile": "test.js" },
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
~~~~~~~~~
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
"files": [ "a.ts", "b.js" ]
diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt
new file mode 100644
index 0000000000000..53ba08a0e8fbb
--- /dev/null
+++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt
@@ -0,0 +1,21 @@
+DifferentNamesSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+DifferentNamesSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== DifferentNamesSpecifiedWithAllowJs/tsconfig.json (2 errors) ====
+ {
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "outFile": "test.js",
+ "allowJs": true
+ },
+ "files": [ "a.ts", "b.js" ]
+ }
+
+==== DifferentNamesSpecifiedWithAllowJs/a.ts (0 errors) ====
+ var test = 10;
+==== DifferentNamesSpecifiedWithAllowJs/b.js (0 errors) ====
+ var test2 = 10; // Should get compiled
\ No newline at end of file
diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/node/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/node/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt
index 5e9b61c196d63..a6a84514ee0a7 100644
--- a/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/node/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt
+++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/node/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt
@@ -1,9 +1,12 @@
+DifferentNamesSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
DifferentNamesSpecifiedWithAllowJs/tsconfig.json(3,5): error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
-==== DifferentNamesSpecifiedWithAllowJs/tsconfig.json (1 errors) ====
+==== DifferentNamesSpecifiedWithAllowJs/tsconfig.json (2 errors) ====
{
"compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"outFile": "test.js",
~~~~~~~~~
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecified/amd/jsFileCompilationSameNameDTsSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecified/amd/jsFileCompilationSameNameDTsSpecified.errors.txt
new file mode 100644
index 0000000000000..8f432f9a92f8c
--- /dev/null
+++ b/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecified/amd/jsFileCompilationSameNameDTsSpecified.errors.txt
@@ -0,0 +1,10 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== SameNameDTsSpecified/tsconfig.json (0 errors) ====
+ { "files": [ "a.d.ts" ] }
+==== SameNameDTsSpecified/a.d.ts (0 errors) ====
+ declare var test: number;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecified/node/jsFileCompilationSameNameDTsSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecified/node/jsFileCompilationSameNameDTsSpecified.errors.txt
new file mode 100644
index 0000000000000..aeda30adafc6e
--- /dev/null
+++ b/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecified/node/jsFileCompilationSameNameDTsSpecified.errors.txt
@@ -0,0 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== SameNameDTsSpecified/tsconfig.json (0 errors) ====
+ { "files": [ "a.d.ts" ] }
+==== SameNameDTsSpecified/a.d.ts (0 errors) ====
+ declare var test: number;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecifiedWithAllowJs/amd/jsFileCompilationSameNameDTsSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecifiedWithAllowJs/amd/jsFileCompilationSameNameDTsSpecifiedWithAllowJs.errors.txt
new file mode 100644
index 0000000000000..fda0dddeff21a
--- /dev/null
+++ b/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecifiedWithAllowJs/amd/jsFileCompilationSameNameDTsSpecifiedWithAllowJs.errors.txt
@@ -0,0 +1,15 @@
+SameNameDTsSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+SameNameDTsSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== SameNameDTsSpecifiedWithAllowJs/tsconfig.json (2 errors) ====
+ {
+ "compilerOptions": { "allowJs": true },
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "files": [ "a.d.ts" ]
+ }
+==== SameNameDTsSpecifiedWithAllowJs/a.d.ts (0 errors) ====
+ declare var test: number;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecifiedWithAllowJs/node/jsFileCompilationSameNameDTsSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecifiedWithAllowJs/node/jsFileCompilationSameNameDTsSpecifiedWithAllowJs.errors.txt
new file mode 100644
index 0000000000000..8214bf14d39d6
--- /dev/null
+++ b/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecifiedWithAllowJs/node/jsFileCompilationSameNameDTsSpecifiedWithAllowJs.errors.txt
@@ -0,0 +1,12 @@
+SameNameDTsSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== SameNameDTsSpecifiedWithAllowJs/tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": { "allowJs": true },
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "files": [ "a.d.ts" ]
+ }
+==== SameNameDTsSpecifiedWithAllowJs/a.d.ts (0 errors) ====
+ declare var test: number;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecified/amd/jsFileCompilationSameNameDtsNotSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecified/amd/jsFileCompilationSameNameDtsNotSpecified.errors.txt
new file mode 100644
index 0000000000000..7bab7566c8c99
--- /dev/null
+++ b/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecified/amd/jsFileCompilationSameNameDtsNotSpecified.errors.txt
@@ -0,0 +1,10 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== SameNameDTsNotSpecified/tsconfig.json (0 errors) ====
+
+==== SameNameDTsNotSpecified/a.d.ts (0 errors) ====
+ declare var a: number;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecified/node/jsFileCompilationSameNameDtsNotSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecified/node/jsFileCompilationSameNameDtsNotSpecified.errors.txt
new file mode 100644
index 0000000000000..f373c7d74c8d6
--- /dev/null
+++ b/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecified/node/jsFileCompilationSameNameDtsNotSpecified.errors.txt
@@ -0,0 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== SameNameDTsNotSpecified/tsconfig.json (0 errors) ====
+
+==== SameNameDTsNotSpecified/a.d.ts (0 errors) ====
+ declare var a: number;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs/amd/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs/amd/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs.errors.txt
index 45cdfd7a3bc42..b704a662fe3b1 100644
--- a/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs/amd/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs.errors.txt
+++ b/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs/amd/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs.errors.txt
@@ -2,14 +2,20 @@ error TS5055: Cannot write file 'SameNameDTsNotSpecifiedWithAllowJs/a.d.ts' beca
Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
error TS5055: Cannot write file 'SameNameDTsNotSpecifiedWithAllowJs/a.js' because it would overwrite input file.
Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
+SameNameDTsNotSpecifiedWithAllowJs/tsconfig.json(1,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+SameNameDTsNotSpecifiedWithAllowJs/tsconfig.json(1,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS5055: Cannot write file 'SameNameDTsNotSpecifiedWithAllowJs/a.d.ts' because it would overwrite input file.
!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
!!! error TS5055: Cannot write file 'SameNameDTsNotSpecifiedWithAllowJs/a.js' because it would overwrite input file.
!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
-==== SameNameDTsNotSpecifiedWithAllowJs/tsconfig.json (0 errors) ====
+==== SameNameDTsNotSpecifiedWithAllowJs/tsconfig.json (2 errors) ====
{ "compilerOptions": { "allowJs": true } }
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== SameNameDTsNotSpecifiedWithAllowJs/a.d.ts (0 errors) ====
declare var a: number;
==== SameNameDTsNotSpecifiedWithAllowJs/a.js (0 errors) ====
diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs/node/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs/node/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs.errors.txt
index 45cdfd7a3bc42..03de92d63f76d 100644
--- a/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs/node/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs.errors.txt
+++ b/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs/node/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs.errors.txt
@@ -2,14 +2,17 @@ error TS5055: Cannot write file 'SameNameDTsNotSpecifiedWithAllowJs/a.d.ts' beca
Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
error TS5055: Cannot write file 'SameNameDTsNotSpecifiedWithAllowJs/a.js' because it would overwrite input file.
Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
+SameNameDTsNotSpecifiedWithAllowJs/tsconfig.json(1,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS5055: Cannot write file 'SameNameDTsNotSpecifiedWithAllowJs/a.d.ts' because it would overwrite input file.
!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
!!! error TS5055: Cannot write file 'SameNameDTsNotSpecifiedWithAllowJs/a.js' because it would overwrite input file.
!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
-==== SameNameDTsNotSpecifiedWithAllowJs/tsconfig.json (0 errors) ====
+==== SameNameDTsNotSpecifiedWithAllowJs/tsconfig.json (1 errors) ====
{ "compilerOptions": { "allowJs": true } }
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== SameNameDTsNotSpecifiedWithAllowJs/a.d.ts (0 errors) ====
declare var a: number;
==== SameNameDTsNotSpecifiedWithAllowJs/a.js (0 errors) ====
diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecified/amd/jsFileCompilationSameNameFilesNotSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecified/amd/jsFileCompilationSameNameFilesNotSpecified.errors.txt
new file mode 100644
index 0000000000000..4633efa5dfbc8
--- /dev/null
+++ b/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecified/amd/jsFileCompilationSameNameFilesNotSpecified.errors.txt
@@ -0,0 +1,10 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== SameNameFilesNotSpecified/tsconfig.json (0 errors) ====
+
+==== SameNameFilesNotSpecified/a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecified/node/jsFileCompilationSameNameFilesNotSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecified/node/jsFileCompilationSameNameFilesNotSpecified.errors.txt
new file mode 100644
index 0000000000000..2b9b7a6b064be
--- /dev/null
+++ b/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecified/node/jsFileCompilationSameNameFilesNotSpecified.errors.txt
@@ -0,0 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== SameNameFilesNotSpecified/tsconfig.json (0 errors) ====
+
+==== SameNameFilesNotSpecified/a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs/amd/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs/amd/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs.errors.txt
new file mode 100644
index 0000000000000..a928effffd57f
--- /dev/null
+++ b/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs/amd/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs.errors.txt
@@ -0,0 +1,12 @@
+SameNameFilesNotSpecifiedWithAllowJs/tsconfig.json(1,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+SameNameFilesNotSpecifiedWithAllowJs/tsconfig.json(1,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== SameNameFilesNotSpecifiedWithAllowJs/tsconfig.json (2 errors) ====
+ { "compilerOptions": { "allowJs": true } }
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== SameNameFilesNotSpecifiedWithAllowJs/a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs/node/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs/node/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs.errors.txt
new file mode 100644
index 0000000000000..f8bb575be7262
--- /dev/null
+++ b/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs/node/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs.errors.txt
@@ -0,0 +1,9 @@
+SameNameFilesNotSpecifiedWithAllowJs/tsconfig.json(1,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== SameNameFilesNotSpecifiedWithAllowJs/tsconfig.json (1 errors) ====
+ { "compilerOptions": { "allowJs": true } }
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== SameNameFilesNotSpecifiedWithAllowJs/a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecified/amd/jsFileCompilationSameNameFilesSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecified/amd/jsFileCompilationSameNameFilesSpecified.errors.txt
new file mode 100644
index 0000000000000..0ab587e1d0ca7
--- /dev/null
+++ b/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecified/amd/jsFileCompilationSameNameFilesSpecified.errors.txt
@@ -0,0 +1,10 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== SameNameTsSpecified/tsconfig.json (0 errors) ====
+ { "files": [ "a.ts" ] }
+==== SameNameTsSpecified/a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecified/node/jsFileCompilationSameNameFilesSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecified/node/jsFileCompilationSameNameFilesSpecified.errors.txt
new file mode 100644
index 0000000000000..0a3ac10ee871a
--- /dev/null
+++ b/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecified/node/jsFileCompilationSameNameFilesSpecified.errors.txt
@@ -0,0 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== SameNameTsSpecified/tsconfig.json (0 errors) ====
+ { "files": [ "a.ts" ] }
+==== SameNameTsSpecified/a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecifiedWithAllowJs/amd/jsFileCompilationSameNameFilesSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecifiedWithAllowJs/amd/jsFileCompilationSameNameFilesSpecifiedWithAllowJs.errors.txt
new file mode 100644
index 0000000000000..d2ed3a4f3643c
--- /dev/null
+++ b/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecifiedWithAllowJs/amd/jsFileCompilationSameNameFilesSpecifiedWithAllowJs.errors.txt
@@ -0,0 +1,15 @@
+SameNameTsSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+SameNameTsSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== SameNameTsSpecifiedWithAllowJs/tsconfig.json (2 errors) ====
+ {
+ "compilerOptions": { "allowJs": true },
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "files": [ "a.ts" ]
+ }
+==== SameNameTsSpecifiedWithAllowJs/a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecifiedWithAllowJs/node/jsFileCompilationSameNameFilesSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecifiedWithAllowJs/node/jsFileCompilationSameNameFilesSpecifiedWithAllowJs.errors.txt
new file mode 100644
index 0000000000000..8c3a5814cb324
--- /dev/null
+++ b/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecifiedWithAllowJs/node/jsFileCompilationSameNameFilesSpecifiedWithAllowJs.errors.txt
@@ -0,0 +1,12 @@
+SameNameTsSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== SameNameTsSpecifiedWithAllowJs/tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": { "allowJs": true },
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "files": [ "a.ts" ]
+ }
+==== SameNameTsSpecifiedWithAllowJs/a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/mapRootAbsolutePathMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/mapRootAbsolutePathMixedSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/mapRootAbsolutePathMixedSubfolderNoOutdir.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/mapRootAbsolutePathMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/mapRootAbsolutePathMixedSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..6e50d90f13b84
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/mapRootAbsolutePathMixedSubfolderNoOutdir.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..6e50d90f13b84
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt
index 51edf2991adfc..8463ae5b1a4d5 100644
--- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
index 51edf2991adfc..8463ae5b1a4d5 100644
--- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
+++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/mapRootAbsolutePathModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/mapRootAbsolutePathModuleMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/mapRootAbsolutePathModuleMultifolderNoOutdir.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/mapRootAbsolutePathModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/mapRootAbsolutePathModuleMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..4685d61030d8a
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/mapRootAbsolutePathModuleMultifolderNoOutdir.errors.txt
@@ -0,0 +1,39 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..4685d61030d8a
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,39 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt
index 247f9e4f2f2a1..8d5143f60ad82 100644
--- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/mapRootAbsolutePathModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/mapRootAbsolutePathModuleSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/mapRootAbsolutePathModuleSimpleNoOutdir.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/mapRootAbsolutePathModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/mapRootAbsolutePathModuleSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..16c4884ea2d8b
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/mapRootAbsolutePathModuleSimpleNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..16c4884ea2d8b
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/node/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/node/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt
index 12592331fb591..2e947050950b0 100644
--- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/node/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/node/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/mapRootAbsolutePathModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/mapRootAbsolutePathModuleSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/mapRootAbsolutePathModuleSubfolderNoOutdir.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/mapRootAbsolutePathModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/mapRootAbsolutePathModuleSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..c78e96ab66dc4
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/mapRootAbsolutePathModuleSubfolderNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..c78e96ab66dc4
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/node/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/node/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt
index 42154149020d1..bc6455bd40ffe 100644
--- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/node/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/node/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/mapRootAbsolutePathMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/mapRootAbsolutePathMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/mapRootAbsolutePathMultifolderNoOutdir.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/mapRootAbsolutePathMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/mapRootAbsolutePathMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..3c41aa562c69b
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/mapRootAbsolutePathMultifolderNoOutdir.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..3c41aa562c69b
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt
index 664beb97bc203..979a434de92b0 100644
--- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/mapRootAbsolutePathSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/mapRootAbsolutePathSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/mapRootAbsolutePathSimpleNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/mapRootAbsolutePathSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/mapRootAbsolutePathSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..7c16ec1b548bc
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/mapRootAbsolutePathSimpleNoOutdir.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..7c16ec1b548bc
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt
index 53fc18f86c749..7e7a851c111e4 100644
--- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/amd/mapRootAbsolutePathSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/amd/mapRootAbsolutePathSingleFileNoOutdir.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/amd/mapRootAbsolutePathSingleFileNoOutdir.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/node/mapRootAbsolutePathSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/node/mapRootAbsolutePathSingleFileNoOutdir.errors.txt
new file mode 100644
index 0000000000000..4793d714a6d0f
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/node/mapRootAbsolutePathSingleFileNoOutdir.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/node/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/node/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..4793d714a6d0f
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/node/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/node/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/node/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt
index eb358c3b79d38..17a2812a8c151 100644
--- a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/node/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/node/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== test.ts (0 errors) ====
var a1 = 10;
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/mapRootAbsolutePathSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/mapRootAbsolutePathSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/mapRootAbsolutePathSubfolderNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/mapRootAbsolutePathSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/mapRootAbsolutePathSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..a599424df40d9
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/mapRootAbsolutePathSubfolderNoOutdir.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a599424df40d9
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt
index 110e384982030..f174bdb49dd18 100644
--- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/mapRootRelativePathMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/mapRootRelativePathMixedSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/mapRootRelativePathMixedSubfolderNoOutdir.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/mapRootRelativePathMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/mapRootRelativePathMixedSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..6e50d90f13b84
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/mapRootRelativePathMixedSubfolderNoOutdir.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..6e50d90f13b84
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt
index 51edf2991adfc..8463ae5b1a4d5 100644
--- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
index 51edf2991adfc..8463ae5b1a4d5 100644
--- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
+++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/mapRootRelativePathModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/mapRootRelativePathModuleMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/mapRootRelativePathModuleMultifolderNoOutdir.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/mapRootRelativePathModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/mapRootRelativePathModuleMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..4685d61030d8a
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/mapRootRelativePathModuleMultifolderNoOutdir.errors.txt
@@ -0,0 +1,39 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..4685d61030d8a
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,39 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/node/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/node/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt
index 247f9e4f2f2a1..8d5143f60ad82 100644
--- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/node/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/node/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/mapRootRelativePathModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/mapRootRelativePathModuleSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/mapRootRelativePathModuleSimpleNoOutdir.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/mapRootRelativePathModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/mapRootRelativePathModuleSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..16c4884ea2d8b
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/mapRootRelativePathModuleSimpleNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..16c4884ea2d8b
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/node/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/node/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt
index 12592331fb591..2e947050950b0 100644
--- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/node/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/node/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/mapRootRelativePathModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/mapRootRelativePathModuleSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/mapRootRelativePathModuleSubfolderNoOutdir.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/mapRootRelativePathModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/mapRootRelativePathModuleSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..c78e96ab66dc4
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/mapRootRelativePathModuleSubfolderNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..c78e96ab66dc4
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/node/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/node/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt
index 42154149020d1..bc6455bd40ffe 100644
--- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/node/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/node/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/mapRootRelativePathMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/mapRootRelativePathMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/mapRootRelativePathMultifolderNoOutdir.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/mapRootRelativePathMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/mapRootRelativePathMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..3c41aa562c69b
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/mapRootRelativePathMultifolderNoOutdir.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/mapRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/mapRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..3c41aa562c69b
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/mapRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt
index 664beb97bc203..979a434de92b0 100644
--- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/mapRootRelativePathSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/mapRootRelativePathSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/mapRootRelativePathSimpleNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/mapRootRelativePathSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/mapRootRelativePathSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..7c16ec1b548bc
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/mapRootRelativePathSimpleNoOutdir.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/mapRootRelativePathSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/mapRootRelativePathSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/mapRootRelativePathSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/mapRootRelativePathSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/mapRootRelativePathSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..7c16ec1b548bc
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/mapRootRelativePathSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt
index 53fc18f86c749..7e7a851c111e4 100644
--- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/amd/mapRootRelativePathSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/amd/mapRootRelativePathSingleFileNoOutdir.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/amd/mapRootRelativePathSingleFileNoOutdir.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/node/mapRootRelativePathSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/node/mapRootRelativePathSingleFileNoOutdir.errors.txt
new file mode 100644
index 0000000000000..4793d714a6d0f
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/node/mapRootRelativePathSingleFileNoOutdir.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/amd/mapRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/amd/mapRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/amd/mapRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/node/mapRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/node/mapRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..4793d714a6d0f
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/node/mapRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/node/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/node/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt
index eb358c3b79d38..17a2812a8c151 100644
--- a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/node/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/node/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== test.ts (0 errors) ====
var a1 = 10;
diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/mapRootRelativePathSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/mapRootRelativePathSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/mapRootRelativePathSubfolderNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/mapRootRelativePathSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/mapRootRelativePathSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..a599424df40d9
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/mapRootRelativePathSubfolderNoOutdir.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/mapRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/mapRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a599424df40d9
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/mapRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt
index 110e384982030..f174bdb49dd18 100644
--- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/mapRootSourceRootWithNoSourceMapOption/amd/mapRootSourceRootWithNoSourceMapOption.errors.txt b/tests/baselines/reference/project/mapRootSourceRootWithNoSourceMapOption/amd/mapRootSourceRootWithNoSourceMapOption.errors.txt
index aa02b659d5de9..e7cb96db65bd7 100644
--- a/tests/baselines/reference/project/mapRootSourceRootWithNoSourceMapOption/amd/mapRootSourceRootWithNoSourceMapOption.errors.txt
+++ b/tests/baselines/reference/project/mapRootSourceRootWithNoSourceMapOption/amd/mapRootSourceRootWithNoSourceMapOption.errors.txt
@@ -1,9 +1,13 @@
error TS5051: Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.
error TS5069: Option 'mapRoot' cannot be specified without specifying option 'sourceMap' or option 'declarationMap'.
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS5051: Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.
!!! error TS5069: Option 'mapRoot' cannot be specified without specifying option 'sourceMap' or option 'declarationMap'.
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== m1.ts (0 errors) ====
var m1_a1 = 10;
class m1_c1 {
diff --git a/tests/baselines/reference/project/mapRootSourceRootWithNoSourceMapOption/node/mapRootSourceRootWithNoSourceMapOption.errors.txt b/tests/baselines/reference/project/mapRootSourceRootWithNoSourceMapOption/node/mapRootSourceRootWithNoSourceMapOption.errors.txt
index aa02b659d5de9..31632130645cc 100644
--- a/tests/baselines/reference/project/mapRootSourceRootWithNoSourceMapOption/node/mapRootSourceRootWithNoSourceMapOption.errors.txt
+++ b/tests/baselines/reference/project/mapRootSourceRootWithNoSourceMapOption/node/mapRootSourceRootWithNoSourceMapOption.errors.txt
@@ -1,9 +1,11 @@
error TS5051: Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.
error TS5069: Option 'mapRoot' cannot be specified without specifying option 'sourceMap' or option 'declarationMap'.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS5051: Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.
!!! error TS5069: Option 'mapRoot' cannot be specified without specifying option 'sourceMap' or option 'declarationMap'.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== m1.ts (0 errors) ====
var m1_a1 = 10;
class m1_c1 {
diff --git a/tests/baselines/reference/project/mapRootWithNoSourceMapOption/amd/mapRootWithNoSourceMapOption.errors.txt b/tests/baselines/reference/project/mapRootWithNoSourceMapOption/amd/mapRootWithNoSourceMapOption.errors.txt
index 7ad42e1a26d37..4452a4cd37a11 100644
--- a/tests/baselines/reference/project/mapRootWithNoSourceMapOption/amd/mapRootWithNoSourceMapOption.errors.txt
+++ b/tests/baselines/reference/project/mapRootWithNoSourceMapOption/amd/mapRootWithNoSourceMapOption.errors.txt
@@ -1,7 +1,11 @@
error TS5069: Option 'mapRoot' cannot be specified without specifying option 'sourceMap' or option 'declarationMap'.
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS5069: Option 'mapRoot' cannot be specified without specifying option 'sourceMap' or option 'declarationMap'.
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== m1.ts (0 errors) ====
var m1_a1 = 10;
class m1_c1 {
diff --git a/tests/baselines/reference/project/mapRootWithNoSourceMapOption/node/mapRootWithNoSourceMapOption.errors.txt b/tests/baselines/reference/project/mapRootWithNoSourceMapOption/node/mapRootWithNoSourceMapOption.errors.txt
index 7ad42e1a26d37..d38d2c2f6b490 100644
--- a/tests/baselines/reference/project/mapRootWithNoSourceMapOption/node/mapRootWithNoSourceMapOption.errors.txt
+++ b/tests/baselines/reference/project/mapRootWithNoSourceMapOption/node/mapRootWithNoSourceMapOption.errors.txt
@@ -1,7 +1,9 @@
error TS5069: Option 'mapRoot' cannot be specified without specifying option 'sourceMap' or option 'declarationMap'.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS5069: Option 'mapRoot' cannot be specified without specifying option 'sourceMap' or option 'declarationMap'.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== m1.ts (0 errors) ====
var m1_a1 = 10;
class m1_c1 {
diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/maprootUrlMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/maprootUrlMixedSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/maprootUrlMixedSubfolderNoOutdir.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/maprootUrlMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/maprootUrlMixedSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..6e50d90f13b84
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/maprootUrlMixedSubfolderNoOutdir.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..6e50d90f13b84
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt
index 51edf2991adfc..8463ae5b1a4d5 100644
--- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
index 51edf2991adfc..8463ae5b1a4d5 100644
--- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
+++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/maprootUrlModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/maprootUrlModuleMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/maprootUrlModuleMultifolderNoOutdir.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/maprootUrlModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/maprootUrlModuleMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..4685d61030d8a
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/maprootUrlModuleMultifolderNoOutdir.errors.txt
@@ -0,0 +1,39 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/maprootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/maprootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..4685d61030d8a
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/maprootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,39 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/node/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/node/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt
index 247f9e4f2f2a1..8d5143f60ad82 100644
--- a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/node/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/node/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/maprootUrlModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/maprootUrlModuleSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/maprootUrlModuleSimpleNoOutdir.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/maprootUrlModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/maprootUrlModuleSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..16c4884ea2d8b
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/maprootUrlModuleSimpleNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlModuleSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlModuleSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/maprootUrlModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/maprootUrlModuleSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..16c4884ea2d8b
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/maprootUrlModuleSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/node/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/node/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt
index 12592331fb591..2e947050950b0 100644
--- a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/node/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/node/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/maprootUrlModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/maprootUrlModuleSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/maprootUrlModuleSubfolderNoOutdir.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/maprootUrlModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/maprootUrlModuleSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..c78e96ab66dc4
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/maprootUrlModuleSubfolderNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/maprootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/maprootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..c78e96ab66dc4
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/maprootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/node/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/node/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt
index 42154149020d1..bc6455bd40ffe 100644
--- a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/node/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/node/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/maprootUrlMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/maprootUrlMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/maprootUrlMultifolderNoOutdir.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/maprootUrlMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/maprootUrlMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..3c41aa562c69b
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/maprootUrlMultifolderNoOutdir.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..3c41aa562c69b
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/maprootUrlMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/maprootUrlMultifolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/maprootUrlMultifolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/maprootUrlMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/maprootUrlMultifolderSpecifyOutputFile.errors.txt
index 664beb97bc203..979a434de92b0 100644
--- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/maprootUrlMultifolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/maprootUrlMultifolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/maprootUrlSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/maprootUrlSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/maprootUrlSimpleNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/maprootUrlSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/maprootUrlSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..7c16ec1b548bc
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/maprootUrlSimpleNoOutdir.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/maprootUrlSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/maprootUrlSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..7c16ec1b548bc
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/maprootUrlSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/maprootUrlSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/maprootUrlSimpleSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/maprootUrlSimpleSpecifyOutputFile.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/maprootUrlSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/maprootUrlSimpleSpecifyOutputFile.errors.txt
index 53fc18f86c749..7e7a851c111e4 100644
--- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/maprootUrlSimpleSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/maprootUrlSimpleSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/amd/maprootUrlSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/amd/maprootUrlSingleFileNoOutdir.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/amd/maprootUrlSingleFileNoOutdir.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/node/maprootUrlSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/node/maprootUrlSingleFileNoOutdir.errors.txt
new file mode 100644
index 0000000000000..4793d714a6d0f
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/node/maprootUrlSingleFileNoOutdir.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlSingleFileSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlSingleFileSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/node/maprootUrlSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/node/maprootUrlSingleFileSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..4793d714a6d0f
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/node/maprootUrlSingleFileSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/maprootUrlSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/maprootUrlSingleFileSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/maprootUrlSingleFileSpecifyOutputFile.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/node/maprootUrlSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/node/maprootUrlSingleFileSpecifyOutputFile.errors.txt
index eb358c3b79d38..17a2812a8c151 100644
--- a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/node/maprootUrlSingleFileSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/node/maprootUrlSingleFileSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== test.ts (0 errors) ====
var a1 = 10;
diff --git a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/maprootUrlSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/maprootUrlSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/maprootUrlSubfolderNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/maprootUrlSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/maprootUrlSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..a599424df40d9
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/maprootUrlSubfolderNoOutdir.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a599424df40d9
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/maprootUrlSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/maprootUrlSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/maprootUrlSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/maprootUrlSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/maprootUrlSubfolderSpecifyOutputFile.errors.txt
index 110e384982030..f174bdb49dd18 100644
--- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/maprootUrlSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/maprootUrlSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..6e50d90f13b84
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..6e50d90f13b84
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt
index 51edf2991adfc..8463ae5b1a4d5 100644
--- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
index 51edf2991adfc..8463ae5b1a4d5 100644
--- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..4685d61030d8a
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.errors.txt
@@ -0,0 +1,39 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..4685d61030d8a
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,39 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt
index 247f9e4f2f2a1..8d5143f60ad82 100644
--- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/maprootUrlsourcerootUrlModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/maprootUrlsourcerootUrlModuleSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/maprootUrlsourcerootUrlModuleSimpleNoOutdir.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/maprootUrlsourcerootUrlModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/maprootUrlsourcerootUrlModuleSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..16c4884ea2d8b
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/maprootUrlsourcerootUrlModuleSimpleNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..16c4884ea2d8b
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt
index 12592331fb591..2e947050950b0 100644
--- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..c78e96ab66dc4
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..c78e96ab66dc4
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt
index 42154149020d1..bc6455bd40ffe 100644
--- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/maprootUrlsourcerootUrlMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/maprootUrlsourcerootUrlMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/maprootUrlsourcerootUrlMultifolderNoOutdir.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/maprootUrlsourcerootUrlMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/maprootUrlsourcerootUrlMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..3c41aa562c69b
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/maprootUrlsourcerootUrlMultifolderNoOutdir.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..3c41aa562c69b
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt
index 664beb97bc203..979a434de92b0 100644
--- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/maprootUrlsourcerootUrlSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/maprootUrlsourcerootUrlSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/maprootUrlsourcerootUrlSimpleNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/maprootUrlsourcerootUrlSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/maprootUrlsourcerootUrlSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..7c16ec1b548bc
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/maprootUrlsourcerootUrlSimpleNoOutdir.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..7c16ec1b548bc
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt
index 53fc18f86c749..7e7a851c111e4 100644
--- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/amd/maprootUrlsourcerootUrlSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/amd/maprootUrlsourcerootUrlSingleFileNoOutdir.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/amd/maprootUrlsourcerootUrlSingleFileNoOutdir.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/node/maprootUrlsourcerootUrlSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/node/maprootUrlsourcerootUrlSingleFileNoOutdir.errors.txt
new file mode 100644
index 0000000000000..4793d714a6d0f
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/node/maprootUrlsourcerootUrlSingleFileNoOutdir.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..4793d714a6d0f
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt
index eb358c3b79d38..17a2812a8c151 100644
--- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== test.ts (0 errors) ====
var a1 = 10;
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/maprootUrlsourcerootUrlSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/maprootUrlsourcerootUrlSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/maprootUrlsourcerootUrlSubfolderNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/maprootUrlsourcerootUrlSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/maprootUrlsourcerootUrlSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..a599424df40d9
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/maprootUrlsourcerootUrlSubfolderNoOutdir.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a599424df40d9
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt
index 110e384982030..f174bdb49dd18 100644
--- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/moduleIdentifier/amd/moduleIdentifier.errors.txt b/tests/baselines/reference/project/moduleIdentifier/amd/moduleIdentifier.errors.txt
new file mode 100644
index 0000000000000..8bda4388decac
--- /dev/null
+++ b/tests/baselines/reference/project/moduleIdentifier/amd/moduleIdentifier.errors.txt
@@ -0,0 +1,15 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== decl.ts (0 errors) ====
+ export interface P { x: number; y: number; }
+ export var a = 1;
+==== consume.ts (0 errors) ====
+ import M = require("./decl");
+
+ var p : M.P;
+ var x1 = M.a;
+
\ No newline at end of file
diff --git a/tests/baselines/reference/project/moduleIdentifier/node/moduleIdentifier.errors.txt b/tests/baselines/reference/project/moduleIdentifier/node/moduleIdentifier.errors.txt
new file mode 100644
index 0000000000000..11eea719c5f2a
--- /dev/null
+++ b/tests/baselines/reference/project/moduleIdentifier/node/moduleIdentifier.errors.txt
@@ -0,0 +1,13 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== decl.ts (0 errors) ====
+ export interface P { x: number; y: number; }
+ export var a = 1;
+==== consume.ts (0 errors) ====
+ import M = require("./decl");
+
+ var p : M.P;
+ var x1 = M.a;
+
\ No newline at end of file
diff --git a/tests/baselines/reference/project/moduleMergingOrdering1/amd/moduleMergingOrdering1.errors.txt b/tests/baselines/reference/project/moduleMergingOrdering1/amd/moduleMergingOrdering1.errors.txt
new file mode 100644
index 0000000000000..ceae681db903d
--- /dev/null
+++ b/tests/baselines/reference/project/moduleMergingOrdering1/amd/moduleMergingOrdering1.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== a.ts (0 errors) ====
+ module Test {
+ class A {
+ one: string;
+ two: boolean;
+ constructor (t: string) {
+ this.one = t;
+ this.two = false;
+ }
+ }
+ export class B {
+ private member: A[];
+
+ constructor () {
+ this.member = [];
+ }
+ }
+ }
+
+==== b.ts (0 errors) ====
+ module Test {}
+
+
\ No newline at end of file
diff --git a/tests/baselines/reference/project/moduleMergingOrdering1/node/moduleMergingOrdering1.errors.txt b/tests/baselines/reference/project/moduleMergingOrdering1/node/moduleMergingOrdering1.errors.txt
new file mode 100644
index 0000000000000..a4eb03569a46c
--- /dev/null
+++ b/tests/baselines/reference/project/moduleMergingOrdering1/node/moduleMergingOrdering1.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== a.ts (0 errors) ====
+ module Test {
+ class A {
+ one: string;
+ two: boolean;
+ constructor (t: string) {
+ this.one = t;
+ this.two = false;
+ }
+ }
+ export class B {
+ private member: A[];
+
+ constructor () {
+ this.member = [];
+ }
+ }
+ }
+
+==== b.ts (0 errors) ====
+ module Test {}
+
+
\ No newline at end of file
diff --git a/tests/baselines/reference/project/moduleMergingOrdering2/amd/moduleMergingOrdering2.errors.txt b/tests/baselines/reference/project/moduleMergingOrdering2/amd/moduleMergingOrdering2.errors.txt
new file mode 100644
index 0000000000000..68ef186be5e2d
--- /dev/null
+++ b/tests/baselines/reference/project/moduleMergingOrdering2/amd/moduleMergingOrdering2.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== b.ts (0 errors) ====
+ module Test {}
+
+
+==== a.ts (0 errors) ====
+ module Test {
+ class A {
+ one: string;
+ two: boolean;
+ constructor (t: string) {
+ this.one = t;
+ this.two = false;
+ }
+ }
+ export class B {
+ private member: A[];
+
+ constructor () {
+ this.member = [];
+ }
+ }
+ }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/project/moduleMergingOrdering2/node/moduleMergingOrdering2.errors.txt b/tests/baselines/reference/project/moduleMergingOrdering2/node/moduleMergingOrdering2.errors.txt
new file mode 100644
index 0000000000000..c56d10bb1d909
--- /dev/null
+++ b/tests/baselines/reference/project/moduleMergingOrdering2/node/moduleMergingOrdering2.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== b.ts (0 errors) ====
+ module Test {}
+
+
+==== a.ts (0 errors) ====
+ module Test {
+ class A {
+ one: string;
+ two: boolean;
+ constructor (t: string) {
+ this.one = t;
+ this.two = false;
+ }
+ }
+ export class B {
+ private member: A[];
+
+ constructor () {
+ this.member = [];
+ }
+ }
+ }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/project/multipleLevelsModuleResolution/amd/multipleLevelsModuleResolution.errors.txt b/tests/baselines/reference/project/multipleLevelsModuleResolution/amd/multipleLevelsModuleResolution.errors.txt
new file mode 100644
index 0000000000000..dd5fe29148fd6
--- /dev/null
+++ b/tests/baselines/reference/project/multipleLevelsModuleResolution/amd/multipleLevelsModuleResolution.errors.txt
@@ -0,0 +1,43 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== A.ts (0 errors) ====
+ export class A
+ {
+ public A(): string{ return "hello from A"; }
+ }
+
+==== AA.ts (0 errors) ====
+ export class AA
+ {
+ public A(): string{ return "hello from AA"; }
+ }
+
+==== B.ts (0 errors) ====
+ import A = require("../A/A");
+ import AA = require("../A/AA/AA");
+
+ export class B
+ {
+ public Create(): IA
+ {
+ return new A.A();
+ }
+ }
+
+ export interface IA
+ {
+ A(): string;
+ }
+
+==== root.ts (0 errors) ====
+ //import A = require("./A/A");
+ import B = require("B/B");
+
+ var a = (new B.B()).Create();
+
+
+
\ No newline at end of file
diff --git a/tests/baselines/reference/project/multipleLevelsModuleResolution/node/multipleLevelsModuleResolution.errors.txt b/tests/baselines/reference/project/multipleLevelsModuleResolution/node/multipleLevelsModuleResolution.errors.txt
new file mode 100644
index 0000000000000..7070e3a8d8655
--- /dev/null
+++ b/tests/baselines/reference/project/multipleLevelsModuleResolution/node/multipleLevelsModuleResolution.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== A.ts (0 errors) ====
+ export class A
+ {
+ public A(): string{ return "hello from A"; }
+ }
+
+==== AA.ts (0 errors) ====
+ export class AA
+ {
+ public A(): string{ return "hello from AA"; }
+ }
+
+==== B.ts (0 errors) ====
+ import A = require("../A/A");
+ import AA = require("../A/AA/AA");
+
+ export class B
+ {
+ public Create(): IA
+ {
+ return new A.A();
+ }
+ }
+
+ export interface IA
+ {
+ A(): string;
+ }
+
+==== root.ts (0 errors) ====
+ //import A = require("./A/A");
+ import B = require("B/B");
+
+ var a = (new B.B()).Create();
+
+
+
\ No newline at end of file
diff --git a/tests/baselines/reference/project/nestedDeclare/amd/nestedDeclare.errors.txt b/tests/baselines/reference/project/nestedDeclare/amd/nestedDeclare.errors.txt
new file mode 100644
index 0000000000000..43c30f6649690
--- /dev/null
+++ b/tests/baselines/reference/project/nestedDeclare/amd/nestedDeclare.errors.txt
@@ -0,0 +1,17 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== consume.ts (0 errors) ====
+ declare module "math"
+ {
+ import blah = require("blah");
+ export function baz();
+ }
+
+ declare module "blah"
+ {
+ }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/project/nestedDeclare/node/nestedDeclare.errors.txt b/tests/baselines/reference/project/nestedDeclare/node/nestedDeclare.errors.txt
new file mode 100644
index 0000000000000..11092cea6c360
--- /dev/null
+++ b/tests/baselines/reference/project/nestedDeclare/node/nestedDeclare.errors.txt
@@ -0,0 +1,15 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== consume.ts (0 errors) ====
+ declare module "math"
+ {
+ import blah = require("blah");
+ export function baz();
+ }
+
+ declare module "blah"
+ {
+ }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/project/nestedLocalModuleSimpleCase/amd/nestedLocalModuleSimpleCase.errors.txt b/tests/baselines/reference/project/nestedLocalModuleSimpleCase/amd/nestedLocalModuleSimpleCase.errors.txt
index 2b17a05139aff..28239b564081c 100644
--- a/tests/baselines/reference/project/nestedLocalModuleSimpleCase/amd/nestedLocalModuleSimpleCase.errors.txt
+++ b/tests/baselines/reference/project/nestedLocalModuleSimpleCase/amd/nestedLocalModuleSimpleCase.errors.txt
@@ -1,6 +1,10 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
test1.ts(2,23): error TS1147: Import declarations in a namespace cannot reference a module.
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== test1.ts (1 errors) ====
export module myModule {
import foo = require("test2");
diff --git a/tests/baselines/reference/project/nestedLocalModuleSimpleCase/node/nestedLocalModuleSimpleCase.errors.txt b/tests/baselines/reference/project/nestedLocalModuleSimpleCase/node/nestedLocalModuleSimpleCase.errors.txt
index 2b17a05139aff..dafe89343ee96 100644
--- a/tests/baselines/reference/project/nestedLocalModuleSimpleCase/node/nestedLocalModuleSimpleCase.errors.txt
+++ b/tests/baselines/reference/project/nestedLocalModuleSimpleCase/node/nestedLocalModuleSimpleCase.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
test1.ts(2,23): error TS1147: Import declarations in a namespace cannot reference a module.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== test1.ts (1 errors) ====
export module myModule {
import foo = require("test2");
diff --git a/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/amd/nestedLocalModuleWithRecursiveTypecheck.errors.txt b/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/amd/nestedLocalModuleWithRecursiveTypecheck.errors.txt
index f42b5a7fc941a..80ace50538b61 100644
--- a/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/amd/nestedLocalModuleWithRecursiveTypecheck.errors.txt
+++ b/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/amd/nestedLocalModuleWithRecursiveTypecheck.errors.txt
@@ -1,7 +1,11 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
test1.ts(3,23): error TS1147: Import declarations in a namespace cannot reference a module.
test1.ts(3,23): error TS2792: Cannot find module 'test2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== test1.ts (2 errors) ====
module myModule {
diff --git a/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/node/nestedLocalModuleWithRecursiveTypecheck.errors.txt b/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/node/nestedLocalModuleWithRecursiveTypecheck.errors.txt
index f42b5a7fc941a..0362eb7d1b4ea 100644
--- a/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/node/nestedLocalModuleWithRecursiveTypecheck.errors.txt
+++ b/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/node/nestedLocalModuleWithRecursiveTypecheck.errors.txt
@@ -1,7 +1,9 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
test1.ts(3,23): error TS1147: Import declarations in a namespace cannot reference a module.
test1.ts(3,23): error TS2792: Cannot find module 'test2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== test1.ts (2 errors) ====
module myModule {
diff --git a/tests/baselines/reference/project/nestedReferenceTags/amd/nestedReferenceTags.errors.txt b/tests/baselines/reference/project/nestedReferenceTags/amd/nestedReferenceTags.errors.txt
new file mode 100644
index 0000000000000..74118e5bd57af
--- /dev/null
+++ b/tests/baselines/reference/project/nestedReferenceTags/amd/nestedReferenceTags.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== lib/classA.ts (0 errors) ====
+ module test {
+ export class ClassA
+ {
+ public method() { }
+ }
+ }
+==== lib/classB.ts (0 errors) ====
+ ///
+
+ module test {
+ export class ClassB extends ClassA
+ {
+ }
+ }
+==== main.ts (0 errors) ====
+ ///
+ ///
+
+ class ClassC extends test.ClassA {
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/nestedReferenceTags/node/nestedReferenceTags.errors.txt b/tests/baselines/reference/project/nestedReferenceTags/node/nestedReferenceTags.errors.txt
new file mode 100644
index 0000000000000..961f401a4d601
--- /dev/null
+++ b/tests/baselines/reference/project/nestedReferenceTags/node/nestedReferenceTags.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== lib/classA.ts (0 errors) ====
+ module test {
+ export class ClassA
+ {
+ public method() { }
+ }
+ }
+==== lib/classB.ts (0 errors) ====
+ ///
+
+ module test {
+ export class ClassB extends ClassA
+ {
+ }
+ }
+==== main.ts (0 errors) ====
+ ///
+ ///
+
+ class ClassC extends test.ClassA {
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/noDefaultLib/amd/noDefaultLib.errors.txt b/tests/baselines/reference/project/noDefaultLib/amd/noDefaultLib.errors.txt
index 97f87b40349d8..0f72ca9a1af6c 100644
--- a/tests/baselines/reference/project/noDefaultLib/amd/noDefaultLib.errors.txt
+++ b/tests/baselines/reference/project/noDefaultLib/amd/noDefaultLib.errors.txt
@@ -6,6 +6,8 @@ error TS2318: Cannot find global type 'Number'.
error TS2318: Cannot find global type 'Object'.
error TS2318: Cannot find global type 'RegExp'.
error TS2318: Cannot find global type 'String'.
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
test.ts(3,8): error TS2304: Cannot find name 'Array'.
@@ -17,6 +19,8 @@ test.ts(3,8): error TS2304: Cannot find name 'Array'.
!!! error TS2318: Cannot find global type 'Object'.
!!! error TS2318: Cannot find global type 'RegExp'.
!!! error TS2318: Cannot find global type 'String'.
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== test.ts (1 errors) ====
///
diff --git a/tests/baselines/reference/project/noDefaultLib/node/noDefaultLib.errors.txt b/tests/baselines/reference/project/noDefaultLib/node/noDefaultLib.errors.txt
index 97f87b40349d8..3cc7419a83c96 100644
--- a/tests/baselines/reference/project/noDefaultLib/node/noDefaultLib.errors.txt
+++ b/tests/baselines/reference/project/noDefaultLib/node/noDefaultLib.errors.txt
@@ -6,6 +6,7 @@ error TS2318: Cannot find global type 'Number'.
error TS2318: Cannot find global type 'Object'.
error TS2318: Cannot find global type 'RegExp'.
error TS2318: Cannot find global type 'String'.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
test.ts(3,8): error TS2304: Cannot find name 'Array'.
@@ -17,6 +18,7 @@ test.ts(3,8): error TS2304: Cannot find name 'Array'.
!!! error TS2318: Cannot find global type 'Object'.
!!! error TS2318: Cannot find global type 'RegExp'.
!!! error TS2318: Cannot find global type 'String'.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== test.ts (1 errors) ====
///
diff --git a/tests/baselines/reference/project/noProjectOptionAndInputFiles/amd/noProjectOptionAndInputFiles.errors.txt b/tests/baselines/reference/project/noProjectOptionAndInputFiles/amd/noProjectOptionAndInputFiles.errors.txt
new file mode 100644
index 0000000000000..1e2d30f4ad32a
--- /dev/null
+++ b/tests/baselines/reference/project/noProjectOptionAndInputFiles/amd/noProjectOptionAndInputFiles.errors.txt
@@ -0,0 +1,10 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== tsconfig.json (0 errors) ====
+ { "files": [ "a.ts" ] }
+==== a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/noProjectOptionAndInputFiles/node/noProjectOptionAndInputFiles.errors.txt b/tests/baselines/reference/project/noProjectOptionAndInputFiles/node/noProjectOptionAndInputFiles.errors.txt
new file mode 100644
index 0000000000000..852e30746ec44
--- /dev/null
+++ b/tests/baselines/reference/project/noProjectOptionAndInputFiles/node/noProjectOptionAndInputFiles.errors.txt
@@ -0,0 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== tsconfig.json (0 errors) ====
+ { "files": [ "a.ts" ] }
+==== a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/nodeModulesImportHigher/amd/importHigher/root.js b/tests/baselines/reference/project/nodeModulesImportHigher/amd/importHigher/root.js
index 15d7b1dd43044..ebc5f7e045980 100644
--- a/tests/baselines/reference/project/nodeModulesImportHigher/amd/importHigher/root.js
+++ b/tests/baselines/reference/project/nodeModulesImportHigher/amd/importHigher/root.js
@@ -1,6 +1,40 @@
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
define(["require", "exports", "m1"], function (require, exports, m1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+ m1 = __importStar(m1);
m1.f1("test");
m1.f2.a = 10;
m1.f2.person.age = "10"; // Error: Should be number (if direct import of m2 made the m3 module visible).
diff --git a/tests/baselines/reference/project/nodeModulesImportHigher/amd/nodeModulesImportHigher.errors.txt b/tests/baselines/reference/project/nodeModulesImportHigher/amd/nodeModulesImportHigher.errors.txt
index 774e8b8dfdd99..d28c30fc98b5d 100644
--- a/tests/baselines/reference/project/nodeModulesImportHigher/amd/nodeModulesImportHigher.errors.txt
+++ b/tests/baselines/reference/project/nodeModulesImportHigher/amd/nodeModulesImportHigher.errors.txt
@@ -1,15 +1,20 @@
+importHigher/tsconfig.json(2,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
importHigher/tsconfig.json(5,25): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
importHigher/root.ts(6,1): error TS2322: Type 'string' is not assignable to type 'number'.
-==== importHigher/tsconfig.json (1 errors) ====
+==== importHigher/tsconfig.json (2 errors) ====
{
"compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"allowJs": true,
"declaration": false,
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
"maxNodeModuleJsDepth": 2
}
}
diff --git a/tests/baselines/reference/project/nodeModulesImportHigher/node/importHigher/root.js b/tests/baselines/reference/project/nodeModulesImportHigher/node/importHigher/root.js
index ae48958106a95..f1fb849ef6505 100644
--- a/tests/baselines/reference/project/nodeModulesImportHigher/node/importHigher/root.js
+++ b/tests/baselines/reference/project/nodeModulesImportHigher/node/importHigher/root.js
@@ -1,6 +1,39 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
-var m1 = require("m1");
+var m1 = __importStar(require("m1"));
m1.f1("test");
m1.f2.a = 10;
m1.f2.person.age = "10"; // Error: Should be number (if direct import of m2 made the m3 module visible).
diff --git a/tests/baselines/reference/project/nodeModulesImportHigher/node/nodeModulesImportHigher.errors.txt b/tests/baselines/reference/project/nodeModulesImportHigher/node/nodeModulesImportHigher.errors.txt
index 774e8b8dfdd99..15ab81a78c641 100644
--- a/tests/baselines/reference/project/nodeModulesImportHigher/node/nodeModulesImportHigher.errors.txt
+++ b/tests/baselines/reference/project/nodeModulesImportHigher/node/nodeModulesImportHigher.errors.txt
@@ -1,4 +1,5 @@
importHigher/tsconfig.json(5,25): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
importHigher/root.ts(6,1): error TS2322: Type 'string' is not assignable to type 'number'.
@@ -10,6 +11,7 @@ importHigher/root.ts(6,1): error TS2322: Type 'string' is not assignable to type
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
"maxNodeModuleJsDepth": 2
}
}
diff --git a/tests/baselines/reference/project/nodeModulesMaxDepthExceeded/amd/maxDepthExceeded/built/root.js b/tests/baselines/reference/project/nodeModulesMaxDepthExceeded/amd/maxDepthExceeded/built/root.js
index dd162fc2f89f2..e88822635f091 100644
--- a/tests/baselines/reference/project/nodeModulesMaxDepthExceeded/amd/maxDepthExceeded/built/root.js
+++ b/tests/baselines/reference/project/nodeModulesMaxDepthExceeded/amd/maxDepthExceeded/built/root.js
@@ -1,6 +1,40 @@
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
define(["require", "exports", "m1"], function (require, exports, m1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+ m1 = __importStar(m1);
m1.f1("test");
m1.f2.a = "10"; // Error: Should be number
m1.rel = 42; // Error: Should be boolean
diff --git a/tests/baselines/reference/project/nodeModulesMaxDepthExceeded/amd/nodeModulesMaxDepthExceeded.errors.txt b/tests/baselines/reference/project/nodeModulesMaxDepthExceeded/amd/nodeModulesMaxDepthExceeded.errors.txt
index c31f3e8f802dd..036cc2483f702 100644
--- a/tests/baselines/reference/project/nodeModulesMaxDepthExceeded/amd/nodeModulesMaxDepthExceeded.errors.txt
+++ b/tests/baselines/reference/project/nodeModulesMaxDepthExceeded/amd/nodeModulesMaxDepthExceeded.errors.txt
@@ -1,13 +1,18 @@
+maxDepthExceeded/tsconfig.json(2,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
maxDepthExceeded/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
maxDepthExceeded/root.ts(3,1): error TS2322: Type 'string' is not assignable to type 'number'.
maxDepthExceeded/root.ts(4,4): error TS2540: Cannot assign to 'rel' because it is a read-only property.
-==== maxDepthExceeded/tsconfig.json (1 errors) ====
+==== maxDepthExceeded/tsconfig.json (2 errors) ====
{
"compilerOptions": {
~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ ~~~~~~~~~~~~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
"allowJs": true,
"maxNodeModuleJsDepth": 1, // Note: Module m1 is already included as a root file
"outDir": "built"
diff --git a/tests/baselines/reference/project/nodeModulesMaxDepthExceeded/node/maxDepthExceeded/built/root.js b/tests/baselines/reference/project/nodeModulesMaxDepthExceeded/node/maxDepthExceeded/built/root.js
index 9597d626ed7c2..016735824e83a 100644
--- a/tests/baselines/reference/project/nodeModulesMaxDepthExceeded/node/maxDepthExceeded/built/root.js
+++ b/tests/baselines/reference/project/nodeModulesMaxDepthExceeded/node/maxDepthExceeded/built/root.js
@@ -1,6 +1,39 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
-var m1 = require("m1");
+var m1 = __importStar(require("m1"));
m1.f1("test");
m1.f2.a = "10"; // Error: Should be number
m1.rel = 42; // Error: Should be boolean
diff --git a/tests/baselines/reference/project/nodeModulesMaxDepthExceeded/node/nodeModulesMaxDepthExceeded.errors.txt b/tests/baselines/reference/project/nodeModulesMaxDepthExceeded/node/nodeModulesMaxDepthExceeded.errors.txt
index c31f3e8f802dd..4a8a36a59473f 100644
--- a/tests/baselines/reference/project/nodeModulesMaxDepthExceeded/node/nodeModulesMaxDepthExceeded.errors.txt
+++ b/tests/baselines/reference/project/nodeModulesMaxDepthExceeded/node/nodeModulesMaxDepthExceeded.errors.txt
@@ -1,4 +1,5 @@
maxDepthExceeded/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
maxDepthExceeded/root.ts(3,1): error TS2322: Type 'string' is not assignable to type 'number'.
maxDepthExceeded/root.ts(4,4): error TS2540: Cannot assign to 'rel' because it is a read-only property.
@@ -8,6 +9,7 @@ maxDepthExceeded/root.ts(4,4): error TS2540: Cannot assign to 'rel' because it i
"compilerOptions": {
~~~~~~~~~~~~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
"allowJs": true,
"maxNodeModuleJsDepth": 1, // Note: Module m1 is already included as a root file
"outDir": "built"
diff --git a/tests/baselines/reference/project/nodeModulesMaxDepthIncreased/amd/maxDepthIncreased/root.js b/tests/baselines/reference/project/nodeModulesMaxDepthIncreased/amd/maxDepthIncreased/root.js
index fe21f6f2d8ba0..3828e092f9783 100644
--- a/tests/baselines/reference/project/nodeModulesMaxDepthIncreased/amd/maxDepthIncreased/root.js
+++ b/tests/baselines/reference/project/nodeModulesMaxDepthIncreased/amd/maxDepthIncreased/root.js
@@ -1,6 +1,41 @@
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
define(["require", "exports", "m1", "m4"], function (require, exports, m1, m4) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+ m1 = __importStar(m1);
+ m4 = __importStar(m4);
m1.f1("test");
m1.f2.a = 10;
m1.f2.person.age = "10"; // Should error if loaded the .js files correctly
diff --git a/tests/baselines/reference/project/nodeModulesMaxDepthIncreased/amd/nodeModulesMaxDepthIncreased.errors.txt b/tests/baselines/reference/project/nodeModulesMaxDepthIncreased/amd/nodeModulesMaxDepthIncreased.errors.txt
index 7bee0e796e93e..46150dd416ccf 100644
--- a/tests/baselines/reference/project/nodeModulesMaxDepthIncreased/amd/nodeModulesMaxDepthIncreased.errors.txt
+++ b/tests/baselines/reference/project/nodeModulesMaxDepthIncreased/amd/nodeModulesMaxDepthIncreased.errors.txt
@@ -1,12 +1,17 @@
+maxDepthIncreased/tsconfig.json(2,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
maxDepthIncreased/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
maxDepthIncreased/root.ts(7,1): error TS2322: Type 'string' is not assignable to type 'number'.
-==== maxDepthIncreased/tsconfig.json (1 errors) ====
+==== maxDepthIncreased/tsconfig.json (2 errors) ====
{
"compilerOptions": {
~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ ~~~~~~~~~~~~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
"allowJs": true,
"maxNodeModuleJsDepth": 3
}
diff --git a/tests/baselines/reference/project/nodeModulesMaxDepthIncreased/node/maxDepthIncreased/root.js b/tests/baselines/reference/project/nodeModulesMaxDepthIncreased/node/maxDepthIncreased/root.js
index 0c0d04b05b279..f42cca3e990bf 100644
--- a/tests/baselines/reference/project/nodeModulesMaxDepthIncreased/node/maxDepthIncreased/root.js
+++ b/tests/baselines/reference/project/nodeModulesMaxDepthIncreased/node/maxDepthIncreased/root.js
@@ -1,7 +1,40 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
-var m1 = require("m1");
-var m4 = require("m4");
+var m1 = __importStar(require("m1"));
+var m4 = __importStar(require("m4"));
m1.f1("test");
m1.f2.a = 10;
m1.f2.person.age = "10"; // Should error if loaded the .js files correctly
diff --git a/tests/baselines/reference/project/nodeModulesMaxDepthIncreased/node/nodeModulesMaxDepthIncreased.errors.txt b/tests/baselines/reference/project/nodeModulesMaxDepthIncreased/node/nodeModulesMaxDepthIncreased.errors.txt
index 7bee0e796e93e..00f98e5a0fbbc 100644
--- a/tests/baselines/reference/project/nodeModulesMaxDepthIncreased/node/nodeModulesMaxDepthIncreased.errors.txt
+++ b/tests/baselines/reference/project/nodeModulesMaxDepthIncreased/node/nodeModulesMaxDepthIncreased.errors.txt
@@ -1,4 +1,5 @@
maxDepthIncreased/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
maxDepthIncreased/root.ts(7,1): error TS2322: Type 'string' is not assignable to type 'number'.
@@ -7,6 +8,7 @@ maxDepthIncreased/root.ts(7,1): error TS2322: Type 'string' is not assignable to
"compilerOptions": {
~~~~~~~~~~~~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
"allowJs": true,
"maxNodeModuleJsDepth": 3
}
diff --git a/tests/baselines/reference/project/nonRelative/amd/nonRelative.errors.txt b/tests/baselines/reference/project/nonRelative/amd/nonRelative.errors.txt
new file mode 100644
index 0000000000000..ac559b316d169
--- /dev/null
+++ b/tests/baselines/reference/project/nonRelative/amd/nonRelative.errors.txt
@@ -0,0 +1,35 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== decl.ts (0 errors) ====
+ export function call() {
+ return "success";
+ }
+==== b.ts (0 errors) ====
+ export function hello() { }
+
+==== a.ts (0 errors) ====
+ import b = require("lib/foo/b");
+ export function hello() { }
+
+==== a.ts (0 errors) ====
+ export function hello() { }
+
+==== consume.ts (0 errors) ====
+ import mod = require("decl");
+ import x = require("lib/foo/a");
+ import y = require("lib/bar/a");
+
+ x.hello();
+ y.hello();
+
+ var str = mod.call();
+
+
+ declare function fail();
+ if(str !== "success") {
+ fail();
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/nonRelative/node/nonRelative.errors.txt b/tests/baselines/reference/project/nonRelative/node/nonRelative.errors.txt
new file mode 100644
index 0000000000000..ddb0b1a767bab
--- /dev/null
+++ b/tests/baselines/reference/project/nonRelative/node/nonRelative.errors.txt
@@ -0,0 +1,33 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== decl.ts (0 errors) ====
+ export function call() {
+ return "success";
+ }
+==== b.ts (0 errors) ====
+ export function hello() { }
+
+==== a.ts (0 errors) ====
+ import b = require("lib/foo/b");
+ export function hello() { }
+
+==== a.ts (0 errors) ====
+ export function hello() { }
+
+==== consume.ts (0 errors) ====
+ import mod = require("decl");
+ import x = require("lib/foo/a");
+ import y = require("lib/bar/a");
+
+ x.hello();
+ y.hello();
+
+ var str = mod.call();
+
+
+ declare function fail();
+ if(str !== "success") {
+ fail();
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/outMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/outMixedSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/outMixedSubfolderNoOutdir.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/outMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/outMixedSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..6e50d90f13b84
--- /dev/null
+++ b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/outMixedSubfolderNoOutdir.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outMixedSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outMixedSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outMixedSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..6e50d90f13b84
--- /dev/null
+++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outMixedSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/outMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/outMixedSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/outMixedSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/node/outMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/node/outMixedSubfolderSpecifyOutputFile.errors.txt
index 51edf2991adfc..8463ae5b1a4d5 100644
--- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/node/outMixedSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/node/outMixedSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
index 51edf2991adfc..8463ae5b1a4d5 100644
--- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
+++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/outModuleMultifolderNoOutdir/amd/outModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/outModuleMultifolderNoOutdir/amd/outModuleMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/outModuleMultifolderNoOutdir/amd/outModuleMultifolderNoOutdir.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outModuleMultifolderNoOutdir/node/outModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/outModuleMultifolderNoOutdir/node/outModuleMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..4685d61030d8a
--- /dev/null
+++ b/tests/baselines/reference/project/outModuleMultifolderNoOutdir/node/outModuleMultifolderNoOutdir.errors.txt
@@ -0,0 +1,39 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outModuleMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outModuleMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/node/outModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/node/outModuleMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..4685d61030d8a
--- /dev/null
+++ b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/node/outModuleMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,39 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/amd/outModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/amd/outModuleMultifolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/amd/outModuleMultifolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/node/outModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/node/outModuleMultifolderSpecifyOutputFile.errors.txt
index 247f9e4f2f2a1..8d5143f60ad82 100644
--- a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/node/outModuleMultifolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/node/outModuleMultifolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/outModuleSimpleNoOutdir/amd/outModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/outModuleSimpleNoOutdir/amd/outModuleSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/outModuleSimpleNoOutdir/amd/outModuleSimpleNoOutdir.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outModuleSimpleNoOutdir/node/outModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/outModuleSimpleNoOutdir/node/outModuleSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..16c4884ea2d8b
--- /dev/null
+++ b/tests/baselines/reference/project/outModuleSimpleNoOutdir/node/outModuleSimpleNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/amd/outModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/amd/outModuleSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/amd/outModuleSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/node/outModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/node/outModuleSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..16c4884ea2d8b
--- /dev/null
+++ b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/node/outModuleSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/amd/outModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/amd/outModuleSimpleSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/amd/outModuleSimpleSpecifyOutputFile.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/node/outModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/node/outModuleSimpleSpecifyOutputFile.errors.txt
index 12592331fb591..2e947050950b0 100644
--- a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/node/outModuleSimpleSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/node/outModuleSimpleSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/outModuleSubfolderNoOutdir/amd/outModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/outModuleSubfolderNoOutdir/amd/outModuleSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/outModuleSubfolderNoOutdir/amd/outModuleSubfolderNoOutdir.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outModuleSubfolderNoOutdir/node/outModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/outModuleSubfolderNoOutdir/node/outModuleSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..c78e96ab66dc4
--- /dev/null
+++ b/tests/baselines/reference/project/outModuleSubfolderNoOutdir/node/outModuleSubfolderNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/amd/outModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/amd/outModuleSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/amd/outModuleSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/node/outModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/node/outModuleSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..c78e96ab66dc4
--- /dev/null
+++ b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/node/outModuleSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/amd/outModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/amd/outModuleSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/amd/outModuleSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/node/outModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/node/outModuleSubfolderSpecifyOutputFile.errors.txt
index 42154149020d1..bc6455bd40ffe 100644
--- a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/node/outModuleSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/node/outModuleSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/outMultifolderNoOutdir/amd/outMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/outMultifolderNoOutdir/amd/outMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/outMultifolderNoOutdir/amd/outMultifolderNoOutdir.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outMultifolderNoOutdir/node/outMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/outMultifolderNoOutdir/node/outMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..3c41aa562c69b
--- /dev/null
+++ b/tests/baselines/reference/project/outMultifolderNoOutdir/node/outMultifolderNoOutdir.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..3c41aa562c69b
--- /dev/null
+++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/outMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/outMultifolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/outMultifolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/node/outMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/node/outMultifolderSpecifyOutputFile.errors.txt
index 664beb97bc203..979a434de92b0 100644
--- a/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/node/outMultifolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/node/outMultifolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/outSimpleNoOutdir/amd/outSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/outSimpleNoOutdir/amd/outSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/outSimpleNoOutdir/amd/outSimpleNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outSimpleNoOutdir/node/outSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/outSimpleNoOutdir/node/outSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..7c16ec1b548bc
--- /dev/null
+++ b/tests/baselines/reference/project/outSimpleNoOutdir/node/outSimpleNoOutdir.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/node/outSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/node/outSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..7c16ec1b548bc
--- /dev/null
+++ b/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/node/outSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/outSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/outSimpleSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/outSimpleSpecifyOutputFile.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outSimpleSpecifyOutputFile/node/outSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/node/outSimpleSpecifyOutputFile.errors.txt
index 53fc18f86c749..7e7a851c111e4 100644
--- a/tests/baselines/reference/project/outSimpleSpecifyOutputFile/node/outSimpleSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/node/outSimpleSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/outSingleFileNoOutdir/amd/outSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/outSingleFileNoOutdir/amd/outSingleFileNoOutdir.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/outSingleFileNoOutdir/amd/outSingleFileNoOutdir.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outSingleFileNoOutdir/node/outSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/outSingleFileNoOutdir/node/outSingleFileNoOutdir.errors.txt
new file mode 100644
index 0000000000000..4793d714a6d0f
--- /dev/null
+++ b/tests/baselines/reference/project/outSingleFileNoOutdir/node/outSingleFileNoOutdir.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/amd/outSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/amd/outSingleFileSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/amd/outSingleFileSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/node/outSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/node/outSingleFileSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..4793d714a6d0f
--- /dev/null
+++ b/tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/node/outSingleFileSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/amd/outSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/amd/outSingleFileSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/amd/outSingleFileSpecifyOutputFile.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/node/outSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/node/outSingleFileSpecifyOutputFile.errors.txt
index eb358c3b79d38..17a2812a8c151 100644
--- a/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/node/outSingleFileSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/node/outSingleFileSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== test.ts (0 errors) ====
var a1 = 10;
diff --git a/tests/baselines/reference/project/outSubfolderNoOutdir/amd/outSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/outSubfolderNoOutdir/amd/outSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/outSubfolderNoOutdir/amd/outSubfolderNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outSubfolderNoOutdir/node/outSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/outSubfolderNoOutdir/node/outSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..a599424df40d9
--- /dev/null
+++ b/tests/baselines/reference/project/outSubfolderNoOutdir/node/outSubfolderNoOutdir.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/node/outSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/node/outSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a599424df40d9
--- /dev/null
+++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/node/outSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/outSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/outSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/outSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/node/outSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/node/outSubfolderSpecifyOutputFile.errors.txt
index 110e384982030..f174bdb49dd18 100644
--- a/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/node/outSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/node/outSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt
index f644b2a3a90d3..42259d155bd26 100644
--- a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt
+++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt
@@ -1,9 +1,13 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
testGlo.ts(2,39): error TS1147: Import declarations in a namespace cannot reference a module.
testGlo.ts(2,39): error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
testGlo.ts(21,35): error TS1147: Import declarations in a namespace cannot reference a module.
testGlo.ts(21,35): error TS2792: Cannot find module 'mNonExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== testGlo.ts (4 errors) ====
module m2 {
export import mExported = require("mExported");
diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/node/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/node/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt
index f644b2a3a90d3..754ae51cd7e6a 100644
--- a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/node/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt
+++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/node/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt
@@ -1,9 +1,11 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
testGlo.ts(2,39): error TS1147: Import declarations in a namespace cannot reference a module.
testGlo.ts(2,39): error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
testGlo.ts(21,35): error TS1147: Import declarations in a namespace cannot reference a module.
testGlo.ts(21,35): error TS2792: Cannot find module 'mNonExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== testGlo.ts (4 errors) ====
module m2 {
export import mExported = require("mExported");
diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/amd/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/amd/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt
index 61ae9d8331704..9fb8c9173a147 100644
--- a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/amd/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt
+++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/amd/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt
@@ -1,9 +1,13 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
test.ts(5,39): error TS1147: Import declarations in a namespace cannot reference a module.
test.ts(5,39): error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
test.ts(24,35): error TS1147: Import declarations in a namespace cannot reference a module.
test.ts(24,35): error TS2792: Cannot find module 'mNonExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== test.ts (4 errors) ====
export module m1 {
}
diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/node/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/node/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt
index 61ae9d8331704..a0c70f7251b83 100644
--- a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/node/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt
+++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/node/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt
@@ -1,9 +1,11 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
test.ts(5,39): error TS1147: Import declarations in a namespace cannot reference a module.
test.ts(5,39): error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
test.ts(24,35): error TS1147: Import declarations in a namespace cannot reference a module.
test.ts(24,35): error TS2792: Cannot find module 'mNonExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== test.ts (4 errors) ====
export module m1 {
}
diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/amd/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/amd/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt
index a454af4a3fed9..98a1863811551 100644
--- a/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/amd/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt
+++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/amd/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt
@@ -1,9 +1,13 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
test.ts(2,39): error TS1147: Import declarations in a namespace cannot reference a module.
test.ts(2,39): error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
test.ts(42,35): error TS1147: Import declarations in a namespace cannot reference a module.
test.ts(42,35): error TS2792: Cannot find module 'mNonExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== test.ts (4 errors) ====
export module m2 {
export import mExported = require("mExported");
diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/node/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/node/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt
index a454af4a3fed9..fc00fee415508 100644
--- a/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/node/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt
+++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/node/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt
@@ -1,9 +1,11 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
test.ts(2,39): error TS1147: Import declarations in a namespace cannot reference a module.
test.ts(2,39): error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
test.ts(42,35): error TS1147: Import declarations in a namespace cannot reference a module.
test.ts(42,35): error TS2792: Cannot find module 'mNonExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== test.ts (4 errors) ====
export module m2 {
export import mExported = require("mExported");
diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleSimpleReference/amd/privacyCheckOnImportedModuleSimpleReference.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleSimpleReference/amd/privacyCheckOnImportedModuleSimpleReference.errors.txt
new file mode 100644
index 0000000000000..0ea6bcdd8a049
--- /dev/null
+++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleSimpleReference/amd/privacyCheckOnImportedModuleSimpleReference.errors.txt
@@ -0,0 +1,66 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== mExported.ts (0 errors) ====
+ export module me {
+ export class class1 {
+ public prop1 = 0;
+ }
+
+ export var x = class1;
+ export function foo() {
+ return new class1();
+ }
+ }
+==== mNonExported.ts (0 errors) ====
+ export module mne {
+ export class class1 {
+ public prop1 = 0;
+ }
+
+ export var x = class1;
+ export function foo() {
+ return new class1();
+ }
+ }
+==== test.ts (0 errors) ====
+ export import mExported = require("mExported");
+ export var c1 = new mExported.me.class1;
+ export function f1() {
+ return new mExported.me.class1();
+ }
+ export var x1 = mExported.me.x;
+
+ export class class1 extends mExported.me.class1 {
+ }
+
+ var c2 = new mExported.me.class1;
+ function f2() {
+ return new mExported.me.class1();
+ }
+ var x2 = mExported.me.x;
+
+ class class2 extends mExported.me.class1 {
+ }
+
+ import mNonExported = require("mNonExported");
+ export var c3 = new mNonExported.mne.class1;
+ export function f3() {
+ return new mNonExported.mne.class1();
+ }
+ export var x3 = mNonExported.mne.x;
+
+ export class class3 extends mNonExported.mne.class1 {
+ }
+
+ var c4 = new mNonExported.mne.class1;
+ function f4() {
+ return new mNonExported.mne.class1();
+ }
+ var x4 = mNonExported.mne.x;
+
+ class class4 extends mNonExported.mne.class1 {
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleSimpleReference/node/privacyCheckOnImportedModuleSimpleReference.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleSimpleReference/node/privacyCheckOnImportedModuleSimpleReference.errors.txt
new file mode 100644
index 0000000000000..6b3b36b342096
--- /dev/null
+++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleSimpleReference/node/privacyCheckOnImportedModuleSimpleReference.errors.txt
@@ -0,0 +1,64 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== mExported.ts (0 errors) ====
+ export module me {
+ export class class1 {
+ public prop1 = 0;
+ }
+
+ export var x = class1;
+ export function foo() {
+ return new class1();
+ }
+ }
+==== mNonExported.ts (0 errors) ====
+ export module mne {
+ export class class1 {
+ public prop1 = 0;
+ }
+
+ export var x = class1;
+ export function foo() {
+ return new class1();
+ }
+ }
+==== test.ts (0 errors) ====
+ export import mExported = require("mExported");
+ export var c1 = new mExported.me.class1;
+ export function f1() {
+ return new mExported.me.class1();
+ }
+ export var x1 = mExported.me.x;
+
+ export class class1 extends mExported.me.class1 {
+ }
+
+ var c2 = new mExported.me.class1;
+ function f2() {
+ return new mExported.me.class1();
+ }
+ var x2 = mExported.me.x;
+
+ class class2 extends mExported.me.class1 {
+ }
+
+ import mNonExported = require("mNonExported");
+ export var c3 = new mNonExported.mne.class1;
+ export function f3() {
+ return new mNonExported.mne.class1();
+ }
+ export var x3 = mNonExported.mne.x;
+
+ export class class3 extends mNonExported.mne.class1 {
+ }
+
+ var c4 = new mNonExported.mne.class1;
+ function f4() {
+ return new mNonExported.mne.class1();
+ }
+ var x4 = mNonExported.mne.x;
+
+ class class4 extends mNonExported.mne.class1 {
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/privacyCheckOnIndirectTypeFromTheExternalType/amd/privacyCheckOnIndirectTypeFromTheExternalType.errors.txt b/tests/baselines/reference/project/privacyCheckOnIndirectTypeFromTheExternalType/amd/privacyCheckOnIndirectTypeFromTheExternalType.errors.txt
new file mode 100644
index 0000000000000..ed5090279fd40
--- /dev/null
+++ b/tests/baselines/reference/project/privacyCheckOnIndirectTypeFromTheExternalType/amd/privacyCheckOnIndirectTypeFromTheExternalType.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== indirectExternalModule.ts (0 errors) ====
+ export class indirectClass {
+ }
+==== externalModule.ts (0 errors) ====
+ import im0 = require("indirectExternalModule");
+ export var x = new im0.indirectClass();
+
+==== test.ts (0 errors) ====
+ import im1 = require("externalModule");
+ export var x = im1.x;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/privacyCheckOnIndirectTypeFromTheExternalType/node/privacyCheckOnIndirectTypeFromTheExternalType.errors.txt b/tests/baselines/reference/project/privacyCheckOnIndirectTypeFromTheExternalType/node/privacyCheckOnIndirectTypeFromTheExternalType.errors.txt
new file mode 100644
index 0000000000000..162f60016b6f7
--- /dev/null
+++ b/tests/baselines/reference/project/privacyCheckOnIndirectTypeFromTheExternalType/node/privacyCheckOnIndirectTypeFromTheExternalType.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== indirectExternalModule.ts (0 errors) ====
+ export class indirectClass {
+ }
+==== externalModule.ts (0 errors) ====
+ import im0 = require("indirectExternalModule");
+ export var x = new im0.indirectClass();
+
+==== test.ts (0 errors) ====
+ import im1 = require("externalModule");
+ export var x = im1.x;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/projectOptionTest/amd/projectOptionTest.errors.txt b/tests/baselines/reference/project/projectOptionTest/amd/projectOptionTest.errors.txt
new file mode 100644
index 0000000000000..ebfcea0af98dd
--- /dev/null
+++ b/tests/baselines/reference/project/projectOptionTest/amd/projectOptionTest.errors.txt
@@ -0,0 +1,10 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== Test/tsconfig.json (0 errors) ====
+ { "files": [ "a.ts" ] }
+==== Test/a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/projectOptionTest/node/projectOptionTest.errors.txt b/tests/baselines/reference/project/projectOptionTest/node/projectOptionTest.errors.txt
new file mode 100644
index 0000000000000..e333a1b225fcf
--- /dev/null
+++ b/tests/baselines/reference/project/projectOptionTest/node/projectOptionTest.errors.txt
@@ -0,0 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== Test/tsconfig.json (0 errors) ====
+ { "files": [ "a.ts" ] }
+==== Test/a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/prologueEmit/amd/prologueEmit.errors.txt b/tests/baselines/reference/project/prologueEmit/amd/prologueEmit.errors.txt
new file mode 100644
index 0000000000000..851209d9526a1
--- /dev/null
+++ b/tests/baselines/reference/project/prologueEmit/amd/prologueEmit.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== globalThisCapture.ts (0 errors) ====
+ // Add a lambda to ensure global 'this' capture is triggered
+ (()=>this.window);
+
+==== __extends.ts (0 errors) ====
+ // class inheritance to ensure __extends is emitted
+ module m {
+ export class base {}
+ export class child extends base {}
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/prologueEmit/node/prologueEmit.errors.txt b/tests/baselines/reference/project/prologueEmit/node/prologueEmit.errors.txt
index ef77af7372ee7..be03b9ed0c92f 100644
--- a/tests/baselines/reference/project/prologueEmit/node/prologueEmit.errors.txt
+++ b/tests/baselines/reference/project/prologueEmit/node/prologueEmit.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== globalThisCapture.ts (0 errors) ====
// Add a lambda to ensure global 'this' capture is triggered
diff --git a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/quotesInFileAndDirectoryNames.errors.txt b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/quotesInFileAndDirectoryNames.errors.txt
new file mode 100644
index 0000000000000..f2d58fc0f627e
--- /dev/null
+++ b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/quotesInFileAndDirectoryNames.errors.txt
@@ -0,0 +1,18 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== li'b/class'A.ts (0 errors) ====
+ module test {
+ export class ClassA
+ {
+ public method() { }
+ }
+ }
+==== m'ain.ts (0 errors) ====
+ ///
+
+ class ClassC extends test.ClassA {
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/quotesInFileAndDirectoryNames.errors.txt b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/quotesInFileAndDirectoryNames.errors.txt
new file mode 100644
index 0000000000000..4f532554a93c1
--- /dev/null
+++ b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/quotesInFileAndDirectoryNames.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== li'b/class'A.ts (0 errors) ====
+ module test {
+ export class ClassA
+ {
+ public method() { }
+ }
+ }
+==== m'ain.ts (0 errors) ====
+ ///
+
+ class ClassC extends test.ClassA {
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/referencePathStatic/amd/referencePathStatic.errors.txt b/tests/baselines/reference/project/referencePathStatic/amd/referencePathStatic.errors.txt
new file mode 100644
index 0000000000000..536abc9ab892f
--- /dev/null
+++ b/tests/baselines/reference/project/referencePathStatic/amd/referencePathStatic.errors.txt
@@ -0,0 +1,15 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== lib.ts (0 errors) ====
+ module Lib {
+ export class LibType {}
+ }
+
+==== test.ts (0 errors) ====
+ ///
+
+ var libType: Lib.LibType;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/referencePathStatic/node/referencePathStatic.errors.txt b/tests/baselines/reference/project/referencePathStatic/node/referencePathStatic.errors.txt
new file mode 100644
index 0000000000000..9532468548c39
--- /dev/null
+++ b/tests/baselines/reference/project/referencePathStatic/node/referencePathStatic.errors.txt
@@ -0,0 +1,13 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== lib.ts (0 errors) ====
+ module Lib {
+ export class LibType {}
+ }
+
+==== test.ts (0 errors) ====
+ ///
+
+ var libType: Lib.LibType;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/referenceResolutionRelativePaths/amd/referenceResolutionRelativePaths.errors.txt b/tests/baselines/reference/project/referenceResolutionRelativePaths/amd/referenceResolutionRelativePaths.errors.txt
new file mode 100644
index 0000000000000..50f26f3c08d6d
--- /dev/null
+++ b/tests/baselines/reference/project/referenceResolutionRelativePaths/amd/referenceResolutionRelativePaths.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ../../../bar/bar.ts (0 errors) ====
+ ///
+ // This is bar.ts
+ class bar {
+ }
+==== foo.ts (0 errors) ====
+ ///
+
+ class foo {
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/referenceResolutionRelativePaths/node/referenceResolutionRelativePaths.errors.txt b/tests/baselines/reference/project/referenceResolutionRelativePaths/node/referenceResolutionRelativePaths.errors.txt
new file mode 100644
index 0000000000000..265dcf67beaa1
--- /dev/null
+++ b/tests/baselines/reference/project/referenceResolutionRelativePaths/node/referenceResolutionRelativePaths.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ../../../bar/bar.ts (0 errors) ====
+ ///
+ // This is bar.ts
+ class bar {
+ }
+==== foo.ts (0 errors) ====
+ ///
+
+ class foo {
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/amd/referenceResolutionRelativePathsFromRootDirectory.errors.txt b/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/amd/referenceResolutionRelativePathsFromRootDirectory.errors.txt
new file mode 100644
index 0000000000000..bbffbb7d5b757
--- /dev/null
+++ b/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/amd/referenceResolutionRelativePathsFromRootDirectory.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== bar/bar.ts (0 errors) ====
+ ///
+ // This is bar.ts
+ class bar {
+ }
+==== src/ts/foo/foo.ts (0 errors) ====
+ ///
+
+ class foo {
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/node/referenceResolutionRelativePathsFromRootDirectory.errors.txt b/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/node/referenceResolutionRelativePathsFromRootDirectory.errors.txt
new file mode 100644
index 0000000000000..033c78f64dc8b
--- /dev/null
+++ b/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/node/referenceResolutionRelativePathsFromRootDirectory.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== bar/bar.ts (0 errors) ====
+ ///
+ // This is bar.ts
+ class bar {
+ }
+==== src/ts/foo/foo.ts (0 errors) ====
+ ///
+
+ class foo {
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/amd/referenceResolutionRelativePathsNoResolve.errors.txt b/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/amd/referenceResolutionRelativePathsNoResolve.errors.txt
new file mode 100644
index 0000000000000..03a77445d9acd
--- /dev/null
+++ b/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/amd/referenceResolutionRelativePathsNoResolve.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== foo.ts (0 errors) ====
+ ///
+
+ class foo {
+ }
+==== ../../../bar/bar.ts (0 errors) ====
+ ///
+ // This is bar.ts
+ class bar {
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/node/referenceResolutionRelativePathsNoResolve.errors.txt b/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/node/referenceResolutionRelativePathsNoResolve.errors.txt
new file mode 100644
index 0000000000000..72764a5d5c9f7
--- /dev/null
+++ b/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/node/referenceResolutionRelativePathsNoResolve.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== foo.ts (0 errors) ====
+ ///
+
+ class foo {
+ }
+==== ../../../bar/bar.ts (0 errors) ====
+ ///
+ // This is bar.ts
+ class bar {
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/amd/referenceResolutionRelativePathsRelativeToRootDirectory.errors.txt b/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/amd/referenceResolutionRelativePathsRelativeToRootDirectory.errors.txt
new file mode 100644
index 0000000000000..f647ca73570f7
--- /dev/null
+++ b/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/amd/referenceResolutionRelativePathsRelativeToRootDirectory.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ../../../bar/bar.ts (0 errors) ====
+ ///
+ // This is bar.ts
+ class bar {
+ }
+==== ../../../src/ts/foo/foo.ts (0 errors) ====
+ ///
+
+ class foo {
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/node/referenceResolutionRelativePathsRelativeToRootDirectory.errors.txt b/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/node/referenceResolutionRelativePathsRelativeToRootDirectory.errors.txt
new file mode 100644
index 0000000000000..3340b539e9fa5
--- /dev/null
+++ b/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/node/referenceResolutionRelativePathsRelativeToRootDirectory.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ../../../bar/bar.ts (0 errors) ====
+ ///
+ // This is bar.ts
+ class bar {
+ }
+==== ../../../src/ts/foo/foo.ts (0 errors) ====
+ ///
+
+ class foo {
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/referenceResolutionSameFileTwice/amd/referenceResolutionSameFileTwice.errors.txt b/tests/baselines/reference/project/referenceResolutionSameFileTwice/amd/referenceResolutionSameFileTwice.errors.txt
new file mode 100644
index 0000000000000..45161e39e10e3
--- /dev/null
+++ b/tests/baselines/reference/project/referenceResolutionSameFileTwice/amd/referenceResolutionSameFileTwice.errors.txt
@@ -0,0 +1,9 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ class test {
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/referenceResolutionSameFileTwice/node/referenceResolutionSameFileTwice.errors.txt b/tests/baselines/reference/project/referenceResolutionSameFileTwice/node/referenceResolutionSameFileTwice.errors.txt
new file mode 100644
index 0000000000000..5a5b572dc6e22
--- /dev/null
+++ b/tests/baselines/reference/project/referenceResolutionSameFileTwice/node/referenceResolutionSameFileTwice.errors.txt
@@ -0,0 +1,7 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ class test {
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/amd/referenceResolutionSameFileTwiceNoResolve.errors.txt b/tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/amd/referenceResolutionSameFileTwiceNoResolve.errors.txt
new file mode 100644
index 0000000000000..45161e39e10e3
--- /dev/null
+++ b/tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/amd/referenceResolutionSameFileTwiceNoResolve.errors.txt
@@ -0,0 +1,9 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ class test {
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/node/referenceResolutionSameFileTwiceNoResolve.errors.txt b/tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/node/referenceResolutionSameFileTwiceNoResolve.errors.txt
new file mode 100644
index 0000000000000..5a5b572dc6e22
--- /dev/null
+++ b/tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/node/referenceResolutionSameFileTwiceNoResolve.errors.txt
@@ -0,0 +1,7 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ class test {
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/relativeGlobal/amd/relativeGlobal.errors.txt b/tests/baselines/reference/project/relativeGlobal/amd/relativeGlobal.errors.txt
new file mode 100644
index 0000000000000..4061bec552b4e
--- /dev/null
+++ b/tests/baselines/reference/project/relativeGlobal/amd/relativeGlobal.errors.txt
@@ -0,0 +1,20 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== decl.ts (0 errors) ====
+ export function call() {
+ return "success";
+ }
+ export var x = 1;
+==== consume.ts (0 errors) ====
+ import decl = require("./decl");
+ var str = decl.call();
+
+ declare function fail();
+
+ if(str !== "success") {
+ fail();
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/relativeGlobal/node/relativeGlobal.errors.txt b/tests/baselines/reference/project/relativeGlobal/node/relativeGlobal.errors.txt
new file mode 100644
index 0000000000000..9974eddc3def4
--- /dev/null
+++ b/tests/baselines/reference/project/relativeGlobal/node/relativeGlobal.errors.txt
@@ -0,0 +1,18 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== decl.ts (0 errors) ====
+ export function call() {
+ return "success";
+ }
+ export var x = 1;
+==== consume.ts (0 errors) ====
+ import decl = require("./decl");
+ var str = decl.call();
+
+ declare function fail();
+
+ if(str !== "success") {
+ fail();
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/relativeGlobalRef/amd/relativeGlobalRef.errors.txt b/tests/baselines/reference/project/relativeGlobalRef/amd/relativeGlobalRef.errors.txt
new file mode 100644
index 0000000000000..67c4e4276445a
--- /dev/null
+++ b/tests/baselines/reference/project/relativeGlobalRef/amd/relativeGlobalRef.errors.txt
@@ -0,0 +1,21 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== decl.d.ts (0 errors) ====
+ declare module "decl"
+ {
+ export function call();
+ }
+==== consume.ts (0 errors) ====
+ ///
+ import decl = require("decl");
+ var str = decl.call();
+
+ declare function fail();
+
+ if(str !== "success") {
+ fail();
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/relativeGlobalRef/node/relativeGlobalRef.errors.txt b/tests/baselines/reference/project/relativeGlobalRef/node/relativeGlobalRef.errors.txt
new file mode 100644
index 0000000000000..71989a7a7eed0
--- /dev/null
+++ b/tests/baselines/reference/project/relativeGlobalRef/node/relativeGlobalRef.errors.txt
@@ -0,0 +1,19 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== decl.d.ts (0 errors) ====
+ declare module "decl"
+ {
+ export function call();
+ }
+==== consume.ts (0 errors) ====
+ ///
+ import decl = require("decl");
+ var str = decl.call();
+
+ declare function fail();
+
+ if(str !== "success") {
+ fail();
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/relativeNested/amd/relativeNested.errors.txt b/tests/baselines/reference/project/relativeNested/amd/relativeNested.errors.txt
new file mode 100644
index 0000000000000..d7c18c0883041
--- /dev/null
+++ b/tests/baselines/reference/project/relativeNested/amd/relativeNested.errors.txt
@@ -0,0 +1,31 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== decl.ts (0 errors) ====
+ export function call() {
+ return "success";
+ }
+ export var x = 1;
+==== consume.ts (0 errors) ====
+ import decl = require("../decl");
+
+ declare function fail();
+
+ export function call()
+ {
+ var str = decl.call();
+
+
+
+ if (str !== "success")
+ {
+ fail();
+ }
+ }
+==== app.ts (0 errors) ====
+ import consume = require("./main/consume");
+
+ consume.call();
\ No newline at end of file
diff --git a/tests/baselines/reference/project/relativeNested/node/relativeNested.errors.txt b/tests/baselines/reference/project/relativeNested/node/relativeNested.errors.txt
new file mode 100644
index 0000000000000..7999b36424ef5
--- /dev/null
+++ b/tests/baselines/reference/project/relativeNested/node/relativeNested.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== decl.ts (0 errors) ====
+ export function call() {
+ return "success";
+ }
+ export var x = 1;
+==== consume.ts (0 errors) ====
+ import decl = require("../decl");
+
+ declare function fail();
+
+ export function call()
+ {
+ var str = decl.call();
+
+
+
+ if (str !== "success")
+ {
+ fail();
+ }
+ }
+==== app.ts (0 errors) ====
+ import consume = require("./main/consume");
+
+ consume.call();
\ No newline at end of file
diff --git a/tests/baselines/reference/project/relativeNestedRef/amd/relativeNestedRef.errors.txt b/tests/baselines/reference/project/relativeNestedRef/amd/relativeNestedRef.errors.txt
new file mode 100644
index 0000000000000..e09709f8a2af8
--- /dev/null
+++ b/tests/baselines/reference/project/relativeNestedRef/amd/relativeNestedRef.errors.txt
@@ -0,0 +1,21 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== decl.d.ts (0 errors) ====
+ declare module "decl"
+ {
+ export function call();
+ }
+==== main/consume.ts (0 errors) ====
+ ///
+ import decl = require("decl");
+ var str = decl.call();
+
+ declare function fail();
+
+ if(str !== "success") {
+ fail();
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/relativeNestedRef/node/relativeNestedRef.errors.txt b/tests/baselines/reference/project/relativeNestedRef/node/relativeNestedRef.errors.txt
new file mode 100644
index 0000000000000..a9dc85ea7d1f2
--- /dev/null
+++ b/tests/baselines/reference/project/relativeNestedRef/node/relativeNestedRef.errors.txt
@@ -0,0 +1,19 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== decl.d.ts (0 errors) ====
+ declare module "decl"
+ {
+ export function call();
+ }
+==== main/consume.ts (0 errors) ====
+ ///
+ import decl = require("decl");
+ var str = decl.call();
+
+ declare function fail();
+
+ if(str !== "success") {
+ fail();
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/relativePaths/amd/relativePaths.errors.txt b/tests/baselines/reference/project/relativePaths/amd/relativePaths.errors.txt
new file mode 100644
index 0000000000000..7203056d2abfd
--- /dev/null
+++ b/tests/baselines/reference/project/relativePaths/amd/relativePaths.errors.txt
@@ -0,0 +1,20 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== b.ts (0 errors) ====
+ export function B(): void {
+ throw new Error('Should not be called');
+ }
+==== a.ts (0 errors) ====
+ import b = require('b');
+
+ export function A(): void {
+ b.B();
+ }
+==== app.ts (0 errors) ====
+ import a = require('A/a');
+
+ a.A();
\ No newline at end of file
diff --git a/tests/baselines/reference/project/relativePaths/node/relativePaths.errors.txt b/tests/baselines/reference/project/relativePaths/node/relativePaths.errors.txt
new file mode 100644
index 0000000000000..a7246844ddae6
--- /dev/null
+++ b/tests/baselines/reference/project/relativePaths/node/relativePaths.errors.txt
@@ -0,0 +1,18 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== b.ts (0 errors) ====
+ export function B(): void {
+ throw new Error('Should not be called');
+ }
+==== a.ts (0 errors) ====
+ import b = require('b');
+
+ export function A(): void {
+ b.B();
+ }
+==== app.ts (0 errors) ====
+ import a = require('A/a');
+
+ a.A();
\ No newline at end of file
diff --git a/tests/baselines/reference/project/rootDirectory/amd/rootDirectory.errors.txt b/tests/baselines/reference/project/rootDirectory/amd/rootDirectory.errors.txt
new file mode 100644
index 0000000000000..9e41c3338fb3c
--- /dev/null
+++ b/tests/baselines/reference/project/rootDirectory/amd/rootDirectory.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== FolderA/FolderB/FolderC/fileC.ts (0 errors) ====
+ class C {
+ }
+
+==== FolderA/FolderB/fileB.ts (0 errors) ====
+ ///
+ class B {
+ public c: C;
+ }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/project/rootDirectory/node/rootDirectory.errors.txt b/tests/baselines/reference/project/rootDirectory/node/rootDirectory.errors.txt
new file mode 100644
index 0000000000000..1722096680e75
--- /dev/null
+++ b/tests/baselines/reference/project/rootDirectory/node/rootDirectory.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== FolderA/FolderB/FolderC/fileC.ts (0 errors) ====
+ class C {
+ }
+
+==== FolderA/FolderB/fileB.ts (0 errors) ====
+ ///
+ class B {
+ public c: C;
+ }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/project/rootDirectoryErrors/amd/rootDirectoryErrors.errors.txt b/tests/baselines/reference/project/rootDirectoryErrors/amd/rootDirectoryErrors.errors.txt
index 4e3492c206fdb..7a71502a51064 100644
--- a/tests/baselines/reference/project/rootDirectoryErrors/amd/rootDirectoryErrors.errors.txt
+++ b/tests/baselines/reference/project/rootDirectoryErrors/amd/rootDirectoryErrors.errors.txt
@@ -1,8 +1,12 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6059: File 'FolderA/FolderB/fileB.ts' is not under 'rootDir' 'FolderA/FolderB/FolderC'. 'rootDir' is expected to contain all source files.
The file is in the program because:
Root file specified for compilation
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6059: File 'FolderA/FolderB/fileB.ts' is not under 'rootDir' 'FolderA/FolderB/FolderC'. 'rootDir' is expected to contain all source files.
!!! error TS6059: The file is in the program because:
!!! error TS6059: Root file specified for compilation
diff --git a/tests/baselines/reference/project/rootDirectoryErrors/node/rootDirectoryErrors.errors.txt b/tests/baselines/reference/project/rootDirectoryErrors/node/rootDirectoryErrors.errors.txt
index 4e3492c206fdb..6bb24b32a7b9d 100644
--- a/tests/baselines/reference/project/rootDirectoryErrors/node/rootDirectoryErrors.errors.txt
+++ b/tests/baselines/reference/project/rootDirectoryErrors/node/rootDirectoryErrors.errors.txt
@@ -1,8 +1,10 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6059: File 'FolderA/FolderB/fileB.ts' is not under 'rootDir' 'FolderA/FolderB/FolderC'. 'rootDir' is expected to contain all source files.
The file is in the program because:
Root file specified for compilation
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6059: File 'FolderA/FolderB/fileB.ts' is not under 'rootDir' 'FolderA/FolderB/FolderC'. 'rootDir' is expected to contain all source files.
!!! error TS6059: The file is in the program because:
!!! error TS6059: Root file specified for compilation
diff --git a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/rootDirectoryWithSourceRoot.errors.txt b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/rootDirectoryWithSourceRoot.errors.txt
new file mode 100644
index 0000000000000..9e41c3338fb3c
--- /dev/null
+++ b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/rootDirectoryWithSourceRoot.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== FolderA/FolderB/FolderC/fileC.ts (0 errors) ====
+ class C {
+ }
+
+==== FolderA/FolderB/fileB.ts (0 errors) ====
+ ///
+ class B {
+ public c: C;
+ }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/rootDirectoryWithSourceRoot.errors.txt b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/rootDirectoryWithSourceRoot.errors.txt
new file mode 100644
index 0000000000000..1722096680e75
--- /dev/null
+++ b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/rootDirectoryWithSourceRoot.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== FolderA/FolderB/FolderC/fileC.ts (0 errors) ====
+ class C {
+ }
+
+==== FolderA/FolderB/fileB.ts (0 errors) ====
+ ///
+ class B {
+ public c: C;
+ }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/project/rootDirectoryWithoutOutDir/amd/rootDirectoryWithoutOutDir.errors.txt b/tests/baselines/reference/project/rootDirectoryWithoutOutDir/amd/rootDirectoryWithoutOutDir.errors.txt
index 4e3492c206fdb..7a71502a51064 100644
--- a/tests/baselines/reference/project/rootDirectoryWithoutOutDir/amd/rootDirectoryWithoutOutDir.errors.txt
+++ b/tests/baselines/reference/project/rootDirectoryWithoutOutDir/amd/rootDirectoryWithoutOutDir.errors.txt
@@ -1,8 +1,12 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6059: File 'FolderA/FolderB/fileB.ts' is not under 'rootDir' 'FolderA/FolderB/FolderC'. 'rootDir' is expected to contain all source files.
The file is in the program because:
Root file specified for compilation
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6059: File 'FolderA/FolderB/fileB.ts' is not under 'rootDir' 'FolderA/FolderB/FolderC'. 'rootDir' is expected to contain all source files.
!!! error TS6059: The file is in the program because:
!!! error TS6059: Root file specified for compilation
diff --git a/tests/baselines/reference/project/rootDirectoryWithoutOutDir/node/rootDirectoryWithoutOutDir.errors.txt b/tests/baselines/reference/project/rootDirectoryWithoutOutDir/node/rootDirectoryWithoutOutDir.errors.txt
index 4e3492c206fdb..6bb24b32a7b9d 100644
--- a/tests/baselines/reference/project/rootDirectoryWithoutOutDir/node/rootDirectoryWithoutOutDir.errors.txt
+++ b/tests/baselines/reference/project/rootDirectoryWithoutOutDir/node/rootDirectoryWithoutOutDir.errors.txt
@@ -1,8 +1,10 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6059: File 'FolderA/FolderB/fileB.ts' is not under 'rootDir' 'FolderA/FolderB/FolderC'. 'rootDir' is expected to contain all source files.
The file is in the program because:
Root file specified for compilation
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6059: File 'FolderA/FolderB/fileB.ts' is not under 'rootDir' 'FolderA/FolderB/FolderC'. 'rootDir' is expected to contain all source files.
!!! error TS6059: The file is in the program because:
!!! error TS6059: Root file specified for compilation
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/sourceRootAbsolutePathMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/sourceRootAbsolutePathMixedSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/sourceRootAbsolutePathMixedSubfolderNoOutdir.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/sourceRootAbsolutePathMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/sourceRootAbsolutePathMixedSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..6e50d90f13b84
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/sourceRootAbsolutePathMixedSubfolderNoOutdir.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..6e50d90f13b84
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt
index 51edf2991adfc..8463ae5b1a4d5 100644
--- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
index 51edf2991adfc..8463ae5b1a4d5 100644
--- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/sourceRootAbsolutePathModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/sourceRootAbsolutePathModuleMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/sourceRootAbsolutePathModuleMultifolderNoOutdir.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/sourceRootAbsolutePathModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/sourceRootAbsolutePathModuleMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..4685d61030d8a
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/sourceRootAbsolutePathModuleMultifolderNoOutdir.errors.txt
@@ -0,0 +1,39 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..4685d61030d8a
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,39 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt
index 247f9e4f2f2a1..8d5143f60ad82 100644
--- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/sourceRootAbsolutePathModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/sourceRootAbsolutePathModuleSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/sourceRootAbsolutePathModuleSimpleNoOutdir.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/sourceRootAbsolutePathModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/sourceRootAbsolutePathModuleSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..16c4884ea2d8b
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/sourceRootAbsolutePathModuleSimpleNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..16c4884ea2d8b
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/node/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/node/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt
index 12592331fb591..2e947050950b0 100644
--- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/node/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/node/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/sourceRootAbsolutePathModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/sourceRootAbsolutePathModuleSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/sourceRootAbsolutePathModuleSubfolderNoOutdir.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/sourceRootAbsolutePathModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/sourceRootAbsolutePathModuleSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..c78e96ab66dc4
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/sourceRootAbsolutePathModuleSubfolderNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..c78e96ab66dc4
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt
index 42154149020d1..bc6455bd40ffe 100644
--- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/sourceRootAbsolutePathMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/sourceRootAbsolutePathMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/sourceRootAbsolutePathMultifolderNoOutdir.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/sourceRootAbsolutePathMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/sourceRootAbsolutePathMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..3c41aa562c69b
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/sourceRootAbsolutePathMultifolderNoOutdir.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..3c41aa562c69b
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt
index 664beb97bc203..979a434de92b0 100644
--- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/sourceRootAbsolutePathSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/sourceRootAbsolutePathSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/sourceRootAbsolutePathSimpleNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/sourceRootAbsolutePathSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/sourceRootAbsolutePathSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..7c16ec1b548bc
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/sourceRootAbsolutePathSimpleNoOutdir.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..7c16ec1b548bc
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt
index 53fc18f86c749..7e7a851c111e4 100644
--- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/amd/sourceRootAbsolutePathSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/amd/sourceRootAbsolutePathSingleFileNoOutdir.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/amd/sourceRootAbsolutePathSingleFileNoOutdir.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/node/sourceRootAbsolutePathSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/node/sourceRootAbsolutePathSingleFileNoOutdir.errors.txt
new file mode 100644
index 0000000000000..4793d714a6d0f
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/node/sourceRootAbsolutePathSingleFileNoOutdir.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/node/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/node/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..4793d714a6d0f
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/node/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/node/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/node/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt
index eb358c3b79d38..17a2812a8c151 100644
--- a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/node/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/node/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== test.ts (0 errors) ====
var a1 = 10;
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/sourceRootAbsolutePathSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/sourceRootAbsolutePathSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/sourceRootAbsolutePathSubfolderNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/sourceRootAbsolutePathSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/sourceRootAbsolutePathSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..a599424df40d9
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/sourceRootAbsolutePathSubfolderNoOutdir.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a599424df40d9
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt
index 110e384982030..f174bdb49dd18 100644
--- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/sourceRootRelativePathMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/sourceRootRelativePathMixedSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/sourceRootRelativePathMixedSubfolderNoOutdir.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/sourceRootRelativePathMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/sourceRootRelativePathMixedSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..6e50d90f13b84
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/sourceRootRelativePathMixedSubfolderNoOutdir.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..6e50d90f13b84
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt
index 51edf2991adfc..8463ae5b1a4d5 100644
--- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
index 51edf2991adfc..8463ae5b1a4d5 100644
--- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
+++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/sourceRootRelativePathModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/sourceRootRelativePathModuleMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/sourceRootRelativePathModuleMultifolderNoOutdir.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/sourceRootRelativePathModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/sourceRootRelativePathModuleMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..4685d61030d8a
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/sourceRootRelativePathModuleMultifolderNoOutdir.errors.txt
@@ -0,0 +1,39 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..4685d61030d8a
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,39 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/node/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/node/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt
index 247f9e4f2f2a1..8d5143f60ad82 100644
--- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/node/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/node/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/sourceRootRelativePathModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/sourceRootRelativePathModuleSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/sourceRootRelativePathModuleSimpleNoOutdir.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/sourceRootRelativePathModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/sourceRootRelativePathModuleSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..16c4884ea2d8b
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/sourceRootRelativePathModuleSimpleNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..16c4884ea2d8b
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/node/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/node/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt
index 12592331fb591..2e947050950b0 100644
--- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/node/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/node/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/sourceRootRelativePathModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/sourceRootRelativePathModuleSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/sourceRootRelativePathModuleSubfolderNoOutdir.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/sourceRootRelativePathModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/sourceRootRelativePathModuleSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..c78e96ab66dc4
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/sourceRootRelativePathModuleSubfolderNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..c78e96ab66dc4
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/node/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/node/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt
index 42154149020d1..bc6455bd40ffe 100644
--- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/node/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/node/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/sourceRootRelativePathMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/sourceRootRelativePathMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/sourceRootRelativePathMultifolderNoOutdir.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/sourceRootRelativePathMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/sourceRootRelativePathMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..3c41aa562c69b
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/sourceRootRelativePathMultifolderNoOutdir.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..3c41aa562c69b
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt
index 664beb97bc203..979a434de92b0 100644
--- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/sourceRootRelativePathSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/sourceRootRelativePathSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/sourceRootRelativePathSimpleNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/sourceRootRelativePathSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/sourceRootRelativePathSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..7c16ec1b548bc
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/sourceRootRelativePathSimpleNoOutdir.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/sourceRootRelativePathSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/sourceRootRelativePathSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..7c16ec1b548bc
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/sourceRootRelativePathSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt
index 53fc18f86c749..7e7a851c111e4 100644
--- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/amd/sourceRootRelativePathSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/amd/sourceRootRelativePathSingleFileNoOutdir.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/amd/sourceRootRelativePathSingleFileNoOutdir.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/node/sourceRootRelativePathSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/node/sourceRootRelativePathSingleFileNoOutdir.errors.txt
new file mode 100644
index 0000000000000..4793d714a6d0f
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/node/sourceRootRelativePathSingleFileNoOutdir.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/amd/sourceRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/amd/sourceRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/amd/sourceRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/node/sourceRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/node/sourceRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..4793d714a6d0f
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/node/sourceRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/node/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/node/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt
index eb358c3b79d38..17a2812a8c151 100644
--- a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/node/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/node/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== test.ts (0 errors) ====
var a1 = 10;
diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/sourceRootRelativePathSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/sourceRootRelativePathSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/sourceRootRelativePathSubfolderNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/sourceRootRelativePathSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/sourceRootRelativePathSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..a599424df40d9
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/sourceRootRelativePathSubfolderNoOutdir.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a599424df40d9
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt
index 110e384982030..f174bdb49dd18 100644
--- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourceRootWithNoSourceMapOption/amd/sourceRootWithNoSourceMapOption.errors.txt b/tests/baselines/reference/project/sourceRootWithNoSourceMapOption/amd/sourceRootWithNoSourceMapOption.errors.txt
index b79cae049ffa5..04f498acb4492 100644
--- a/tests/baselines/reference/project/sourceRootWithNoSourceMapOption/amd/sourceRootWithNoSourceMapOption.errors.txt
+++ b/tests/baselines/reference/project/sourceRootWithNoSourceMapOption/amd/sourceRootWithNoSourceMapOption.errors.txt
@@ -1,7 +1,11 @@
error TS5051: Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS5051: Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== m1.ts (0 errors) ====
var m1_a1 = 10;
class m1_c1 {
diff --git a/tests/baselines/reference/project/sourceRootWithNoSourceMapOption/node/sourceRootWithNoSourceMapOption.errors.txt b/tests/baselines/reference/project/sourceRootWithNoSourceMapOption/node/sourceRootWithNoSourceMapOption.errors.txt
index b79cae049ffa5..686d415edb7bc 100644
--- a/tests/baselines/reference/project/sourceRootWithNoSourceMapOption/node/sourceRootWithNoSourceMapOption.errors.txt
+++ b/tests/baselines/reference/project/sourceRootWithNoSourceMapOption/node/sourceRootWithNoSourceMapOption.errors.txt
@@ -1,7 +1,9 @@
error TS5051: Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS5051: Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== m1.ts (0 errors) ====
var m1_a1 = 10;
class m1_c1 {
diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/sourcemapMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/sourcemapMixedSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/sourcemapMixedSubfolderNoOutdir.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/sourcemapMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/sourcemapMixedSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..6e50d90f13b84
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/sourcemapMixedSubfolderNoOutdir.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..6e50d90f13b84
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt
index 51edf2991adfc..8463ae5b1a4d5 100644
--- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
index 51edf2991adfc..8463ae5b1a4d5 100644
--- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
+++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/sourcemapModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/sourcemapModuleMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/sourcemapModuleMultifolderNoOutdir.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/sourcemapModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/sourcemapModuleMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..4685d61030d8a
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/sourcemapModuleMultifolderNoOutdir.errors.txt
@@ -0,0 +1,39 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/sourcemapModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/sourcemapModuleMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/sourcemapModuleMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/sourcemapModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/sourcemapModuleMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..4685d61030d8a
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/sourcemapModuleMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,39 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/node/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/node/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt
index 247f9e4f2f2a1..8d5143f60ad82 100644
--- a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/node/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/node/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/sourcemapModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/sourcemapModuleSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/sourcemapModuleSimpleNoOutdir.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/sourcemapModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/sourcemapModuleSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..16c4884ea2d8b
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/sourcemapModuleSimpleNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/sourcemapModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/sourcemapModuleSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/sourcemapModuleSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/sourcemapModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/sourcemapModuleSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..16c4884ea2d8b
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/sourcemapModuleSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/sourcemapModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/sourcemapModuleSimpleSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/sourcemapModuleSimpleSpecifyOutputFile.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/node/sourcemapModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/node/sourcemapModuleSimpleSpecifyOutputFile.errors.txt
index 12592331fb591..2e947050950b0 100644
--- a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/node/sourcemapModuleSimpleSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/node/sourcemapModuleSimpleSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/sourcemapModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/sourcemapModuleSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/sourcemapModuleSubfolderNoOutdir.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/sourcemapModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/sourcemapModuleSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..c78e96ab66dc4
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/sourcemapModuleSubfolderNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/sourcemapModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/sourcemapModuleSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/sourcemapModuleSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/sourcemapModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/sourcemapModuleSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..c78e96ab66dc4
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/sourcemapModuleSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/node/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/node/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt
index 42154149020d1..bc6455bd40ffe 100644
--- a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/node/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/node/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/sourcemapMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/sourcemapMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/sourcemapMultifolderNoOutdir.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/sourcemapMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/sourcemapMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..3c41aa562c69b
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/sourcemapMultifolderNoOutdir.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/sourcemapMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/sourcemapMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/sourcemapMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/sourcemapMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/sourcemapMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..3c41aa562c69b
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/sourcemapMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/sourcemapMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/sourcemapMultifolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/sourcemapMultifolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/sourcemapMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/sourcemapMultifolderSpecifyOutputFile.errors.txt
index 664beb97bc203..979a434de92b0 100644
--- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/sourcemapMultifolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/sourcemapMultifolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/sourcemapSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/sourcemapSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/sourcemapSimpleNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/sourcemapSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/sourcemapSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..7c16ec1b548bc
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/sourcemapSimpleNoOutdir.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/sourcemapSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/sourcemapSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/sourcemapSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/sourcemapSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/sourcemapSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..7c16ec1b548bc
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/sourcemapSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/sourcemapSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/sourcemapSimpleSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/sourcemapSimpleSpecifyOutputFile.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/sourcemapSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/sourcemapSimpleSpecifyOutputFile.errors.txt
index 53fc18f86c749..7e7a851c111e4 100644
--- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/sourcemapSimpleSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/sourcemapSimpleSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/amd/sourcemapSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/amd/sourcemapSingleFileNoOutdir.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/amd/sourcemapSingleFileNoOutdir.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/node/sourcemapSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/node/sourcemapSingleFileNoOutdir.errors.txt
new file mode 100644
index 0000000000000..4793d714a6d0f
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/node/sourcemapSingleFileNoOutdir.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/amd/sourcemapSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/amd/sourcemapSingleFileSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/amd/sourcemapSingleFileSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/node/sourcemapSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/node/sourcemapSingleFileSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..4793d714a6d0f
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/node/sourcemapSingleFileSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/sourcemapSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/sourcemapSingleFileSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/sourcemapSingleFileSpecifyOutputFile.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/node/sourcemapSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/node/sourcemapSingleFileSpecifyOutputFile.errors.txt
index eb358c3b79d38..17a2812a8c151 100644
--- a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/node/sourcemapSingleFileSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/node/sourcemapSingleFileSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== test.ts (0 errors) ====
var a1 = 10;
diff --git a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/sourcemapSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/sourcemapSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/sourcemapSubfolderNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/sourcemapSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/sourcemapSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..a599424df40d9
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/sourcemapSubfolderNoOutdir.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/sourcemapSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/sourcemapSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/sourcemapSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/sourcemapSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/sourcemapSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a599424df40d9
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/sourcemapSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/sourcemapSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/sourcemapSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/sourcemapSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/sourcemapSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/sourcemapSubfolderSpecifyOutputFile.errors.txt
index 110e384982030..f174bdb49dd18 100644
--- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/sourcemapSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/sourcemapSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/sourcerootUrlMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/sourcerootUrlMixedSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/sourcerootUrlMixedSubfolderNoOutdir.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/sourcerootUrlMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/sourcerootUrlMixedSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..6e50d90f13b84
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/sourcerootUrlMixedSubfolderNoOutdir.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..6e50d90f13b84
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt
index 51edf2991adfc..8463ae5b1a4d5 100644
--- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a5ca1482b5cd4
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ref/m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
index 51edf2991adfc..8463ae5b1a4d5 100644
--- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
+++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/sourcerootUrlModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/sourcerootUrlModuleMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/sourcerootUrlModuleMultifolderNoOutdir.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/sourcerootUrlModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/sourcerootUrlModuleMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..4685d61030d8a
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/sourcerootUrlModuleMultifolderNoOutdir.errors.txt
@@ -0,0 +1,39 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..4685d61030d8a
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,39 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..07a45826b8bd9
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== m2.ts (0 errors) ====
+ export var m2_a1 = 10;
+ export class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ export var m2_instance1 = new m2_c1();
+ export function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ import m2 = require("../outputdir_module_multifolder_ref/m2");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
+ export var a3 = m2.m2_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/node/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/node/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt
index 247f9e4f2f2a1..8d5143f60ad82 100644
--- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/node/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/node/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/sourcerootUrlModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/sourcerootUrlModuleSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/sourcerootUrlModuleSimpleNoOutdir.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/sourcerootUrlModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/sourcerootUrlModuleSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..16c4884ea2d8b
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/sourcerootUrlModuleSimpleNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/sourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/sourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/sourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/sourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/sourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..16c4884ea2d8b
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/sourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..3d31526af0a6b
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/node/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/node/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt
index 12592331fb591..2e947050950b0 100644
--- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/node/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/node/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/sourcerootUrlModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/sourcerootUrlModuleSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/sourcerootUrlModuleSubfolderNoOutdir.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/sourcerootUrlModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/sourcerootUrlModuleSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..c78e96ab66dc4
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/sourcerootUrlModuleSubfolderNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..c78e96ab66dc4
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..5336de40839f2
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ export var m1_a1 = 10;
+ export class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ export var m1_instance1 = new m1_c1();
+ export function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ import m1 = require("ref/m1");
+ export var a1 = 10;
+ export class c1 {
+ public p1: number;
+ }
+
+ export var instance1 = new c1();
+ export function f1() {
+ return instance1;
+ }
+
+ export var a2 = m1.m1_c1;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/node/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/node/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt
index 42154149020d1..bc6455bd40ffe 100644
--- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/node/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/node/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/sourcerootUrlMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/sourcerootUrlMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/sourcerootUrlMultifolderNoOutdir.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/sourcerootUrlMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/sourcerootUrlMultifolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..3c41aa562c69b
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/sourcerootUrlMultifolderNoOutdir.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/sourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/sourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/sourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/sourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/sourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..3c41aa562c69b
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/sourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,36 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..7319ec3d03e3d
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,38 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== ../outputdir_multifolder_ref/m2.ts (0 errors) ====
+ var m2_a1 = 10;
+ class m2_c1 {
+ public m2_c1_p1: number;
+ }
+
+ var m2_instance1 = new m2_c1();
+ function m2_f1() {
+ return m2_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt
index 664beb97bc203..979a434de92b0 100644
--- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/sourcerootUrlSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/sourcerootUrlSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/sourcerootUrlSimpleNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/sourcerootUrlSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/sourcerootUrlSimpleNoOutdir.errors.txt
new file mode 100644
index 0000000000000..7c16ec1b548bc
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/sourcerootUrlSimpleNoOutdir.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/sourcerootUrlSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/sourcerootUrlSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/sourcerootUrlSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/sourcerootUrlSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/sourcerootUrlSimpleSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..7c16ec1b548bc
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/sourcerootUrlSimpleSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/sourcerootUrlSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/sourcerootUrlSimpleSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..477be2decfcb0
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/sourcerootUrlSimpleSpecifyOutputFile.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/sourcerootUrlSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/sourcerootUrlSimpleSpecifyOutputFile.errors.txt
index 53fc18f86c749..7e7a851c111e4 100644
--- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/sourcerootUrlSimpleSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/sourcerootUrlSimpleSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/amd/sourcerootUrlSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/amd/sourcerootUrlSingleFileNoOutdir.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/amd/sourcerootUrlSingleFileNoOutdir.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/node/sourcerootUrlSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/node/sourcerootUrlSingleFileNoOutdir.errors.txt
new file mode 100644
index 0000000000000..4793d714a6d0f
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/node/sourcerootUrlSingleFileNoOutdir.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/amd/sourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/amd/sourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/amd/sourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/node/sourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/node/sourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..4793d714a6d0f
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/node/sourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..0d25528f041b5
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test.ts (0 errors) ====
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/node/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/node/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt
index eb358c3b79d38..17a2812a8c151 100644
--- a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/node/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/node/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== test.ts (0 errors) ====
var a1 = 10;
diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/sourcerootUrlSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/sourcerootUrlSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/sourcerootUrlSubfolderNoOutdir.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/sourcerootUrlSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/sourcerootUrlSubfolderNoOutdir.errors.txt
new file mode 100644
index 0000000000000..a599424df40d9
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/sourcerootUrlSubfolderNoOutdir.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/sourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/sourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/sourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/sourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/sourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt
new file mode 100644
index 0000000000000..a599424df40d9
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/sourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt
@@ -0,0 +1,25 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt
new file mode 100644
index 0000000000000..babb41566a553
--- /dev/null
+++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt
@@ -0,0 +1,27 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== ref/m1.ts (0 errors) ====
+ var m1_a1 = 10;
+ class m1_c1 {
+ public m1_c1_p1: number;
+ }
+
+ var m1_instance1 = new m1_c1();
+ function m1_f1() {
+ return m1_instance1;
+ }
+==== test.ts (0 errors) ====
+ ///
+ var a1 = 10;
+ class c1 {
+ public p1: number;
+ }
+
+ var instance1 = new c1();
+ function f1() {
+ return instance1;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt
index 110e384982030..f174bdb49dd18 100644
--- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt
+++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== ref/m1.ts (0 errors) ====
var m1_a1 = 10;
diff --git a/tests/baselines/reference/project/specifyExcludeUsingRelativepath/amd/specifyExcludeUsingRelativepath.errors.txt b/tests/baselines/reference/project/specifyExcludeUsingRelativepath/amd/specifyExcludeUsingRelativepath.errors.txt
new file mode 100644
index 0000000000000..427e3681ec178
--- /dev/null
+++ b/tests/baselines/reference/project/specifyExcludeUsingRelativepath/amd/specifyExcludeUsingRelativepath.errors.txt
@@ -0,0 +1,21 @@
+tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== tsconfig.json (2 errors) ====
+ {
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "outDir": "./OutDir",
+ "declaration": true
+ },
+ "exclude": [
+ "./node_modules",
+ "./OutDir"
+ ]
+ }
+==== a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/specifyExcludeUsingRelativepath/node/specifyExcludeUsingRelativepath.errors.txt b/tests/baselines/reference/project/specifyExcludeUsingRelativepath/node/specifyExcludeUsingRelativepath.errors.txt
new file mode 100644
index 0000000000000..e24ede6c05610
--- /dev/null
+++ b/tests/baselines/reference/project/specifyExcludeUsingRelativepath/node/specifyExcludeUsingRelativepath.errors.txt
@@ -0,0 +1,18 @@
+tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "outDir": "./OutDir",
+ "declaration": true
+ },
+ "exclude": [
+ "./node_modules",
+ "./OutDir"
+ ]
+ }
+==== a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/amd/specifyExcludeUsingRelativepathWithAllowJS.errors.txt b/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/amd/specifyExcludeUsingRelativepathWithAllowJS.errors.txt
new file mode 100644
index 0000000000000..26658d309e487
--- /dev/null
+++ b/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/amd/specifyExcludeUsingRelativepathWithAllowJS.errors.txt
@@ -0,0 +1,21 @@
+tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== tsconfig.json (2 errors) ====
+ {
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "outDir": "./OutDir",
+ "allowJs": true
+ },
+ "exclude": [
+ "./node_modules",
+ "./OutDir"
+ ]
+ }
+==== a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/node/specifyExcludeUsingRelativepathWithAllowJS.errors.txt b/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/node/specifyExcludeUsingRelativepathWithAllowJS.errors.txt
new file mode 100644
index 0000000000000..2439b82b7c5f4
--- /dev/null
+++ b/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/node/specifyExcludeUsingRelativepathWithAllowJS.errors.txt
@@ -0,0 +1,18 @@
+tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "outDir": "./OutDir",
+ "allowJs": true
+ },
+ "exclude": [
+ "./node_modules",
+ "./OutDir"
+ ]
+ }
+==== a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/specifyExcludeWithOutUsingRelativePath.errors.txt b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/specifyExcludeWithOutUsingRelativePath.errors.txt
new file mode 100644
index 0000000000000..ae52d48bc64d9
--- /dev/null
+++ b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/specifyExcludeWithOutUsingRelativePath.errors.txt
@@ -0,0 +1,21 @@
+tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== tsconfig.json (2 errors) ====
+ {
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "outDir": "OutDir",
+ "declaration": true
+ },
+ "exclude": [
+ "node_modules",
+ "OutDir"
+ ]
+ }
+==== a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/node/specifyExcludeWithOutUsingRelativePath.errors.txt b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/node/specifyExcludeWithOutUsingRelativePath.errors.txt
new file mode 100644
index 0000000000000..423a4e03772e1
--- /dev/null
+++ b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/node/specifyExcludeWithOutUsingRelativePath.errors.txt
@@ -0,0 +1,18 @@
+tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "outDir": "OutDir",
+ "declaration": true
+ },
+ "exclude": [
+ "node_modules",
+ "OutDir"
+ ]
+ }
+==== a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/amd/specifyExcludeWithOutUsingRelativePathWithAllowJS.errors.txt b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/amd/specifyExcludeWithOutUsingRelativePathWithAllowJS.errors.txt
new file mode 100644
index 0000000000000..31e94df7ec0e1
--- /dev/null
+++ b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/amd/specifyExcludeWithOutUsingRelativePathWithAllowJS.errors.txt
@@ -0,0 +1,21 @@
+tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== tsconfig.json (2 errors) ====
+ {
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "outDir": "OutDir",
+ "allowJs": true
+ },
+ "exclude": [
+ "node_modules",
+ "OutDir"
+ ]
+ }
+==== a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/node/specifyExcludeWithOutUsingRelativePathWithAllowJS.errors.txt b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/node/specifyExcludeWithOutUsingRelativePathWithAllowJS.errors.txt
new file mode 100644
index 0000000000000..1da1dcec92d07
--- /dev/null
+++ b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/node/specifyExcludeWithOutUsingRelativePathWithAllowJS.errors.txt
@@ -0,0 +1,18 @@
+tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+==== tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": {
+ ~~~~~~~~~~~~~~~~~
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ "outDir": "OutDir",
+ "allowJs": true
+ },
+ "exclude": [
+ "node_modules",
+ "OutDir"
+ ]
+ }
+==== a.ts (0 errors) ====
+ var test = 10;
\ No newline at end of file
diff --git a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/amd/visibilityOfTypeUsedAcrossModules.errors.txt b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/amd/visibilityOfTypeUsedAcrossModules.errors.txt
new file mode 100644
index 0000000000000..b77acf2ad6542
--- /dev/null
+++ b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/amd/visibilityOfTypeUsedAcrossModules.errors.txt
@@ -0,0 +1,39 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== fs.ts (0 errors) ====
+ import commands = require('./commands');
+
+ export class RM {
+
+ public getName() {
+ return 'rm';
+ }
+
+ public getDescription() {
+ return "\t\t\tDelete file";
+ }
+
+ private run(configuration: commands.IConfiguration) {
+ var absoluteWorkspacePath = configuration.workspace.toAbsolutePath(configuration.server);
+ }
+ }
+==== server.ts (0 errors) ====
+ export interface IServer {
+ }
+
+ export interface IWorkspace {
+ toAbsolutePath(server:IServer, workspaceRelativePath?:string):string;
+ }
+==== commands.ts (0 errors) ====
+ import fs = require('fs');
+ import server = require('server');
+
+ export interface IConfiguration {
+ workspace: server.IWorkspace;
+ server?: server.IServer;
+ }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/node/visibilityOfTypeUsedAcrossModules.errors.txt b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/node/visibilityOfTypeUsedAcrossModules.errors.txt
new file mode 100644
index 0000000000000..08306b9f63710
--- /dev/null
+++ b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/node/visibilityOfTypeUsedAcrossModules.errors.txt
@@ -0,0 +1,37 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== fs.ts (0 errors) ====
+ import commands = require('./commands');
+
+ export class RM {
+
+ public getName() {
+ return 'rm';
+ }
+
+ public getDescription() {
+ return "\t\t\tDelete file";
+ }
+
+ private run(configuration: commands.IConfiguration) {
+ var absoluteWorkspacePath = configuration.workspace.toAbsolutePath(configuration.server);
+ }
+ }
+==== server.ts (0 errors) ====
+ export interface IServer {
+ }
+
+ export interface IWorkspace {
+ toAbsolutePath(server:IServer, workspaceRelativePath?:string):string;
+ }
+==== commands.ts (0 errors) ====
+ import fs = require('fs');
+ import server = require('server');
+
+ export interface IConfiguration {
+ workspace: server.IWorkspace;
+ server?: server.IServer;
+ }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules2/amd/visibilityOfTypeUsedAcrossModules2.errors.txt b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules2/amd/visibilityOfTypeUsedAcrossModules2.errors.txt
index 88f77a6a2e84e..e4a31039c53ea 100644
--- a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules2/amd/visibilityOfTypeUsedAcrossModules2.errors.txt
+++ b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules2/amd/visibilityOfTypeUsedAcrossModules2.errors.txt
@@ -1,8 +1,12 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
main.ts(1,22): error TS1006: A file cannot have a reference to itself.
main.ts(2,22): error TS6053: File 'nonExistingFile1.ts' not found.
main.ts(3,22): error TS6053: File 'nonExistingFile2.ts' not found.
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== main.ts (3 errors) ====
///
~~~~~~~
diff --git a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules2/node/visibilityOfTypeUsedAcrossModules2.errors.txt b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules2/node/visibilityOfTypeUsedAcrossModules2.errors.txt
index 88f77a6a2e84e..c8ace33a22355 100644
--- a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules2/node/visibilityOfTypeUsedAcrossModules2.errors.txt
+++ b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules2/node/visibilityOfTypeUsedAcrossModules2.errors.txt
@@ -1,8 +1,10 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
main.ts(1,22): error TS1006: A file cannot have a reference to itself.
main.ts(2,22): error TS6053: File 'nonExistingFile1.ts' not found.
main.ts(3,22): error TS6053: File 'nonExistingFile2.ts' not found.
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== main.ts (3 errors) ====
///
~~~~~~~
diff --git a/tests/baselines/reference/propTypeValidatorInference.js b/tests/baselines/reference/propTypeValidatorInference.js
index dd0e41a1f2203..ee5c592d1671a 100644
--- a/tests/baselines/reference/propTypeValidatorInference.js
+++ b/tests/baselines/reference/propTypeValidatorInference.js
@@ -91,8 +91,41 @@ const x: true = (null as any as ExtractPropsMatch);
//// [file.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
-var PropTypes = require("prop-types");
+var PropTypes = __importStar(require("prop-types"));
const innerProps = {
foo: PropTypes.string.isRequired,
bar: PropTypes.bool,
diff --git a/tests/baselines/reference/propertyIdentityWithPrivacyMismatch.js b/tests/baselines/reference/propertyIdentityWithPrivacyMismatch.js
index 351f6af7e52b7..f1610effb7afb 100644
--- a/tests/baselines/reference/propertyIdentityWithPrivacyMismatch.js
+++ b/tests/baselines/reference/propertyIdentityWithPrivacyMismatch.js
@@ -29,15 +29,13 @@ var y: Foo2;
//// [propertyIdentityWithPrivacyMismatch_0.js]
//// [propertyIdentityWithPrivacyMismatch_1.js]
-define(["require", "exports"], function (require, exports) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- var x;
- var x; // Should be error (mod1.Foo !== mod2.Foo)
- class Foo1 {
- }
- class Foo2 {
- }
- var y;
- var y;
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var x;
+var x; // Should be error (mod1.Foo !== mod2.Foo)
+class Foo1 {
+}
+class Foo2 {
+}
+var y;
+var y;
diff --git a/tests/baselines/reference/reExportDefaultExport.js b/tests/baselines/reference/reExportDefaultExport.js
index b0a50abe5170f..ebbf9189e4ead 100644
--- a/tests/baselines/reference/reExportDefaultExport.js
+++ b/tests/baselines/reference/reExportDefaultExport.js
@@ -22,8 +22,11 @@ function f() {
}
//// [m2.js]
"use strict";
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
Object.defineProperty(exports, "__esModule", { value: true });
-var m1_1 = require("./m1");
+var m1_1 = __importDefault(require("./m1"));
var m1_2 = require("./m1");
(0, m1_2.f)();
(0, m1_1.default)();
diff --git a/tests/baselines/reference/reExportJsFromTs.js b/tests/baselines/reference/reExportJsFromTs.js
index 623425d82d75f..e861b4770a350 100644
--- a/tests/baselines/reference/reExportJsFromTs.js
+++ b/tests/baselines/reference/reExportJsFromTs.js
@@ -15,7 +15,40 @@ module.exports = {
};
//// [constants.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.tsConstants = void 0;
-var tsConstants = require("../lib/constants");
+var tsConstants = __importStar(require("../lib/constants"));
exports.tsConstants = tsConstants;
diff --git a/tests/baselines/reference/reactNamespaceImportPresevation.js b/tests/baselines/reference/reactNamespaceImportPresevation.js
index 5a52664ee1338..3f2595dc88e40 100644
--- a/tests/baselines/reference/reactNamespaceImportPresevation.js
+++ b/tests/baselines/reference/reactNamespaceImportPresevation.js
@@ -15,6 +15,39 @@ declare var foo: any;
//// [test.jsx]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
-var myReactLib = require("my-React-Lib"); // should not be elided
+var myReactLib = __importStar(require("my-React-Lib")); // should not be elided
;
diff --git a/tests/baselines/reference/reactReadonlyHOCAssignabilityReal.js b/tests/baselines/reference/reactReadonlyHOCAssignabilityReal.js
index 824edc97b3c0b..cd5cd0dc4285c 100644
--- a/tests/baselines/reference/reactReadonlyHOCAssignabilityReal.js
+++ b/tests/baselines/reference/reactReadonlyHOCAssignabilityReal.js
@@ -25,9 +25,42 @@ var __assign = (this && this.__assign) || function () {
};
return __assign.apply(this, arguments);
};
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
///
-var React = require("react");
+var React = __importStar(require("react"));
function myHigherOrderComponent(Inner) {
return class OuterComponent extends React.Component {
render() {
diff --git a/tests/baselines/reference/reactSFCAndFunctionResolvable.js b/tests/baselines/reference/reactSFCAndFunctionResolvable.js
index 5d19f34b07707..a0f44703c209a 100644
--- a/tests/baselines/reference/reactSFCAndFunctionResolvable.js
+++ b/tests/baselines/reference/reactSFCAndFunctionResolvable.js
@@ -30,8 +30,41 @@ const RandomComponent: React.SFC = () => {
//// [reactSFCAndFunctionResolvable.js]
"use strict";
///
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
-var React = require("react");
+var React = __importStar(require("react"));
const RandomComponent = () => {
const Component = condition1
? Radio
diff --git a/tests/baselines/reference/reactTagNameComponentWithPropsNoOOM.js b/tests/baselines/reference/reactTagNameComponentWithPropsNoOOM.js
index 9183d22f801fd..dab018bb35350 100644
--- a/tests/baselines/reference/reactTagNameComponentWithPropsNoOOM.js
+++ b/tests/baselines/reference/reactTagNameComponentWithPropsNoOOM.js
@@ -27,8 +27,41 @@ var __assign = (this && this.__assign) || function () {
};
return __assign.apply(this, arguments);
};
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
-var React = require("react");
+var React = __importStar(require("react"));
const classes = "";
const rest = {};
const children = [];
diff --git a/tests/baselines/reference/reactTagNameComponentWithPropsNoOOM2.js b/tests/baselines/reference/reactTagNameComponentWithPropsNoOOM2.js
index aceeb73ac2b46..8197e6b5d3b5d 100644
--- a/tests/baselines/reference/reactTagNameComponentWithPropsNoOOM2.js
+++ b/tests/baselines/reference/reactTagNameComponentWithPropsNoOOM2.js
@@ -27,8 +27,41 @@ var __assign = (this && this.__assign) || function () {
};
return __assign.apply(this, arguments);
};
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
-var React = require("react");
+var React = __importStar(require("react"));
const classes = "";
const rest = {};
const children = [];
diff --git a/tests/baselines/reference/reactTransitiveImportHasValidDeclaration.js b/tests/baselines/reference/reactTransitiveImportHasValidDeclaration.js
index 312a7b6181222..025b8bd54bdb8 100644
--- a/tests/baselines/reference/reactTransitiveImportHasValidDeclaration.js
+++ b/tests/baselines/reference/reactTransitiveImportHasValidDeclaration.js
@@ -36,8 +36,11 @@ export default Form
//// [index.js]
"use strict";
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
Object.defineProperty(exports, "__esModule", { value: true });
-var react_emotion_1 = require("react-emotion");
+var react_emotion_1 = __importDefault(require("react-emotion"));
const Form = (0, react_emotion_1.default)('div')({ color: "red" });
exports.default = Form;
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.errors.txt b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.errors.txt
index d3e5485b51fbb..5107eac3d64ff 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.errors.txt
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.errors.txt
@@ -4,7 +4,7 @@ recursiveExportAssignmentAndFindAliasedType1_moduleDef.d.ts(2,5): error TS2303:
==== recursiveExportAssignmentAndFindAliasedType1_moduleA.ts (0 errors) ====
///
import moduleC = require("moduleC");
- import ClassB = require("recursiveExportAssignmentAndFindAliasedType1_moduleB");
+ import ClassB = require("./recursiveExportAssignmentAndFindAliasedType1_moduleB");
export var b: ClassB; // This should result in type ClassB
==== recursiveExportAssignmentAndFindAliasedType1_moduleDef.d.ts (1 errors) ====
declare module "moduleC" {
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.js
index 8302ef1a51dd5..dd5d73bf8e3a6 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.js
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.js
@@ -13,19 +13,15 @@ export = ClassB;
//// [recursiveExportAssignmentAndFindAliasedType1_moduleA.ts]
///
import moduleC = require("moduleC");
-import ClassB = require("recursiveExportAssignmentAndFindAliasedType1_moduleB");
+import ClassB = require("./recursiveExportAssignmentAndFindAliasedType1_moduleB");
export var b: ClassB; // This should result in type ClassB
//// [recursiveExportAssignmentAndFindAliasedType1_moduleB.js]
-define(["require", "exports"], function (require, exports) {
- "use strict";
- class ClassB {
- }
- return ClassB;
-});
+"use strict";
+class ClassB {
+}
+module.exports = ClassB;
//// [recursiveExportAssignmentAndFindAliasedType1_moduleA.js]
-define(["require", "exports"], function (require, exports) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.b = void 0;
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.b = void 0;
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.symbols b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.symbols
index 6b97575ff1fb4..39da715015343 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.symbols
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.symbols
@@ -5,7 +5,7 @@
import moduleC = require("moduleC");
>moduleC : Symbol(moduleC, Decl(recursiveExportAssignmentAndFindAliasedType1_moduleA.ts, 0, 0))
-import ClassB = require("recursiveExportAssignmentAndFindAliasedType1_moduleB");
+import ClassB = require("./recursiveExportAssignmentAndFindAliasedType1_moduleB");
>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType1_moduleA.ts, 1, 36))
export var b: ClassB; // This should result in type ClassB
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.types b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.types
index 9865b081e8849..888968d2858bd 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.types
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.types
@@ -6,7 +6,7 @@ import moduleC = require("moduleC");
>moduleC : any
> : ^^^
-import ClassB = require("recursiveExportAssignmentAndFindAliasedType1_moduleB");
+import ClassB = require("./recursiveExportAssignmentAndFindAliasedType1_moduleB");
>ClassB : typeof ClassB
> : ^^^^^^^^^^^^^
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.errors.txt b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.errors.txt
index 1bed5684d1f93..95c33f6746f5a 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.errors.txt
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.errors.txt
@@ -4,7 +4,7 @@ recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts(2,5): error TS2303:
==== recursiveExportAssignmentAndFindAliasedType2_moduleA.ts (0 errors) ====
///
import moduleC = require("moduleC");
- import ClassB = require("recursiveExportAssignmentAndFindAliasedType2_moduleB");
+ import ClassB = require("./recursiveExportAssignmentAndFindAliasedType2_moduleB");
export var b: ClassB; // This should result in type ClassB
==== recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts (1 errors) ====
declare module "moduleC" {
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.js
index fcbf2c278b3b5..da8291096732d 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.js
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.js
@@ -17,19 +17,15 @@ export = ClassB;
//// [recursiveExportAssignmentAndFindAliasedType2_moduleA.ts]
///
import moduleC = require("moduleC");
-import ClassB = require("recursiveExportAssignmentAndFindAliasedType2_moduleB");
+import ClassB = require("./recursiveExportAssignmentAndFindAliasedType2_moduleB");
export var b: ClassB; // This should result in type ClassB
//// [recursiveExportAssignmentAndFindAliasedType2_moduleB.js]
-define(["require", "exports"], function (require, exports) {
- "use strict";
- class ClassB {
- }
- return ClassB;
-});
+"use strict";
+class ClassB {
+}
+module.exports = ClassB;
//// [recursiveExportAssignmentAndFindAliasedType2_moduleA.js]
-define(["require", "exports"], function (require, exports) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.b = void 0;
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.b = void 0;
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.symbols b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.symbols
index 471cf999a06da..54bd6aae65b8f 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.symbols
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.symbols
@@ -5,7 +5,7 @@
import moduleC = require("moduleC");
>moduleC : Symbol(moduleC, Decl(recursiveExportAssignmentAndFindAliasedType2_moduleA.ts, 0, 0))
-import ClassB = require("recursiveExportAssignmentAndFindAliasedType2_moduleB");
+import ClassB = require("./recursiveExportAssignmentAndFindAliasedType2_moduleB");
>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType2_moduleA.ts, 1, 36))
export var b: ClassB; // This should result in type ClassB
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.types b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.types
index 649acc81d37d0..655c5c1f566f7 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.types
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.types
@@ -6,7 +6,7 @@ import moduleC = require("moduleC");
>moduleC : any
> : ^^^
-import ClassB = require("recursiveExportAssignmentAndFindAliasedType2_moduleB");
+import ClassB = require("./recursiveExportAssignmentAndFindAliasedType2_moduleB");
>ClassB : typeof ClassB
> : ^^^^^^^^^^^^^
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.errors.txt b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.errors.txt
index 659de7630fb63..ce36cbc17ff0c 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.errors.txt
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.errors.txt
@@ -4,7 +4,7 @@ recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts(2,5): error TS2303:
==== recursiveExportAssignmentAndFindAliasedType3_moduleA.ts (0 errors) ====
///
import moduleC = require("moduleC");
- import ClassB = require("recursiveExportAssignmentAndFindAliasedType3_moduleB");
+ import ClassB = require("./recursiveExportAssignmentAndFindAliasedType3_moduleB");
export var b: ClassB; // This should result in type ClassB
==== recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts (1 errors) ====
declare module "moduleC" {
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.js
index 303a862470e8f..97fd3d553811b 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.js
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.js
@@ -21,19 +21,15 @@ export = ClassB;
//// [recursiveExportAssignmentAndFindAliasedType3_moduleA.ts]
///
import moduleC = require("moduleC");
-import ClassB = require("recursiveExportAssignmentAndFindAliasedType3_moduleB");
+import ClassB = require("./recursiveExportAssignmentAndFindAliasedType3_moduleB");
export var b: ClassB; // This should result in type ClassB
//// [recursiveExportAssignmentAndFindAliasedType3_moduleB.js]
-define(["require", "exports"], function (require, exports) {
- "use strict";
- class ClassB {
- }
- return ClassB;
-});
+"use strict";
+class ClassB {
+}
+module.exports = ClassB;
//// [recursiveExportAssignmentAndFindAliasedType3_moduleA.js]
-define(["require", "exports"], function (require, exports) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.b = void 0;
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.b = void 0;
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.symbols b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.symbols
index 1324169d71890..919869325088f 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.symbols
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.symbols
@@ -5,7 +5,7 @@
import moduleC = require("moduleC");
>moduleC : Symbol(moduleC, Decl(recursiveExportAssignmentAndFindAliasedType3_moduleA.ts, 0, 0))
-import ClassB = require("recursiveExportAssignmentAndFindAliasedType3_moduleB");
+import ClassB = require("./recursiveExportAssignmentAndFindAliasedType3_moduleB");
>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType3_moduleA.ts, 1, 36))
export var b: ClassB; // This should result in type ClassB
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.types b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.types
index ced2bff504fe3..bab5c22a5f4b3 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.types
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.types
@@ -6,7 +6,7 @@ import moduleC = require("moduleC");
>moduleC : any
> : ^^^
-import ClassB = require("recursiveExportAssignmentAndFindAliasedType3_moduleB");
+import ClassB = require("./recursiveExportAssignmentAndFindAliasedType3_moduleB");
>ClassB : typeof ClassB
> : ^^^^^^^^^^^^^
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.errors.txt b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.errors.txt
index 6097f6a4dffe7..2dfcb34389528 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.errors.txt
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.errors.txt
@@ -2,12 +2,12 @@ recursiveExportAssignmentAndFindAliasedType4_moduleC.ts(1,1): error TS2303: Circ
==== recursiveExportAssignmentAndFindAliasedType4_moduleA.ts (0 errors) ====
- import moduleC = require("recursiveExportAssignmentAndFindAliasedType4_moduleC");
- import ClassB = require("recursiveExportAssignmentAndFindAliasedType4_moduleB");
+ import moduleC = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC");
+ import ClassB = require("./recursiveExportAssignmentAndFindAliasedType4_moduleB");
export var b: ClassB; // This should result in type ClassB
==== recursiveExportAssignmentAndFindAliasedType4_moduleC.ts (1 errors) ====
- import self = require("recursiveExportAssignmentAndFindAliasedType4_moduleC");
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ import self = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC");
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2303: Circular definition of import alias 'self'.
export = self;
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.js
index 687b53954c66c..3d9263cd6613a 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.js
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.js
@@ -1,7 +1,7 @@
//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType4.ts] ////
//// [recursiveExportAssignmentAndFindAliasedType4_moduleC.ts]
-import self = require("recursiveExportAssignmentAndFindAliasedType4_moduleC");
+import self = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC");
export = self;
//// [recursiveExportAssignmentAndFindAliasedType4_moduleB.ts]
@@ -9,25 +9,20 @@ class ClassB { }
export = ClassB;
//// [recursiveExportAssignmentAndFindAliasedType4_moduleA.ts]
-import moduleC = require("recursiveExportAssignmentAndFindAliasedType4_moduleC");
-import ClassB = require("recursiveExportAssignmentAndFindAliasedType4_moduleB");
+import moduleC = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC");
+import ClassB = require("./recursiveExportAssignmentAndFindAliasedType4_moduleB");
export var b: ClassB; // This should result in type ClassB
//// [recursiveExportAssignmentAndFindAliasedType4_moduleC.js]
-define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType4_moduleC"], function (require, exports, self) {
- "use strict";
- return self;
-});
+"use strict";
+var self = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC");
+module.exports = self;
//// [recursiveExportAssignmentAndFindAliasedType4_moduleB.js]
-define(["require", "exports"], function (require, exports) {
- "use strict";
- class ClassB {
- }
- return ClassB;
-});
+"use strict";
+class ClassB {
+}
+module.exports = ClassB;
//// [recursiveExportAssignmentAndFindAliasedType4_moduleA.js]
-define(["require", "exports"], function (require, exports) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.b = void 0;
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.b = void 0;
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.symbols b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.symbols
index 57b1068aa42c5..be2c5d433ab69 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.symbols
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.symbols
@@ -1,18 +1,18 @@
//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType4.ts] ////
=== recursiveExportAssignmentAndFindAliasedType4_moduleA.ts ===
-import moduleC = require("recursiveExportAssignmentAndFindAliasedType4_moduleC");
+import moduleC = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC");
>moduleC : Symbol(moduleC, Decl(recursiveExportAssignmentAndFindAliasedType4_moduleA.ts, 0, 0))
-import ClassB = require("recursiveExportAssignmentAndFindAliasedType4_moduleB");
->ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType4_moduleA.ts, 0, 81))
+import ClassB = require("./recursiveExportAssignmentAndFindAliasedType4_moduleB");
+>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType4_moduleA.ts, 0, 83))
export var b: ClassB; // This should result in type ClassB
>b : Symbol(b, Decl(recursiveExportAssignmentAndFindAliasedType4_moduleA.ts, 2, 10))
->ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType4_moduleA.ts, 0, 81))
+>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType4_moduleA.ts, 0, 83))
=== recursiveExportAssignmentAndFindAliasedType4_moduleC.ts ===
-import self = require("recursiveExportAssignmentAndFindAliasedType4_moduleC");
+import self = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC");
>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType4_moduleC.ts, 0, 0))
export = self;
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.types b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.types
index a3abe4607859f..512d9aaff9111 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.types
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.types
@@ -1,11 +1,11 @@
//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType4.ts] ////
=== recursiveExportAssignmentAndFindAliasedType4_moduleA.ts ===
-import moduleC = require("recursiveExportAssignmentAndFindAliasedType4_moduleC");
+import moduleC = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC");
>moduleC : any
> : ^^^
-import ClassB = require("recursiveExportAssignmentAndFindAliasedType4_moduleB");
+import ClassB = require("./recursiveExportAssignmentAndFindAliasedType4_moduleB");
>ClassB : typeof ClassB
> : ^^^^^^^^^^^^^
@@ -14,7 +14,7 @@ export var b: ClassB; // This should result in type ClassB
> : ^^^^^^
=== recursiveExportAssignmentAndFindAliasedType4_moduleC.ts ===
-import self = require("recursiveExportAssignmentAndFindAliasedType4_moduleC");
+import self = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC");
>self : any
> : ^^^
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.errors.txt b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.errors.txt
index 2a748792f3933..abba655a10667 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.errors.txt
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.errors.txt
@@ -2,16 +2,16 @@ recursiveExportAssignmentAndFindAliasedType5_moduleD.ts(1,1): error TS2303: Circ
==== recursiveExportAssignmentAndFindAliasedType5_moduleA.ts (0 errors) ====
- import moduleC = require("recursiveExportAssignmentAndFindAliasedType5_moduleC");
- import ClassB = require("recursiveExportAssignmentAndFindAliasedType5_moduleB");
+ import moduleC = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC");
+ import ClassB = require("./recursiveExportAssignmentAndFindAliasedType5_moduleB");
export var b: ClassB; // This should result in type ClassB
==== recursiveExportAssignmentAndFindAliasedType5_moduleC.ts (0 errors) ====
- import self = require("recursiveExportAssignmentAndFindAliasedType5_moduleD");
+ import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleD");
export = self;
==== recursiveExportAssignmentAndFindAliasedType5_moduleD.ts (1 errors) ====
- import self = require("recursiveExportAssignmentAndFindAliasedType5_moduleC");
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC");
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2303: Circular definition of import alias 'self'.
export = self;
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.js
index 156caac1af4ae..98d34d521ba92 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.js
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.js
@@ -1,11 +1,11 @@
//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType5.ts] ////
//// [recursiveExportAssignmentAndFindAliasedType5_moduleC.ts]
-import self = require("recursiveExportAssignmentAndFindAliasedType5_moduleD");
+import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleD");
export = self;
//// [recursiveExportAssignmentAndFindAliasedType5_moduleD.ts]
-import self = require("recursiveExportAssignmentAndFindAliasedType5_moduleC");
+import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC");
export = self;
//// [recursiveExportAssignmentAndFindAliasedType5_moduleB.ts]
@@ -13,30 +13,24 @@ class ClassB { }
export = ClassB;
//// [recursiveExportAssignmentAndFindAliasedType5_moduleA.ts]
-import moduleC = require("recursiveExportAssignmentAndFindAliasedType5_moduleC");
-import ClassB = require("recursiveExportAssignmentAndFindAliasedType5_moduleB");
+import moduleC = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC");
+import ClassB = require("./recursiveExportAssignmentAndFindAliasedType5_moduleB");
export var b: ClassB; // This should result in type ClassB
//// [recursiveExportAssignmentAndFindAliasedType5_moduleD.js]
-define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType5_moduleC"], function (require, exports, self) {
- "use strict";
- return self;
-});
+"use strict";
+var self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC");
+module.exports = self;
//// [recursiveExportAssignmentAndFindAliasedType5_moduleC.js]
-define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType5_moduleD"], function (require, exports, self) {
- "use strict";
- return self;
-});
+"use strict";
+var self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleD");
+module.exports = self;
//// [recursiveExportAssignmentAndFindAliasedType5_moduleB.js]
-define(["require", "exports"], function (require, exports) {
- "use strict";
- class ClassB {
- }
- return ClassB;
-});
+"use strict";
+class ClassB {
+}
+module.exports = ClassB;
//// [recursiveExportAssignmentAndFindAliasedType5_moduleA.js]
-define(["require", "exports"], function (require, exports) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.b = void 0;
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.b = void 0;
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.symbols b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.symbols
index 8382e50c9b68e..45145f3995770 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.symbols
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.symbols
@@ -1,25 +1,25 @@
//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType5.ts] ////
=== recursiveExportAssignmentAndFindAliasedType5_moduleA.ts ===
-import moduleC = require("recursiveExportAssignmentAndFindAliasedType5_moduleC");
+import moduleC = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC");
>moduleC : Symbol(moduleC, Decl(recursiveExportAssignmentAndFindAliasedType5_moduleA.ts, 0, 0))
-import ClassB = require("recursiveExportAssignmentAndFindAliasedType5_moduleB");
->ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType5_moduleA.ts, 0, 81))
+import ClassB = require("./recursiveExportAssignmentAndFindAliasedType5_moduleB");
+>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType5_moduleA.ts, 0, 83))
export var b: ClassB; // This should result in type ClassB
>b : Symbol(b, Decl(recursiveExportAssignmentAndFindAliasedType5_moduleA.ts, 2, 10))
->ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType5_moduleA.ts, 0, 81))
+>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType5_moduleA.ts, 0, 83))
=== recursiveExportAssignmentAndFindAliasedType5_moduleC.ts ===
-import self = require("recursiveExportAssignmentAndFindAliasedType5_moduleD");
+import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleD");
>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType5_moduleC.ts, 0, 0))
export = self;
>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType5_moduleC.ts, 0, 0))
=== recursiveExportAssignmentAndFindAliasedType5_moduleD.ts ===
-import self = require("recursiveExportAssignmentAndFindAliasedType5_moduleC");
+import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC");
>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType5_moduleD.ts, 0, 0))
export = self;
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.types b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.types
index 5ec0db9227124..93a14f8b6870d 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.types
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.types
@@ -1,11 +1,11 @@
//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType5.ts] ////
=== recursiveExportAssignmentAndFindAliasedType5_moduleA.ts ===
-import moduleC = require("recursiveExportAssignmentAndFindAliasedType5_moduleC");
+import moduleC = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC");
>moduleC : any
> : ^^^
-import ClassB = require("recursiveExportAssignmentAndFindAliasedType5_moduleB");
+import ClassB = require("./recursiveExportAssignmentAndFindAliasedType5_moduleB");
>ClassB : typeof ClassB
> : ^^^^^^^^^^^^^
@@ -14,7 +14,7 @@ export var b: ClassB; // This should result in type ClassB
> : ^^^^^^
=== recursiveExportAssignmentAndFindAliasedType5_moduleC.ts ===
-import self = require("recursiveExportAssignmentAndFindAliasedType5_moduleD");
+import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleD");
>self : any
> : ^^^
@@ -23,7 +23,7 @@ export = self;
> : ^^^
=== recursiveExportAssignmentAndFindAliasedType5_moduleD.ts ===
-import self = require("recursiveExportAssignmentAndFindAliasedType5_moduleC");
+import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC");
>self : any
> : ^^^
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.errors.txt b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.errors.txt
index 242e633456ccd..60e523cad3e2c 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.errors.txt
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.errors.txt
@@ -2,20 +2,20 @@ recursiveExportAssignmentAndFindAliasedType6_moduleE.ts(1,1): error TS2303: Circ
==== recursiveExportAssignmentAndFindAliasedType6_moduleA.ts (0 errors) ====
- import moduleC = require("recursiveExportAssignmentAndFindAliasedType6_moduleC");
- import ClassB = require("recursiveExportAssignmentAndFindAliasedType6_moduleB");
+ import moduleC = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC");
+ import ClassB = require("./recursiveExportAssignmentAndFindAliasedType6_moduleB");
export var b: ClassB; // This should result in type ClassB
==== recursiveExportAssignmentAndFindAliasedType6_moduleC.ts (0 errors) ====
- import self = require("recursiveExportAssignmentAndFindAliasedType6_moduleD");
+ import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleD");
export = self;
==== recursiveExportAssignmentAndFindAliasedType6_moduleD.ts (0 errors) ====
- import self = require("recursiveExportAssignmentAndFindAliasedType6_moduleE");
+ import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleE");
export = self;
==== recursiveExportAssignmentAndFindAliasedType6_moduleE.ts (1 errors) ====
- import self = require("recursiveExportAssignmentAndFindAliasedType6_moduleC");
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC");
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2303: Circular definition of import alias 'self'.
export = self;
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.js
index 1b14cd77be1ef..2d7f3adff34b8 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.js
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.js
@@ -1,15 +1,15 @@
//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType6.ts] ////
//// [recursiveExportAssignmentAndFindAliasedType6_moduleC.ts]
-import self = require("recursiveExportAssignmentAndFindAliasedType6_moduleD");
+import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleD");
export = self;
//// [recursiveExportAssignmentAndFindAliasedType6_moduleD.ts]
-import self = require("recursiveExportAssignmentAndFindAliasedType6_moduleE");
+import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleE");
export = self;
//// [recursiveExportAssignmentAndFindAliasedType6_moduleE.ts]
-import self = require("recursiveExportAssignmentAndFindAliasedType6_moduleC");
+import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC");
export = self;
//// [recursiveExportAssignmentAndFindAliasedType6_moduleB.ts]
@@ -17,35 +17,28 @@ class ClassB { }
export = ClassB;
//// [recursiveExportAssignmentAndFindAliasedType6_moduleA.ts]
-import moduleC = require("recursiveExportAssignmentAndFindAliasedType6_moduleC");
-import ClassB = require("recursiveExportAssignmentAndFindAliasedType6_moduleB");
+import moduleC = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC");
+import ClassB = require("./recursiveExportAssignmentAndFindAliasedType6_moduleB");
export var b: ClassB; // This should result in type ClassB
//// [recursiveExportAssignmentAndFindAliasedType6_moduleE.js]
-define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType6_moduleC"], function (require, exports, self) {
- "use strict";
- return self;
-});
+"use strict";
+var self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC");
+module.exports = self;
//// [recursiveExportAssignmentAndFindAliasedType6_moduleD.js]
-define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType6_moduleE"], function (require, exports, self) {
- "use strict";
- return self;
-});
+"use strict";
+var self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleE");
+module.exports = self;
//// [recursiveExportAssignmentAndFindAliasedType6_moduleC.js]
-define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType6_moduleD"], function (require, exports, self) {
- "use strict";
- return self;
-});
+"use strict";
+var self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleD");
+module.exports = self;
//// [recursiveExportAssignmentAndFindAliasedType6_moduleB.js]
-define(["require", "exports"], function (require, exports) {
- "use strict";
- class ClassB {
- }
- return ClassB;
-});
+"use strict";
+class ClassB {
+}
+module.exports = ClassB;
//// [recursiveExportAssignmentAndFindAliasedType6_moduleA.js]
-define(["require", "exports"], function (require, exports) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.b = void 0;
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.b = void 0;
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.symbols b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.symbols
index ea40f8b5c0e38..55f08c902157b 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.symbols
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.symbols
@@ -1,32 +1,32 @@
//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType6.ts] ////
=== recursiveExportAssignmentAndFindAliasedType6_moduleA.ts ===
-import moduleC = require("recursiveExportAssignmentAndFindAliasedType6_moduleC");
+import moduleC = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC");
>moduleC : Symbol(moduleC, Decl(recursiveExportAssignmentAndFindAliasedType6_moduleA.ts, 0, 0))
-import ClassB = require("recursiveExportAssignmentAndFindAliasedType6_moduleB");
->ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType6_moduleA.ts, 0, 81))
+import ClassB = require("./recursiveExportAssignmentAndFindAliasedType6_moduleB");
+>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType6_moduleA.ts, 0, 83))
export var b: ClassB; // This should result in type ClassB
>b : Symbol(b, Decl(recursiveExportAssignmentAndFindAliasedType6_moduleA.ts, 2, 10))
->ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType6_moduleA.ts, 0, 81))
+>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType6_moduleA.ts, 0, 83))
=== recursiveExportAssignmentAndFindAliasedType6_moduleC.ts ===
-import self = require("recursiveExportAssignmentAndFindAliasedType6_moduleD");
+import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleD");
>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType6_moduleC.ts, 0, 0))
export = self;
>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType6_moduleC.ts, 0, 0))
=== recursiveExportAssignmentAndFindAliasedType6_moduleD.ts ===
-import self = require("recursiveExportAssignmentAndFindAliasedType6_moduleE");
+import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleE");
>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType6_moduleD.ts, 0, 0))
export = self;
>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType6_moduleD.ts, 0, 0))
=== recursiveExportAssignmentAndFindAliasedType6_moduleE.ts ===
-import self = require("recursiveExportAssignmentAndFindAliasedType6_moduleC");
+import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC");
>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType6_moduleE.ts, 0, 0))
export = self;
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.types b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.types
index f525b59a903ff..c3bb9d576c077 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.types
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.types
@@ -1,11 +1,11 @@
//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType6.ts] ////
=== recursiveExportAssignmentAndFindAliasedType6_moduleA.ts ===
-import moduleC = require("recursiveExportAssignmentAndFindAliasedType6_moduleC");
+import moduleC = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC");
>moduleC : any
> : ^^^
-import ClassB = require("recursiveExportAssignmentAndFindAliasedType6_moduleB");
+import ClassB = require("./recursiveExportAssignmentAndFindAliasedType6_moduleB");
>ClassB : typeof ClassB
> : ^^^^^^^^^^^^^
@@ -14,7 +14,7 @@ export var b: ClassB; // This should result in type ClassB
> : ^^^^^^
=== recursiveExportAssignmentAndFindAliasedType6_moduleC.ts ===
-import self = require("recursiveExportAssignmentAndFindAliasedType6_moduleD");
+import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleD");
>self : any
> : ^^^
@@ -23,7 +23,7 @@ export = self;
> : ^^^
=== recursiveExportAssignmentAndFindAliasedType6_moduleD.ts ===
-import self = require("recursiveExportAssignmentAndFindAliasedType6_moduleE");
+import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleE");
>self : any
> : ^^^
@@ -32,7 +32,7 @@ export = self;
> : ^^^
=== recursiveExportAssignmentAndFindAliasedType6_moduleE.ts ===
-import self = require("recursiveExportAssignmentAndFindAliasedType6_moduleC");
+import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC");
>self : any
> : ^^^
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.js
index b439dc8962b49..dc7f8bb433339 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.js
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.js
@@ -1,16 +1,16 @@
//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType7.ts] ////
//// [recursiveExportAssignmentAndFindAliasedType7_moduleC.ts]
-import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleD");
+import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleD");
var selfVar = self;
export = selfVar;
//// [recursiveExportAssignmentAndFindAliasedType7_moduleD.ts]
-import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleE");
+import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleE");
export = self;
//// [recursiveExportAssignmentAndFindAliasedType7_moduleE.ts]
-import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleC");
+import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleC");
export = self;
//// [recursiveExportAssignmentAndFindAliasedType7_moduleB.ts]
@@ -18,36 +18,29 @@ class ClassB { }
export = ClassB;
//// [recursiveExportAssignmentAndFindAliasedType7_moduleA.ts]
-import moduleC = require("recursiveExportAssignmentAndFindAliasedType7_moduleC");
-import ClassB = require("recursiveExportAssignmentAndFindAliasedType7_moduleB");
+import moduleC = require("./recursiveExportAssignmentAndFindAliasedType7_moduleC");
+import ClassB = require("./recursiveExportAssignmentAndFindAliasedType7_moduleB");
export var b: ClassB; // This should result in type ClassB
//// [recursiveExportAssignmentAndFindAliasedType7_moduleE.js]
-define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType7_moduleC"], function (require, exports, self) {
- "use strict";
- return self;
-});
+"use strict";
+var self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleC");
+module.exports = self;
//// [recursiveExportAssignmentAndFindAliasedType7_moduleD.js]
-define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType7_moduleE"], function (require, exports, self) {
- "use strict";
- return self;
-});
+"use strict";
+var self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleE");
+module.exports = self;
//// [recursiveExportAssignmentAndFindAliasedType7_moduleC.js]
-define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType7_moduleD"], function (require, exports, self) {
- "use strict";
- var selfVar = self;
- return selfVar;
-});
+"use strict";
+var self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleD");
+var selfVar = self;
+module.exports = selfVar;
//// [recursiveExportAssignmentAndFindAliasedType7_moduleB.js]
-define(["require", "exports"], function (require, exports) {
- "use strict";
- class ClassB {
- }
- return ClassB;
-});
+"use strict";
+class ClassB {
+}
+module.exports = ClassB;
//// [recursiveExportAssignmentAndFindAliasedType7_moduleA.js]
-define(["require", "exports"], function (require, exports) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.b = void 0;
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.b = void 0;
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.symbols b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.symbols
index 6cbe4cff5e4d1..e9095b64c9f2b 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.symbols
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.symbols
@@ -1,18 +1,18 @@
//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType7.ts] ////
=== recursiveExportAssignmentAndFindAliasedType7_moduleA.ts ===
-import moduleC = require("recursiveExportAssignmentAndFindAliasedType7_moduleC");
+import moduleC = require("./recursiveExportAssignmentAndFindAliasedType7_moduleC");
>moduleC : Symbol(moduleC, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleA.ts, 0, 0))
-import ClassB = require("recursiveExportAssignmentAndFindAliasedType7_moduleB");
->ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleA.ts, 0, 81))
+import ClassB = require("./recursiveExportAssignmentAndFindAliasedType7_moduleB");
+>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleA.ts, 0, 83))
export var b: ClassB; // This should result in type ClassB
>b : Symbol(b, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleA.ts, 2, 10))
->ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleA.ts, 0, 81))
+>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleA.ts, 0, 83))
=== recursiveExportAssignmentAndFindAliasedType7_moduleC.ts ===
-import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleD");
+import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleD");
>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleC.ts, 0, 0))
var selfVar = self;
@@ -23,14 +23,14 @@ export = selfVar;
>selfVar : Symbol(selfVar, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleC.ts, 1, 3))
=== recursiveExportAssignmentAndFindAliasedType7_moduleD.ts ===
-import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleE");
+import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleE");
>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleD.ts, 0, 0))
export = self;
>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleD.ts, 0, 0))
=== recursiveExportAssignmentAndFindAliasedType7_moduleE.ts ===
-import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleC");
+import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleC");
>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleE.ts, 0, 0))
export = self;
diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.types b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.types
index 9b93f1a1db073..bbb23bb2e04de 100644
--- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.types
+++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.types
@@ -1,11 +1,11 @@
//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType7.ts] ////
=== recursiveExportAssignmentAndFindAliasedType7_moduleA.ts ===
-import moduleC = require("recursiveExportAssignmentAndFindAliasedType7_moduleC");
+import moduleC = require("./recursiveExportAssignmentAndFindAliasedType7_moduleC");
>moduleC : any
> : ^^^
-import ClassB = require("recursiveExportAssignmentAndFindAliasedType7_moduleB");
+import ClassB = require("./recursiveExportAssignmentAndFindAliasedType7_moduleB");
>ClassB : typeof ClassB
> : ^^^^^^^^^^^^^
@@ -14,7 +14,7 @@ export var b: ClassB; // This should result in type ClassB
> : ^^^^^^
=== recursiveExportAssignmentAndFindAliasedType7_moduleC.ts ===
-import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleD");
+import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleD");
>self : any
> : ^^^
@@ -27,7 +27,7 @@ export = selfVar;
> : ^^^
=== recursiveExportAssignmentAndFindAliasedType7_moduleD.ts ===
-import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleE");
+import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleE");
>self : any
> : ^^^
@@ -36,7 +36,7 @@ export = self;
> : ^^^
=== recursiveExportAssignmentAndFindAliasedType7_moduleE.ts ===
-import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleC");
+import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleC");
>self : any
> : ^^^
diff --git a/tests/baselines/reference/reexportMissingDefault.js b/tests/baselines/reference/reexportMissingDefault.js
index 5b1c75d789188..1725ac4b081d4 100644
--- a/tests/baselines/reference/reexportMissingDefault.js
+++ b/tests/baselines/reference/reexportMissingDefault.js
@@ -14,9 +14,12 @@ exports.b = void 0;
exports.b = null;
//// [a.js]
"use strict";
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = exports.b = void 0;
var b_1 = require("./b");
Object.defineProperty(exports, "b", { enumerable: true, get: function () { return b_1.b; } });
var b_2 = require("./b");
-Object.defineProperty(exports, "default", { enumerable: true, get: function () { return b_2.default; } });
+Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(b_2).default; } });
diff --git a/tests/baselines/reference/reexportMissingDefault2.js b/tests/baselines/reference/reexportMissingDefault2.js
index ed22d1b8871d4..692f273b47bec 100644
--- a/tests/baselines/reference/reexportMissingDefault2.js
+++ b/tests/baselines/reference/reexportMissingDefault2.js
@@ -14,9 +14,12 @@ exports.b = void 0;
exports.b = null;
//// [a.js]
"use strict";
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = exports.b = void 0;
var b_1 = require("./b");
Object.defineProperty(exports, "b", { enumerable: true, get: function () { return b_1.b; } });
var b_2 = require("./b");
-Object.defineProperty(exports, "default", { enumerable: true, get: function () { return b_2.default; } });
+Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(b_2).default; } });
diff --git a/tests/baselines/reference/reexportMissingDefault3.js b/tests/baselines/reference/reexportMissingDefault3.js
index 22a0fac06cce8..e1e5b82c8594c 100644
--- a/tests/baselines/reference/reexportMissingDefault3.js
+++ b/tests/baselines/reference/reexportMissingDefault3.js
@@ -14,9 +14,12 @@ exports.b = void 0;
exports.b = null;
//// [a.js]
"use strict";
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
Object.defineProperty(exports, "__esModule", { value: true });
exports.a = exports.b = void 0;
var b_1 = require("./b");
Object.defineProperty(exports, "b", { enumerable: true, get: function () { return b_1.b; } });
var b_2 = require("./b");
-Object.defineProperty(exports, "a", { enumerable: true, get: function () { return b_2.default; } });
+Object.defineProperty(exports, "a", { enumerable: true, get: function () { return __importDefault(b_2).default; } });
diff --git a/tests/baselines/reference/reexportMissingDefault4.js b/tests/baselines/reference/reexportMissingDefault4.js
index b002bc24e8cd0..374fc21f4afc3 100644
--- a/tests/baselines/reference/reexportMissingDefault4.js
+++ b/tests/baselines/reference/reexportMissingDefault4.js
@@ -10,9 +10,12 @@ export { default } from "./b";
//// [a.js]
"use strict";
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = exports.b = void 0;
var b_1 = require("./b");
Object.defineProperty(exports, "b", { enumerable: true, get: function () { return b_1.b; } });
var b_2 = require("./b");
-Object.defineProperty(exports, "default", { enumerable: true, get: function () { return b_2.default; } });
+Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(b_2).default; } });
diff --git a/tests/baselines/reference/reexportMissingDefault5.errors.txt b/tests/baselines/reference/reexportMissingDefault5.errors.txt
new file mode 100644
index 0000000000000..140fa902578db
--- /dev/null
+++ b/tests/baselines/reference/reexportMissingDefault5.errors.txt
@@ -0,0 +1,11 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== b.d.ts (0 errors) ====
+ declare var b: number;
+ export { b };
+
+==== a.ts (0 errors) ====
+ export { b } from "./b";
+ export { default as Foo } from "./b";
\ No newline at end of file
diff --git a/tests/baselines/reference/reexportMissingDefault6.js b/tests/baselines/reference/reexportMissingDefault6.js
index d1ee2ecb562b7..7fa90d4236dfb 100644
--- a/tests/baselines/reference/reexportMissingDefault6.js
+++ b/tests/baselines/reference/reexportMissingDefault6.js
@@ -14,9 +14,12 @@ exports.b = void 0;
exports.b = null;
//// [a.js]
"use strict";
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = exports.b = void 0;
var b_1 = require("./b");
Object.defineProperty(exports, "b", { enumerable: true, get: function () { return b_1.b; } });
var b_2 = require("./b");
-Object.defineProperty(exports, "default", { enumerable: true, get: function () { return b_2.default; } });
+Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(b_2).default; } });
diff --git a/tests/baselines/reference/relativeNamesInClassicResolution.errors.txt b/tests/baselines/reference/relativeNamesInClassicResolution.errors.txt
index 851c7894b6a92..99bdcce1c7099 100644
--- a/tests/baselines/reference/relativeNamesInClassicResolution.errors.txt
+++ b/tests/baselines/reference/relativeNamesInClassicResolution.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
somefolder/a.ts(1,17): error TS2792: Cannot find module './b'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== somefolder/a.ts (1 errors) ====
import {x} from "./b"
~~~~~
diff --git a/tests/baselines/reference/relativePathToDeclarationFile.errors.txt b/tests/baselines/reference/relativePathToDeclarationFile.errors.txt
new file mode 100644
index 0000000000000..5c405bc794a43
--- /dev/null
+++ b/tests/baselines/reference/relativePathToDeclarationFile.errors.txt
@@ -0,0 +1,29 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== test/file1.ts (0 errors) ====
+ import foo = require('foo');
+ import other = require('./other');
+ import relMod = require('./sub/relMod');
+
+ if(foo.M2.x){
+ var x = new relMod(other.M2.x.charCodeAt(0));
+ }
+
+==== test/foo.d.ts (0 errors) ====
+ export declare module M2 {
+ export var x: boolean;
+ }
+
+==== test/other.d.ts (0 errors) ====
+ export declare module M2 {
+ export var x: string;
+ }
+
+==== test/sub/relMod.d.ts (0 errors) ====
+ declare class Test {
+ constructor(x: number);
+ }
+ export = Test;
+
\ No newline at end of file
diff --git a/tests/baselines/reference/requireAsFunctionInExternalModule.js b/tests/baselines/reference/requireAsFunctionInExternalModule.js
index 5f3b7c3f4dcf5..e49f78b2e7b0a 100644
--- a/tests/baselines/reference/requireAsFunctionInExternalModule.js
+++ b/tests/baselines/reference/requireAsFunctionInExternalModule.js
@@ -25,9 +25,42 @@ function require(a) { }
function has(a) { return true; }
//// [m.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.hello = hello;
-var c_1 = require("./c");
+var c_1 = __importStar(require("./c"));
function hello() { }
if ((0, c_1.has)('ember-debug')) {
(0, c_1.default)('ember-debug');
diff --git a/tests/baselines/reference/requireEmitSemicolon.errors.txt b/tests/baselines/reference/requireEmitSemicolon.errors.txt
new file mode 100644
index 0000000000000..908f912ec021b
--- /dev/null
+++ b/tests/baselines/reference/requireEmitSemicolon.errors.txt
@@ -0,0 +1,22 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== requireEmitSemicolon_1.ts (0 errors) ====
+ ///
+ import P = require("requireEmitSemicolon_0"); // bug was we were not emitting a ; here and causing runtime failures in node
+
+ export module Database {
+ export class DB {
+ public findPerson(id: number): P.Models.Person {
+ return new P.Models.Person("Rock");
+ }
+ }
+ }
+==== requireEmitSemicolon_0.ts (0 errors) ====
+ export module Models {
+ export class Person {
+ constructor(name: string) { }
+ }
+ }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/requireOfJsonFileWithAmd.errors.txt b/tests/baselines/reference/requireOfJsonFileWithAmd.errors.txt
index 7519e14cf86f9..a9e01c4345e31 100644
--- a/tests/baselines/reference/requireOfJsonFileWithAmd.errors.txt
+++ b/tests/baselines/reference/requireOfJsonFileWithAmd.errors.txt
@@ -1,8 +1,10 @@
error TS5070: Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'.
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
file1.ts(1,21): error TS2792: Cannot find module './b'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
!!! error TS5070: Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'.
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== file1.ts (1 errors) ====
import b1 = require('./b');
~~~~~
diff --git a/tests/baselines/reference/requireOfJsonFileWithModuleEmitNone.errors.txt b/tests/baselines/reference/requireOfJsonFileWithModuleEmitNone.errors.txt
index db18d33c600a2..44d3758ebc6b6 100644
--- a/tests/baselines/reference/requireOfJsonFileWithModuleEmitNone.errors.txt
+++ b/tests/baselines/reference/requireOfJsonFileWithModuleEmitNone.errors.txt
@@ -1,8 +1,10 @@
error TS5070: Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'.
+error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
file1.ts(1,1): error TS1148: Cannot use imports, exports, or module augmentations when '--module' is 'none'.
!!! error TS5070: Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'.
+!!! error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== file1.ts (1 errors) ====
import * as b from './b.json';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitAmd.errors.txt b/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitAmd.errors.txt
index b751a1a3ab69d..8c407e1b674c1 100644
--- a/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitAmd.errors.txt
+++ b/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitAmd.errors.txt
@@ -1,7 +1,9 @@
error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== file1.ts (0 errors) ====
import * as b from './b.json';
diff --git a/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitAmdOutFile.errors.txt b/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitAmdOutFile.errors.txt
index b751a1a3ab69d..8c407e1b674c1 100644
--- a/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitAmdOutFile.errors.txt
+++ b/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitAmdOutFile.errors.txt
@@ -1,7 +1,9 @@
error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== file1.ts (0 errors) ====
import * as b from './b.json';
diff --git a/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitNone.errors.txt b/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitNone.errors.txt
index 2d750ddc6fcc5..1f804dd8bace3 100644
--- a/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitNone.errors.txt
+++ b/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitNone.errors.txt
@@ -1,10 +1,12 @@
error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.
error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.
+error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
file1.ts(1,1): error TS1148: Cannot use imports, exports, or module augmentations when '--module' is 'none'.
!!! error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.
!!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.
+!!! error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== file1.ts (1 errors) ====
import * as b from './b.json';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitSystem.errors.txt b/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitSystem.errors.txt
index cd0affe7ce19f..89b01a4b0a7a9 100644
--- a/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitSystem.errors.txt
+++ b/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitSystem.errors.txt
@@ -1,9 +1,11 @@
error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.
error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.
!!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== file1.ts (0 errors) ====
import * as b from './b.json';
diff --git a/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitUmd.errors.txt b/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitUmd.errors.txt
index cd0affe7ce19f..57dd7db1aa6a2 100644
--- a/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitUmd.errors.txt
+++ b/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitUmd.errors.txt
@@ -1,9 +1,11 @@
error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.
error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.
+error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.
!!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.
+!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== file1.ts (0 errors) ====
import * as b from './b.json';
diff --git a/tests/baselines/reference/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.errors.txt b/tests/baselines/reference/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.errors.txt
index de95af399d5b3..fa091969efa9b 100644
--- a/tests/baselines/reference/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.errors.txt
+++ b/tests/baselines/reference/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.errors.txt
@@ -1,10 +1,15 @@
+/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
/a.ts(1,20): error TS2732: Cannot find module 'foo/bar/foobar.json'. Consider using '--resolveJsonModule' to import module with '.json' extension.
-==== /tsconfig.json (0 errors) ====
+==== /tsconfig.json (1 errors) ====
{
"compilerOptions": {
"baseUrl": ".",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
"paths": {
"*": ["node_modules/*", "src/types"]
},
diff --git a/tests/baselines/reference/requireOfJsonFile_PathMapping.errors.txt b/tests/baselines/reference/requireOfJsonFile_PathMapping.errors.txt
new file mode 100644
index 0000000000000..dcaacc9e451bd
--- /dev/null
+++ b/tests/baselines/reference/requireOfJsonFile_PathMapping.errors.txt
@@ -0,0 +1,25 @@
+/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
+
+
+==== /tsconfig.json (1 errors) ====
+ {
+ "compilerOptions": {
+ "baseUrl": ".",
+ ~~~~~~~~~
+!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5101: Visit https://aka.ms/ts6 for migration information.
+ "paths": {
+ "*": ["node_modules/*", "src/types"]
+ },
+ "allowJs": true,
+ "outDir": "bin"
+ }
+ }
+
+==== /a.ts (0 errors) ====
+ import foobar from "foo/bar/foobar.json";
+
+==== /node_modules/foo/bar/foobar.json (0 errors) ====
+ { "a": 10 }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/resolutionModeImportType1(moduleresolution=classic).errors.txt b/tests/baselines/reference/resolutionModeImportType1(moduleresolution=classic).errors.txt
index f7596129d6f40..7de26d273b827 100644
--- a/tests/baselines/reference/resolutionModeImportType1(moduleresolution=classic).errors.txt
+++ b/tests/baselines/reference/resolutionModeImportType1(moduleresolution=classic).errors.txt
@@ -1,6 +1,7 @@
error TS2688: Cannot find type definition file for 'foo'.
The file is in the program because:
Entry point for implicit type library 'foo'
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
/app.ts(1,30): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
/app.ts(2,29): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
/app.ts(3,30): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
@@ -9,6 +10,7 @@ error TS2688: Cannot find type definition file for 'foo'.
!!! error TS2688: Cannot find type definition file for 'foo'.
!!! error TS2688: The file is in the program because:
!!! error TS2688: Entry point for implicit type library 'foo'
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== /node_modules/@types/foo/package.json (0 errors) ====
{
"name": "@types/foo",
diff --git a/tests/baselines/reference/resolutionModeTripleSlash4.errors.txt b/tests/baselines/reference/resolutionModeTripleSlash4.errors.txt
index cba5c19bba862..5e6126a30f08c 100644
--- a/tests/baselines/reference/resolutionModeTripleSlash4.errors.txt
+++ b/tests/baselines/reference/resolutionModeTripleSlash4.errors.txt
@@ -1,4 +1,5 @@
/tsconfig.json(4,25): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
/app.ts(1,23): error TS2688: Cannot find type definition file for 'foo'.
/app.ts(2,1): error TS2304: Cannot find name 'MODULE'.
/app.ts(3,1): error TS2552: Cannot find name 'SCRIPT'. Did you mean 'WScript'?
@@ -11,6 +12,7 @@
"moduleResolution": "node10",
~~~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
"noEmit": true,
"types": []
}
diff --git a/tests/baselines/reference/resolutionModeTripleSlash5.errors.txt b/tests/baselines/reference/resolutionModeTripleSlash5.errors.txt
index 213cc69e008ca..ab576280c90f8 100644
--- a/tests/baselines/reference/resolutionModeTripleSlash5.errors.txt
+++ b/tests/baselines/reference/resolutionModeTripleSlash5.errors.txt
@@ -1,4 +1,5 @@
/tsconfig.json(4,25): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+ Visit https://aka.ms/ts6 for migration information.
/app.ts(3,1): error TS2552: Cannot find name 'SCRIPT'. Did you mean 'WScript'?
@@ -9,6 +10,7 @@
"moduleResolution": "node10",
~~~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+!!! error TS5107: Visit https://aka.ms/ts6 for migration information.
"noEmit": true,
"types": []
}
diff --git a/tests/baselines/reference/resolutionModeTypeOnlyImport1(moduleresolution=classic).errors.txt b/tests/baselines/reference/resolutionModeTypeOnlyImport1(moduleresolution=classic).errors.txt
index 8e52a8e3c12ce..a5ade620990a9 100644
--- a/tests/baselines/reference/resolutionModeTypeOnlyImport1(moduleresolution=classic).errors.txt
+++ b/tests/baselines/reference/resolutionModeTypeOnlyImport1(moduleresolution=classic).errors.txt
@@ -1,6 +1,7 @@
error TS2688: Cannot find type definition file for 'foo'.
The file is in the program because:
Entry point for implicit type library 'foo'
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
/app.ts(1,35): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
/app.ts(2,34): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
/app.ts(3,35): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
@@ -9,6 +10,7 @@ error TS2688: Cannot find type definition file for 'foo'.
!!! error TS2688: Cannot find type definition file for 'foo'.
!!! error TS2688: The file is in the program because:
!!! error TS2688: Entry point for implicit type library 'foo'
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== /node_modules/@types/foo/package.json (0 errors) ====
{
"name": "@types/foo",
diff --git a/tests/baselines/reference/returnTypePredicateIsInstantiateInContextOfTarget.js b/tests/baselines/reference/returnTypePredicateIsInstantiateInContextOfTarget.js
index b4106a68f7f6f..85dae49d76992 100644
--- a/tests/baselines/reference/returnTypePredicateIsInstantiateInContextOfTarget.js
+++ b/tests/baselines/reference/returnTypePredicateIsInstantiateInContextOfTarget.js
@@ -18,9 +18,42 @@ const TestRender = () => ;
//// [returnTypePredicateIsInstantiateInContextOfTarget.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
///
-var React = require("react");
+var React = __importStar(require("react"));
let TestComponent = (() => {
class TestComponent extends React.Component {
// Type guard is defined as a static class property
diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js b/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js
index 251ecd5076213..d6411da68b7a8 100644
--- a/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js
+++ b/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js
@@ -48,13 +48,25 @@ File: c.ts
import x from 'b'
var z = 1;
resolvedModules:
-b: {
- "resolvedModule": {
- "resolvedFileName": "/b.ts",
- "extension": ".ts",
- "isExternalLibraryImport": false,
- "resolvedUsingTsExtension": false
- }
+b: esnext: {
+ "failedLookupLocations": [
+ "/package.json",
+ "/node_modules/b/package.json",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
+ "/node_modules/b/index.ts",
+ "/node_modules/b/index.tsx",
+ "/node_modules/b/index.d.ts",
+ "/node_modules/@types/b/package.json",
+ "/node_modules/@types/b.d.ts",
+ "/node_modules/@types/b/index.d.ts",
+ "/node_modules/b/package.json",
+ "/node_modules/b.js",
+ "/node_modules/b.jsx",
+ "/node_modules/b/index.js",
+ "/node_modules/b/index.jsx"
+ ]
}
File: b.ts
@@ -92,6 +104,6 @@ MissingPaths:: [
a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found.
a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'.
-c.ts(2,15): error TS2306: File 'b.ts' is not a module.
+c.ts(2,15): error TS2307: Cannot find module 'b' or its corresponding type declarations.
diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-previous-duplicate-packages.js b/tests/baselines/reference/reuseProgramStructure/redirect-previous-duplicate-packages.js
index 53f8df3b93ed1..2f2793acf43c4 100644
--- a/tests/baselines/reference/reuseProgramStructure/redirect-previous-duplicate-packages.js
+++ b/tests/baselines/reference/reuseProgramStructure/redirect-previous-duplicate-packages.js
@@ -110,7 +110,8 @@ MissingPaths:: [
"lib.d.ts"
]
-home/src/workspaces/project/node_modules/b/index.d.ts(2,8): error TS1259: Module '"/home/src/workspaces/project/node_modules/b/node_modules/x/index"' can only be default-imported using the 'allowSyntheticDefaultImports' flag
+home/src/workspaces/project/a.ts(3,3): error TS2345: Argument of type 'X' is not assignable to parameter of type 'import("/home/src/workspaces/project/node_modules/a/node_modules/x/index").default'.
+ Types have separate declarations of a private property 'x'.
home/src/workspaces/project/node_modules/b/node_modules/x/index.d.ts(3,16): error TS2714: The expression of an export assignment must be an identifier or qualified name in an ambient context.
diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-previous-duplicate-packages.js b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-previous-duplicate-packages.js
index 53f8df3b93ed1..2f2793acf43c4 100644
--- a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-previous-duplicate-packages.js
+++ b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-previous-duplicate-packages.js
@@ -110,7 +110,8 @@ MissingPaths:: [
"lib.d.ts"
]
-home/src/workspaces/project/node_modules/b/index.d.ts(2,8): error TS1259: Module '"/home/src/workspaces/project/node_modules/b/node_modules/x/index"' can only be default-imported using the 'allowSyntheticDefaultImports' flag
+home/src/workspaces/project/a.ts(3,3): error TS2345: Argument of type 'X' is not assignable to parameter of type 'import("/home/src/workspaces/project/node_modules/a/node_modules/x/index").default'.
+ Types have separate declarations of a private property 'x'.
home/src/workspaces/project/node_modules/b/node_modules/x/index.d.ts(3,16): error TS2714: The expression of an export assignment must be an identifier or qualified name in an ambient context.
diff --git a/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js b/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js
index d6272a55f03a5..a998492bc9dd8 100644
--- a/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js
+++ b/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js
@@ -1,21 +1,28 @@
Program 1 Reused:: Not
-File: /b.ts
-
-
-var y = 2
-
File: a.ts
import {_} from 'b'
var x = 1
resolvedModules:
-b: {
- "resolvedModule": {
- "resolvedFileName": "/b.ts",
- "extension": ".ts",
- "isExternalLibraryImport": false,
- "resolvedUsingTsExtension": false
- }
+b: esnext: {
+ "failedLookupLocations": [
+ "/package.json",
+ "/node_modules/b/package.json",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
+ "/node_modules/b/index.ts",
+ "/node_modules/b/index.tsx",
+ "/node_modules/b/index.d.ts",
+ "/node_modules/@types/b/package.json",
+ "/node_modules/@types/b.d.ts",
+ "/node_modules/@types/b/index.d.ts",
+ "/node_modules/b/package.json",
+ "/node_modules/b.js",
+ "/node_modules/b.jsx",
+ "/node_modules/b/index.js",
+ "/node_modules/b/index.jsx"
+ ]
}
@@ -23,28 +30,35 @@ MissingPaths:: [
"lib.d.ts"
]
-a.ts(2,17): error TS2306: File '/b.ts' is not a module.
+a.ts(2,17): error TS2307: Cannot find module 'b' or its corresponding type declarations.
Program 2 Reused:: Completely
-File: /b.ts
-
-
-var y = 2
-
File: a.ts
import {_} from 'b'
var x = 2
resolvedModules:
-b: {
- "resolvedModule": {
- "resolvedFileName": "/b.ts",
- "extension": ".ts",
- "isExternalLibraryImport": false,
- "resolvedUsingTsExtension": false
- }
+b: esnext: {
+ "failedLookupLocations": [
+ "/package.json",
+ "/node_modules/b/package.json",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
+ "/node_modules/b/index.ts",
+ "/node_modules/b/index.tsx",
+ "/node_modules/b/index.d.ts",
+ "/node_modules/@types/b/package.json",
+ "/node_modules/@types/b.d.ts",
+ "/node_modules/@types/b/index.d.ts",
+ "/node_modules/b/package.json",
+ "/node_modules/b.js",
+ "/node_modules/b.jsx",
+ "/node_modules/b/index.js",
+ "/node_modules/b/index.jsx"
+ ]
}
@@ -52,7 +66,7 @@ MissingPaths:: [
"lib.d.ts"
]
-a.ts(2,17): error TS2306: File '/b.ts' is not a module.
+a.ts(2,17): error TS2307: Cannot find module 'b' or its corresponding type declarations.
@@ -71,11 +85,6 @@ MissingPaths:: [
Program 4 Reused:: SafeModules
-File: /b.ts
-
-
-var y = 2
-
File: a.ts
import x from 'b'
@@ -83,24 +92,44 @@ import x from 'b'
var x = 2
resolvedModules:
-b: {
- "resolvedModule": {
- "resolvedFileName": "/b.ts",
- "extension": ".ts",
- "isExternalLibraryImport": false,
- "resolvedUsingTsExtension": false
- }
+b: esnext: {
+ "failedLookupLocations": [
+ "/package.json",
+ "/node_modules/b/package.json",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
+ "/node_modules/b/index.ts",
+ "/node_modules/b/index.tsx",
+ "/node_modules/b/index.d.ts",
+ "/node_modules/@types/b/package.json",
+ "/node_modules/@types/b.d.ts",
+ "/node_modules/@types/b/index.d.ts",
+ "/node_modules/b/package.json",
+ "/node_modules/b.js",
+ "/node_modules/b.jsx",
+ "/node_modules/b/index.js",
+ "/node_modules/b/index.jsx"
+ ]
}
-c: {
+c: esnext: {
"failedLookupLocations": [
- "/c.ts",
- "/c.tsx",
- "/c.d.ts",
+ "/package.json",
+ "/node_modules/c/package.json",
+ "/node_modules/c.ts",
+ "/node_modules/c.tsx",
+ "/node_modules/c.d.ts",
+ "/node_modules/c/index.ts",
+ "/node_modules/c/index.tsx",
+ "/node_modules/c/index.d.ts",
"/node_modules/@types/c/package.json",
"/node_modules/@types/c.d.ts",
"/node_modules/@types/c/index.d.ts",
- "/c.js",
- "/c.jsx"
+ "/node_modules/c/package.json",
+ "/node_modules/c.js",
+ "/node_modules/c.jsx",
+ "/node_modules/c/index.js",
+ "/node_modules/c/index.jsx"
]
}
@@ -109,7 +138,7 @@ MissingPaths:: [
"lib.d.ts"
]
-a.ts(2,15): error TS2306: File '/b.ts' is not a module.
-a.ts(3,31): error TS2792: Cannot find module 'c'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+a.ts(2,15): error TS2307: Cannot find module 'b' or its corresponding type declarations.
+a.ts(3,31): error TS2307: Cannot find module 'c' or its corresponding type declarations.
diff --git a/tests/baselines/reference/reuseProgramStructure/resolvedImports-after-re-using-an-ambient-external-module-declaration.js b/tests/baselines/reference/reuseProgramStructure/resolvedImports-after-re-using-an-ambient-external-module-declaration.js
index f41d87ee9bfa7..093bded1bfa2b 100644
--- a/tests/baselines/reference/reuseProgramStructure/resolvedImports-after-re-using-an-ambient-external-module-declaration.js
+++ b/tests/baselines/reference/reuseProgramStructure/resolvedImports-after-re-using-an-ambient-external-module-declaration.js
@@ -4,13 +4,92 @@ File: /home/src/workspaces/project/a.ts
import * as a from "a";
resolvedModules:
-a: {
- "resolvedModule": {
- "resolvedFileName": "/home/src/workspaces/project/a.ts",
- "extension": ".ts",
- "isExternalLibraryImport": false,
- "resolvedUsingTsExtension": false
- }
+a: esnext: {
+ "failedLookupLocations": [
+ "/home/src/workspaces/project/package.json",
+ "/home/src/workspaces/package.json",
+ "/home/src/package.json",
+ "/home/package.json",
+ "/package.json",
+ "/home/src/workspaces/project/node_modules/a/package.json",
+ "/home/src/workspaces/project/node_modules/a.ts",
+ "/home/src/workspaces/project/node_modules/a.tsx",
+ "/home/src/workspaces/project/node_modules/a.d.ts",
+ "/home/src/workspaces/project/node_modules/a/index.ts",
+ "/home/src/workspaces/project/node_modules/a/index.tsx",
+ "/home/src/workspaces/project/node_modules/a/index.d.ts",
+ "/home/src/workspaces/project/node_modules/@types/a/package.json",
+ "/home/src/workspaces/project/node_modules/@types/a.d.ts",
+ "/home/src/workspaces/project/node_modules/@types/a/index.d.ts",
+ "/home/src/workspaces/node_modules/a/package.json",
+ "/home/src/workspaces/node_modules/a.ts",
+ "/home/src/workspaces/node_modules/a.tsx",
+ "/home/src/workspaces/node_modules/a.d.ts",
+ "/home/src/workspaces/node_modules/a/index.ts",
+ "/home/src/workspaces/node_modules/a/index.tsx",
+ "/home/src/workspaces/node_modules/a/index.d.ts",
+ "/home/src/workspaces/node_modules/@types/a/package.json",
+ "/home/src/workspaces/node_modules/@types/a.d.ts",
+ "/home/src/workspaces/node_modules/@types/a/index.d.ts",
+ "/home/src/node_modules/a/package.json",
+ "/home/src/node_modules/a.ts",
+ "/home/src/node_modules/a.tsx",
+ "/home/src/node_modules/a.d.ts",
+ "/home/src/node_modules/a/index.ts",
+ "/home/src/node_modules/a/index.tsx",
+ "/home/src/node_modules/a/index.d.ts",
+ "/home/src/node_modules/@types/a/package.json",
+ "/home/src/node_modules/@types/a.d.ts",
+ "/home/src/node_modules/@types/a/index.d.ts",
+ "/home/node_modules/a/package.json",
+ "/home/node_modules/a.ts",
+ "/home/node_modules/a.tsx",
+ "/home/node_modules/a.d.ts",
+ "/home/node_modules/a/index.ts",
+ "/home/node_modules/a/index.tsx",
+ "/home/node_modules/a/index.d.ts",
+ "/home/node_modules/@types/a/package.json",
+ "/home/node_modules/@types/a.d.ts",
+ "/home/node_modules/@types/a/index.d.ts",
+ "/node_modules/a/package.json",
+ "/node_modules/a.ts",
+ "/node_modules/a.tsx",
+ "/node_modules/a.d.ts",
+ "/node_modules/a/index.ts",
+ "/node_modules/a/index.tsx",
+ "/node_modules/a/index.d.ts",
+ "/node_modules/@types/a/package.json",
+ "/node_modules/@types/a.d.ts",
+ "/node_modules/@types/a/index.d.ts",
+ "/home/src/workspaces/project/node_modules/a/package.json",
+ "/home/src/workspaces/project/node_modules/a.js",
+ "/home/src/workspaces/project/node_modules/a.jsx",
+ "/home/src/workspaces/project/node_modules/a/index.js",
+ "/home/src/workspaces/project/node_modules/a/index.jsx",
+ "/home/src/workspaces/node_modules/a/package.json",
+ "/home/src/workspaces/node_modules/a.js",
+ "/home/src/workspaces/node_modules/a.jsx",
+ "/home/src/workspaces/node_modules/a/index.js",
+ "/home/src/workspaces/node_modules/a/index.jsx",
+ "/home/src/node_modules/a/package.json",
+ "/home/src/node_modules/a.js",
+ "/home/src/node_modules/a.jsx",
+ "/home/src/node_modules/a/index.js",
+ "/home/src/node_modules/a/index.jsx",
+ "/home/node_modules/a/package.json",
+ "/home/node_modules/a.js",
+ "/home/node_modules/a.jsx",
+ "/home/node_modules/a/index.js",
+ "/home/node_modules/a/index.jsx",
+ "/node_modules/a/package.json",
+ "/node_modules/a.js",
+ "/node_modules/a.jsx",
+ "/node_modules/a/index.js",
+ "/node_modules/a/index.jsx",
+ "/home/src/workspaces/project/types/a.d.ts",
+ "/home/src/workspaces/project/types/a/package.json",
+ "/home/src/workspaces/project/types/a/index.d.ts"
+ ]
}
@@ -18,6 +97,7 @@ MissingPaths:: [
"lib.d.ts"
]
+home/src/workspaces/project/a.ts(3,20): error TS2307: Cannot find module 'a' or its corresponding type declarations.
@@ -27,13 +107,92 @@ File: /home/src/workspaces/project/a.ts
import * as aa from "a";
resolvedModules:
-a: {
- "resolvedModule": {
- "resolvedFileName": "/home/src/workspaces/project/a.ts",
- "extension": ".ts",
- "isExternalLibraryImport": false,
- "resolvedUsingTsExtension": false
- }
+a: esnext: {
+ "failedLookupLocations": [
+ "/home/src/workspaces/project/package.json",
+ "/home/src/workspaces/package.json",
+ "/home/src/package.json",
+ "/home/package.json",
+ "/package.json",
+ "/home/src/workspaces/project/node_modules/a/package.json",
+ "/home/src/workspaces/project/node_modules/a.ts",
+ "/home/src/workspaces/project/node_modules/a.tsx",
+ "/home/src/workspaces/project/node_modules/a.d.ts",
+ "/home/src/workspaces/project/node_modules/a/index.ts",
+ "/home/src/workspaces/project/node_modules/a/index.tsx",
+ "/home/src/workspaces/project/node_modules/a/index.d.ts",
+ "/home/src/workspaces/project/node_modules/@types/a/package.json",
+ "/home/src/workspaces/project/node_modules/@types/a.d.ts",
+ "/home/src/workspaces/project/node_modules/@types/a/index.d.ts",
+ "/home/src/workspaces/node_modules/a/package.json",
+ "/home/src/workspaces/node_modules/a.ts",
+ "/home/src/workspaces/node_modules/a.tsx",
+ "/home/src/workspaces/node_modules/a.d.ts",
+ "/home/src/workspaces/node_modules/a/index.ts",
+ "/home/src/workspaces/node_modules/a/index.tsx",
+ "/home/src/workspaces/node_modules/a/index.d.ts",
+ "/home/src/workspaces/node_modules/@types/a/package.json",
+ "/home/src/workspaces/node_modules/@types/a.d.ts",
+ "/home/src/workspaces/node_modules/@types/a/index.d.ts",
+ "/home/src/node_modules/a/package.json",
+ "/home/src/node_modules/a.ts",
+ "/home/src/node_modules/a.tsx",
+ "/home/src/node_modules/a.d.ts",
+ "/home/src/node_modules/a/index.ts",
+ "/home/src/node_modules/a/index.tsx",
+ "/home/src/node_modules/a/index.d.ts",
+ "/home/src/node_modules/@types/a/package.json",
+ "/home/src/node_modules/@types/a.d.ts",
+ "/home/src/node_modules/@types/a/index.d.ts",
+ "/home/node_modules/a/package.json",
+ "/home/node_modules/a.ts",
+ "/home/node_modules/a.tsx",
+ "/home/node_modules/a.d.ts",
+ "/home/node_modules/a/index.ts",
+ "/home/node_modules/a/index.tsx",
+ "/home/node_modules/a/index.d.ts",
+ "/home/node_modules/@types/a/package.json",
+ "/home/node_modules/@types/a.d.ts",
+ "/home/node_modules/@types/a/index.d.ts",
+ "/node_modules/a/package.json",
+ "/node_modules/a.ts",
+ "/node_modules/a.tsx",
+ "/node_modules/a.d.ts",
+ "/node_modules/a/index.ts",
+ "/node_modules/a/index.tsx",
+ "/node_modules/a/index.d.ts",
+ "/node_modules/@types/a/package.json",
+ "/node_modules/@types/a.d.ts",
+ "/node_modules/@types/a/index.d.ts",
+ "/home/src/workspaces/project/node_modules/a/package.json",
+ "/home/src/workspaces/project/node_modules/a.js",
+ "/home/src/workspaces/project/node_modules/a.jsx",
+ "/home/src/workspaces/project/node_modules/a/index.js",
+ "/home/src/workspaces/project/node_modules/a/index.jsx",
+ "/home/src/workspaces/node_modules/a/package.json",
+ "/home/src/workspaces/node_modules/a.js",
+ "/home/src/workspaces/node_modules/a.jsx",
+ "/home/src/workspaces/node_modules/a/index.js",
+ "/home/src/workspaces/node_modules/a/index.jsx",
+ "/home/src/node_modules/a/package.json",
+ "/home/src/node_modules/a.js",
+ "/home/src/node_modules/a.jsx",
+ "/home/src/node_modules/a/index.js",
+ "/home/src/node_modules/a/index.jsx",
+ "/home/node_modules/a/package.json",
+ "/home/node_modules/a.js",
+ "/home/node_modules/a.jsx",
+ "/home/node_modules/a/index.js",
+ "/home/node_modules/a/index.jsx",
+ "/node_modules/a/package.json",
+ "/node_modules/a.js",
+ "/node_modules/a.jsx",
+ "/node_modules/a/index.js",
+ "/node_modules/a/index.jsx",
+ "/home/src/workspaces/project/types/a.d.ts",
+ "/home/src/workspaces/project/types/a/package.json",
+ "/home/src/workspaces/project/types/a/index.d.ts"
+ ]
}
@@ -41,5 +200,6 @@ MissingPaths:: [
"lib.d.ts"
]
+home/src/workspaces/project/a.ts(3,21): error TS2307: Cannot find module 'a' or its corresponding type declarations.
diff --git a/tests/baselines/reference/reuseProgramStructure/should-not-reuse-ambient-module-declarations-from-non-modified-files.js b/tests/baselines/reference/reuseProgramStructure/should-not-reuse-ambient-module-declarations-from-non-modified-files.js
index ce5b479d830d8..7b89cc50dc2a1 100644
--- a/tests/baselines/reference/reuseProgramStructure/should-not-reuse-ambient-module-declarations-from-non-modified-files.js
+++ b/tests/baselines/reference/reuseProgramStructure/should-not-reuse-ambient-module-declarations-from-non-modified-files.js
@@ -4,64 +4,120 @@ File: /home/src/workspaces/project/a/b/app.ts
import * as fs from 'fs'
resolvedModules:
-fs: {
+fs: esnext: {
"failedLookupLocations": [
- "/home/src/workspaces/project/a/b/fs.ts",
- "/home/src/workspaces/project/a/b/fs.tsx",
- "/home/src/workspaces/project/a/b/fs.d.ts",
- "/home/src/workspaces/project/a/fs.ts",
- "/home/src/workspaces/project/a/fs.tsx",
- "/home/src/workspaces/project/a/fs.d.ts",
- "/home/src/workspaces/project/fs.ts",
- "/home/src/workspaces/project/fs.tsx",
- "/home/src/workspaces/project/fs.d.ts",
- "/home/src/workspaces/fs.ts",
- "/home/src/workspaces/fs.tsx",
- "/home/src/workspaces/fs.d.ts",
- "/home/src/fs.ts",
- "/home/src/fs.tsx",
- "/home/src/fs.d.ts",
- "/home/fs.ts",
- "/home/fs.tsx",
- "/home/fs.d.ts",
- "/fs.ts",
- "/fs.tsx",
- "/fs.d.ts",
+ "/home/src/workspaces/project/a/b/package.json",
+ "/home/src/workspaces/project/a/package.json",
+ "/home/src/workspaces/project/package.json",
+ "/home/src/workspaces/package.json",
+ "/home/src/package.json",
+ "/home/package.json",
+ "/package.json",
+ "/home/src/workspaces/project/a/b/node_modules/fs/package.json",
+ "/home/src/workspaces/project/a/b/node_modules/fs.ts",
+ "/home/src/workspaces/project/a/b/node_modules/fs.tsx",
+ "/home/src/workspaces/project/a/b/node_modules/fs.d.ts",
+ "/home/src/workspaces/project/a/b/node_modules/fs/index.ts",
+ "/home/src/workspaces/project/a/b/node_modules/fs/index.tsx",
+ "/home/src/workspaces/project/a/b/node_modules/fs/index.d.ts",
"/home/src/workspaces/project/a/b/node_modules/@types/fs/package.json",
"/home/src/workspaces/project/a/b/node_modules/@types/fs.d.ts",
"/home/src/workspaces/project/a/b/node_modules/@types/fs/index.d.ts",
+ "/home/src/workspaces/project/a/node_modules/fs/package.json",
+ "/home/src/workspaces/project/a/node_modules/fs.ts",
+ "/home/src/workspaces/project/a/node_modules/fs.tsx",
+ "/home/src/workspaces/project/a/node_modules/fs.d.ts",
+ "/home/src/workspaces/project/a/node_modules/fs/index.ts",
+ "/home/src/workspaces/project/a/node_modules/fs/index.tsx",
+ "/home/src/workspaces/project/a/node_modules/fs/index.d.ts",
"/home/src/workspaces/project/a/node_modules/@types/fs/package.json",
"/home/src/workspaces/project/a/node_modules/@types/fs.d.ts",
"/home/src/workspaces/project/a/node_modules/@types/fs/index.d.ts",
+ "/home/src/workspaces/project/node_modules/fs/package.json",
+ "/home/src/workspaces/project/node_modules/fs.ts",
+ "/home/src/workspaces/project/node_modules/fs.tsx",
+ "/home/src/workspaces/project/node_modules/fs.d.ts",
+ "/home/src/workspaces/project/node_modules/fs/index.ts",
+ "/home/src/workspaces/project/node_modules/fs/index.tsx",
+ "/home/src/workspaces/project/node_modules/fs/index.d.ts",
"/home/src/workspaces/project/node_modules/@types/fs/package.json",
"/home/src/workspaces/project/node_modules/@types/fs.d.ts",
"/home/src/workspaces/project/node_modules/@types/fs/index.d.ts",
+ "/home/src/workspaces/node_modules/fs/package.json",
+ "/home/src/workspaces/node_modules/fs.ts",
+ "/home/src/workspaces/node_modules/fs.tsx",
+ "/home/src/workspaces/node_modules/fs.d.ts",
+ "/home/src/workspaces/node_modules/fs/index.ts",
+ "/home/src/workspaces/node_modules/fs/index.tsx",
+ "/home/src/workspaces/node_modules/fs/index.d.ts",
"/home/src/workspaces/node_modules/@types/fs/package.json",
"/home/src/workspaces/node_modules/@types/fs.d.ts",
"/home/src/workspaces/node_modules/@types/fs/index.d.ts",
+ "/home/src/node_modules/fs/package.json",
+ "/home/src/node_modules/fs.ts",
+ "/home/src/node_modules/fs.tsx",
+ "/home/src/node_modules/fs.d.ts",
+ "/home/src/node_modules/fs/index.ts",
+ "/home/src/node_modules/fs/index.tsx",
+ "/home/src/node_modules/fs/index.d.ts",
"/home/src/node_modules/@types/fs/package.json",
"/home/src/node_modules/@types/fs.d.ts",
"/home/src/node_modules/@types/fs/index.d.ts",
+ "/home/node_modules/fs/package.json",
+ "/home/node_modules/fs.ts",
+ "/home/node_modules/fs.tsx",
+ "/home/node_modules/fs.d.ts",
+ "/home/node_modules/fs/index.ts",
+ "/home/node_modules/fs/index.tsx",
+ "/home/node_modules/fs/index.d.ts",
"/home/node_modules/@types/fs/package.json",
"/home/node_modules/@types/fs.d.ts",
"/home/node_modules/@types/fs/index.d.ts",
+ "/node_modules/fs/package.json",
+ "/node_modules/fs.ts",
+ "/node_modules/fs.tsx",
+ "/node_modules/fs.d.ts",
+ "/node_modules/fs/index.ts",
+ "/node_modules/fs/index.tsx",
+ "/node_modules/fs/index.d.ts",
"/node_modules/@types/fs/package.json",
"/node_modules/@types/fs.d.ts",
"/node_modules/@types/fs/index.d.ts",
- "/home/src/workspaces/project/a/b/fs.js",
- "/home/src/workspaces/project/a/b/fs.jsx",
- "/home/src/workspaces/project/a/fs.js",
- "/home/src/workspaces/project/a/fs.jsx",
- "/home/src/workspaces/project/fs.js",
- "/home/src/workspaces/project/fs.jsx",
- "/home/src/workspaces/fs.js",
- "/home/src/workspaces/fs.jsx",
- "/home/src/fs.js",
- "/home/src/fs.jsx",
- "/home/fs.js",
- "/home/fs.jsx",
- "/fs.js",
- "/fs.jsx"
+ "/home/src/workspaces/project/a/b/node_modules/fs/package.json",
+ "/home/src/workspaces/project/a/b/node_modules/fs.js",
+ "/home/src/workspaces/project/a/b/node_modules/fs.jsx",
+ "/home/src/workspaces/project/a/b/node_modules/fs/index.js",
+ "/home/src/workspaces/project/a/b/node_modules/fs/index.jsx",
+ "/home/src/workspaces/project/a/node_modules/fs/package.json",
+ "/home/src/workspaces/project/a/node_modules/fs.js",
+ "/home/src/workspaces/project/a/node_modules/fs.jsx",
+ "/home/src/workspaces/project/a/node_modules/fs/index.js",
+ "/home/src/workspaces/project/a/node_modules/fs/index.jsx",
+ "/home/src/workspaces/project/node_modules/fs/package.json",
+ "/home/src/workspaces/project/node_modules/fs.js",
+ "/home/src/workspaces/project/node_modules/fs.jsx",
+ "/home/src/workspaces/project/node_modules/fs/index.js",
+ "/home/src/workspaces/project/node_modules/fs/index.jsx",
+ "/home/src/workspaces/node_modules/fs/package.json",
+ "/home/src/workspaces/node_modules/fs.js",
+ "/home/src/workspaces/node_modules/fs.jsx",
+ "/home/src/workspaces/node_modules/fs/index.js",
+ "/home/src/workspaces/node_modules/fs/index.jsx",
+ "/home/src/node_modules/fs/package.json",
+ "/home/src/node_modules/fs.js",
+ "/home/src/node_modules/fs.jsx",
+ "/home/src/node_modules/fs/index.js",
+ "/home/src/node_modules/fs/index.jsx",
+ "/home/node_modules/fs/package.json",
+ "/home/node_modules/fs.js",
+ "/home/node_modules/fs.jsx",
+ "/home/node_modules/fs/index.js",
+ "/home/node_modules/fs/index.jsx",
+ "/node_modules/fs/package.json",
+ "/node_modules/fs.js",
+ "/node_modules/fs.jsx",
+ "/node_modules/fs/index.js",
+ "/node_modules/fs/index.jsx"
]
}
@@ -71,64 +127,123 @@ File: /home/src/workspaces/project/a/b/node.d.ts
declare module 'fs' {}
======== Resolving module 'fs' from '/home/src/workspaces/project/a/b/app.ts'. ========
-Module resolution kind is not specified, using 'Classic'.
-File '/home/src/workspaces/project/a/b/fs.ts' does not exist.
-File '/home/src/workspaces/project/a/b/fs.tsx' does not exist.
-File '/home/src/workspaces/project/a/b/fs.d.ts' does not exist.
-File '/home/src/workspaces/project/a/fs.ts' does not exist.
-File '/home/src/workspaces/project/a/fs.tsx' does not exist.
-File '/home/src/workspaces/project/a/fs.d.ts' does not exist.
-File '/home/src/workspaces/project/fs.ts' does not exist.
-File '/home/src/workspaces/project/fs.tsx' does not exist.
-File '/home/src/workspaces/project/fs.d.ts' does not exist.
-File '/home/src/workspaces/fs.ts' does not exist.
-File '/home/src/workspaces/fs.tsx' does not exist.
-File '/home/src/workspaces/fs.d.ts' does not exist.
-File '/home/src/fs.ts' does not exist.
-File '/home/src/fs.tsx' does not exist.
-File '/home/src/fs.d.ts' does not exist.
-File '/home/fs.ts' does not exist.
-File '/home/fs.tsx' does not exist.
-File '/home/fs.d.ts' does not exist.
-File '/fs.ts' does not exist.
-File '/fs.tsx' does not exist.
-File '/fs.d.ts' does not exist.
-Searching all ancestor node_modules directories for preferred extensions: Declaration.
+Module resolution kind is not specified, using 'Bundler'.
+Resolving in CJS mode with conditions 'import', 'types'.
+File '/home/src/workspaces/project/a/b/package.json' does not exist.
+File '/home/src/workspaces/project/a/package.json' does not exist.
+File '/home/src/workspaces/project/package.json' does not exist.
+File '/home/src/workspaces/package.json' does not exist.
+File '/home/src/package.json' does not exist.
+File '/home/package.json' does not exist.
+File '/package.json' does not exist.
+Loading module 'fs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.
+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.
+File '/home/src/workspaces/project/a/b/node_modules/fs/package.json' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs.ts' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs.tsx' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs.d.ts' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs/index.ts' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs/index.tsx' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs/index.d.ts' does not exist.
File '/home/src/workspaces/project/a/b/node_modules/@types/fs/package.json' does not exist.
File '/home/src/workspaces/project/a/b/node_modules/@types/fs.d.ts' does not exist.
File '/home/src/workspaces/project/a/b/node_modules/@types/fs/index.d.ts' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs/package.json' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs.ts' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs.tsx' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs.d.ts' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs/index.ts' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs/index.tsx' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs/index.d.ts' does not exist.
File '/home/src/workspaces/project/a/node_modules/@types/fs/package.json' does not exist.
File '/home/src/workspaces/project/a/node_modules/@types/fs.d.ts' does not exist.
File '/home/src/workspaces/project/a/node_modules/@types/fs/index.d.ts' does not exist.
+File '/home/src/workspaces/project/node_modules/fs/package.json' does not exist.
+File '/home/src/workspaces/project/node_modules/fs.ts' does not exist.
+File '/home/src/workspaces/project/node_modules/fs.tsx' does not exist.
+File '/home/src/workspaces/project/node_modules/fs.d.ts' does not exist.
+File '/home/src/workspaces/project/node_modules/fs/index.ts' does not exist.
+File '/home/src/workspaces/project/node_modules/fs/index.tsx' does not exist.
+File '/home/src/workspaces/project/node_modules/fs/index.d.ts' does not exist.
File '/home/src/workspaces/project/node_modules/@types/fs/package.json' does not exist.
File '/home/src/workspaces/project/node_modules/@types/fs.d.ts' does not exist.
File '/home/src/workspaces/project/node_modules/@types/fs/index.d.ts' does not exist.
+File '/home/src/workspaces/node_modules/fs/package.json' does not exist.
+File '/home/src/workspaces/node_modules/fs.ts' does not exist.
+File '/home/src/workspaces/node_modules/fs.tsx' does not exist.
+File '/home/src/workspaces/node_modules/fs.d.ts' does not exist.
+File '/home/src/workspaces/node_modules/fs/index.ts' does not exist.
+File '/home/src/workspaces/node_modules/fs/index.tsx' does not exist.
+File '/home/src/workspaces/node_modules/fs/index.d.ts' does not exist.
File '/home/src/workspaces/node_modules/@types/fs/package.json' does not exist.
File '/home/src/workspaces/node_modules/@types/fs.d.ts' does not exist.
File '/home/src/workspaces/node_modules/@types/fs/index.d.ts' does not exist.
+File '/home/src/node_modules/fs/package.json' does not exist.
+File '/home/src/node_modules/fs.ts' does not exist.
+File '/home/src/node_modules/fs.tsx' does not exist.
+File '/home/src/node_modules/fs.d.ts' does not exist.
+File '/home/src/node_modules/fs/index.ts' does not exist.
+File '/home/src/node_modules/fs/index.tsx' does not exist.
+File '/home/src/node_modules/fs/index.d.ts' does not exist.
File '/home/src/node_modules/@types/fs/package.json' does not exist.
File '/home/src/node_modules/@types/fs.d.ts' does not exist.
File '/home/src/node_modules/@types/fs/index.d.ts' does not exist.
+File '/home/node_modules/fs/package.json' does not exist.
+File '/home/node_modules/fs.ts' does not exist.
+File '/home/node_modules/fs.tsx' does not exist.
+File '/home/node_modules/fs.d.ts' does not exist.
+File '/home/node_modules/fs/index.ts' does not exist.
+File '/home/node_modules/fs/index.tsx' does not exist.
+File '/home/node_modules/fs/index.d.ts' does not exist.
File '/home/node_modules/@types/fs/package.json' does not exist.
File '/home/node_modules/@types/fs.d.ts' does not exist.
File '/home/node_modules/@types/fs/index.d.ts' does not exist.
+File '/node_modules/fs/package.json' does not exist.
+File '/node_modules/fs.ts' does not exist.
+File '/node_modules/fs.tsx' does not exist.
+File '/node_modules/fs.d.ts' does not exist.
+File '/node_modules/fs/index.ts' does not exist.
+File '/node_modules/fs/index.tsx' does not exist.
+File '/node_modules/fs/index.d.ts' does not exist.
File '/node_modules/@types/fs/package.json' does not exist.
File '/node_modules/@types/fs.d.ts' does not exist.
File '/node_modules/@types/fs/index.d.ts' does not exist.
-File '/home/src/workspaces/project/a/b/fs.js' does not exist.
-File '/home/src/workspaces/project/a/b/fs.jsx' does not exist.
-File '/home/src/workspaces/project/a/fs.js' does not exist.
-File '/home/src/workspaces/project/a/fs.jsx' does not exist.
-File '/home/src/workspaces/project/fs.js' does not exist.
-File '/home/src/workspaces/project/fs.jsx' does not exist.
-File '/home/src/workspaces/fs.js' does not exist.
-File '/home/src/workspaces/fs.jsx' does not exist.
-File '/home/src/fs.js' does not exist.
-File '/home/src/fs.jsx' does not exist.
-File '/home/fs.js' does not exist.
-File '/home/fs.jsx' does not exist.
-File '/fs.js' does not exist.
-File '/fs.jsx' does not exist.
+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON.
+File '/home/src/workspaces/project/a/b/node_modules/fs/package.json' does not exist according to earlier cached lookups.
+File '/home/src/workspaces/project/a/b/node_modules/fs.js' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs.jsx' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs/index.js' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs/index.jsx' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs/package.json' does not exist according to earlier cached lookups.
+File '/home/src/workspaces/project/a/node_modules/fs.js' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs.jsx' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs/index.js' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs/index.jsx' does not exist.
+File '/home/src/workspaces/project/node_modules/fs/package.json' does not exist according to earlier cached lookups.
+File '/home/src/workspaces/project/node_modules/fs.js' does not exist.
+File '/home/src/workspaces/project/node_modules/fs.jsx' does not exist.
+File '/home/src/workspaces/project/node_modules/fs/index.js' does not exist.
+File '/home/src/workspaces/project/node_modules/fs/index.jsx' does not exist.
+File '/home/src/workspaces/node_modules/fs/package.json' does not exist according to earlier cached lookups.
+File '/home/src/workspaces/node_modules/fs.js' does not exist.
+File '/home/src/workspaces/node_modules/fs.jsx' does not exist.
+File '/home/src/workspaces/node_modules/fs/index.js' does not exist.
+File '/home/src/workspaces/node_modules/fs/index.jsx' does not exist.
+File '/home/src/node_modules/fs/package.json' does not exist according to earlier cached lookups.
+File '/home/src/node_modules/fs.js' does not exist.
+File '/home/src/node_modules/fs.jsx' does not exist.
+File '/home/src/node_modules/fs/index.js' does not exist.
+File '/home/src/node_modules/fs/index.jsx' does not exist.
+File '/home/node_modules/fs/package.json' does not exist according to earlier cached lookups.
+File '/home/node_modules/fs.js' does not exist.
+File '/home/node_modules/fs.jsx' does not exist.
+File '/home/node_modules/fs/index.js' does not exist.
+File '/home/node_modules/fs/index.jsx' does not exist.
+File '/node_modules/fs/package.json' does not exist according to earlier cached lookups.
+File '/node_modules/fs.js' does not exist.
+File '/node_modules/fs.jsx' does not exist.
+File '/node_modules/fs/index.js' does not exist.
+File '/node_modules/fs/index.jsx' does not exist.
======== Module name 'fs' was not resolved. ========
MissingPaths:: [
@@ -144,64 +259,120 @@ File: /home/src/workspaces/project/a/b/app.ts
import * as fs from 'fs'
var x = 1;
resolvedModules:
-fs: {
+fs: esnext: {
"failedLookupLocations": [
- "/home/src/workspaces/project/a/b/fs.ts",
- "/home/src/workspaces/project/a/b/fs.tsx",
- "/home/src/workspaces/project/a/b/fs.d.ts",
- "/home/src/workspaces/project/a/fs.ts",
- "/home/src/workspaces/project/a/fs.tsx",
- "/home/src/workspaces/project/a/fs.d.ts",
- "/home/src/workspaces/project/fs.ts",
- "/home/src/workspaces/project/fs.tsx",
- "/home/src/workspaces/project/fs.d.ts",
- "/home/src/workspaces/fs.ts",
- "/home/src/workspaces/fs.tsx",
- "/home/src/workspaces/fs.d.ts",
- "/home/src/fs.ts",
- "/home/src/fs.tsx",
- "/home/src/fs.d.ts",
- "/home/fs.ts",
- "/home/fs.tsx",
- "/home/fs.d.ts",
- "/fs.ts",
- "/fs.tsx",
- "/fs.d.ts",
+ "/home/src/workspaces/project/a/b/package.json",
+ "/home/src/workspaces/project/a/package.json",
+ "/home/src/workspaces/project/package.json",
+ "/home/src/workspaces/package.json",
+ "/home/src/package.json",
+ "/home/package.json",
+ "/package.json",
+ "/home/src/workspaces/project/a/b/node_modules/fs/package.json",
+ "/home/src/workspaces/project/a/b/node_modules/fs.ts",
+ "/home/src/workspaces/project/a/b/node_modules/fs.tsx",
+ "/home/src/workspaces/project/a/b/node_modules/fs.d.ts",
+ "/home/src/workspaces/project/a/b/node_modules/fs/index.ts",
+ "/home/src/workspaces/project/a/b/node_modules/fs/index.tsx",
+ "/home/src/workspaces/project/a/b/node_modules/fs/index.d.ts",
"/home/src/workspaces/project/a/b/node_modules/@types/fs/package.json",
"/home/src/workspaces/project/a/b/node_modules/@types/fs.d.ts",
"/home/src/workspaces/project/a/b/node_modules/@types/fs/index.d.ts",
+ "/home/src/workspaces/project/a/node_modules/fs/package.json",
+ "/home/src/workspaces/project/a/node_modules/fs.ts",
+ "/home/src/workspaces/project/a/node_modules/fs.tsx",
+ "/home/src/workspaces/project/a/node_modules/fs.d.ts",
+ "/home/src/workspaces/project/a/node_modules/fs/index.ts",
+ "/home/src/workspaces/project/a/node_modules/fs/index.tsx",
+ "/home/src/workspaces/project/a/node_modules/fs/index.d.ts",
"/home/src/workspaces/project/a/node_modules/@types/fs/package.json",
"/home/src/workspaces/project/a/node_modules/@types/fs.d.ts",
"/home/src/workspaces/project/a/node_modules/@types/fs/index.d.ts",
+ "/home/src/workspaces/project/node_modules/fs/package.json",
+ "/home/src/workspaces/project/node_modules/fs.ts",
+ "/home/src/workspaces/project/node_modules/fs.tsx",
+ "/home/src/workspaces/project/node_modules/fs.d.ts",
+ "/home/src/workspaces/project/node_modules/fs/index.ts",
+ "/home/src/workspaces/project/node_modules/fs/index.tsx",
+ "/home/src/workspaces/project/node_modules/fs/index.d.ts",
"/home/src/workspaces/project/node_modules/@types/fs/package.json",
"/home/src/workspaces/project/node_modules/@types/fs.d.ts",
"/home/src/workspaces/project/node_modules/@types/fs/index.d.ts",
+ "/home/src/workspaces/node_modules/fs/package.json",
+ "/home/src/workspaces/node_modules/fs.ts",
+ "/home/src/workspaces/node_modules/fs.tsx",
+ "/home/src/workspaces/node_modules/fs.d.ts",
+ "/home/src/workspaces/node_modules/fs/index.ts",
+ "/home/src/workspaces/node_modules/fs/index.tsx",
+ "/home/src/workspaces/node_modules/fs/index.d.ts",
"/home/src/workspaces/node_modules/@types/fs/package.json",
"/home/src/workspaces/node_modules/@types/fs.d.ts",
"/home/src/workspaces/node_modules/@types/fs/index.d.ts",
+ "/home/src/node_modules/fs/package.json",
+ "/home/src/node_modules/fs.ts",
+ "/home/src/node_modules/fs.tsx",
+ "/home/src/node_modules/fs.d.ts",
+ "/home/src/node_modules/fs/index.ts",
+ "/home/src/node_modules/fs/index.tsx",
+ "/home/src/node_modules/fs/index.d.ts",
"/home/src/node_modules/@types/fs/package.json",
"/home/src/node_modules/@types/fs.d.ts",
"/home/src/node_modules/@types/fs/index.d.ts",
+ "/home/node_modules/fs/package.json",
+ "/home/node_modules/fs.ts",
+ "/home/node_modules/fs.tsx",
+ "/home/node_modules/fs.d.ts",
+ "/home/node_modules/fs/index.ts",
+ "/home/node_modules/fs/index.tsx",
+ "/home/node_modules/fs/index.d.ts",
"/home/node_modules/@types/fs/package.json",
"/home/node_modules/@types/fs.d.ts",
"/home/node_modules/@types/fs/index.d.ts",
+ "/node_modules/fs/package.json",
+ "/node_modules/fs.ts",
+ "/node_modules/fs.tsx",
+ "/node_modules/fs.d.ts",
+ "/node_modules/fs/index.ts",
+ "/node_modules/fs/index.tsx",
+ "/node_modules/fs/index.d.ts",
"/node_modules/@types/fs/package.json",
"/node_modules/@types/fs.d.ts",
"/node_modules/@types/fs/index.d.ts",
- "/home/src/workspaces/project/a/b/fs.js",
- "/home/src/workspaces/project/a/b/fs.jsx",
- "/home/src/workspaces/project/a/fs.js",
- "/home/src/workspaces/project/a/fs.jsx",
- "/home/src/workspaces/project/fs.js",
- "/home/src/workspaces/project/fs.jsx",
- "/home/src/workspaces/fs.js",
- "/home/src/workspaces/fs.jsx",
- "/home/src/fs.js",
- "/home/src/fs.jsx",
- "/home/fs.js",
- "/home/fs.jsx",
- "/fs.js",
- "/fs.jsx"
+ "/home/src/workspaces/project/a/b/node_modules/fs/package.json",
+ "/home/src/workspaces/project/a/b/node_modules/fs.js",
+ "/home/src/workspaces/project/a/b/node_modules/fs.jsx",
+ "/home/src/workspaces/project/a/b/node_modules/fs/index.js",
+ "/home/src/workspaces/project/a/b/node_modules/fs/index.jsx",
+ "/home/src/workspaces/project/a/node_modules/fs/package.json",
+ "/home/src/workspaces/project/a/node_modules/fs.js",
+ "/home/src/workspaces/project/a/node_modules/fs.jsx",
+ "/home/src/workspaces/project/a/node_modules/fs/index.js",
+ "/home/src/workspaces/project/a/node_modules/fs/index.jsx",
+ "/home/src/workspaces/project/node_modules/fs/package.json",
+ "/home/src/workspaces/project/node_modules/fs.js",
+ "/home/src/workspaces/project/node_modules/fs.jsx",
+ "/home/src/workspaces/project/node_modules/fs/index.js",
+ "/home/src/workspaces/project/node_modules/fs/index.jsx",
+ "/home/src/workspaces/node_modules/fs/package.json",
+ "/home/src/workspaces/node_modules/fs.js",
+ "/home/src/workspaces/node_modules/fs.jsx",
+ "/home/src/workspaces/node_modules/fs/index.js",
+ "/home/src/workspaces/node_modules/fs/index.jsx",
+ "/home/src/node_modules/fs/package.json",
+ "/home/src/node_modules/fs.js",
+ "/home/src/node_modules/fs.jsx",
+ "/home/src/node_modules/fs/index.js",
+ "/home/src/node_modules/fs/index.jsx",
+ "/home/node_modules/fs/package.json",
+ "/home/node_modules/fs.js",
+ "/home/node_modules/fs.jsx",
+ "/home/node_modules/fs/index.js",
+ "/home/node_modules/fs/index.jsx",
+ "/node_modules/fs/package.json",
+ "/node_modules/fs.js",
+ "/node_modules/fs.jsx",
+ "/node_modules/fs/index.js",
+ "/node_modules/fs/index.jsx"
]
}
@@ -211,64 +382,123 @@ File: /home/src/workspaces/project/a/b/node.d.ts
declare module 'fs' {}
======== Resolving module 'fs' from '/home/src/workspaces/project/a/b/app.ts'. ========
-Module resolution kind is not specified, using 'Classic'.
-File '/home/src/workspaces/project/a/b/fs.ts' does not exist.
-File '/home/src/workspaces/project/a/b/fs.tsx' does not exist.
-File '/home/src/workspaces/project/a/b/fs.d.ts' does not exist.
-File '/home/src/workspaces/project/a/fs.ts' does not exist.
-File '/home/src/workspaces/project/a/fs.tsx' does not exist.
-File '/home/src/workspaces/project/a/fs.d.ts' does not exist.
-File '/home/src/workspaces/project/fs.ts' does not exist.
-File '/home/src/workspaces/project/fs.tsx' does not exist.
-File '/home/src/workspaces/project/fs.d.ts' does not exist.
-File '/home/src/workspaces/fs.ts' does not exist.
-File '/home/src/workspaces/fs.tsx' does not exist.
-File '/home/src/workspaces/fs.d.ts' does not exist.
-File '/home/src/fs.ts' does not exist.
-File '/home/src/fs.tsx' does not exist.
-File '/home/src/fs.d.ts' does not exist.
-File '/home/fs.ts' does not exist.
-File '/home/fs.tsx' does not exist.
-File '/home/fs.d.ts' does not exist.
-File '/fs.ts' does not exist.
-File '/fs.tsx' does not exist.
-File '/fs.d.ts' does not exist.
-Searching all ancestor node_modules directories for preferred extensions: Declaration.
+Module resolution kind is not specified, using 'Bundler'.
+Resolving in CJS mode with conditions 'import', 'types'.
+File '/home/src/workspaces/project/a/b/package.json' does not exist.
+File '/home/src/workspaces/project/a/package.json' does not exist.
+File '/home/src/workspaces/project/package.json' does not exist.
+File '/home/src/workspaces/package.json' does not exist.
+File '/home/src/package.json' does not exist.
+File '/home/package.json' does not exist.
+File '/package.json' does not exist.
+Loading module 'fs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.
+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.
+File '/home/src/workspaces/project/a/b/node_modules/fs/package.json' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs.ts' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs.tsx' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs.d.ts' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs/index.ts' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs/index.tsx' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs/index.d.ts' does not exist.
File '/home/src/workspaces/project/a/b/node_modules/@types/fs/package.json' does not exist.
File '/home/src/workspaces/project/a/b/node_modules/@types/fs.d.ts' does not exist.
File '/home/src/workspaces/project/a/b/node_modules/@types/fs/index.d.ts' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs/package.json' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs.ts' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs.tsx' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs.d.ts' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs/index.ts' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs/index.tsx' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs/index.d.ts' does not exist.
File '/home/src/workspaces/project/a/node_modules/@types/fs/package.json' does not exist.
File '/home/src/workspaces/project/a/node_modules/@types/fs.d.ts' does not exist.
File '/home/src/workspaces/project/a/node_modules/@types/fs/index.d.ts' does not exist.
+File '/home/src/workspaces/project/node_modules/fs/package.json' does not exist.
+File '/home/src/workspaces/project/node_modules/fs.ts' does not exist.
+File '/home/src/workspaces/project/node_modules/fs.tsx' does not exist.
+File '/home/src/workspaces/project/node_modules/fs.d.ts' does not exist.
+File '/home/src/workspaces/project/node_modules/fs/index.ts' does not exist.
+File '/home/src/workspaces/project/node_modules/fs/index.tsx' does not exist.
+File '/home/src/workspaces/project/node_modules/fs/index.d.ts' does not exist.
File '/home/src/workspaces/project/node_modules/@types/fs/package.json' does not exist.
File '/home/src/workspaces/project/node_modules/@types/fs.d.ts' does not exist.
File '/home/src/workspaces/project/node_modules/@types/fs/index.d.ts' does not exist.
+File '/home/src/workspaces/node_modules/fs/package.json' does not exist.
+File '/home/src/workspaces/node_modules/fs.ts' does not exist.
+File '/home/src/workspaces/node_modules/fs.tsx' does not exist.
+File '/home/src/workspaces/node_modules/fs.d.ts' does not exist.
+File '/home/src/workspaces/node_modules/fs/index.ts' does not exist.
+File '/home/src/workspaces/node_modules/fs/index.tsx' does not exist.
+File '/home/src/workspaces/node_modules/fs/index.d.ts' does not exist.
File '/home/src/workspaces/node_modules/@types/fs/package.json' does not exist.
File '/home/src/workspaces/node_modules/@types/fs.d.ts' does not exist.
File '/home/src/workspaces/node_modules/@types/fs/index.d.ts' does not exist.
+File '/home/src/node_modules/fs/package.json' does not exist.
+File '/home/src/node_modules/fs.ts' does not exist.
+File '/home/src/node_modules/fs.tsx' does not exist.
+File '/home/src/node_modules/fs.d.ts' does not exist.
+File '/home/src/node_modules/fs/index.ts' does not exist.
+File '/home/src/node_modules/fs/index.tsx' does not exist.
+File '/home/src/node_modules/fs/index.d.ts' does not exist.
File '/home/src/node_modules/@types/fs/package.json' does not exist.
File '/home/src/node_modules/@types/fs.d.ts' does not exist.
File '/home/src/node_modules/@types/fs/index.d.ts' does not exist.
+File '/home/node_modules/fs/package.json' does not exist.
+File '/home/node_modules/fs.ts' does not exist.
+File '/home/node_modules/fs.tsx' does not exist.
+File '/home/node_modules/fs.d.ts' does not exist.
+File '/home/node_modules/fs/index.ts' does not exist.
+File '/home/node_modules/fs/index.tsx' does not exist.
+File '/home/node_modules/fs/index.d.ts' does not exist.
File '/home/node_modules/@types/fs/package.json' does not exist.
File '/home/node_modules/@types/fs.d.ts' does not exist.
File '/home/node_modules/@types/fs/index.d.ts' does not exist.
+File '/node_modules/fs/package.json' does not exist.
+File '/node_modules/fs.ts' does not exist.
+File '/node_modules/fs.tsx' does not exist.
+File '/node_modules/fs.d.ts' does not exist.
+File '/node_modules/fs/index.ts' does not exist.
+File '/node_modules/fs/index.tsx' does not exist.
+File '/node_modules/fs/index.d.ts' does not exist.
File '/node_modules/@types/fs/package.json' does not exist.
File '/node_modules/@types/fs.d.ts' does not exist.
File '/node_modules/@types/fs/index.d.ts' does not exist.
-File '/home/src/workspaces/project/a/b/fs.js' does not exist.
-File '/home/src/workspaces/project/a/b/fs.jsx' does not exist.
-File '/home/src/workspaces/project/a/fs.js' does not exist.
-File '/home/src/workspaces/project/a/fs.jsx' does not exist.
-File '/home/src/workspaces/project/fs.js' does not exist.
-File '/home/src/workspaces/project/fs.jsx' does not exist.
-File '/home/src/workspaces/fs.js' does not exist.
-File '/home/src/workspaces/fs.jsx' does not exist.
-File '/home/src/fs.js' does not exist.
-File '/home/src/fs.jsx' does not exist.
-File '/home/fs.js' does not exist.
-File '/home/fs.jsx' does not exist.
-File '/fs.js' does not exist.
-File '/fs.jsx' does not exist.
+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON.
+File '/home/src/workspaces/project/a/b/node_modules/fs/package.json' does not exist according to earlier cached lookups.
+File '/home/src/workspaces/project/a/b/node_modules/fs.js' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs.jsx' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs/index.js' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs/index.jsx' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs/package.json' does not exist according to earlier cached lookups.
+File '/home/src/workspaces/project/a/node_modules/fs.js' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs.jsx' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs/index.js' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs/index.jsx' does not exist.
+File '/home/src/workspaces/project/node_modules/fs/package.json' does not exist according to earlier cached lookups.
+File '/home/src/workspaces/project/node_modules/fs.js' does not exist.
+File '/home/src/workspaces/project/node_modules/fs.jsx' does not exist.
+File '/home/src/workspaces/project/node_modules/fs/index.js' does not exist.
+File '/home/src/workspaces/project/node_modules/fs/index.jsx' does not exist.
+File '/home/src/workspaces/node_modules/fs/package.json' does not exist according to earlier cached lookups.
+File '/home/src/workspaces/node_modules/fs.js' does not exist.
+File '/home/src/workspaces/node_modules/fs.jsx' does not exist.
+File '/home/src/workspaces/node_modules/fs/index.js' does not exist.
+File '/home/src/workspaces/node_modules/fs/index.jsx' does not exist.
+File '/home/src/node_modules/fs/package.json' does not exist according to earlier cached lookups.
+File '/home/src/node_modules/fs.js' does not exist.
+File '/home/src/node_modules/fs.jsx' does not exist.
+File '/home/src/node_modules/fs/index.js' does not exist.
+File '/home/src/node_modules/fs/index.jsx' does not exist.
+File '/home/node_modules/fs/package.json' does not exist according to earlier cached lookups.
+File '/home/node_modules/fs.js' does not exist.
+File '/home/node_modules/fs.jsx' does not exist.
+File '/home/node_modules/fs/index.js' does not exist.
+File '/home/node_modules/fs/index.jsx' does not exist.
+File '/node_modules/fs/package.json' does not exist according to earlier cached lookups.
+File '/node_modules/fs.js' does not exist.
+File '/node_modules/fs.jsx' does not exist.
+File '/node_modules/fs/index.js' does not exist.
+File '/node_modules/fs/index.jsx' does not exist.
======== Module name 'fs' was not resolved. ========
MissingPaths:: [
@@ -284,64 +514,120 @@ File: /home/src/workspaces/project/a/b/app.ts
import * as fs from 'fs'
var y = 1;
resolvedModules:
-fs: {
+fs: esnext: {
"failedLookupLocations": [
- "/home/src/workspaces/project/a/b/fs.ts",
- "/home/src/workspaces/project/a/b/fs.tsx",
- "/home/src/workspaces/project/a/b/fs.d.ts",
- "/home/src/workspaces/project/a/fs.ts",
- "/home/src/workspaces/project/a/fs.tsx",
- "/home/src/workspaces/project/a/fs.d.ts",
- "/home/src/workspaces/project/fs.ts",
- "/home/src/workspaces/project/fs.tsx",
- "/home/src/workspaces/project/fs.d.ts",
- "/home/src/workspaces/fs.ts",
- "/home/src/workspaces/fs.tsx",
- "/home/src/workspaces/fs.d.ts",
- "/home/src/fs.ts",
- "/home/src/fs.tsx",
- "/home/src/fs.d.ts",
- "/home/fs.ts",
- "/home/fs.tsx",
- "/home/fs.d.ts",
- "/fs.ts",
- "/fs.tsx",
- "/fs.d.ts",
+ "/home/src/workspaces/project/a/b/package.json",
+ "/home/src/workspaces/project/a/package.json",
+ "/home/src/workspaces/project/package.json",
+ "/home/src/workspaces/package.json",
+ "/home/src/package.json",
+ "/home/package.json",
+ "/package.json",
+ "/home/src/workspaces/project/a/b/node_modules/fs/package.json",
+ "/home/src/workspaces/project/a/b/node_modules/fs.ts",
+ "/home/src/workspaces/project/a/b/node_modules/fs.tsx",
+ "/home/src/workspaces/project/a/b/node_modules/fs.d.ts",
+ "/home/src/workspaces/project/a/b/node_modules/fs/index.ts",
+ "/home/src/workspaces/project/a/b/node_modules/fs/index.tsx",
+ "/home/src/workspaces/project/a/b/node_modules/fs/index.d.ts",
"/home/src/workspaces/project/a/b/node_modules/@types/fs/package.json",
"/home/src/workspaces/project/a/b/node_modules/@types/fs.d.ts",
"/home/src/workspaces/project/a/b/node_modules/@types/fs/index.d.ts",
+ "/home/src/workspaces/project/a/node_modules/fs/package.json",
+ "/home/src/workspaces/project/a/node_modules/fs.ts",
+ "/home/src/workspaces/project/a/node_modules/fs.tsx",
+ "/home/src/workspaces/project/a/node_modules/fs.d.ts",
+ "/home/src/workspaces/project/a/node_modules/fs/index.ts",
+ "/home/src/workspaces/project/a/node_modules/fs/index.tsx",
+ "/home/src/workspaces/project/a/node_modules/fs/index.d.ts",
"/home/src/workspaces/project/a/node_modules/@types/fs/package.json",
"/home/src/workspaces/project/a/node_modules/@types/fs.d.ts",
"/home/src/workspaces/project/a/node_modules/@types/fs/index.d.ts",
+ "/home/src/workspaces/project/node_modules/fs/package.json",
+ "/home/src/workspaces/project/node_modules/fs.ts",
+ "/home/src/workspaces/project/node_modules/fs.tsx",
+ "/home/src/workspaces/project/node_modules/fs.d.ts",
+ "/home/src/workspaces/project/node_modules/fs/index.ts",
+ "/home/src/workspaces/project/node_modules/fs/index.tsx",
+ "/home/src/workspaces/project/node_modules/fs/index.d.ts",
"/home/src/workspaces/project/node_modules/@types/fs/package.json",
"/home/src/workspaces/project/node_modules/@types/fs.d.ts",
"/home/src/workspaces/project/node_modules/@types/fs/index.d.ts",
+ "/home/src/workspaces/node_modules/fs/package.json",
+ "/home/src/workspaces/node_modules/fs.ts",
+ "/home/src/workspaces/node_modules/fs.tsx",
+ "/home/src/workspaces/node_modules/fs.d.ts",
+ "/home/src/workspaces/node_modules/fs/index.ts",
+ "/home/src/workspaces/node_modules/fs/index.tsx",
+ "/home/src/workspaces/node_modules/fs/index.d.ts",
"/home/src/workspaces/node_modules/@types/fs/package.json",
"/home/src/workspaces/node_modules/@types/fs.d.ts",
"/home/src/workspaces/node_modules/@types/fs/index.d.ts",
+ "/home/src/node_modules/fs/package.json",
+ "/home/src/node_modules/fs.ts",
+ "/home/src/node_modules/fs.tsx",
+ "/home/src/node_modules/fs.d.ts",
+ "/home/src/node_modules/fs/index.ts",
+ "/home/src/node_modules/fs/index.tsx",
+ "/home/src/node_modules/fs/index.d.ts",
"/home/src/node_modules/@types/fs/package.json",
"/home/src/node_modules/@types/fs.d.ts",
"/home/src/node_modules/@types/fs/index.d.ts",
+ "/home/node_modules/fs/package.json",
+ "/home/node_modules/fs.ts",
+ "/home/node_modules/fs.tsx",
+ "/home/node_modules/fs.d.ts",
+ "/home/node_modules/fs/index.ts",
+ "/home/node_modules/fs/index.tsx",
+ "/home/node_modules/fs/index.d.ts",
"/home/node_modules/@types/fs/package.json",
"/home/node_modules/@types/fs.d.ts",
"/home/node_modules/@types/fs/index.d.ts",
+ "/node_modules/fs/package.json",
+ "/node_modules/fs.ts",
+ "/node_modules/fs.tsx",
+ "/node_modules/fs.d.ts",
+ "/node_modules/fs/index.ts",
+ "/node_modules/fs/index.tsx",
+ "/node_modules/fs/index.d.ts",
"/node_modules/@types/fs/package.json",
"/node_modules/@types/fs.d.ts",
"/node_modules/@types/fs/index.d.ts",
- "/home/src/workspaces/project/a/b/fs.js",
- "/home/src/workspaces/project/a/b/fs.jsx",
- "/home/src/workspaces/project/a/fs.js",
- "/home/src/workspaces/project/a/fs.jsx",
- "/home/src/workspaces/project/fs.js",
- "/home/src/workspaces/project/fs.jsx",
- "/home/src/workspaces/fs.js",
- "/home/src/workspaces/fs.jsx",
- "/home/src/fs.js",
- "/home/src/fs.jsx",
- "/home/fs.js",
- "/home/fs.jsx",
- "/fs.js",
- "/fs.jsx"
+ "/home/src/workspaces/project/a/b/node_modules/fs/package.json",
+ "/home/src/workspaces/project/a/b/node_modules/fs.js",
+ "/home/src/workspaces/project/a/b/node_modules/fs.jsx",
+ "/home/src/workspaces/project/a/b/node_modules/fs/index.js",
+ "/home/src/workspaces/project/a/b/node_modules/fs/index.jsx",
+ "/home/src/workspaces/project/a/node_modules/fs/package.json",
+ "/home/src/workspaces/project/a/node_modules/fs.js",
+ "/home/src/workspaces/project/a/node_modules/fs.jsx",
+ "/home/src/workspaces/project/a/node_modules/fs/index.js",
+ "/home/src/workspaces/project/a/node_modules/fs/index.jsx",
+ "/home/src/workspaces/project/node_modules/fs/package.json",
+ "/home/src/workspaces/project/node_modules/fs.js",
+ "/home/src/workspaces/project/node_modules/fs.jsx",
+ "/home/src/workspaces/project/node_modules/fs/index.js",
+ "/home/src/workspaces/project/node_modules/fs/index.jsx",
+ "/home/src/workspaces/node_modules/fs/package.json",
+ "/home/src/workspaces/node_modules/fs.js",
+ "/home/src/workspaces/node_modules/fs.jsx",
+ "/home/src/workspaces/node_modules/fs/index.js",
+ "/home/src/workspaces/node_modules/fs/index.jsx",
+ "/home/src/node_modules/fs/package.json",
+ "/home/src/node_modules/fs.js",
+ "/home/src/node_modules/fs.jsx",
+ "/home/src/node_modules/fs/index.js",
+ "/home/src/node_modules/fs/index.jsx",
+ "/home/node_modules/fs/package.json",
+ "/home/node_modules/fs.js",
+ "/home/node_modules/fs.jsx",
+ "/home/node_modules/fs/index.js",
+ "/home/node_modules/fs/index.jsx",
+ "/node_modules/fs/package.json",
+ "/node_modules/fs.js",
+ "/node_modules/fs.jsx",
+ "/node_modules/fs/index.js",
+ "/node_modules/fs/index.jsx"
]
}
@@ -351,70 +637,129 @@ File: /home/src/workspaces/project/a/b/node.d.ts
declare var process: any
======== Resolving module 'fs' from '/home/src/workspaces/project/a/b/app.ts'. ========
-Module resolution kind is not specified, using 'Classic'.
-File '/home/src/workspaces/project/a/b/fs.ts' does not exist.
-File '/home/src/workspaces/project/a/b/fs.tsx' does not exist.
-File '/home/src/workspaces/project/a/b/fs.d.ts' does not exist.
-File '/home/src/workspaces/project/a/fs.ts' does not exist.
-File '/home/src/workspaces/project/a/fs.tsx' does not exist.
-File '/home/src/workspaces/project/a/fs.d.ts' does not exist.
-File '/home/src/workspaces/project/fs.ts' does not exist.
-File '/home/src/workspaces/project/fs.tsx' does not exist.
-File '/home/src/workspaces/project/fs.d.ts' does not exist.
-File '/home/src/workspaces/fs.ts' does not exist.
-File '/home/src/workspaces/fs.tsx' does not exist.
-File '/home/src/workspaces/fs.d.ts' does not exist.
-File '/home/src/fs.ts' does not exist.
-File '/home/src/fs.tsx' does not exist.
-File '/home/src/fs.d.ts' does not exist.
-File '/home/fs.ts' does not exist.
-File '/home/fs.tsx' does not exist.
-File '/home/fs.d.ts' does not exist.
-File '/fs.ts' does not exist.
-File '/fs.tsx' does not exist.
-File '/fs.d.ts' does not exist.
-Searching all ancestor node_modules directories for preferred extensions: Declaration.
+Module resolution kind is not specified, using 'Bundler'.
+Resolving in CJS mode with conditions 'import', 'types'.
+File '/home/src/workspaces/project/a/b/package.json' does not exist.
+File '/home/src/workspaces/project/a/package.json' does not exist.
+File '/home/src/workspaces/project/package.json' does not exist.
+File '/home/src/workspaces/package.json' does not exist.
+File '/home/src/package.json' does not exist.
+File '/home/package.json' does not exist.
+File '/package.json' does not exist.
+Loading module 'fs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.
+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.
+File '/home/src/workspaces/project/a/b/node_modules/fs/package.json' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs.ts' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs.tsx' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs.d.ts' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs/index.ts' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs/index.tsx' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs/index.d.ts' does not exist.
File '/home/src/workspaces/project/a/b/node_modules/@types/fs/package.json' does not exist.
File '/home/src/workspaces/project/a/b/node_modules/@types/fs.d.ts' does not exist.
File '/home/src/workspaces/project/a/b/node_modules/@types/fs/index.d.ts' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs/package.json' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs.ts' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs.tsx' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs.d.ts' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs/index.ts' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs/index.tsx' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs/index.d.ts' does not exist.
File '/home/src/workspaces/project/a/node_modules/@types/fs/package.json' does not exist.
File '/home/src/workspaces/project/a/node_modules/@types/fs.d.ts' does not exist.
File '/home/src/workspaces/project/a/node_modules/@types/fs/index.d.ts' does not exist.
+File '/home/src/workspaces/project/node_modules/fs/package.json' does not exist.
+File '/home/src/workspaces/project/node_modules/fs.ts' does not exist.
+File '/home/src/workspaces/project/node_modules/fs.tsx' does not exist.
+File '/home/src/workspaces/project/node_modules/fs.d.ts' does not exist.
+File '/home/src/workspaces/project/node_modules/fs/index.ts' does not exist.
+File '/home/src/workspaces/project/node_modules/fs/index.tsx' does not exist.
+File '/home/src/workspaces/project/node_modules/fs/index.d.ts' does not exist.
File '/home/src/workspaces/project/node_modules/@types/fs/package.json' does not exist.
File '/home/src/workspaces/project/node_modules/@types/fs.d.ts' does not exist.
File '/home/src/workspaces/project/node_modules/@types/fs/index.d.ts' does not exist.
+File '/home/src/workspaces/node_modules/fs/package.json' does not exist.
+File '/home/src/workspaces/node_modules/fs.ts' does not exist.
+File '/home/src/workspaces/node_modules/fs.tsx' does not exist.
+File '/home/src/workspaces/node_modules/fs.d.ts' does not exist.
+File '/home/src/workspaces/node_modules/fs/index.ts' does not exist.
+File '/home/src/workspaces/node_modules/fs/index.tsx' does not exist.
+File '/home/src/workspaces/node_modules/fs/index.d.ts' does not exist.
File '/home/src/workspaces/node_modules/@types/fs/package.json' does not exist.
File '/home/src/workspaces/node_modules/@types/fs.d.ts' does not exist.
File '/home/src/workspaces/node_modules/@types/fs/index.d.ts' does not exist.
+File '/home/src/node_modules/fs/package.json' does not exist.
+File '/home/src/node_modules/fs.ts' does not exist.
+File '/home/src/node_modules/fs.tsx' does not exist.
+File '/home/src/node_modules/fs.d.ts' does not exist.
+File '/home/src/node_modules/fs/index.ts' does not exist.
+File '/home/src/node_modules/fs/index.tsx' does not exist.
+File '/home/src/node_modules/fs/index.d.ts' does not exist.
File '/home/src/node_modules/@types/fs/package.json' does not exist.
File '/home/src/node_modules/@types/fs.d.ts' does not exist.
File '/home/src/node_modules/@types/fs/index.d.ts' does not exist.
+File '/home/node_modules/fs/package.json' does not exist.
+File '/home/node_modules/fs.ts' does not exist.
+File '/home/node_modules/fs.tsx' does not exist.
+File '/home/node_modules/fs.d.ts' does not exist.
+File '/home/node_modules/fs/index.ts' does not exist.
+File '/home/node_modules/fs/index.tsx' does not exist.
+File '/home/node_modules/fs/index.d.ts' does not exist.
File '/home/node_modules/@types/fs/package.json' does not exist.
File '/home/node_modules/@types/fs.d.ts' does not exist.
File '/home/node_modules/@types/fs/index.d.ts' does not exist.
+File '/node_modules/fs/package.json' does not exist.
+File '/node_modules/fs.ts' does not exist.
+File '/node_modules/fs.tsx' does not exist.
+File '/node_modules/fs.d.ts' does not exist.
+File '/node_modules/fs/index.ts' does not exist.
+File '/node_modules/fs/index.tsx' does not exist.
+File '/node_modules/fs/index.d.ts' does not exist.
File '/node_modules/@types/fs/package.json' does not exist.
File '/node_modules/@types/fs.d.ts' does not exist.
File '/node_modules/@types/fs/index.d.ts' does not exist.
-File '/home/src/workspaces/project/a/b/fs.js' does not exist.
-File '/home/src/workspaces/project/a/b/fs.jsx' does not exist.
-File '/home/src/workspaces/project/a/fs.js' does not exist.
-File '/home/src/workspaces/project/a/fs.jsx' does not exist.
-File '/home/src/workspaces/project/fs.js' does not exist.
-File '/home/src/workspaces/project/fs.jsx' does not exist.
-File '/home/src/workspaces/fs.js' does not exist.
-File '/home/src/workspaces/fs.jsx' does not exist.
-File '/home/src/fs.js' does not exist.
-File '/home/src/fs.jsx' does not exist.
-File '/home/fs.js' does not exist.
-File '/home/fs.jsx' does not exist.
-File '/fs.js' does not exist.
-File '/fs.jsx' does not exist.
+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON.
+File '/home/src/workspaces/project/a/b/node_modules/fs/package.json' does not exist according to earlier cached lookups.
+File '/home/src/workspaces/project/a/b/node_modules/fs.js' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs.jsx' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs/index.js' does not exist.
+File '/home/src/workspaces/project/a/b/node_modules/fs/index.jsx' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs/package.json' does not exist according to earlier cached lookups.
+File '/home/src/workspaces/project/a/node_modules/fs.js' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs.jsx' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs/index.js' does not exist.
+File '/home/src/workspaces/project/a/node_modules/fs/index.jsx' does not exist.
+File '/home/src/workspaces/project/node_modules/fs/package.json' does not exist according to earlier cached lookups.
+File '/home/src/workspaces/project/node_modules/fs.js' does not exist.
+File '/home/src/workspaces/project/node_modules/fs.jsx' does not exist.
+File '/home/src/workspaces/project/node_modules/fs/index.js' does not exist.
+File '/home/src/workspaces/project/node_modules/fs/index.jsx' does not exist.
+File '/home/src/workspaces/node_modules/fs/package.json' does not exist according to earlier cached lookups.
+File '/home/src/workspaces/node_modules/fs.js' does not exist.
+File '/home/src/workspaces/node_modules/fs.jsx' does not exist.
+File '/home/src/workspaces/node_modules/fs/index.js' does not exist.
+File '/home/src/workspaces/node_modules/fs/index.jsx' does not exist.
+File '/home/src/node_modules/fs/package.json' does not exist according to earlier cached lookups.
+File '/home/src/node_modules/fs.js' does not exist.
+File '/home/src/node_modules/fs.jsx' does not exist.
+File '/home/src/node_modules/fs/index.js' does not exist.
+File '/home/src/node_modules/fs/index.jsx' does not exist.
+File '/home/node_modules/fs/package.json' does not exist according to earlier cached lookups.
+File '/home/node_modules/fs.js' does not exist.
+File '/home/node_modules/fs.jsx' does not exist.
+File '/home/node_modules/fs/index.js' does not exist.
+File '/home/node_modules/fs/index.jsx' does not exist.
+File '/node_modules/fs/package.json' does not exist according to earlier cached lookups.
+File '/node_modules/fs.js' does not exist.
+File '/node_modules/fs.jsx' does not exist.
+File '/node_modules/fs/index.js' does not exist.
+File '/node_modules/fs/index.jsx' does not exist.
======== Module name 'fs' was not resolved. ========
MissingPaths:: [
"lib.d.ts"
]
-home/src/workspaces/project/a/b/app.ts(2,21): error TS2792: Cannot find module 'fs'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+home/src/workspaces/project/a/b/app.ts(2,21): error TS2307: Cannot find module 'fs' or its corresponding type declarations.
diff --git a/tests/baselines/reference/reuseProgramStructure/works-with-updated-SourceFiles.js b/tests/baselines/reference/reuseProgramStructure/works-with-updated-SourceFiles.js
index daf92414ce3c3..ad211675c5bed 100644
--- a/tests/baselines/reference/reuseProgramStructure/works-with-updated-SourceFiles.js
+++ b/tests/baselines/reference/reuseProgramStructure/works-with-updated-SourceFiles.js
@@ -4,13 +4,92 @@ File: /home/src/workspaces/project/a.ts
import * as a from "a";a;
resolvedModules:
-a: {
- "resolvedModule": {
- "resolvedFileName": "/home/src/workspaces/project/a.ts",
- "extension": ".ts",
- "isExternalLibraryImport": false,
- "resolvedUsingTsExtension": false
- }
+a: esnext: {
+ "failedLookupLocations": [
+ "/home/src/workspaces/project/package.json",
+ "/home/src/workspaces/package.json",
+ "/home/src/package.json",
+ "/home/package.json",
+ "/package.json",
+ "/home/src/workspaces/project/node_modules/a/package.json",
+ "/home/src/workspaces/project/node_modules/a.ts",
+ "/home/src/workspaces/project/node_modules/a.tsx",
+ "/home/src/workspaces/project/node_modules/a.d.ts",
+ "/home/src/workspaces/project/node_modules/a/index.ts",
+ "/home/src/workspaces/project/node_modules/a/index.tsx",
+ "/home/src/workspaces/project/node_modules/a/index.d.ts",
+ "/home/src/workspaces/project/node_modules/@types/a/package.json",
+ "/home/src/workspaces/project/node_modules/@types/a.d.ts",
+ "/home/src/workspaces/project/node_modules/@types/a/index.d.ts",
+ "/home/src/workspaces/node_modules/a/package.json",
+ "/home/src/workspaces/node_modules/a.ts",
+ "/home/src/workspaces/node_modules/a.tsx",
+ "/home/src/workspaces/node_modules/a.d.ts",
+ "/home/src/workspaces/node_modules/a/index.ts",
+ "/home/src/workspaces/node_modules/a/index.tsx",
+ "/home/src/workspaces/node_modules/a/index.d.ts",
+ "/home/src/workspaces/node_modules/@types/a/package.json",
+ "/home/src/workspaces/node_modules/@types/a.d.ts",
+ "/home/src/workspaces/node_modules/@types/a/index.d.ts",
+ "/home/src/node_modules/a/package.json",
+ "/home/src/node_modules/a.ts",
+ "/home/src/node_modules/a.tsx",
+ "/home/src/node_modules/a.d.ts",
+ "/home/src/node_modules/a/index.ts",
+ "/home/src/node_modules/a/index.tsx",
+ "/home/src/node_modules/a/index.d.ts",
+ "/home/src/node_modules/@types/a/package.json",
+ "/home/src/node_modules/@types/a.d.ts",
+ "/home/src/node_modules/@types/a/index.d.ts",
+ "/home/node_modules/a/package.json",
+ "/home/node_modules/a.ts",
+ "/home/node_modules/a.tsx",
+ "/home/node_modules/a.d.ts",
+ "/home/node_modules/a/index.ts",
+ "/home/node_modules/a/index.tsx",
+ "/home/node_modules/a/index.d.ts",
+ "/home/node_modules/@types/a/package.json",
+ "/home/node_modules/@types/a.d.ts",
+ "/home/node_modules/@types/a/index.d.ts",
+ "/node_modules/a/package.json",
+ "/node_modules/a.ts",
+ "/node_modules/a.tsx",
+ "/node_modules/a.d.ts",
+ "/node_modules/a/index.ts",
+ "/node_modules/a/index.tsx",
+ "/node_modules/a/index.d.ts",
+ "/node_modules/@types/a/package.json",
+ "/node_modules/@types/a.d.ts",
+ "/node_modules/@types/a/index.d.ts",
+ "/home/src/workspaces/project/node_modules/a/package.json",
+ "/home/src/workspaces/project/node_modules/a.js",
+ "/home/src/workspaces/project/node_modules/a.jsx",
+ "/home/src/workspaces/project/node_modules/a/index.js",
+ "/home/src/workspaces/project/node_modules/a/index.jsx",
+ "/home/src/workspaces/node_modules/a/package.json",
+ "/home/src/workspaces/node_modules/a.js",
+ "/home/src/workspaces/node_modules/a.jsx",
+ "/home/src/workspaces/node_modules/a/index.js",
+ "/home/src/workspaces/node_modules/a/index.jsx",
+ "/home/src/node_modules/a/package.json",
+ "/home/src/node_modules/a.js",
+ "/home/src/node_modules/a.jsx",
+ "/home/src/node_modules/a/index.js",
+ "/home/src/node_modules/a/index.jsx",
+ "/home/node_modules/a/package.json",
+ "/home/node_modules/a.js",
+ "/home/node_modules/a.jsx",
+ "/home/node_modules/a/index.js",
+ "/home/node_modules/a/index.jsx",
+ "/node_modules/a/package.json",
+ "/node_modules/a.js",
+ "/node_modules/a.jsx",
+ "/node_modules/a/index.js",
+ "/node_modules/a/index.jsx",
+ "/home/src/workspaces/project/types/a.d.ts",
+ "/home/src/workspaces/project/types/a/package.json",
+ "/home/src/workspaces/project/types/a/index.d.ts"
+ ]
}
@@ -18,6 +97,7 @@ MissingPaths:: [
"lib.d.ts"
]
+home/src/workspaces/project/a.ts(3,20): error TS2307: Cannot find module 'a' or its corresponding type declarations.
@@ -28,13 +108,92 @@ File: /home/src/workspaces/project/a.ts
import * as a from "a";a;
resolvedModules:
-a: {
- "resolvedModule": {
- "resolvedFileName": "/home/src/workspaces/project/a.ts",
- "extension": ".ts",
- "isExternalLibraryImport": false,
- "resolvedUsingTsExtension": false
- }
+a: esnext: {
+ "failedLookupLocations": [
+ "/home/src/workspaces/project/package.json",
+ "/home/src/workspaces/package.json",
+ "/home/src/package.json",
+ "/home/package.json",
+ "/package.json",
+ "/home/src/workspaces/project/node_modules/a/package.json",
+ "/home/src/workspaces/project/node_modules/a.ts",
+ "/home/src/workspaces/project/node_modules/a.tsx",
+ "/home/src/workspaces/project/node_modules/a.d.ts",
+ "/home/src/workspaces/project/node_modules/a/index.ts",
+ "/home/src/workspaces/project/node_modules/a/index.tsx",
+ "/home/src/workspaces/project/node_modules/a/index.d.ts",
+ "/home/src/workspaces/project/node_modules/@types/a/package.json",
+ "/home/src/workspaces/project/node_modules/@types/a.d.ts",
+ "/home/src/workspaces/project/node_modules/@types/a/index.d.ts",
+ "/home/src/workspaces/node_modules/a/package.json",
+ "/home/src/workspaces/node_modules/a.ts",
+ "/home/src/workspaces/node_modules/a.tsx",
+ "/home/src/workspaces/node_modules/a.d.ts",
+ "/home/src/workspaces/node_modules/a/index.ts",
+ "/home/src/workspaces/node_modules/a/index.tsx",
+ "/home/src/workspaces/node_modules/a/index.d.ts",
+ "/home/src/workspaces/node_modules/@types/a/package.json",
+ "/home/src/workspaces/node_modules/@types/a.d.ts",
+ "/home/src/workspaces/node_modules/@types/a/index.d.ts",
+ "/home/src/node_modules/a/package.json",
+ "/home/src/node_modules/a.ts",
+ "/home/src/node_modules/a.tsx",
+ "/home/src/node_modules/a.d.ts",
+ "/home/src/node_modules/a/index.ts",
+ "/home/src/node_modules/a/index.tsx",
+ "/home/src/node_modules/a/index.d.ts",
+ "/home/src/node_modules/@types/a/package.json",
+ "/home/src/node_modules/@types/a.d.ts",
+ "/home/src/node_modules/@types/a/index.d.ts",
+ "/home/node_modules/a/package.json",
+ "/home/node_modules/a.ts",
+ "/home/node_modules/a.tsx",
+ "/home/node_modules/a.d.ts",
+ "/home/node_modules/a/index.ts",
+ "/home/node_modules/a/index.tsx",
+ "/home/node_modules/a/index.d.ts",
+ "/home/node_modules/@types/a/package.json",
+ "/home/node_modules/@types/a.d.ts",
+ "/home/node_modules/@types/a/index.d.ts",
+ "/node_modules/a/package.json",
+ "/node_modules/a.ts",
+ "/node_modules/a.tsx",
+ "/node_modules/a.d.ts",
+ "/node_modules/a/index.ts",
+ "/node_modules/a/index.tsx",
+ "/node_modules/a/index.d.ts",
+ "/node_modules/@types/a/package.json",
+ "/node_modules/@types/a.d.ts",
+ "/node_modules/@types/a/index.d.ts",
+ "/home/src/workspaces/project/node_modules/a/package.json",
+ "/home/src/workspaces/project/node_modules/a.js",
+ "/home/src/workspaces/project/node_modules/a.jsx",
+ "/home/src/workspaces/project/node_modules/a/index.js",
+ "/home/src/workspaces/project/node_modules/a/index.jsx",
+ "/home/src/workspaces/node_modules/a/package.json",
+ "/home/src/workspaces/node_modules/a.js",
+ "/home/src/workspaces/node_modules/a.jsx",
+ "/home/src/workspaces/node_modules/a/index.js",
+ "/home/src/workspaces/node_modules/a/index.jsx",
+ "/home/src/node_modules/a/package.json",
+ "/home/src/node_modules/a.js",
+ "/home/src/node_modules/a.jsx",
+ "/home/src/node_modules/a/index.js",
+ "/home/src/node_modules/a/index.jsx",
+ "/home/node_modules/a/package.json",
+ "/home/node_modules/a.js",
+ "/home/node_modules/a.jsx",
+ "/home/node_modules/a/index.js",
+ "/home/node_modules/a/index.jsx",
+ "/node_modules/a/package.json",
+ "/node_modules/a.js",
+ "/node_modules/a.jsx",
+ "/node_modules/a/index.js",
+ "/node_modules/a/index.jsx",
+ "/home/src/workspaces/project/types/a.d.ts",
+ "/home/src/workspaces/project/types/a/package.json",
+ "/home/src/workspaces/project/types/a/index.d.ts"
+ ]
}
@@ -42,6 +201,7 @@ MissingPaths:: [
"lib.d.ts"
]
+home/src/workspaces/project/a.ts(3,20): error TS2307: Cannot find module 'a' or its corresponding type declarations.
diff --git a/tests/baselines/reference/scopedPackagesClassic.errors.txt b/tests/baselines/reference/scopedPackagesClassic.errors.txt
new file mode 100644
index 0000000000000..fc020f78f7316
--- /dev/null
+++ b/tests/baselines/reference/scopedPackagesClassic.errors.txt
@@ -0,0 +1,10 @@
+error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== /a.ts (0 errors) ====
+ import { x } from "@see/saw";
+
+==== /node_modules/@types/see__saw/index.d.ts (0 errors) ====
+ export const x = 0;
+
\ No newline at end of file
diff --git a/tests/baselines/reference/selfReferentialDefaultNoStackOverflow.js b/tests/baselines/reference/selfReferentialDefaultNoStackOverflow.js
index 75da3fda1d9e7..efa2069547706 100644
--- a/tests/baselines/reference/selfReferentialDefaultNoStackOverflow.js
+++ b/tests/baselines/reference/selfReferentialDefaultNoStackOverflow.js
@@ -11,8 +11,11 @@ export default {
//// [QSpinner.js]
"use strict";
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
Object.defineProperty(exports, "__esModule", { value: true });
-var QSpinner_1 = require("./QSpinner");
+var QSpinner_1 = __importDefault(require("./QSpinner"));
exports.default = {
mixins: [QSpinner_1.default],
name: 'QSpinner'
diff --git a/tests/baselines/reference/shorthand-property-es5-es6.errors.txt b/tests/baselines/reference/shorthand-property-es5-es6.errors.txt
index d34857c693186..5ce21bfdd8af2 100644
--- a/tests/baselines/reference/shorthand-property-es5-es6.errors.txt
+++ b/tests/baselines/reference/shorthand-property-es5-es6.errors.txt
@@ -1,10 +1,10 @@
-test.ts(1,19): error TS2792: Cannot find module './foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+test.ts(1,19): error TS2307: Cannot find module './foo' or its corresponding type declarations.
==== test.ts (1 errors) ====
import {foo} from './foo';
~~~~~~~
-!!! error TS2792: Cannot find module './foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+!!! error TS2307: Cannot find module './foo' or its corresponding type declarations.
const baz = 42;
const bar = { foo, baz };
\ No newline at end of file
diff --git a/tests/baselines/reference/shorthand-property-es6-amd.errors.txt b/tests/baselines/reference/shorthand-property-es6-amd.errors.txt
index d34857c693186..b35916f415fb3 100644
--- a/tests/baselines/reference/shorthand-property-es6-amd.errors.txt
+++ b/tests/baselines/reference/shorthand-property-es6-amd.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
test.ts(1,19): error TS2792: Cannot find module './foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== test.ts (1 errors) ====
import {foo} from './foo';
~~~~~~~
diff --git a/tests/baselines/reference/shorthand-property-es6-es6.errors.txt b/tests/baselines/reference/shorthand-property-es6-es6.errors.txt
index d34857c693186..5ce21bfdd8af2 100644
--- a/tests/baselines/reference/shorthand-property-es6-es6.errors.txt
+++ b/tests/baselines/reference/shorthand-property-es6-es6.errors.txt
@@ -1,10 +1,10 @@
-test.ts(1,19): error TS2792: Cannot find module './foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+test.ts(1,19): error TS2307: Cannot find module './foo' or its corresponding type declarations.
==== test.ts (1 errors) ====
import {foo} from './foo';
~~~~~~~
-!!! error TS2792: Cannot find module './foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+!!! error TS2307: Cannot find module './foo' or its corresponding type declarations.
const baz = 42;
const bar = { foo, baz };
\ No newline at end of file
diff --git a/tests/baselines/reference/sourceMapValidationExportAssignment.errors.txt b/tests/baselines/reference/sourceMapValidationExportAssignment.errors.txt
new file mode 100644
index 0000000000000..b0d75117e07c5
--- /dev/null
+++ b/tests/baselines/reference/sourceMapValidationExportAssignment.errors.txt
@@ -0,0 +1,9 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== sourceMapValidationExportAssignment.ts (0 errors) ====
+ class a {
+ public c;
+ }
+ export = a;
\ No newline at end of file
diff --git a/tests/baselines/reference/sourceMapValidationExportAssignment.types b/tests/baselines/reference/sourceMapValidationExportAssignment.types
index 7b63b2dff88be..e8e3e719bdc56 100644
--- a/tests/baselines/reference/sourceMapValidationExportAssignment.types
+++ b/tests/baselines/reference/sourceMapValidationExportAssignment.types
@@ -7,6 +7,7 @@ class a {
public c;
>c : any
+> : ^^^
}
export = a;
>a : a
diff --git a/tests/baselines/reference/spellingSuggestionJSXAttribute.js b/tests/baselines/reference/spellingSuggestionJSXAttribute.js
index 6c6e766633b04..59c61764d2b79 100644
--- a/tests/baselines/reference/spellingSuggestionJSXAttribute.js
+++ b/tests/baselines/reference/spellingSuggestionJSXAttribute.js
@@ -20,9 +20,42 @@ class MyComp extends React.Component<{ className?: string, htmlFor?: string }> {
//// [spellingSuggestionJSXAttribute.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
///
-var React = require("react");
+var React = __importStar(require("react"));
function MyComp2(props) {
return null;
}
diff --git a/tests/baselines/reference/spreadExpressionContextualTypeWithNamespace.js b/tests/baselines/reference/spreadExpressionContextualTypeWithNamespace.js
index 29f674ced2bbe..63c7809baa15a 100644
--- a/tests/baselines/reference/spreadExpressionContextualTypeWithNamespace.js
+++ b/tests/baselines/reference/spreadExpressionContextualTypeWithNamespace.js
@@ -61,8 +61,41 @@ var __assign = (this && this.__assign) || function () {
};
return __assign.apply(this, arguments);
};
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
-var stuff = require("./spreadExpressionContextualTypeWithNamespace_0");
+var stuff = __importStar(require("./spreadExpressionContextualTypeWithNamespace_0"));
stuff.func;
stuff.klass;
stuff.obj;
diff --git a/tests/baselines/reference/stackDepthLimitCastingType.js b/tests/baselines/reference/stackDepthLimitCastingType.js
index 9189f04d5f3d1..29bc9ddd739be 100644
--- a/tests/baselines/reference/stackDepthLimitCastingType.js
+++ b/tests/baselines/reference/stackDepthLimitCastingType.js
@@ -41,7 +41,40 @@ hoge.fetch(null as any);
//// [index.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
-var Backbone = require("backbone");
+var Backbone = __importStar(require("backbone"));
const hoge = new Backbone.Model();
hoge.fetch(null);
diff --git a/tests/baselines/reference/staticInstanceResolution5.errors.txt b/tests/baselines/reference/staticInstanceResolution5.errors.txt
index 296f8ade299fe..d44a6f4221e75 100644
--- a/tests/baselines/reference/staticInstanceResolution5.errors.txt
+++ b/tests/baselines/reference/staticInstanceResolution5.errors.txt
@@ -4,7 +4,7 @@ staticInstanceResolution5_1.ts(6,16): error TS2709: Cannot use namespace 'WinJS'
==== staticInstanceResolution5_1.ts (3 errors) ====
- import WinJS = require('staticInstanceResolution5_0');
+ import WinJS = require('./staticInstanceResolution5_0');
// these 3 should be errors
var x = (w1: WinJS) => { };
diff --git a/tests/baselines/reference/staticInstanceResolution5.js b/tests/baselines/reference/staticInstanceResolution5.js
index b892e450f7715..f297e0196b88f 100644
--- a/tests/baselines/reference/staticInstanceResolution5.js
+++ b/tests/baselines/reference/staticInstanceResolution5.js
@@ -8,7 +8,7 @@ export class Promise {
}
//// [staticInstanceResolution5_1.ts]
-import WinJS = require('staticInstanceResolution5_0');
+import WinJS = require('./staticInstanceResolution5_0');
// these 3 should be errors
var x = (w1: WinJS) => { };
@@ -17,23 +17,19 @@ function z(w3: WinJS) { }
//// [staticInstanceResolution5_0.js]
-define(["require", "exports"], function (require, exports) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.Promise = void 0;
- class Promise {
- static timeout(delay) {
- return null;
- }
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.Promise = void 0;
+class Promise {
+ static timeout(delay) {
+ return null;
}
- exports.Promise = Promise;
-});
+}
+exports.Promise = Promise;
//// [staticInstanceResolution5_1.js]
-define(["require", "exports"], function (require, exports) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- // these 3 should be errors
- var x = (w1) => { };
- var y = function (w2) { };
- function z(w3) { }
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+// these 3 should be errors
+var x = (w1) => { };
+var y = function (w2) { };
+function z(w3) { }
diff --git a/tests/baselines/reference/staticInstanceResolution5.symbols b/tests/baselines/reference/staticInstanceResolution5.symbols
index 9d178615f6a36..60e199749224e 100644
--- a/tests/baselines/reference/staticInstanceResolution5.symbols
+++ b/tests/baselines/reference/staticInstanceResolution5.symbols
@@ -1,7 +1,7 @@
//// [tests/cases/compiler/staticInstanceResolution5.ts] ////
=== staticInstanceResolution5_1.ts ===
-import WinJS = require('staticInstanceResolution5_0');
+import WinJS = require('./staticInstanceResolution5_0');
>WinJS : Symbol(WinJS, Decl(staticInstanceResolution5_1.ts, 0, 0))
// these 3 should be errors
diff --git a/tests/baselines/reference/staticInstanceResolution5.types b/tests/baselines/reference/staticInstanceResolution5.types
index b61028cde79de..e3221b6b7161a 100644
--- a/tests/baselines/reference/staticInstanceResolution5.types
+++ b/tests/baselines/reference/staticInstanceResolution5.types
@@ -1,7 +1,7 @@
//// [tests/cases/compiler/staticInstanceResolution5.ts] ////
=== staticInstanceResolution5_1.ts ===
-import WinJS = require('staticInstanceResolution5_0');
+import WinJS = require('./staticInstanceResolution5_0');
>WinJS : typeof WinJS
> : ^^^^^^^^^^^^
diff --git a/tests/baselines/reference/strictModeWordInImportDeclaration.errors.txt b/tests/baselines/reference/strictModeWordInImportDeclaration.errors.txt
index 9c6385f8461b0..e1b1be31e6546 100644
--- a/tests/baselines/reference/strictModeWordInImportDeclaration.errors.txt
+++ b/tests/baselines/reference/strictModeWordInImportDeclaration.errors.txt
@@ -1,9 +1,9 @@
strictModeWordInImportDeclaration.ts(2,13): error TS1214: Identifier expected. 'package' is a reserved word in strict mode. Modules are automatically in strict mode.
-strictModeWordInImportDeclaration.ts(2,26): error TS2792: Cannot find module './1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+strictModeWordInImportDeclaration.ts(2,26): error TS2307: Cannot find module './1' or its corresponding type declarations.
strictModeWordInImportDeclaration.ts(3,16): error TS1214: Identifier expected. 'private' is a reserved word in strict mode. Modules are automatically in strict mode.
-strictModeWordInImportDeclaration.ts(3,30): error TS2792: Cannot find module './1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+strictModeWordInImportDeclaration.ts(3,30): error TS2307: Cannot find module './1' or its corresponding type declarations.
strictModeWordInImportDeclaration.ts(4,8): error TS1214: Identifier expected. 'public' is a reserved word in strict mode. Modules are automatically in strict mode.
-strictModeWordInImportDeclaration.ts(4,20): error TS2792: Cannot find module './1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+strictModeWordInImportDeclaration.ts(4,20): error TS2307: Cannot find module './1' or its corresponding type declarations.
==== strictModeWordInImportDeclaration.ts (6 errors) ====
@@ -12,14 +12,14 @@ strictModeWordInImportDeclaration.ts(4,20): error TS2792: Cannot find module './
~~~~~~~
!!! error TS1214: Identifier expected. 'package' is a reserved word in strict mode. Modules are automatically in strict mode.
~~~~~
-!!! error TS2792: Cannot find module './1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+!!! error TS2307: Cannot find module './1' or its corresponding type declarations.
import {foo as private} from "./1"
~~~~~~~
!!! error TS1214: Identifier expected. 'private' is a reserved word in strict mode. Modules are automatically in strict mode.
~~~~~
-!!! error TS2792: Cannot find module './1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+!!! error TS2307: Cannot find module './1' or its corresponding type declarations.
import public from "./1"
~~~~~~
!!! error TS1214: Identifier expected. 'public' is a reserved word in strict mode. Modules are automatically in strict mode.
~~~~~
-!!! error TS2792: Cannot find module './1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
\ No newline at end of file
+!!! error TS2307: Cannot find module './1' or its corresponding type declarations.
\ No newline at end of file
diff --git a/tests/baselines/reference/symlinkedWorkspaceDependenciesNoDirectLinkGeneratesNonrelativeName.js b/tests/baselines/reference/symlinkedWorkspaceDependenciesNoDirectLinkGeneratesNonrelativeName.js
index bcc9d95977dc5..2fb1a85d85724 100644
--- a/tests/baselines/reference/symlinkedWorkspaceDependenciesNoDirectLinkGeneratesNonrelativeName.js
+++ b/tests/baselines/reference/symlinkedWorkspaceDependenciesNoDirectLinkGeneratesNonrelativeName.js
@@ -29,9 +29,42 @@ export const a = pkg.invoke();
//// [index.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.a = void 0;
-var pkg = require("package-b");
+var pkg = __importStar(require("package-b"));
exports.a = pkg.invoke();
diff --git a/tests/baselines/reference/symlinkedWorkspaceDependenciesNoDirectLinkOptionalGeneratesNonrelativeName.js b/tests/baselines/reference/symlinkedWorkspaceDependenciesNoDirectLinkOptionalGeneratesNonrelativeName.js
index 43b73b8609b8b..c63f1f8d94a1f 100644
--- a/tests/baselines/reference/symlinkedWorkspaceDependenciesNoDirectLinkOptionalGeneratesNonrelativeName.js
+++ b/tests/baselines/reference/symlinkedWorkspaceDependenciesNoDirectLinkOptionalGeneratesNonrelativeName.js
@@ -31,9 +31,42 @@ export const a = pkg.invoke();
//// [index.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.a = void 0;
-var pkg = require("package-b");
+var pkg = __importStar(require("package-b"));
exports.a = pkg.invoke();
diff --git a/tests/baselines/reference/symlinkedWorkspaceDependenciesNoDirectLinkPeerGeneratesNonrelativeName.js b/tests/baselines/reference/symlinkedWorkspaceDependenciesNoDirectLinkPeerGeneratesNonrelativeName.js
index bfeee1d566342..4ea2dfa82fa9b 100644
--- a/tests/baselines/reference/symlinkedWorkspaceDependenciesNoDirectLinkPeerGeneratesNonrelativeName.js
+++ b/tests/baselines/reference/symlinkedWorkspaceDependenciesNoDirectLinkPeerGeneratesNonrelativeName.js
@@ -31,9 +31,42 @@ export const a = pkg.invoke();
//// [index.js]
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.a = void 0;
-var pkg = require("package-b");
+var pkg = __importStar(require("package-b"));
exports.a = pkg.invoke();
diff --git a/tests/baselines/reference/syntheticDefaultExportsWithDynamicImports.errors.txt b/tests/baselines/reference/syntheticDefaultExportsWithDynamicImports.errors.txt
index 1cb7bc88fe9c6..7f53b98d95bff 100644
--- a/tests/baselines/reference/syntheticDefaultExportsWithDynamicImports.errors.txt
+++ b/tests/baselines/reference/syntheticDefaultExportsWithDynamicImports.errors.txt
@@ -1,9 +1,11 @@
error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.
error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.
!!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== node_modules/package/index.d.ts (0 errors) ====
declare function packageExport(x: number): string;
export = packageExport;
diff --git a/tests/baselines/reference/systemDefaultExportCommentValidity.errors.txt b/tests/baselines/reference/systemDefaultExportCommentValidity.errors.txt
new file mode 100644
index 0000000000000..fdb0c2a28e904
--- /dev/null
+++ b/tests/baselines/reference/systemDefaultExportCommentValidity.errors.txt
@@ -0,0 +1,9 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== systemDefaultExportCommentValidity.ts (0 errors) ====
+ const Home = {}
+
+ export default Home
+ // There is intentionally no semicolon on the prior line, this comment should not break emit
\ No newline at end of file
diff --git a/tests/baselines/reference/systemDefaultImportCallable.errors.txt b/tests/baselines/reference/systemDefaultImportCallable.errors.txt
new file mode 100644
index 0000000000000..191c44f1953b3
--- /dev/null
+++ b/tests/baselines/reference/systemDefaultImportCallable.errors.txt
@@ -0,0 +1,18 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== core-js.d.ts (0 errors) ====
+ declare module core {
+ var String: {
+ repeat(text: string, count: number): string;
+ };
+ }
+ declare module "core-js/fn/string/repeat" {
+ var repeat: typeof core.String.repeat;
+ export default repeat;
+ }
+==== greeter.ts (0 errors) ====
+ import repeat from "core-js/fn/string/repeat";
+
+ const _: string = repeat(new Date().toUTCString() + " ", 2);
\ No newline at end of file
diff --git a/tests/baselines/reference/systemExportAssignment.errors.txt b/tests/baselines/reference/systemExportAssignment.errors.txt
new file mode 100644
index 0000000000000..e395bb6ce9566
--- /dev/null
+++ b/tests/baselines/reference/systemExportAssignment.errors.txt
@@ -0,0 +1,11 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== a.d.ts (0 errors) ====
+ declare var a: number;
+ export = a; // OK, in ambient context
+
+==== b.ts (0 errors) ====
+ import * as a from "a";
+
\ No newline at end of file
diff --git a/tests/baselines/reference/systemExportAssignment2.errors.txt b/tests/baselines/reference/systemExportAssignment2.errors.txt
index bc47a9626aeaa..b9a7639bdf430 100644
--- a/tests/baselines/reference/systemExportAssignment2.errors.txt
+++ b/tests/baselines/reference/systemExportAssignment2.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
a.ts(2,1): error TS1218: Export assignment is not supported when '--module' flag is 'system'.
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== a.ts (1 errors) ====
var a = 10;
export = a; // Error: export = not allowed in ES6
diff --git a/tests/baselines/reference/systemExportAssignment3.errors.txt b/tests/baselines/reference/systemExportAssignment3.errors.txt
new file mode 100644
index 0000000000000..1cba25055d5a6
--- /dev/null
+++ b/tests/baselines/reference/systemExportAssignment3.errors.txt
@@ -0,0 +1,13 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== modules.d.ts (0 errors) ====
+ declare module "a" {
+ var a: number;
+ export = a; // OK, in ambient context
+ }
+
+==== b.ts (0 errors) ====
+ import * as a from "a";
+
\ No newline at end of file
diff --git a/tests/baselines/reference/systemJsForInNoException.errors.txt b/tests/baselines/reference/systemJsForInNoException.errors.txt
new file mode 100644
index 0000000000000..de456a5e717c6
--- /dev/null
+++ b/tests/baselines/reference/systemJsForInNoException.errors.txt
@@ -0,0 +1,8 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== systemJsForInNoException.ts (0 errors) ====
+ export const obj = { a: 1 };
+ for (var key in obj)
+ console.log(obj[key]);
\ No newline at end of file
diff --git a/tests/baselines/reference/systemJsForInNoException.types b/tests/baselines/reference/systemJsForInNoException.types
index ad8e11ca9c644..002f00aaffeaf 100644
--- a/tests/baselines/reference/systemJsForInNoException.types
+++ b/tests/baselines/reference/systemJsForInNoException.types
@@ -26,7 +26,8 @@ for (var key in obj)
> : ^^^^^^^
>log : (...data: any[]) => void
> : ^^^^ ^^ ^^^^^
->obj[key] : error
+>obj[key] : any
+> : ^^^
>obj : { a: number; }
> : ^^^^^^^^^^^^^^
>key : string
diff --git a/tests/baselines/reference/systemModule1.errors.txt b/tests/baselines/reference/systemModule1.errors.txt
new file mode 100644
index 0000000000000..e71f88a863151
--- /dev/null
+++ b/tests/baselines/reference/systemModule1.errors.txt
@@ -0,0 +1,6 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== systemModule1.ts (0 errors) ====
+ export var x = 1;
\ No newline at end of file
diff --git a/tests/baselines/reference/systemModule10.errors.txt b/tests/baselines/reference/systemModule10.errors.txt
index 54c0ec5d7492a..7d61e7e751ed4 100644
--- a/tests/baselines/reference/systemModule10.errors.txt
+++ b/tests/baselines/reference/systemModule10.errors.txt
@@ -1,7 +1,9 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
systemModule10.ts(1,20): error TS2792: Cannot find module 'file1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
systemModule10.ts(2,21): error TS2792: Cannot find module 'file2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== systemModule10.ts (2 errors) ====
import n, {x} from 'file1'
~~~~~~~
diff --git a/tests/baselines/reference/systemModule10_ES5.errors.txt b/tests/baselines/reference/systemModule10_ES5.errors.txt
index e5d2e568ab9af..74d1e205ec46c 100644
--- a/tests/baselines/reference/systemModule10_ES5.errors.txt
+++ b/tests/baselines/reference/systemModule10_ES5.errors.txt
@@ -1,7 +1,9 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
systemModule10_ES5.ts(1,20): error TS2792: Cannot find module 'file1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
systemModule10_ES5.ts(2,21): error TS2792: Cannot find module 'file2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== systemModule10_ES5.ts (2 errors) ====
import n, {x} from 'file1'
~~~~~~~
diff --git a/tests/baselines/reference/systemModule11.errors.txt b/tests/baselines/reference/systemModule11.errors.txt
index 9b7de8157beb4..5266c7cac0c3b 100644
--- a/tests/baselines/reference/systemModule11.errors.txt
+++ b/tests/baselines/reference/systemModule11.errors.txt
@@ -1,3 +1,4 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
file1.ts(3,15): error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
file2.ts(6,15): error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
file3.ts(1,25): error TS2792: Cannot find module 'a'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
@@ -6,6 +7,7 @@ file4.ts(8,27): error TS2792: Cannot find module 'a'. Did you mean to set the 'm
file5.ts(2,15): error TS2792: Cannot find module 'a'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== file1.ts (1 errors) ====
export var x;
export function foo() {}
diff --git a/tests/baselines/reference/systemModule12.errors.txt b/tests/baselines/reference/systemModule12.errors.txt
index f841e1dc9b0bb..86a8b181d1660 100644
--- a/tests/baselines/reference/systemModule12.errors.txt
+++ b/tests/baselines/reference/systemModule12.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
systemModule12.ts(2,15): error TS2792: Cannot find module 'file1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== systemModule12.ts (1 errors) ====
///
import n from 'file1'
diff --git a/tests/baselines/reference/systemModule13.errors.txt b/tests/baselines/reference/systemModule13.errors.txt
new file mode 100644
index 0000000000000..6f51819127913
--- /dev/null
+++ b/tests/baselines/reference/systemModule13.errors.txt
@@ -0,0 +1,8 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== systemModule13.ts (0 errors) ====
+ export let [x,y,z] = [1, 2, 3];
+ export const {a: z0, b: {c: z1}} = {a: true, b: {c: "123"}};
+ for ([x] of [[1]]) {}
\ No newline at end of file
diff --git a/tests/baselines/reference/systemModule14.errors.txt b/tests/baselines/reference/systemModule14.errors.txt
index 9e68e02c4158e..87a6c046415e8 100644
--- a/tests/baselines/reference/systemModule14.errors.txt
+++ b/tests/baselines/reference/systemModule14.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
systemModule14.ts(5,17): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== systemModule14.ts (1 errors) ====
function foo() {
return a;
diff --git a/tests/baselines/reference/systemModule15.errors.txt b/tests/baselines/reference/systemModule15.errors.txt
new file mode 100644
index 0000000000000..a22b09ee6fb07
--- /dev/null
+++ b/tests/baselines/reference/systemModule15.errors.txt
@@ -0,0 +1,31 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== file1.ts (0 errors) ====
+ import * as moduleB from "./file2"
+
+ declare function use(v: any): void;
+
+ use(moduleB.value);
+ use(moduleB.moduleC);
+ use(moduleB.moduleCStar);
+
+==== file2.ts (0 errors) ====
+ import * as moduleCStar from "./file3"
+ import {value2} from "./file4"
+ import moduleC from "./file3"
+ import {value} from "./file3"
+
+ export {
+ moduleCStar,
+ moduleC,
+ value
+ }
+
+==== file3.ts (0 errors) ====
+ export var value = "youpi";
+ export default value;
+
+==== file4.ts (0 errors) ====
+ export var value2 = "v";
\ No newline at end of file
diff --git a/tests/baselines/reference/systemModule15.types b/tests/baselines/reference/systemModule15.types
index a648d1aacc58d..e26a11f1e8bef 100644
--- a/tests/baselines/reference/systemModule15.types
+++ b/tests/baselines/reference/systemModule15.types
@@ -9,6 +9,7 @@ declare function use(v: any): void;
>use : (v: any) => void
> : ^ ^^ ^^^^^
>v : any
+> : ^^^
use(moduleB.value);
>use(moduleB.value) : void
diff --git a/tests/baselines/reference/systemModule16.errors.txt b/tests/baselines/reference/systemModule16.errors.txt
index cda21993deb8f..99c99fd90e087 100644
--- a/tests/baselines/reference/systemModule16.errors.txt
+++ b/tests/baselines/reference/systemModule16.errors.txt
@@ -1,3 +1,4 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
systemModule16.ts(1,20): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
systemModule16.ts(2,20): error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
systemModule16.ts(3,15): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
@@ -10,6 +11,7 @@ systemModule16.ts(10,1): error TS2695: Left side of comma operator is unused and
systemModule16.ts(10,1): error TS2695: Left side of comma operator is unused and has no side effects.
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== systemModule16.ts (10 errors) ====
import * as x from "foo";
~~~~~
diff --git a/tests/baselines/reference/systemModule17.errors.txt b/tests/baselines/reference/systemModule17.errors.txt
new file mode 100644
index 0000000000000..28f5dc8fbadb9
--- /dev/null
+++ b/tests/baselines/reference/systemModule17.errors.txt
@@ -0,0 +1,41 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== f1.ts (0 errors) ====
+ export class A {}
+ export interface I {}
+
+==== f2.ts (0 errors) ====
+ var x = 1;
+ interface I { }
+
+ namespace N {
+ export var x = 1;
+ export interface I { }
+ }
+
+ import IX = N.x;
+ import II = N.I;
+ import { A, A as EA, I as EI } from "f1";
+
+ export {x};
+ export {x as x1};
+
+ export {I};
+ export {I as I1};
+
+ export {A};
+ export {A as A1};
+
+ export {EA};
+ export {EA as EA1};
+
+ export {EI };
+ export {EI as EI1};
+
+ export {IX};
+ export {IX as IX1};
+
+ export {II};
+ export {II as II1};
\ No newline at end of file
diff --git a/tests/baselines/reference/systemModule18.errors.txt b/tests/baselines/reference/systemModule18.errors.txt
new file mode 100644
index 0000000000000..ec1246650c923
--- /dev/null
+++ b/tests/baselines/reference/systemModule18.errors.txt
@@ -0,0 +1,12 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== index.ts (0 errors) ====
+ export import React = require("./react.js");
+
+==== react.ts (0 errors) ====
+ export function createElement() {}
+ export function lazy() {}
+ export function useState() {}
+
\ No newline at end of file
diff --git a/tests/baselines/reference/systemModule2.errors.txt b/tests/baselines/reference/systemModule2.errors.txt
index c1ef2a8bab696..a860f4ab1278c 100644
--- a/tests/baselines/reference/systemModule2.errors.txt
+++ b/tests/baselines/reference/systemModule2.errors.txt
@@ -1,6 +1,8 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
systemModule2.ts(2,1): error TS1218: Export assignment is not supported when '--module' flag is 'system'.
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== systemModule2.ts (1 errors) ====
var x = 1;
export = x;
diff --git a/tests/baselines/reference/systemModule3.errors.txt b/tests/baselines/reference/systemModule3.errors.txt
new file mode 100644
index 0000000000000..ecb71076cde52
--- /dev/null
+++ b/tests/baselines/reference/systemModule3.errors.txt
@@ -0,0 +1,15 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== file1.ts (0 errors) ====
+ export default function() {}
+
+==== file2.ts (0 errors) ====
+ export default function f() {}
+
+==== file3.ts (0 errors) ====
+ export default class C {}
+
+==== file4.ts (0 errors) ====
+ export default class {}
\ No newline at end of file
diff --git a/tests/baselines/reference/systemModule4.errors.txt b/tests/baselines/reference/systemModule4.errors.txt
new file mode 100644
index 0000000000000..b2b6905abca14
--- /dev/null
+++ b/tests/baselines/reference/systemModule4.errors.txt
@@ -0,0 +1,7 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== systemModule4.ts (0 errors) ====
+ export var x = 1;
+ export var y;
\ No newline at end of file
diff --git a/tests/baselines/reference/systemModule4.types b/tests/baselines/reference/systemModule4.types
index 47145bb374727..e029d2ca8449a 100644
--- a/tests/baselines/reference/systemModule4.types
+++ b/tests/baselines/reference/systemModule4.types
@@ -9,4 +9,5 @@ export var x = 1;
export var y;
>y : any
+> : ^^^
diff --git a/tests/baselines/reference/systemModule5.errors.txt b/tests/baselines/reference/systemModule5.errors.txt
new file mode 100644
index 0000000000000..773df3c2216cf
--- /dev/null
+++ b/tests/baselines/reference/systemModule5.errors.txt
@@ -0,0 +1,7 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== systemModule5.ts (0 errors) ====
+ export function foo() {}
+
\ No newline at end of file
diff --git a/tests/baselines/reference/systemModule6.errors.txt b/tests/baselines/reference/systemModule6.errors.txt
new file mode 100644
index 0000000000000..ebdac668ca854
--- /dev/null
+++ b/tests/baselines/reference/systemModule6.errors.txt
@@ -0,0 +1,10 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== systemModule6.ts (0 errors) ====
+ export class C {}
+ function foo() {
+ new C();
+ }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/systemModule7.errors.txt b/tests/baselines/reference/systemModule7.errors.txt
new file mode 100644
index 0000000000000..883d6b1aef98a
--- /dev/null
+++ b/tests/baselines/reference/systemModule7.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== systemModule7.ts (0 errors) ====
+ // filename: instantiatedModule.ts
+ export module M {
+ var x = 1;
+ }
+
+ // filename: nonInstantiatedModule.ts
+ export module M {
+ interface I {}
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/systemModule8.errors.txt b/tests/baselines/reference/systemModule8.errors.txt
new file mode 100644
index 0000000000000..7c3d9634a2917
--- /dev/null
+++ b/tests/baselines/reference/systemModule8.errors.txt
@@ -0,0 +1,34 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== systemModule8.ts (0 errors) ====
+ export var x;
+ x = 1;
+ x++;
+ x--;
+ ++x;
+ --x;
+ x += 1;
+ x -= 1;
+ x *= 1;
+ x /= 1;
+ x |= 1;
+ x &= 1;
+ x + 1;
+ x - 1;
+ x & 1;
+ x | 1;
+ for (x = 5;;x++) {}
+ for (x = 8;;x--) {}
+ for (x = 15;;++x) {}
+ for (x = 18;;--x) {}
+
+ for (let x = 50;;) {}
+ function foo() {
+ x = 100;
+ }
+
+ export let [y] = [1];
+ export const {a: z0, b: {c: z1}} = {a: true, b: {c: "123"}};
+ for ([x] of [[1]]) {}
\ No newline at end of file
diff --git a/tests/baselines/reference/systemModule8.types b/tests/baselines/reference/systemModule8.types
index f6582cdf6c999..666f87c14d198 100644
--- a/tests/baselines/reference/systemModule8.types
+++ b/tests/baselines/reference/systemModule8.types
@@ -3,11 +3,13 @@
=== systemModule8.ts ===
export var x;
>x : any
+> : ^^^
x = 1;
>x = 1 : 1
> : ^
>x : any
+> : ^^^
>1 : 1
> : ^
@@ -15,25 +17,31 @@ x++;
>x++ : number
> : ^^^^^^
>x : any
+> : ^^^
x--;
>x-- : number
> : ^^^^^^
>x : any
+> : ^^^
++x;
>++x : number
> : ^^^^^^
>x : any
+> : ^^^
--x;
>--x : number
> : ^^^^^^
>x : any
+> : ^^^
x += 1;
>x += 1 : any
+> : ^^^
>x : any
+> : ^^^
>1 : 1
> : ^
@@ -41,6 +49,7 @@ x -= 1;
>x -= 1 : number
> : ^^^^^^
>x : any
+> : ^^^
>1 : 1
> : ^
@@ -48,6 +57,7 @@ x *= 1;
>x *= 1 : number
> : ^^^^^^
>x : any
+> : ^^^
>1 : 1
> : ^
@@ -55,6 +65,7 @@ x /= 1;
>x /= 1 : number
> : ^^^^^^
>x : any
+> : ^^^
>1 : 1
> : ^
@@ -62,6 +73,7 @@ x |= 1;
>x |= 1 : number
> : ^^^^^^
>x : any
+> : ^^^
>1 : 1
> : ^
@@ -69,12 +81,15 @@ x &= 1;
>x &= 1 : number
> : ^^^^^^
>x : any
+> : ^^^
>1 : 1
> : ^
x + 1;
>x + 1 : any
+> : ^^^
>x : any
+> : ^^^
>1 : 1
> : ^
@@ -82,6 +97,7 @@ x - 1;
>x - 1 : number
> : ^^^^^^
>x : any
+> : ^^^
>1 : 1
> : ^
@@ -89,6 +105,7 @@ x & 1;
>x & 1 : number
> : ^^^^^^
>x : any
+> : ^^^
>1 : 1
> : ^
@@ -96,6 +113,7 @@ x | 1;
>x | 1 : number
> : ^^^^^^
>x : any
+> : ^^^
>1 : 1
> : ^
@@ -103,41 +121,49 @@ for (x = 5;;x++) {}
>x = 5 : 5
> : ^
>x : any
+> : ^^^
>5 : 5
> : ^
>x++ : number
> : ^^^^^^
>x : any
+> : ^^^
for (x = 8;;x--) {}
>x = 8 : 8
> : ^
>x : any
+> : ^^^
>8 : 8
> : ^
>x-- : number
> : ^^^^^^
>x : any
+> : ^^^
for (x = 15;;++x) {}
>x = 15 : 15
> : ^^
>x : any
+> : ^^^
>15 : 15
> : ^^
>++x : number
> : ^^^^^^
>x : any
+> : ^^^
for (x = 18;;--x) {}
>x = 18 : 18
> : ^^
>x : any
+> : ^^^
>18 : 18
> : ^^
>--x : number
> : ^^^^^^
>x : any
+> : ^^^
for (let x = 50;;) {}
>x : number
@@ -153,6 +179,7 @@ function foo() {
>x = 100 : 100
> : ^^^
>x : any
+> : ^^^
>100 : 100
> : ^^^
}
@@ -195,6 +222,7 @@ for ([x] of [[1]]) {}
>[x] : [any]
> : ^^^^^
>x : any
+> : ^^^
>[[1]] : number[][]
> : ^^^^^^^^^^
>[1] : number[]
diff --git a/tests/baselines/reference/systemModule9.errors.txt b/tests/baselines/reference/systemModule9.errors.txt
index be5991350e5de..29ce0b0a6f00f 100644
--- a/tests/baselines/reference/systemModule9.errors.txt
+++ b/tests/baselines/reference/systemModule9.errors.txt
@@ -1,3 +1,4 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
systemModule9.ts(1,21): error TS2792: Cannot find module 'file1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
systemModule9.ts(2,25): error TS2792: Cannot find module 'file2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
systemModule9.ts(3,15): error TS2792: Cannot find module 'file3'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
@@ -6,6 +7,7 @@ systemModule9.ts(6,22): error TS2792: Cannot find module 'file6'. Did you mean t
systemModule9.ts(16,15): error TS2792: Cannot find module 'file7'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== systemModule9.ts (6 errors) ====
import * as ns from 'file1';
~~~~~~~
diff --git a/tests/baselines/reference/systemModuleAmbientDeclarations.errors.txt b/tests/baselines/reference/systemModuleAmbientDeclarations.errors.txt
new file mode 100644
index 0000000000000..8c463dac1d7e3
--- /dev/null
+++ b/tests/baselines/reference/systemModuleAmbientDeclarations.errors.txt
@@ -0,0 +1,30 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== file1.ts (0 errors) ====
+ declare class Promise { }
+ declare function Foo(): void;
+ declare class C {}
+ declare enum E {X = 1};
+
+ export var promise = Promise;
+ export var foo = Foo;
+ export var c = C;
+ export var e = E;
+
+==== file2.ts (0 errors) ====
+ export declare function foo();
+
+==== file3.ts (0 errors) ====
+ export declare class C {}
+
+==== file4.ts (0 errors) ====
+ export declare var v: number;
+
+==== file5.ts (0 errors) ====
+ export declare enum E {X = 1}
+
+==== file6.ts (0 errors) ====
+ export declare module M { var v: number; }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/systemModuleConstEnums.errors.txt b/tests/baselines/reference/systemModuleConstEnums.errors.txt
new file mode 100644
index 0000000000000..6cf45219e3f01
--- /dev/null
+++ b/tests/baselines/reference/systemModuleConstEnums.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== systemModuleConstEnums.ts (0 errors) ====
+ declare function use(a: any);
+ const enum TopLevelConstEnum { X }
+
+ export function foo() {
+ use(TopLevelConstEnum.X);
+ use(M.NonTopLevelConstEnum.X);
+ }
+
+ module M {
+ export const enum NonTopLevelConstEnum { X }
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/systemModuleConstEnums.types b/tests/baselines/reference/systemModuleConstEnums.types
index 56d1f19b1e2de..5c81a34b24f23 100644
--- a/tests/baselines/reference/systemModuleConstEnums.types
+++ b/tests/baselines/reference/systemModuleConstEnums.types
@@ -5,6 +5,7 @@ declare function use(a: any);
>use : (a: any) => any
> : ^ ^^ ^^^^^^^^
>a : any
+> : ^^^
const enum TopLevelConstEnum { X }
>TopLevelConstEnum : TopLevelConstEnum
@@ -18,6 +19,7 @@ export function foo() {
use(TopLevelConstEnum.X);
>use(TopLevelConstEnum.X) : any
+> : ^^^
>use : (a: any) => any
> : ^ ^^ ^^^^^^^^
>TopLevelConstEnum.X : TopLevelConstEnum
@@ -29,6 +31,7 @@ export function foo() {
use(M.NonTopLevelConstEnum.X);
>use(M.NonTopLevelConstEnum.X) : any
+> : ^^^
>use : (a: any) => any
> : ^ ^^ ^^^^^^^^
>M.NonTopLevelConstEnum.X : M.NonTopLevelConstEnum
diff --git a/tests/baselines/reference/systemModuleConstEnumsSeparateCompilation.errors.txt b/tests/baselines/reference/systemModuleConstEnumsSeparateCompilation.errors.txt
new file mode 100644
index 0000000000000..642972cca1b8f
--- /dev/null
+++ b/tests/baselines/reference/systemModuleConstEnumsSeparateCompilation.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== systemModuleConstEnumsSeparateCompilation.ts (0 errors) ====
+ declare function use(a: any);
+ const enum TopLevelConstEnum { X }
+
+ export function foo() {
+ use(TopLevelConstEnum.X);
+ use(M.NonTopLevelConstEnum.X);
+ }
+
+ module M {
+ export const enum NonTopLevelConstEnum { X }
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/systemModuleConstEnumsSeparateCompilation.types b/tests/baselines/reference/systemModuleConstEnumsSeparateCompilation.types
index 89c2edb8e0e8b..4c915efbf94a9 100644
--- a/tests/baselines/reference/systemModuleConstEnumsSeparateCompilation.types
+++ b/tests/baselines/reference/systemModuleConstEnumsSeparateCompilation.types
@@ -5,6 +5,7 @@ declare function use(a: any);
>use : (a: any) => any
> : ^ ^^ ^^^^^^^^
>a : any
+> : ^^^
const enum TopLevelConstEnum { X }
>TopLevelConstEnum : TopLevelConstEnum
@@ -18,6 +19,7 @@ export function foo() {
use(TopLevelConstEnum.X);
>use(TopLevelConstEnum.X) : any
+> : ^^^
>use : (a: any) => any
> : ^ ^^ ^^^^^^^^
>TopLevelConstEnum.X : TopLevelConstEnum
@@ -29,6 +31,7 @@ export function foo() {
use(M.NonTopLevelConstEnum.X);
>use(M.NonTopLevelConstEnum.X) : any
+> : ^^^
>use : (a: any) => any
> : ^ ^^ ^^^^^^^^
>M.NonTopLevelConstEnum.X : M.NonTopLevelConstEnum
diff --git a/tests/baselines/reference/systemModuleDeclarationMerging.errors.txt b/tests/baselines/reference/systemModuleDeclarationMerging.errors.txt
new file mode 100644
index 0000000000000..67821530cf609
--- /dev/null
+++ b/tests/baselines/reference/systemModuleDeclarationMerging.errors.txt
@@ -0,0 +1,13 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== systemModuleDeclarationMerging.ts (0 errors) ====
+ export function F() {}
+ export module F { var x; }
+
+ export class C {}
+ export module C { var x; }
+
+ export enum E {}
+ export module E { var x; }
\ No newline at end of file
diff --git a/tests/baselines/reference/systemModuleDeclarationMerging.types b/tests/baselines/reference/systemModuleDeclarationMerging.types
index 607f30b28f75a..7e450adda6611 100644
--- a/tests/baselines/reference/systemModuleDeclarationMerging.types
+++ b/tests/baselines/reference/systemModuleDeclarationMerging.types
@@ -9,6 +9,7 @@ export module F { var x; }
>F : typeof F
> : ^^^^^^^^
>x : any
+> : ^^^
export class C {}
>C : C
@@ -18,6 +19,7 @@ export module C { var x; }
>C : typeof C
> : ^^^^^^^^
>x : any
+> : ^^^
export enum E {}
>E : E
@@ -27,4 +29,5 @@ export module E { var x; }
>E : typeof E
> : ^^^^^^^^
>x : any
+> : ^^^
diff --git a/tests/baselines/reference/systemModuleExportDefault.errors.txt b/tests/baselines/reference/systemModuleExportDefault.errors.txt
new file mode 100644
index 0000000000000..900523915e198
--- /dev/null
+++ b/tests/baselines/reference/systemModuleExportDefault.errors.txt
@@ -0,0 +1,17 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== file1.ts (0 errors) ====
+ export default function() {}
+
+==== file2.ts (0 errors) ====
+ export default function foo() {}
+
+==== file3.ts (0 errors) ====
+ export default class {}
+
+==== file4.ts (0 errors) ====
+ export default class C {}
+
+
\ No newline at end of file
diff --git a/tests/baselines/reference/systemModuleNonTopLevelModuleMembers.errors.txt b/tests/baselines/reference/systemModuleNonTopLevelModuleMembers.errors.txt
new file mode 100644
index 0000000000000..aae479df5aff6
--- /dev/null
+++ b/tests/baselines/reference/systemModuleNonTopLevelModuleMembers.errors.txt
@@ -0,0 +1,16 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== systemModuleNonTopLevelModuleMembers.ts (0 errors) ====
+ export class TopLevelClass {}
+ export module TopLevelModule {var v;}
+ export function TopLevelFunction(): void {}
+ export enum TopLevelEnum {E}
+
+ export module TopLevelModule2 {
+ export class NonTopLevelClass {}
+ export module NonTopLevelModule {var v;}
+ export function NonTopLevelFunction(): void {}
+ export enum NonTopLevelEnum {E}
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/systemModuleNonTopLevelModuleMembers.types b/tests/baselines/reference/systemModuleNonTopLevelModuleMembers.types
index 4e87b84df2ec9..4247d85b9e1d1 100644
--- a/tests/baselines/reference/systemModuleNonTopLevelModuleMembers.types
+++ b/tests/baselines/reference/systemModuleNonTopLevelModuleMembers.types
@@ -9,6 +9,7 @@ export module TopLevelModule {var v;}
>TopLevelModule : typeof TopLevelModule
> : ^^^^^^^^^^^^^^^^^^^^^
>v : any
+> : ^^^
export function TopLevelFunction(): void {}
>TopLevelFunction : () => void
@@ -32,6 +33,7 @@ export module TopLevelModule2 {
>NonTopLevelModule : typeof NonTopLevelModule
> : ^^^^^^^^^^^^^^^^^^^^^^^^
>v : any
+> : ^^^
export function NonTopLevelFunction(): void {}
>NonTopLevelFunction : () => void
diff --git a/tests/baselines/reference/systemModuleTargetES6.errors.txt b/tests/baselines/reference/systemModuleTargetES6.errors.txt
new file mode 100644
index 0000000000000..ca92612515804
--- /dev/null
+++ b/tests/baselines/reference/systemModuleTargetES6.errors.txt
@@ -0,0 +1,18 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== systemModuleTargetES6.ts (0 errors) ====
+ export class MyClass { }
+ export class MyClass2 {
+ static value = 42;
+ static getInstance() { return MyClass2.value; }
+ }
+
+ export function myFunction() {
+ return new MyClass();
+ }
+
+ export function myFunction2() {
+ return new MyClass2();
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/systemModuleTrailingComments.errors.txt b/tests/baselines/reference/systemModuleTrailingComments.errors.txt
new file mode 100644
index 0000000000000..ee1484af56df8
--- /dev/null
+++ b/tests/baselines/reference/systemModuleTrailingComments.errors.txt
@@ -0,0 +1,8 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== systemModuleTrailingComments.ts (0 errors) ====
+ export const test = "TEST";
+
+ //some comment
\ No newline at end of file
diff --git a/tests/baselines/reference/systemModuleWithSuperClass.errors.txt b/tests/baselines/reference/systemModuleWithSuperClass.errors.txt
new file mode 100644
index 0000000000000..2a624a94c08cc
--- /dev/null
+++ b/tests/baselines/reference/systemModuleWithSuperClass.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== foo.ts (0 errors) ====
+ export class Foo {
+ a: string;
+ }
+
+==== bar.ts (0 errors) ====
+ import {Foo} from './foo';
+ export class Bar extends Foo {
+ b: string;
+ }
\ No newline at end of file
diff --git a/tests/baselines/reference/systemNamespaceAliasEmit.errors.txt b/tests/baselines/reference/systemNamespaceAliasEmit.errors.txt
new file mode 100644
index 0000000000000..efdaea0144895
--- /dev/null
+++ b/tests/baselines/reference/systemNamespaceAliasEmit.errors.txt
@@ -0,0 +1,15 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== systemNamespaceAliasEmit.ts (0 errors) ====
+ namespace ns {
+ const value = 1;
+ }
+
+ enum AnEnum {
+ ONE,
+ TWO
+ }
+
+ export {ns, AnEnum, ns as FooBar, AnEnum as BarEnum};
\ No newline at end of file
diff --git a/tests/baselines/reference/systemObjectShorthandRename.errors.txt b/tests/baselines/reference/systemObjectShorthandRename.errors.txt
new file mode 100644
index 0000000000000..422691700e60f
--- /dev/null
+++ b/tests/baselines/reference/systemObjectShorthandRename.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== x.ts (0 errors) ====
+ export const x = 'X'
+==== index.ts (0 errors) ====
+ import {x} from './x.js'
+
+ const x2 = {x}
+ const a = {x2}
+
+ const x3 = x
+ const b = {x3}
\ No newline at end of file
diff --git a/tests/baselines/reference/topLevelAwait.1(module=system,target=es2015).errors.txt b/tests/baselines/reference/topLevelAwait.1(module=system,target=es2015).errors.txt
index 21c68b1837718..3309692a85958 100644
--- a/tests/baselines/reference/topLevelAwait.1(module=system,target=es2015).errors.txt
+++ b/tests/baselines/reference/topLevelAwait.1(module=system,target=es2015).errors.txt
@@ -1,8 +1,10 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
index.ts(2,1): error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher.
index.ts(46,3): error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher.
other.ts(9,5): error TS1432: Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher.
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== index.ts (2 errors) ====
export const x = 1;
await x;
diff --git a/tests/baselines/reference/topLevelAwait.1(module=system,target=es2017).errors.txt b/tests/baselines/reference/topLevelAwait.1(module=system,target=es2017).errors.txt
new file mode 100644
index 0000000000000..ef1cdd0171809
--- /dev/null
+++ b/tests/baselines/reference/topLevelAwait.1(module=system,target=es2017).errors.txt
@@ -0,0 +1,83 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== index.ts (0 errors) ====
+ export const x = 1;
+ await x;
+
+ // reparse element access as await
+ await [x];
+ await [x, x];
+
+ // reparse call as await
+ declare function f(): number;
+ await (x);
+ await (f(), x);
+ await (x);
+ await (f(), x);
+
+ // reparse tagged template as await
+ await ``;
+ await ``;
+
+ // member names should be ok
+ class C1 {
+ await() {}
+ }
+ class C2 {
+ get await() { return 1; }
+ set await(value) { }
+ }
+ class C3 {
+ await = 1;
+ }
+ ({
+ await() {}
+ });
+ ({
+ get await() { return 1 },
+ set await(value) { }
+ });
+ ({
+ await: 1
+ });
+
+ // property access name should be ok
+ C1.prototype.await;
+
+ // await in decorators
+ declare const dec: any;
+ @(await dec)
+ class C {
+ }
+
+ // await allowed in aliased import
+ import { await as _await } from "./other";
+
+ // newlines
+ // await in throw
+ throw await
+ 1;
+
+ // await in var
+ let y = await
+ 1;
+
+ // await in expression statement;
+ await
+ 1;
+
+==== other.ts (0 errors) ====
+ const _await = 1;
+
+ // await allowed in aliased export
+ export { _await as await };
+
+ // for-await-of
+ const arr = [Promise.resolve()];
+
+ for await (const item of arr) {
+ item;
+ }
+
\ No newline at end of file
diff --git a/tests/baselines/reference/topLevelAwait.1(module=system,target=es2017).types b/tests/baselines/reference/topLevelAwait.1(module=system,target=es2017).types
index f2a9992f6d32d..ac622b31610ca 100644
--- a/tests/baselines/reference/topLevelAwait.1(module=system,target=es2017).types
+++ b/tests/baselines/reference/topLevelAwait.1(module=system,target=es2017).types
@@ -195,11 +195,15 @@ C1.prototype.await;
// await in decorators
declare const dec: any;
>dec : any
+> : ^^^
@(await dec)
>(await dec) : any
+> : ^^^
>await dec : any
+> : ^^^
>dec : any
+> : ^^^
class C {
>C : C
diff --git a/tests/baselines/reference/topLevelAwaitErrors.11.js b/tests/baselines/reference/topLevelAwaitErrors.11.js
index e21888aa30a33..c332d24bd00a9 100644
--- a/tests/baselines/reference/topLevelAwaitErrors.11.js
+++ b/tests/baselines/reference/topLevelAwaitErrors.11.js
@@ -11,22 +11,9 @@ export { _await as await };
//// [other.js]
-System.register([], function (exports_1, context_1) {
- "use strict";
- var __moduleName = context_1 && context_1.id;
- return {
- setters: [],
- execute: function () {
- }
- };
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.await = void 0;
//// [index.js]
-System.register([], function (exports_1, context_1) {
- "use strict";
- var __moduleName = context_1 && context_1.id;
- return {
- setters: [],
- execute: function () {
- }
- };
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
diff --git a/tests/baselines/reference/topLevelExports.errors.txt b/tests/baselines/reference/topLevelExports.errors.txt
new file mode 100644
index 0000000000000..52b401fa9fbb9
--- /dev/null
+++ b/tests/baselines/reference/topLevelExports.errors.txt
@@ -0,0 +1,10 @@
+error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== topLevelExports.ts (0 errors) ====
+ export var foo = 3;
+
+ function log(n:number) { return n;}
+
+ void log(foo).toString();
\ No newline at end of file
diff --git a/tests/baselines/reference/topLevelLambda4.js b/tests/baselines/reference/topLevelLambda4.js
index 9c6ff7cf295b0..81cf5783ebc13 100644
--- a/tests/baselines/reference/topLevelLambda4.js
+++ b/tests/baselines/reference/topLevelLambda4.js
@@ -4,10 +4,4 @@
export var x = () => this.window;
//// [topLevelLambda4.js]
-define(["require", "exports"], function (require, exports) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.x = void 0;
- var x = () => this.window;
- exports.x = x;
-});
+export var x = () => this.window;
diff --git a/tests/baselines/reference/topLevelVarHoistingSystem.errors.txt b/tests/baselines/reference/topLevelVarHoistingSystem.errors.txt
new file mode 100644
index 0000000000000..355957835b458
--- /dev/null
+++ b/tests/baselines/reference/topLevelVarHoistingSystem.errors.txt
@@ -0,0 +1,14 @@
+error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+
+
+!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
+==== topLevelVarHoistingSystem.ts (0 errors) ====
+ if (false) {
+ var y = 1;
+ }
+
+ function f() {
+ console.log(y);
+ }
+
+ export { y };
\ No newline at end of file
diff --git a/tests/baselines/reference/transformNestedGeneratorsWithTry.errors.txt b/tests/baselines/reference/transformNestedGeneratorsWithTry.errors.txt
new file mode 100644
index 0000000000000..53d0c0e56f0ec
--- /dev/null
+++ b/tests/baselines/reference/transformNestedGeneratorsWithTry.errors.txt
@@ -0,0 +1,35 @@
+main.ts(3,21): error TS1055: Type '{ all(values: Iterable>): Promise[]>; all(values: T): Promise<{ -readonly [P in keyof T]: Awaited; }>; race(values: Iterable>): Promise>; race(values: T): Promise>; prototype: Promise; reject(reason?: any): Promise; resolve(): Promise; resolve(value: T): Promise>; resolve(value: T | PromiseLike): Promise>; [Symbol.species]: PromiseConstructor; default: PromiseConstructor; }' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value.
+ Type '{ all(values: Iterable>): Promise[]>; all(values: T): Promise<{ -readonly [P in keyof T]: Awaited; }>; race(values: Iterable>): Promise>; race(values: T): Promise>; prototype: Promise; reject(reason?: any): Promise; resolve(): Promise; resolve(value: T): Promise>; resolve