typescript 5.6.0-dev.20240625 → 5.6.0-dev.20240626
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 +13 -8
- package/lib/tsserver.js +31 -17
- package/lib/typescript.js +13 -8
- package/lib/typingsInstaller.js +2 -2
- package/package.json +5 -4
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.6";
|
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20240626`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -5924,7 +5924,7 @@ var Diagnostics = {
|
|
|
5924
5924
|
Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1321, 1 /* Error */, "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321", "Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),
|
|
5925
5925
|
Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1322, 1 /* Error */, "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322", "Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),
|
|
5926
5926
|
Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext: diag(1323, 1 /* Error */, "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323", "Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),
|
|
5927
|
-
|
|
5927
|
+
Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodenext_or_preserve: diag(1324, 1 /* Error */, "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodene_1324", "Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'nodenext', or 'preserve'."),
|
|
5928
5928
|
Argument_of_dynamic_import_cannot_be_spread_element: diag(1325, 1 /* Error */, "Argument_of_dynamic_import_cannot_be_spread_element_1325", "Argument of dynamic import cannot be spread element."),
|
|
5929
5929
|
This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments: diag(1326, 1 /* Error */, "This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326", "This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),
|
|
5930
5930
|
String_literal_with_double_quotes_expected: diag(1327, 1 /* Error */, "String_literal_with_double_quotes_expected_1327", "String literal with double quotes expected."),
|
|
@@ -25642,17 +25642,22 @@ var disposeResourcesHelper = {
|
|
|
25642
25642
|
env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
25643
25643
|
env.hasError = true;
|
|
25644
25644
|
}
|
|
25645
|
+
var r, s = 0;
|
|
25645
25646
|
function next() {
|
|
25646
|
-
while (env.stack.
|
|
25647
|
-
var rec = env.stack.pop();
|
|
25647
|
+
while (r = env.stack.pop()) {
|
|
25648
25648
|
try {
|
|
25649
|
-
|
|
25650
|
-
if (
|
|
25649
|
+
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
|
|
25650
|
+
if (r.dispose) {
|
|
25651
|
+
var result = r.dispose.call(r.value);
|
|
25652
|
+
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
|
|
25653
|
+
}
|
|
25654
|
+
else s |= 1;
|
|
25651
25655
|
}
|
|
25652
25656
|
catch (e) {
|
|
25653
25657
|
fail(e);
|
|
25654
25658
|
}
|
|
25655
25659
|
}
|
|
25660
|
+
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
25656
25661
|
if (env.hasError) throw env.error;
|
|
25657
25662
|
}
|
|
25658
25663
|
return next();
|
|
@@ -87504,11 +87509,11 @@ function createTypeChecker(host) {
|
|
|
87504
87509
|
return grammarErrorOnNode(node, Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);
|
|
87505
87510
|
}
|
|
87506
87511
|
const nodeArguments = node.arguments;
|
|
87507
|
-
if (moduleKind !== 99 /* ESNext */ && moduleKind !== 199 /* NodeNext */ && moduleKind !== 100 /* Node16 */) {
|
|
87512
|
+
if (moduleKind !== 99 /* ESNext */ && moduleKind !== 199 /* NodeNext */ && moduleKind !== 100 /* Node16 */ && moduleKind !== 200 /* Preserve */) {
|
|
87508
87513
|
checkGrammarForDisallowedTrailingComma(nodeArguments);
|
|
87509
87514
|
if (nodeArguments.length > 1) {
|
|
87510
87515
|
const importAttributesArgument = nodeArguments[1];
|
|
87511
|
-
return grammarErrorOnNode(importAttributesArgument, Diagnostics.
|
|
87516
|
+
return grammarErrorOnNode(importAttributesArgument, Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodenext_or_preserve);
|
|
87512
87517
|
}
|
|
87513
87518
|
}
|
|
87514
87519
|
if (nodeArguments.length === 0 || nodeArguments.length > 2) {
|
package/lib/tsserver.js
CHANGED
|
@@ -15,9 +15,11 @@ and limitations under the License.
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
"use strict";
|
|
18
|
+
var __create = Object.create;
|
|
18
19
|
var __defProp = Object.defineProperty;
|
|
19
20
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
20
21
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
22
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
21
23
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
22
24
|
var __copyProps = (to, from, except, desc) => {
|
|
23
25
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
@@ -28,11 +30,29 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
28
30
|
return to;
|
|
29
31
|
};
|
|
30
32
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
33
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
34
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
35
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
36
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
37
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
38
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
39
|
+
mod
|
|
40
|
+
));
|
|
41
|
+
|
|
42
|
+
// src/tsserver/server.ts
|
|
43
|
+
var import_os2 = __toESM(require("os"));
|
|
31
44
|
|
|
32
45
|
// src/typescript/typescript.ts
|
|
33
46
|
var typescript_exports = {};
|
|
34
47
|
__reExport(typescript_exports, require("./typescript.js"));
|
|
35
48
|
|
|
49
|
+
// src/tsserver/nodeServer.ts
|
|
50
|
+
var import_child_process = __toESM(require("child_process"));
|
|
51
|
+
var import_fs = __toESM(require("fs"));
|
|
52
|
+
var import_net = __toESM(require("net"));
|
|
53
|
+
var import_os = __toESM(require("os"));
|
|
54
|
+
var import_readline = __toESM(require("readline"));
|
|
55
|
+
|
|
36
56
|
// src/tsserver/common.ts
|
|
37
57
|
function getLogLevel(level) {
|
|
38
58
|
if (level) {
|
|
@@ -107,8 +127,6 @@ function parseServerMode() {
|
|
|
107
127
|
}
|
|
108
128
|
function initializeNodeSystem() {
|
|
109
129
|
const sys4 = typescript_exports.Debug.checkDefined(typescript_exports.sys);
|
|
110
|
-
const childProcess = require("child_process");
|
|
111
|
-
const fs = require("fs");
|
|
112
130
|
class Logger {
|
|
113
131
|
constructor(logFilename, traceToConsole, level) {
|
|
114
132
|
this.logFilename = logFilename;
|
|
@@ -120,7 +138,7 @@ function initializeNodeSystem() {
|
|
|
120
138
|
this.fd = -1;
|
|
121
139
|
if (this.logFilename) {
|
|
122
140
|
try {
|
|
123
|
-
this.fd =
|
|
141
|
+
this.fd = import_fs.default.openSync(this.logFilename, "w");
|
|
124
142
|
} catch (_) {
|
|
125
143
|
}
|
|
126
144
|
}
|
|
@@ -130,7 +148,7 @@ function initializeNodeSystem() {
|
|
|
130
148
|
}
|
|
131
149
|
close() {
|
|
132
150
|
if (this.fd >= 0) {
|
|
133
|
-
|
|
151
|
+
import_fs.default.close(this.fd, typescript_exports.noop);
|
|
134
152
|
}
|
|
135
153
|
}
|
|
136
154
|
getLogFileName() {
|
|
@@ -177,7 +195,7 @@ function initializeNodeSystem() {
|
|
|
177
195
|
write(s, _type) {
|
|
178
196
|
if (this.fd >= 0) {
|
|
179
197
|
const buf = Buffer.from(s);
|
|
180
|
-
|
|
198
|
+
import_fs.default.writeSync(
|
|
181
199
|
this.fd,
|
|
182
200
|
buf,
|
|
183
201
|
0,
|
|
@@ -228,7 +246,7 @@ function initializeNodeSystem() {
|
|
|
228
246
|
if (logger.hasLevel(typescript_exports.server.LogLevel.verbose)) {
|
|
229
247
|
logger.info(`Starting ${process.execPath} with args:${typescript_exports.server.stringifyIndented(args)}`);
|
|
230
248
|
}
|
|
231
|
-
|
|
249
|
+
import_child_process.default.execFileSync(process.execPath, args, { stdio: "ignore", env: { ELECTRON_RUN_AS_NODE: "1" } });
|
|
232
250
|
status = true;
|
|
233
251
|
if (logger.hasLevel(typescript_exports.server.LogLevel.verbose)) {
|
|
234
252
|
logger.info(`WatchGuard for path ${path} returned: OK`);
|
|
@@ -267,7 +285,7 @@ function initializeNodeSystem() {
|
|
|
267
285
|
}
|
|
268
286
|
let cancellationToken;
|
|
269
287
|
try {
|
|
270
|
-
const factory = require("./cancellationToken");
|
|
288
|
+
const factory = require("./cancellationToken.js");
|
|
271
289
|
cancellationToken = factory(sys4.args);
|
|
272
290
|
} catch (e) {
|
|
273
291
|
cancellationToken = typescript_exports.server.nullCancellationToken;
|
|
@@ -349,11 +367,7 @@ function parseEventPort(eventPortStr) {
|
|
|
349
367
|
return eventPort !== void 0 && !isNaN(eventPort) ? eventPort : void 0;
|
|
350
368
|
}
|
|
351
369
|
function startNodeSession(options, logger, cancellationToken) {
|
|
352
|
-
const
|
|
353
|
-
const os = require("os");
|
|
354
|
-
const net = require("net");
|
|
355
|
-
const readline = require("readline");
|
|
356
|
-
const rl = readline.createInterface({
|
|
370
|
+
const rl = import_readline.default.createInterface({
|
|
357
371
|
input: process.stdin,
|
|
358
372
|
output: process.stdout,
|
|
359
373
|
terminal: false
|
|
@@ -406,7 +420,7 @@ function startNodeSession(options, logger, cancellationToken) {
|
|
|
406
420
|
}
|
|
407
421
|
}
|
|
408
422
|
const typingsInstaller = (0, typescript_exports.combinePaths)((0, typescript_exports.getDirectoryPath)(typescript_exports.sys.getExecutingFilePath()), "typingsInstaller.js");
|
|
409
|
-
this.installer =
|
|
423
|
+
this.installer = import_child_process.default.fork(typingsInstaller, args, { execArgv });
|
|
410
424
|
this.installer.on("message", (m) => this.handleMessage(m));
|
|
411
425
|
this.host.setImmediate(() => this.event({ pid: this.installer.pid }, "typingsInstallerPid"));
|
|
412
426
|
process.on("exit", () => {
|
|
@@ -442,7 +456,7 @@ function startNodeSession(options, logger, cancellationToken) {
|
|
|
442
456
|
});
|
|
443
457
|
this.eventPort = eventPort;
|
|
444
458
|
if (this.canUseEvents && this.eventPort) {
|
|
445
|
-
const s =
|
|
459
|
+
const s = import_net.default.connect({ port: this.eventPort }, () => {
|
|
446
460
|
this.eventSocket = s;
|
|
447
461
|
if (this.socketEventQueue) {
|
|
448
462
|
for (const event2 of this.socketEventQueue) {
|
|
@@ -537,7 +551,7 @@ function startNodeSession(options, logger, cancellationToken) {
|
|
|
537
551
|
function getGlobalTypingsCacheLocation() {
|
|
538
552
|
switch (process.platform) {
|
|
539
553
|
case "win32": {
|
|
540
|
-
const basePath = process.env.LOCALAPPDATA || process.env.APPDATA ||
|
|
554
|
+
const basePath = process.env.LOCALAPPDATA || process.env.APPDATA || import_os.default.homedir && import_os.default.homedir() || process.env.USERPROFILE || process.env.HOMEDRIVE && process.env.HOMEPATH && (0, typescript_exports.normalizeSlashes)(process.env.HOMEDRIVE + process.env.HOMEPATH) || import_os.default.tmpdir();
|
|
541
555
|
return (0, typescript_exports.combinePaths)((0, typescript_exports.combinePaths)((0, typescript_exports.normalizeSlashes)(basePath), "Microsoft/TypeScript"), typescript_exports.versionMajorMinor);
|
|
542
556
|
}
|
|
543
557
|
case "openbsd":
|
|
@@ -558,7 +572,7 @@ function startNodeSession(options, logger, cancellationToken) {
|
|
|
558
572
|
return process.env.XDG_CACHE_HOME;
|
|
559
573
|
}
|
|
560
574
|
const usersDir = platformIsDarwin ? "Users" : "home";
|
|
561
|
-
const homePath =
|
|
575
|
+
const homePath = import_os.default.homedir && import_os.default.homedir() || process.env.HOME || (process.env.LOGNAME || process.env.USER) && `/${usersDir}/${process.env.LOGNAME || process.env.USER}` || import_os.default.tmpdir();
|
|
562
576
|
const cacheFolder = platformIsDarwin ? "Library/Caches" : ".cache";
|
|
563
577
|
return (0, typescript_exports.combinePaths)((0, typescript_exports.normalizeSlashes)(homePath), cacheFolder);
|
|
564
578
|
}
|
|
@@ -605,5 +619,5 @@ function start({ args, logger, cancellationToken, serverMode, unknownServerMode,
|
|
|
605
619
|
);
|
|
606
620
|
}
|
|
607
621
|
typescript_exports.setStackTraceLimit();
|
|
608
|
-
start(initializeNodeSystem(),
|
|
622
|
+
start(initializeNodeSystem(), import_os2.default.platform());
|
|
609
623
|
//# sourceMappingURL=tsserver.js.map
|
package/lib/typescript.js
CHANGED
|
@@ -2377,7 +2377,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2377
2377
|
|
|
2378
2378
|
// src/compiler/corePublic.ts
|
|
2379
2379
|
var versionMajorMinor = "5.6";
|
|
2380
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2380
|
+
var version = `${versionMajorMinor}.0-dev.20240626`;
|
|
2381
2381
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2382
2382
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2383
2383
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -9493,7 +9493,7 @@ var Diagnostics = {
|
|
|
9493
9493
|
Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1321, 1 /* Error */, "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321", "Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),
|
|
9494
9494
|
Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1322, 1 /* Error */, "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322", "Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),
|
|
9495
9495
|
Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext: diag(1323, 1 /* Error */, "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323", "Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),
|
|
9496
|
-
|
|
9496
|
+
Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodenext_or_preserve: diag(1324, 1 /* Error */, "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodene_1324", "Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'nodenext', or 'preserve'."),
|
|
9497
9497
|
Argument_of_dynamic_import_cannot_be_spread_element: diag(1325, 1 /* Error */, "Argument_of_dynamic_import_cannot_be_spread_element_1325", "Argument of dynamic import cannot be spread element."),
|
|
9498
9498
|
This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments: diag(1326, 1 /* Error */, "This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326", "This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),
|
|
9499
9499
|
String_literal_with_double_quotes_expected: diag(1327, 1 /* Error */, "String_literal_with_double_quotes_expected_1327", "String literal with double quotes expected."),
|
|
@@ -30045,17 +30045,22 @@ var disposeResourcesHelper = {
|
|
|
30045
30045
|
env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
30046
30046
|
env.hasError = true;
|
|
30047
30047
|
}
|
|
30048
|
+
var r, s = 0;
|
|
30048
30049
|
function next() {
|
|
30049
|
-
while (env.stack.
|
|
30050
|
-
var rec = env.stack.pop();
|
|
30050
|
+
while (r = env.stack.pop()) {
|
|
30051
30051
|
try {
|
|
30052
|
-
|
|
30053
|
-
if (
|
|
30052
|
+
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
|
|
30053
|
+
if (r.dispose) {
|
|
30054
|
+
var result = r.dispose.call(r.value);
|
|
30055
|
+
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
|
|
30056
|
+
}
|
|
30057
|
+
else s |= 1;
|
|
30054
30058
|
}
|
|
30055
30059
|
catch (e) {
|
|
30056
30060
|
fail(e);
|
|
30057
30061
|
}
|
|
30058
30062
|
}
|
|
30063
|
+
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
30059
30064
|
if (env.hasError) throw env.error;
|
|
30060
30065
|
}
|
|
30061
30066
|
return next();
|
|
@@ -92387,11 +92392,11 @@ function createTypeChecker(host) {
|
|
|
92387
92392
|
return grammarErrorOnNode(node, Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);
|
|
92388
92393
|
}
|
|
92389
92394
|
const nodeArguments = node.arguments;
|
|
92390
|
-
if (moduleKind !== 99 /* ESNext */ && moduleKind !== 199 /* NodeNext */ && moduleKind !== 100 /* Node16 */) {
|
|
92395
|
+
if (moduleKind !== 99 /* ESNext */ && moduleKind !== 199 /* NodeNext */ && moduleKind !== 100 /* Node16 */ && moduleKind !== 200 /* Preserve */) {
|
|
92391
92396
|
checkGrammarForDisallowedTrailingComma(nodeArguments);
|
|
92392
92397
|
if (nodeArguments.length > 1) {
|
|
92393
92398
|
const importAttributesArgument = nodeArguments[1];
|
|
92394
|
-
return grammarErrorOnNode(importAttributesArgument, Diagnostics.
|
|
92399
|
+
return grammarErrorOnNode(importAttributesArgument, Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodenext_or_preserve);
|
|
92395
92400
|
}
|
|
92396
92401
|
}
|
|
92397
92402
|
if (nodeArguments.length === 0 || nodeArguments.length > 2) {
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -50,6 +50,7 @@ __export(nodeTypingsInstaller_exports, {
|
|
|
50
50
|
NodeTypingsInstaller: () => NodeTypingsInstaller
|
|
51
51
|
});
|
|
52
52
|
module.exports = __toCommonJS(nodeTypingsInstaller_exports);
|
|
53
|
+
var import_child_process = require("child_process");
|
|
53
54
|
var fs = __toESM(require("fs"));
|
|
54
55
|
var path = __toESM(require("path"));
|
|
55
56
|
|
|
@@ -127,7 +128,6 @@ var NodeTypingsInstaller = class extends typescript_exports.server.typingsInstal
|
|
|
127
128
|
this.log.writeLine(`NPM location: ${this.npmPath} (explicit '${typescript_exports.server.Arguments.NpmLocation}' ${npmLocation2 === void 0 ? "not " : ""} provided)`);
|
|
128
129
|
this.log.writeLine(`validateDefaultNpmLocation: ${validateDefaultNpmLocation2}`);
|
|
129
130
|
}
|
|
130
|
-
({ execSync: this.nodeExecSync } = require("child_process"));
|
|
131
131
|
this.ensurePackageDirectoryExists(globalTypingsCacheLocation2);
|
|
132
132
|
try {
|
|
133
133
|
if (this.log.isEnabled()) {
|
|
@@ -182,7 +182,7 @@ var NodeTypingsInstaller = class extends typescript_exports.server.typingsInstal
|
|
|
182
182
|
this.log.writeLine(`Exec: ${command}`);
|
|
183
183
|
}
|
|
184
184
|
try {
|
|
185
|
-
const stdout =
|
|
185
|
+
const stdout = (0, import_child_process.execFileSync)(command, { ...options, encoding: "utf-8" });
|
|
186
186
|
if (this.log.isEnabled()) {
|
|
187
187
|
this.log.writeLine(` Succeeded. stdout:${indent(typescript_exports.sys.newLine, stdout)}`);
|
|
188
188
|
}
|
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.6.0-dev.
|
|
5
|
+
"version": "5.6.0-dev.20240626",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"javascript"
|
|
14
14
|
],
|
|
15
15
|
"bugs": {
|
|
16
|
-
"url": "https://github.com/
|
|
16
|
+
"url": "https://github.com/microsoft/TypeScript/issues"
|
|
17
17
|
},
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
|
-
"url": "https://github.com/
|
|
20
|
+
"url": "https://github.com/microsoft/TypeScript.git"
|
|
21
21
|
},
|
|
22
22
|
"main": "./lib/typescript.js",
|
|
23
23
|
"typings": "./lib/typescript.d.ts",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"@esfx/canceltoken": "^1.0.0",
|
|
45
45
|
"@octokit/rest": "^20.1.1",
|
|
46
46
|
"@types/chai": "^4.3.16",
|
|
47
|
+
"@types/diff": "^5.2.1",
|
|
47
48
|
"@types/minimist": "^1.2.5",
|
|
48
49
|
"@types/mocha": "^10.0.6",
|
|
49
50
|
"@types/ms": "^0.7.34",
|
|
@@ -110,5 +111,5 @@
|
|
|
110
111
|
"node": "20.1.0",
|
|
111
112
|
"npm": "8.19.4"
|
|
112
113
|
},
|
|
113
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "ef339af12801c1f88ff4e01d4d4e602addfcca98"
|
|
114
115
|
}
|