typescript 5.3.0-dev.20230908 → 5.3.0-dev.20230910
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 +26 -2
- package/lib/tsserver.js +26 -2
- package/lib/typescript.js +26 -2
- package/lib/typingsInstaller.js +1 -1
- package/package.json +2 -2
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.3";
|
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20230910`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -14990,7 +14990,31 @@ function getSourceFilesToEmit(host, targetSourceFile, forceDtsEmit) {
|
|
|
14990
14990
|
}
|
|
14991
14991
|
function sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit) {
|
|
14992
14992
|
const options = host.getCompilerOptions();
|
|
14993
|
-
|
|
14993
|
+
if (options.noEmitForJsFiles && isSourceFileJS(sourceFile))
|
|
14994
|
+
return false;
|
|
14995
|
+
if (sourceFile.isDeclarationFile)
|
|
14996
|
+
return false;
|
|
14997
|
+
if (host.isSourceFileFromExternalLibrary(sourceFile))
|
|
14998
|
+
return false;
|
|
14999
|
+
if (forceDtsEmit)
|
|
15000
|
+
return true;
|
|
15001
|
+
if (host.isSourceOfProjectReferenceRedirect(sourceFile.fileName))
|
|
15002
|
+
return false;
|
|
15003
|
+
if (!isJsonSourceFile(sourceFile))
|
|
15004
|
+
return true;
|
|
15005
|
+
if (host.getResolvedProjectReferenceToRedirect(sourceFile.fileName))
|
|
15006
|
+
return false;
|
|
15007
|
+
if (outFile(options))
|
|
15008
|
+
return true;
|
|
15009
|
+
if (!options.outDir)
|
|
15010
|
+
return false;
|
|
15011
|
+
if (options.rootDir || options.composite && options.configFilePath) {
|
|
15012
|
+
const commonDir = getNormalizedAbsolutePath(getCommonSourceDirectory(options, () => [], host.getCurrentDirectory(), host.getCanonicalFileName), host.getCurrentDirectory());
|
|
15013
|
+
const outputPath = getSourceFilePathInNewDirWorker(sourceFile.fileName, options.outDir, host.getCurrentDirectory(), commonDir, host.getCanonicalFileName);
|
|
15014
|
+
if (comparePaths(sourceFile.fileName, outputPath, host.getCurrentDirectory(), !host.useCaseSensitiveFileNames()) === 0 /* EqualTo */)
|
|
15015
|
+
return false;
|
|
15016
|
+
}
|
|
15017
|
+
return true;
|
|
14994
15018
|
}
|
|
14995
15019
|
function getSourceFilePathInNewDir(fileName, host, newDirPath) {
|
|
14996
15020
|
return getSourceFilePathInNewDirWorker(fileName, newDirPath, host.getCurrentDirectory(), host.getCommonSourceDirectory(), (f) => host.getCanonicalFileName(f));
|
package/lib/tsserver.js
CHANGED
|
@@ -2327,7 +2327,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2327
2327
|
|
|
2328
2328
|
// src/compiler/corePublic.ts
|
|
2329
2329
|
var versionMajorMinor = "5.3";
|
|
2330
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2330
|
+
var version = `${versionMajorMinor}.0-dev.20230910`;
|
|
2331
2331
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2332
2332
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2333
2333
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -18957,7 +18957,31 @@ function getSourceFilesToEmit(host, targetSourceFile, forceDtsEmit) {
|
|
|
18957
18957
|
}
|
|
18958
18958
|
function sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit) {
|
|
18959
18959
|
const options = host.getCompilerOptions();
|
|
18960
|
-
|
|
18960
|
+
if (options.noEmitForJsFiles && isSourceFileJS(sourceFile))
|
|
18961
|
+
return false;
|
|
18962
|
+
if (sourceFile.isDeclarationFile)
|
|
18963
|
+
return false;
|
|
18964
|
+
if (host.isSourceFileFromExternalLibrary(sourceFile))
|
|
18965
|
+
return false;
|
|
18966
|
+
if (forceDtsEmit)
|
|
18967
|
+
return true;
|
|
18968
|
+
if (host.isSourceOfProjectReferenceRedirect(sourceFile.fileName))
|
|
18969
|
+
return false;
|
|
18970
|
+
if (!isJsonSourceFile(sourceFile))
|
|
18971
|
+
return true;
|
|
18972
|
+
if (host.getResolvedProjectReferenceToRedirect(sourceFile.fileName))
|
|
18973
|
+
return false;
|
|
18974
|
+
if (outFile(options))
|
|
18975
|
+
return true;
|
|
18976
|
+
if (!options.outDir)
|
|
18977
|
+
return false;
|
|
18978
|
+
if (options.rootDir || options.composite && options.configFilePath) {
|
|
18979
|
+
const commonDir = getNormalizedAbsolutePath(getCommonSourceDirectory(options, () => [], host.getCurrentDirectory(), host.getCanonicalFileName), host.getCurrentDirectory());
|
|
18980
|
+
const outputPath = getSourceFilePathInNewDirWorker(sourceFile.fileName, options.outDir, host.getCurrentDirectory(), commonDir, host.getCanonicalFileName);
|
|
18981
|
+
if (comparePaths(sourceFile.fileName, outputPath, host.getCurrentDirectory(), !host.useCaseSensitiveFileNames()) === 0 /* EqualTo */)
|
|
18982
|
+
return false;
|
|
18983
|
+
}
|
|
18984
|
+
return true;
|
|
18961
18985
|
}
|
|
18962
18986
|
function getSourceFilePathInNewDir(fileName, host, newDirPath) {
|
|
18963
18987
|
return getSourceFilePathInNewDirWorker(fileName, newDirPath, host.getCurrentDirectory(), host.getCommonSourceDirectory(), (f) => host.getCanonicalFileName(f));
|
package/lib/typescript.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.3";
|
|
38
|
-
version = `${versionMajorMinor}.0-dev.
|
|
38
|
+
version = `${versionMajorMinor}.0-dev.20230910`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -16262,7 +16262,31 @@ ${lanes.join("\n")}
|
|
|
16262
16262
|
}
|
|
16263
16263
|
function sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit) {
|
|
16264
16264
|
const options = host.getCompilerOptions();
|
|
16265
|
-
|
|
16265
|
+
if (options.noEmitForJsFiles && isSourceFileJS(sourceFile))
|
|
16266
|
+
return false;
|
|
16267
|
+
if (sourceFile.isDeclarationFile)
|
|
16268
|
+
return false;
|
|
16269
|
+
if (host.isSourceFileFromExternalLibrary(sourceFile))
|
|
16270
|
+
return false;
|
|
16271
|
+
if (forceDtsEmit)
|
|
16272
|
+
return true;
|
|
16273
|
+
if (host.isSourceOfProjectReferenceRedirect(sourceFile.fileName))
|
|
16274
|
+
return false;
|
|
16275
|
+
if (!isJsonSourceFile(sourceFile))
|
|
16276
|
+
return true;
|
|
16277
|
+
if (host.getResolvedProjectReferenceToRedirect(sourceFile.fileName))
|
|
16278
|
+
return false;
|
|
16279
|
+
if (outFile(options))
|
|
16280
|
+
return true;
|
|
16281
|
+
if (!options.outDir)
|
|
16282
|
+
return false;
|
|
16283
|
+
if (options.rootDir || options.composite && options.configFilePath) {
|
|
16284
|
+
const commonDir = getNormalizedAbsolutePath(getCommonSourceDirectory(options, () => [], host.getCurrentDirectory(), host.getCanonicalFileName), host.getCurrentDirectory());
|
|
16285
|
+
const outputPath = getSourceFilePathInNewDirWorker(sourceFile.fileName, options.outDir, host.getCurrentDirectory(), commonDir, host.getCanonicalFileName);
|
|
16286
|
+
if (comparePaths(sourceFile.fileName, outputPath, host.getCurrentDirectory(), !host.useCaseSensitiveFileNames()) === 0 /* EqualTo */)
|
|
16287
|
+
return false;
|
|
16288
|
+
}
|
|
16289
|
+
return true;
|
|
16266
16290
|
}
|
|
16267
16291
|
function getSourceFilePathInNewDir(fileName, host, newDirPath) {
|
|
16268
16292
|
return getSourceFilePathInNewDirWorker(fileName, newDirPath, host.getCurrentDirectory(), host.getCommonSourceDirectory(), (f) => host.getCanonicalFileName(f));
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
|
|
|
54
54
|
|
|
55
55
|
// src/compiler/corePublic.ts
|
|
56
56
|
var versionMajorMinor = "5.3";
|
|
57
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
57
|
+
var version = `${versionMajorMinor}.0-dev.20230910`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "typescript",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.3.0-dev.
|
|
5
|
+
"version": "5.3.0-dev.20230910",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"node": "20.1.0",
|
|
113
113
|
"npm": "8.19.4"
|
|
114
114
|
},
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "fdb2531c0b188937c057786c276f7b12e89ab48e"
|
|
116
116
|
}
|