@typescript-deploys/pr-build 5.8.0-pr-60644-12 → 5.8.0-pr-60039-24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_tsc.js +11 -24
- package/lib/typescript.d.ts +6 -13
- package/lib/typescript.js +11 -24
- package/package.json +1 -1
package/lib/_tsc.js
CHANGED
|
@@ -18,7 +18,7 @@ and limitations under the License.
|
|
|
18
18
|
|
|
19
19
|
// src/compiler/corePublic.ts
|
|
20
20
|
var versionMajorMinor = "5.8";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20241203`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -36875,7 +36875,6 @@ var commandOptionsWithoutBuild = [
|
|
|
36875
36875
|
bundler: 100 /* Bundler */
|
|
36876
36876
|
})),
|
|
36877
36877
|
deprecatedKeys: /* @__PURE__ */ new Set(["node"]),
|
|
36878
|
-
affectsSourceFile: true,
|
|
36879
36878
|
affectsModuleResolution: true,
|
|
36880
36879
|
paramType: Diagnostics.STRATEGY,
|
|
36881
36880
|
category: Diagnostics.Modules,
|
|
@@ -78090,7 +78089,7 @@ function createTypeChecker(host) {
|
|
|
78090
78089
|
}
|
|
78091
78090
|
if (isReadonlySymbol(symbol)) {
|
|
78092
78091
|
if (symbol.flags & 4 /* Property */ && isAccessExpression(expr) && expr.expression.kind === 110 /* ThisKeyword */) {
|
|
78093
|
-
const ctor =
|
|
78092
|
+
const ctor = getControlFlowContainer(expr);
|
|
78094
78093
|
if (!(ctor && (ctor.kind === 176 /* Constructor */ || isJSConstructor(ctor)))) {
|
|
78095
78094
|
return true;
|
|
78096
78095
|
}
|
|
@@ -120988,9 +120987,7 @@ function getConfigFileParsingDiagnostics(configFileParseResult) {
|
|
|
120988
120987
|
return configFileParseResult.options.configFile ? [...configFileParseResult.options.configFile.parseDiagnostics, ...configFileParseResult.errors] : configFileParseResult.errors;
|
|
120989
120988
|
}
|
|
120990
120989
|
function getImpliedNodeFormatForFileWorker(fileName, packageJsonInfoCache, host, options) {
|
|
120991
|
-
|
|
120992
|
-
const shouldLookupFromPackageJson = 3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */ || pathContainsNodeModules(fileName);
|
|
120993
|
-
return fileExtensionIsOneOf(fileName, [".d.mts" /* Dmts */, ".mts" /* Mts */, ".mjs" /* Mjs */]) ? 99 /* ESNext */ : fileExtensionIsOneOf(fileName, [".d.cts" /* Dcts */, ".cts" /* Cts */, ".cjs" /* Cjs */]) ? 1 /* CommonJS */ : shouldLookupFromPackageJson && fileExtensionIsOneOf(fileName, [".d.ts" /* Dts */, ".ts" /* Ts */, ".tsx" /* Tsx */, ".js" /* Js */, ".jsx" /* Jsx */]) ? lookupFromPackageJson() : void 0;
|
|
120990
|
+
return fileExtensionIsOneOf(fileName, [".d.mts" /* Dmts */, ".mts" /* Mts */, ".mjs" /* Mjs */]) ? 99 /* ESNext */ : fileExtensionIsOneOf(fileName, [".d.cts" /* Dcts */, ".cts" /* Cts */, ".cjs" /* Cjs */]) ? 1 /* CommonJS */ : fileExtensionIsOneOf(fileName, [".d.ts" /* Dts */, ".ts" /* Ts */, ".tsx" /* Tsx */, ".js" /* Js */, ".jsx" /* Jsx */]) ? lookupFromPackageJson() : void 0;
|
|
120994
120991
|
function lookupFromPackageJson() {
|
|
120995
120992
|
const state = getTemporaryModuleResolutionState(packageJsonInfoCache, host, options);
|
|
120996
120993
|
const packageJsonLocations = [];
|
|
@@ -122907,16 +122904,14 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
122907
122904
|
return file2 || void 0;
|
|
122908
122905
|
}
|
|
122909
122906
|
let redirectedPath;
|
|
122910
|
-
|
|
122911
|
-
|
|
122912
|
-
if (redirectProject) {
|
|
122913
|
-
|
|
122914
|
-
return void 0;
|
|
122915
|
-
}
|
|
122916
|
-
const redirect = getProjectReferenceOutputName(redirectProject, fileName);
|
|
122917
|
-
fileName = redirect;
|
|
122918
|
-
redirectedPath = toPath3(redirect);
|
|
122907
|
+
const redirectProject = getProjectReferenceRedirectProject(fileName);
|
|
122908
|
+
if (!useSourceOfProjectReferenceRedirect && redirectProject) {
|
|
122909
|
+
if (redirectProject.commandLine.options.outFile) {
|
|
122910
|
+
return void 0;
|
|
122919
122911
|
}
|
|
122912
|
+
const redirect = getProjectReferenceOutputName(redirectProject, fileName);
|
|
122913
|
+
fileName = redirect;
|
|
122914
|
+
redirectedPath = toPath3(redirect);
|
|
122920
122915
|
}
|
|
122921
122916
|
const sourceFileOptions = getCreateSourceFileOptions(fileName, moduleResolutionCache, host, options);
|
|
122922
122917
|
const file = host.getSourceFile(
|
|
@@ -124157,18 +124152,10 @@ function getEmitModuleFormatOfFileWorker(sourceFile, options) {
|
|
|
124157
124152
|
return getImpliedNodeFormatForEmitWorker(sourceFile, options) ?? getEmitModuleKind(options);
|
|
124158
124153
|
}
|
|
124159
124154
|
function getImpliedNodeFormatForEmitWorker(sourceFile, options) {
|
|
124160
|
-
var _a, _b;
|
|
124161
124155
|
const moduleKind = getEmitModuleKind(options);
|
|
124162
|
-
if (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) {
|
|
124156
|
+
if (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */ || fileExtensionIsOneOf(sourceFile.fileName, [".cts" /* Cts */, ".d.cts" /* Dcts */, ".cjs" /* Cjs */, ".mts" /* Mts */, ".d.mts" /* Dmts */, ".mjs" /* Mjs */]) || pathContainsNodeModules(sourceFile.fileName)) {
|
|
124163
124157
|
return sourceFile.impliedNodeFormat;
|
|
124164
124158
|
}
|
|
124165
|
-
if (sourceFile.impliedNodeFormat === 1 /* CommonJS */ && (((_a = sourceFile.packageJsonScope) == null ? void 0 : _a.contents.packageJsonContent.type) === "commonjs" || fileExtensionIsOneOf(sourceFile.fileName, [".cjs" /* Cjs */, ".cts" /* Cts */]))) {
|
|
124166
|
-
return 1 /* CommonJS */;
|
|
124167
|
-
}
|
|
124168
|
-
if (sourceFile.impliedNodeFormat === 99 /* ESNext */ && (((_b = sourceFile.packageJsonScope) == null ? void 0 : _b.contents.packageJsonContent.type) === "module" || fileExtensionIsOneOf(sourceFile.fileName, [".mjs" /* Mjs */, ".mts" /* Mts */]))) {
|
|
124169
|
-
return 99 /* ESNext */;
|
|
124170
|
-
}
|
|
124171
|
-
return void 0;
|
|
124172
124159
|
}
|
|
124173
124160
|
function getDefaultResolutionModeForFileWorker(sourceFile, options) {
|
|
124174
124161
|
return importSyntaxAffectsModuleResolution(options) ? getImpliedNodeFormatForEmitWorker(sourceFile, options) : void 0;
|
package/lib/typescript.d.ts
CHANGED
|
@@ -5920,21 +5920,14 @@ declare namespace ts {
|
|
|
5920
5920
|
hasNoDefaultLib: boolean;
|
|
5921
5921
|
languageVersion: ScriptTarget;
|
|
5922
5922
|
/**
|
|
5923
|
-
*
|
|
5924
|
-
*
|
|
5925
|
-
*
|
|
5926
|
-
*
|
|
5927
|
-
* `
|
|
5923
|
+
* This field controls whether the source file in question is an ESNext-output-format file,
|
|
5924
|
+
* or a CommonJS-output-format module. This is derived by the module resolver as it looks
|
|
5925
|
+
* up the file, since it is derived from either the file extension of the module, or the
|
|
5926
|
+
* containing `package.json` context, and may affect both checking and emit, depending on
|
|
5927
|
+
* `module` and `moduleResolution` compiler options.
|
|
5928
5928
|
*
|
|
5929
5929
|
* It is _public_ so that (pre)transformers can set this field,
|
|
5930
|
-
* since it switches the builtin `node` module transform.
|
|
5931
|
-
* the field is treated as though it is `ModuleKind.CommonJS`.
|
|
5932
|
-
*
|
|
5933
|
-
* Note that this field is only set by the module resolution process when
|
|
5934
|
-
* `moduleResolution` is `Node16` or `NodeNext`, which is implied by the `module` setting
|
|
5935
|
-
* of `Node16` or `NodeNext`, respectively, but may be overriden (eg, by a `moduleResolution`
|
|
5936
|
-
* of `node`). If so, this field will be unset and source files will be considered to be
|
|
5937
|
-
* CommonJS-output-format by the node module transformer and type checker, regardless of extension or context.
|
|
5930
|
+
* since it switches the builtin `node` module transform.
|
|
5938
5931
|
*/
|
|
5939
5932
|
impliedNodeFormat?: ResolutionMode;
|
|
5940
5933
|
}
|
package/lib/typescript.js
CHANGED
|
@@ -2278,7 +2278,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2278
2278
|
|
|
2279
2279
|
// src/compiler/corePublic.ts
|
|
2280
2280
|
var versionMajorMinor = "5.8";
|
|
2281
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2281
|
+
var version = `${versionMajorMinor}.0-insiders.20241203`;
|
|
2282
2282
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2283
2283
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2284
2284
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -41128,7 +41128,6 @@ var commandOptionsWithoutBuild = [
|
|
|
41128
41128
|
bundler: 100 /* Bundler */
|
|
41129
41129
|
})),
|
|
41130
41130
|
deprecatedKeys: /* @__PURE__ */ new Set(["node"]),
|
|
41131
|
-
affectsSourceFile: true,
|
|
41132
41131
|
affectsModuleResolution: true,
|
|
41133
41132
|
paramType: Diagnostics.STRATEGY,
|
|
41134
41133
|
category: Diagnostics.Modules,
|
|
@@ -82694,7 +82693,7 @@ function createTypeChecker(host) {
|
|
|
82694
82693
|
}
|
|
82695
82694
|
if (isReadonlySymbol(symbol)) {
|
|
82696
82695
|
if (symbol.flags & 4 /* Property */ && isAccessExpression(expr) && expr.expression.kind === 110 /* ThisKeyword */) {
|
|
82697
|
-
const ctor =
|
|
82696
|
+
const ctor = getControlFlowContainer(expr);
|
|
82698
82697
|
if (!(ctor && (ctor.kind === 176 /* Constructor */ || isJSConstructor(ctor)))) {
|
|
82699
82698
|
return true;
|
|
82700
82699
|
}
|
|
@@ -125831,9 +125830,7 @@ function getImpliedNodeFormatForFile(fileName, packageJsonInfoCache, host, optio
|
|
|
125831
125830
|
return typeof result === "object" ? result.impliedNodeFormat : result;
|
|
125832
125831
|
}
|
|
125833
125832
|
function getImpliedNodeFormatForFileWorker(fileName, packageJsonInfoCache, host, options) {
|
|
125834
|
-
|
|
125835
|
-
const shouldLookupFromPackageJson = 3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */ || pathContainsNodeModules(fileName);
|
|
125836
|
-
return fileExtensionIsOneOf(fileName, [".d.mts" /* Dmts */, ".mts" /* Mts */, ".mjs" /* Mjs */]) ? 99 /* ESNext */ : fileExtensionIsOneOf(fileName, [".d.cts" /* Dcts */, ".cts" /* Cts */, ".cjs" /* Cjs */]) ? 1 /* CommonJS */ : shouldLookupFromPackageJson && fileExtensionIsOneOf(fileName, [".d.ts" /* Dts */, ".ts" /* Ts */, ".tsx" /* Tsx */, ".js" /* Js */, ".jsx" /* Jsx */]) ? lookupFromPackageJson() : void 0;
|
|
125833
|
+
return fileExtensionIsOneOf(fileName, [".d.mts" /* Dmts */, ".mts" /* Mts */, ".mjs" /* Mjs */]) ? 99 /* ESNext */ : fileExtensionIsOneOf(fileName, [".d.cts" /* Dcts */, ".cts" /* Cts */, ".cjs" /* Cjs */]) ? 1 /* CommonJS */ : fileExtensionIsOneOf(fileName, [".d.ts" /* Dts */, ".ts" /* Ts */, ".tsx" /* Tsx */, ".js" /* Js */, ".jsx" /* Jsx */]) ? lookupFromPackageJson() : void 0;
|
|
125837
125834
|
function lookupFromPackageJson() {
|
|
125838
125835
|
const state = getTemporaryModuleResolutionState(packageJsonInfoCache, host, options);
|
|
125839
125836
|
const packageJsonLocations = [];
|
|
@@ -127750,16 +127747,14 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
127750
127747
|
return file2 || void 0;
|
|
127751
127748
|
}
|
|
127752
127749
|
let redirectedPath;
|
|
127753
|
-
|
|
127754
|
-
|
|
127755
|
-
if (redirectProject) {
|
|
127756
|
-
|
|
127757
|
-
return void 0;
|
|
127758
|
-
}
|
|
127759
|
-
const redirect = getProjectReferenceOutputName(redirectProject, fileName);
|
|
127760
|
-
fileName = redirect;
|
|
127761
|
-
redirectedPath = toPath3(redirect);
|
|
127750
|
+
const redirectProject = getProjectReferenceRedirectProject(fileName);
|
|
127751
|
+
if (!useSourceOfProjectReferenceRedirect && redirectProject) {
|
|
127752
|
+
if (redirectProject.commandLine.options.outFile) {
|
|
127753
|
+
return void 0;
|
|
127762
127754
|
}
|
|
127755
|
+
const redirect = getProjectReferenceOutputName(redirectProject, fileName);
|
|
127756
|
+
fileName = redirect;
|
|
127757
|
+
redirectedPath = toPath3(redirect);
|
|
127763
127758
|
}
|
|
127764
127759
|
const sourceFileOptions = getCreateSourceFileOptions(fileName, moduleResolutionCache, host, options);
|
|
127765
127760
|
const file = host.getSourceFile(
|
|
@@ -129000,18 +128995,10 @@ function getEmitModuleFormatOfFileWorker(sourceFile, options) {
|
|
|
129000
128995
|
return getImpliedNodeFormatForEmitWorker(sourceFile, options) ?? getEmitModuleKind(options);
|
|
129001
128996
|
}
|
|
129002
128997
|
function getImpliedNodeFormatForEmitWorker(sourceFile, options) {
|
|
129003
|
-
var _a, _b;
|
|
129004
128998
|
const moduleKind = getEmitModuleKind(options);
|
|
129005
|
-
if (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) {
|
|
128999
|
+
if (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */ || fileExtensionIsOneOf(sourceFile.fileName, [".cts" /* Cts */, ".d.cts" /* Dcts */, ".cjs" /* Cjs */, ".mts" /* Mts */, ".d.mts" /* Dmts */, ".mjs" /* Mjs */]) || pathContainsNodeModules(sourceFile.fileName)) {
|
|
129006
129000
|
return sourceFile.impliedNodeFormat;
|
|
129007
129001
|
}
|
|
129008
|
-
if (sourceFile.impliedNodeFormat === 1 /* CommonJS */ && (((_a = sourceFile.packageJsonScope) == null ? void 0 : _a.contents.packageJsonContent.type) === "commonjs" || fileExtensionIsOneOf(sourceFile.fileName, [".cjs" /* Cjs */, ".cts" /* Cts */]))) {
|
|
129009
|
-
return 1 /* CommonJS */;
|
|
129010
|
-
}
|
|
129011
|
-
if (sourceFile.impliedNodeFormat === 99 /* ESNext */ && (((_b = sourceFile.packageJsonScope) == null ? void 0 : _b.contents.packageJsonContent.type) === "module" || fileExtensionIsOneOf(sourceFile.fileName, [".mjs" /* Mjs */, ".mts" /* Mts */]))) {
|
|
129012
|
-
return 99 /* ESNext */;
|
|
129013
|
-
}
|
|
129014
|
-
return void 0;
|
|
129015
129002
|
}
|
|
129016
129003
|
function getDefaultResolutionModeForFileWorker(sourceFile, options) {
|
|
129017
129004
|
return importSyntaxAffectsModuleResolution(options) ? getImpliedNodeFormatForEmitWorker(sourceFile, options) : void 0;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@typescript-deploys/pr-build",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.8.0-pr-
|
|
5
|
+
"version": "5.8.0-pr-60039-24",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|