typescript 7.1.0-dev.20261104.1 → 7.1.0-dev.20261105.1
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/LICENSE +55 -55
- package/NOTICE.txt +405 -405
- package/dist/api/async/api.d.ts +32 -0
- package/dist/api/async/api.d.ts.map +1 -1
- package/dist/api/async/api.js +116 -0
- package/dist/api/async/api.js.map +1 -1
- package/dist/api/proto.d.ts +1 -1
- package/dist/api/proto.d.ts.map +1 -1
- package/dist/api/proto.generated.d.ts +59 -18
- package/dist/api/proto.generated.d.ts.map +1 -1
- package/dist/api/sync/api.d.ts +65 -0
- package/dist/api/sync/api.d.ts.map +1 -1
- package/dist/api/sync/api.js +221 -0
- package/dist/api/sync/api.js.map +1 -1
- package/enums/caseSensitivity.d.ts +6 -6
- package/enums/caseSensitivity.js +6 -6
- package/enums/characterCodes.d.ts +139 -139
- package/enums/characterCodes.js +129 -129
- package/enums/checkFlags.d.ts +35 -35
- package/enums/checkFlags.js +35 -35
- package/enums/commentDirectiveType.d.ts +4 -4
- package/enums/commentDirectiveType.js +5 -5
- package/enums/completionItemKind.d.ts +29 -29
- package/enums/completionItemKind.js +29 -29
- package/enums/diagnosticCategory.d.ts +8 -8
- package/enums/diagnosticCategory.js +8 -8
- package/enums/diagnosticDirectivePolicy.d.ts +6 -6
- package/enums/diagnosticDirectivePolicy.js +6 -6
- package/enums/elementFlags.d.ts +13 -13
- package/enums/elementFlags.js +13 -13
- package/enums/emitOnly.d.ts +7 -7
- package/enums/emitOnly.js +7 -7
- package/enums/indexKind.d.ts +6 -6
- package/enums/indexKind.js +6 -6
- package/enums/internalSymbolName.d.ts +24 -24
- package/enums/internalSymbolName.js +24 -24
- package/enums/jsDeclarationKind.d.ts +11 -11
- package/enums/jsDeclarationKind.js +11 -11
- package/enums/jsxEmit.d.ts +10 -10
- package/enums/jsxEmit.js +10 -10
- package/enums/languageVariant.d.ts +4 -4
- package/enums/languageVariant.js +5 -5
- package/enums/modifierFlags.d.ts +43 -43
- package/enums/modifierFlags.js +43 -43
- package/enums/moduleDetectionKind.d.ts +8 -8
- package/enums/moduleDetectionKind.js +8 -8
- package/enums/moduleKind.d.ts +18 -18
- package/enums/moduleKind.js +18 -18
- package/enums/moduleResolutionKind.d.ts +10 -10
- package/enums/moduleResolutionKind.js +10 -10
- package/enums/newLineKind.d.ts +7 -7
- package/enums/newLineKind.js +7 -7
- package/enums/nodeBuilderFlags.d.ts +37 -37
- package/enums/nodeBuilderFlags.js +37 -37
- package/enums/nodeFlags.d.ts +45 -45
- package/enums/nodeFlags.js +45 -45
- package/enums/objectFlags.d.ts +52 -52
- package/enums/objectFlags.js +52 -52
- package/enums/outerExpressionKinds.d.ts +17 -17
- package/enums/outerExpressionKinds.js +17 -17
- package/enums/regularExpressionFlags.d.ts +12 -12
- package/enums/regularExpressionFlags.js +13 -13
- package/enums/scriptKind.d.ts +10 -10
- package/enums/scriptKind.js +10 -10
- package/enums/scriptTarget.d.ts +19 -19
- package/enums/scriptTarget.js +19 -19
- package/enums/signatureFlags.d.ts +16 -16
- package/enums/signatureFlags.js +16 -16
- package/enums/signatureKind.d.ts +6 -6
- package/enums/signatureKind.js +6 -6
- package/enums/spanMapFeature.d.ts +26 -26
- package/enums/spanMapFeature.js +26 -26
- package/enums/spanMapFidelity.d.ts +8 -8
- package/enums/spanMapFidelity.js +8 -8
- package/enums/spanMapKind.d.ts +7 -7
- package/enums/spanMapKind.js +7 -7
- package/enums/symbolFlags.d.ts +72 -72
- package/enums/symbolFlags.js +72 -72
- package/enums/symbolOwnerKind.d.ts +6 -6
- package/enums/symbolOwnerKind.js +6 -6
- package/enums/syntaxKind.d.ts +391 -391
- package/enums/syntaxKind.js +391 -391
- package/enums/tokenFlags.d.ts +31 -31
- package/enums/tokenFlags.js +31 -31
- package/enums/typeFlags.d.ts +77 -77
- package/enums/typeFlags.js +77 -77
- package/enums/typeFormatFlags.d.ts +30 -30
- package/enums/typeFormatFlags.js +30 -30
- package/enums/typePredicateKind.d.ts +8 -8
- package/enums/typePredicateKind.js +8 -8
- package/lib/getExePath.d.ts +8 -8
- package/lib/getExePath.js +70 -70
- package/lib/tsc.js +32 -32
- package/lib/version.cjs +3 -3
- package/lib/version.d.cts +2 -2
- package/package.json +9 -9
package/lib/getExePath.js
CHANGED
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
// Node modules are passed in rather than imported so that this file can be
|
|
2
|
-
// loaded in any environment; callers choose how to obtain them.
|
|
3
|
-
/** @typedef {import("./getExePath.d.ts").NodeModules} NodeModules */
|
|
4
|
-
|
|
5
|
-
// NOTE: Keep VS Code extension's resolveTsdkPathToExe in sync with this function.
|
|
6
|
-
/** @param {NodeModules} modules */
|
|
7
|
-
export default function getExePath({ fs, module, path, url }) {
|
|
8
|
-
const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
|
|
9
|
-
const normalizedDirname = __dirname.replace(/\\/g, "/");
|
|
10
|
-
|
|
11
|
-
const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, "..", "package.json"), "utf8"));
|
|
12
|
-
const pkgName = pkg.name;
|
|
13
|
-
const baseName = pkgName.startsWith("@") ? pkgName.split("/")[1] : pkgName;
|
|
14
|
-
const expectedBinName = baseName === "typescript" ? "tsc" : "tsgo";
|
|
15
|
-
const binNames = pkg.bin && typeof pkg.bin === "object" ? Object.keys(pkg.bin) : [];
|
|
16
|
-
if (binNames.length !== 1 || binNames[0] !== expectedBinName) {
|
|
17
|
-
throw new Error(`Expected ${pkgName} to declare exactly one bin entry named ${expectedBinName}.`);
|
|
18
|
-
}
|
|
19
|
-
let binName = expectedBinName;
|
|
20
|
-
let exeDir;
|
|
21
|
-
|
|
22
|
-
const expectedPackage = baseName + "-" + process.platform + "-" + process.arch;
|
|
23
|
-
|
|
24
|
-
if (normalizedDirname.endsWith("/packages/" + baseName + "/lib")) {
|
|
25
|
-
// We're running directly from source in the repo.
|
|
26
|
-
// The local repo build (`hereby build`) always produces `tsgo`, regardless
|
|
27
|
-
// of the published `bin` name, so don't use binName here.
|
|
28
|
-
exeDir = path.resolve(__dirname, "..", "..", "..", "built", "local");
|
|
29
|
-
binName = "tsc";
|
|
30
|
-
}
|
|
31
|
-
else if (normalizedDirname.endsWith("/built/npm/" + baseName + "/lib")) {
|
|
32
|
-
// We're running from the built output.
|
|
33
|
-
exeDir = path.resolve(__dirname, "..", "..", expectedPackage, "lib");
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
// We're actually running from an installed package.
|
|
37
|
-
const platformPackageName = "@typescript/" + expectedPackage;
|
|
38
|
-
try {
|
|
39
|
-
if (typeof import.meta.resolve === "undefined") {
|
|
40
|
-
// v16.20.1
|
|
41
|
-
const require = module.createRequire(import.meta.url);
|
|
42
|
-
const packageJson = require.resolve(platformPackageName + "/package.json");
|
|
43
|
-
exeDir = path.join(path.dirname(packageJson), "lib");
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
// v20.6.0, v18.19.0
|
|
47
|
-
const packageJson = import.meta.resolve(platformPackageName + "/package.json");
|
|
48
|
-
const packageJsonPath = url.fileURLToPath(packageJson);
|
|
49
|
-
exeDir = path.join(path.dirname(packageJsonPath), "lib");
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
catch (e) {
|
|
53
|
-
throw new Error("Unable to resolve " + platformPackageName + ". Either your platform is unsupported, or you are missing the package on disk.");
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
let exe = path.join(exeDir, binName);
|
|
58
|
-
if (process.platform === "win32") {
|
|
59
|
-
exe += ".exe";
|
|
60
|
-
if (exe.length >= 248) {
|
|
61
|
-
exe = "\\\\?\\" + exe;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
if (!fs.existsSync(exe)) {
|
|
66
|
-
throw new Error("Executable not found: " + exe);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return exe;
|
|
70
|
-
}
|
|
1
|
+
// Node modules are passed in rather than imported so that this file can be
|
|
2
|
+
// loaded in any environment; callers choose how to obtain them.
|
|
3
|
+
/** @typedef {import("./getExePath.d.ts").NodeModules} NodeModules */
|
|
4
|
+
|
|
5
|
+
// NOTE: Keep VS Code extension's resolveTsdkPathToExe in sync with this function.
|
|
6
|
+
/** @param {NodeModules} modules */
|
|
7
|
+
export default function getExePath({ fs, module, path, url }) {
|
|
8
|
+
const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
|
|
9
|
+
const normalizedDirname = __dirname.replace(/\\/g, "/");
|
|
10
|
+
|
|
11
|
+
const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, "..", "package.json"), "utf8"));
|
|
12
|
+
const pkgName = pkg.name;
|
|
13
|
+
const baseName = pkgName.startsWith("@") ? pkgName.split("/")[1] : pkgName;
|
|
14
|
+
const expectedBinName = baseName === "typescript" ? "tsc" : "tsgo";
|
|
15
|
+
const binNames = pkg.bin && typeof pkg.bin === "object" ? Object.keys(pkg.bin) : [];
|
|
16
|
+
if (binNames.length !== 1 || binNames[0] !== expectedBinName) {
|
|
17
|
+
throw new Error(`Expected ${pkgName} to declare exactly one bin entry named ${expectedBinName}.`);
|
|
18
|
+
}
|
|
19
|
+
let binName = expectedBinName;
|
|
20
|
+
let exeDir;
|
|
21
|
+
|
|
22
|
+
const expectedPackage = baseName + "-" + process.platform + "-" + process.arch;
|
|
23
|
+
|
|
24
|
+
if (normalizedDirname.endsWith("/packages/" + baseName + "/lib")) {
|
|
25
|
+
// We're running directly from source in the repo.
|
|
26
|
+
// The local repo build (`hereby build`) always produces `tsgo`, regardless
|
|
27
|
+
// of the published `bin` name, so don't use binName here.
|
|
28
|
+
exeDir = path.resolve(__dirname, "..", "..", "..", "built", "local");
|
|
29
|
+
binName = "tsc";
|
|
30
|
+
}
|
|
31
|
+
else if (normalizedDirname.endsWith("/built/npm/" + baseName + "/lib")) {
|
|
32
|
+
// We're running from the built output.
|
|
33
|
+
exeDir = path.resolve(__dirname, "..", "..", expectedPackage, "lib");
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
// We're actually running from an installed package.
|
|
37
|
+
const platformPackageName = "@typescript/" + expectedPackage;
|
|
38
|
+
try {
|
|
39
|
+
if (typeof import.meta.resolve === "undefined") {
|
|
40
|
+
// v16.20.1
|
|
41
|
+
const require = module.createRequire(import.meta.url);
|
|
42
|
+
const packageJson = require.resolve(platformPackageName + "/package.json");
|
|
43
|
+
exeDir = path.join(path.dirname(packageJson), "lib");
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
// v20.6.0, v18.19.0
|
|
47
|
+
const packageJson = import.meta.resolve(platformPackageName + "/package.json");
|
|
48
|
+
const packageJsonPath = url.fileURLToPath(packageJson);
|
|
49
|
+
exeDir = path.join(path.dirname(packageJsonPath), "lib");
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
catch (e) {
|
|
53
|
+
throw new Error("Unable to resolve " + platformPackageName + ". Either your platform is unsupported, or you are missing the package on disk.");
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
let exe = path.join(exeDir, binName);
|
|
58
|
+
if (process.platform === "win32") {
|
|
59
|
+
exe += ".exe";
|
|
60
|
+
if (exe.length >= 248) {
|
|
61
|
+
exe = "\\\\?\\" + exe;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (!fs.existsSync(exe)) {
|
|
66
|
+
throw new Error("Executable not found: " + exe);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return exe;
|
|
70
|
+
}
|
package/lib/tsc.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { execFileSync } from "node:child_process";
|
|
4
|
-
import fs from "node:fs";
|
|
5
|
-
import module from "node:module";
|
|
6
|
-
import path from "node:path";
|
|
7
|
-
import url from "node:url";
|
|
8
|
-
import getExePath from "./getExePath.js";
|
|
9
|
-
|
|
10
|
-
const exe = getExePath({ fs, module, path, url });
|
|
11
|
-
|
|
12
|
-
if (process.platform !== "win32" && typeof process.execve === "function") {
|
|
13
|
-
// > v22.15.0
|
|
14
|
-
try {
|
|
15
|
-
process.execve(exe, [exe, ...process.argv.slice(2)]);
|
|
16
|
-
}
|
|
17
|
-
catch {
|
|
18
|
-
// may not be available, ignore the error and fallback
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
try {
|
|
23
|
-
execFileSync(exe, process.argv.slice(2), { stdio: "inherit", windowsHide: true });
|
|
24
|
-
}
|
|
25
|
-
catch (e) {
|
|
26
|
-
if (e.status) {
|
|
27
|
-
process.exitCode = e.status;
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
throw e;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { execFileSync } from "node:child_process";
|
|
4
|
+
import fs from "node:fs";
|
|
5
|
+
import module from "node:module";
|
|
6
|
+
import path from "node:path";
|
|
7
|
+
import url from "node:url";
|
|
8
|
+
import getExePath from "./getExePath.js";
|
|
9
|
+
|
|
10
|
+
const exe = getExePath({ fs, module, path, url });
|
|
11
|
+
|
|
12
|
+
if (process.platform !== "win32" && typeof process.execve === "function") {
|
|
13
|
+
// > v22.15.0
|
|
14
|
+
try {
|
|
15
|
+
process.execve(exe, [exe, ...process.argv.slice(2)]);
|
|
16
|
+
}
|
|
17
|
+
catch {
|
|
18
|
+
// may not be available, ignore the error and fallback
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
try {
|
|
23
|
+
execFileSync(exe, process.argv.slice(2), { stdio: "inherit", windowsHide: true });
|
|
24
|
+
}
|
|
25
|
+
catch (e) {
|
|
26
|
+
if (e.status) {
|
|
27
|
+
process.exitCode = e.status;
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
throw e;
|
|
31
|
+
}
|
|
32
|
+
}
|
package/lib/version.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const { version } = require("../package.json");
|
|
2
|
-
exports.version = version;
|
|
3
|
-
exports.versionMajorMinor = "7.1";
|
|
1
|
+
const { version } = require("../package.json");
|
|
2
|
+
exports.version = version;
|
|
3
|
+
exports.versionMajorMinor = "7.1";
|
package/lib/version.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version: string;
|
|
2
|
-
export declare const versionMajorMinor = "7.1";
|
|
1
|
+
export declare const version: string;
|
|
2
|
+
export declare const versionMajorMinor = "7.1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typescript",
|
|
3
|
-
"version": "7.1.0-dev.
|
|
3
|
+
"version": "7.1.0-dev.20261105.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "Microsoft Corp.",
|
|
6
6
|
"homepage": "https://www.typescriptlang.org/",
|
|
@@ -58,18 +58,18 @@
|
|
|
58
58
|
"./ast/visitor": "./dist/ast/visitor.js",
|
|
59
59
|
"./ast/clone": "./dist/ast/clone.js"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "c46bcd6089ea2e5e84e7fcc60845ac884a5b0ac1",
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public",
|
|
64
64
|
"tag": "next"
|
|
65
65
|
},
|
|
66
66
|
"optionalDependencies": {
|
|
67
|
-
"@typescript/typescript-win32-x64": "7.1.0-dev.
|
|
68
|
-
"@typescript/typescript-win32-arm64": "7.1.0-dev.
|
|
69
|
-
"@typescript/typescript-linux-x64": "7.1.0-dev.
|
|
70
|
-
"@typescript/typescript-linux-arm": "7.1.0-dev.
|
|
71
|
-
"@typescript/typescript-linux-arm64": "7.1.0-dev.
|
|
72
|
-
"@typescript/typescript-darwin-x64": "7.1.0-dev.
|
|
73
|
-
"@typescript/typescript-darwin-arm64": "7.1.0-dev.
|
|
67
|
+
"@typescript/typescript-win32-x64": "7.1.0-dev.20261105.1",
|
|
68
|
+
"@typescript/typescript-win32-arm64": "7.1.0-dev.20261105.1",
|
|
69
|
+
"@typescript/typescript-linux-x64": "7.1.0-dev.20261105.1",
|
|
70
|
+
"@typescript/typescript-linux-arm": "7.1.0-dev.20261105.1",
|
|
71
|
+
"@typescript/typescript-linux-arm64": "7.1.0-dev.20261105.1",
|
|
72
|
+
"@typescript/typescript-darwin-x64": "7.1.0-dev.20261105.1",
|
|
73
|
+
"@typescript/typescript-darwin-arm64": "7.1.0-dev.20261105.1"
|
|
74
74
|
}
|
|
75
75
|
}
|