Skip to content

Commit 27032b8

Browse files
committed
Merge branch 'jabaile/bump-tsgo-port-2' into jabaile/node20
2 parents d80e0e6 + a7fde2a commit 27032b8

File tree

253 files changed

+3959
-13511
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

253 files changed

+3959
-13511
lines changed

_submodules/TypeScript

Submodule TypeScript updated 157 files

testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsConditionalPackageExports(module=node16).errors.txt

Lines changed: 18 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,12 @@
1-
error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file 'package.json'. Supply the `rootDir` compiler option to disambiguate.
2-
index.cjs(2,22): error TS2307: Cannot find module 'package/cjs' or its corresponding type declarations.
3-
index.cjs(3,22): error TS2307: Cannot find module 'package/mjs' or its corresponding type declarations.
4-
index.cjs(4,23): error TS2307: Cannot find module 'package' or its corresponding type declarations.
5-
index.js(2,22): error TS2307: Cannot find module 'package/cjs' or its corresponding type declarations.
6-
index.js(3,22): error TS2307: Cannot find module 'package/mjs' or its corresponding type declarations.
7-
index.js(4,23): error TS2307: Cannot find module 'package' or its corresponding type declarations.
8-
index.mjs(2,22): error TS2307: Cannot find module 'package/cjs' or its corresponding type declarations.
9-
index.mjs(3,22): error TS2307: Cannot find module 'package/mjs' or its corresponding type declarations.
10-
index.mjs(4,23): error TS2307: Cannot find module 'package' or its corresponding type declarations.
11-
node_modules/inner/index.d.mts(2,13): error TS2303: Circular definition of import alias 'cjs'.
12-
node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'.
1+
index.cjs(3,22): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package/mjs")' call instead.
2+
index.cjs(4,23): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead.
133

144

15-
!!! error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file 'package.json'. Supply the `rootDir` compiler option to disambiguate.
16-
==== index.js (3 errors) ====
5+
==== index.js (0 errors) ====
176
// esm format file
187
import * as cjs from "package/cjs";
19-
~~~~~~~~~~~~~
20-
!!! error TS2307: Cannot find module 'package/cjs' or its corresponding type declarations.
218
import * as mjs from "package/mjs";
22-
~~~~~~~~~~~~~
23-
!!! error TS2307: Cannot find module 'package/mjs' or its corresponding type declarations.
249
import * as type from "package";
25-
~~~~~~~~~
26-
!!! error TS2307: Cannot find module 'package' or its corresponding type declarations.
2710
cjs;
2811
mjs;
2912
type;
@@ -35,17 +18,11 @@ node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import
3518
mjsi.mjsSource;
3619
typei.mjsSource;
3720
ts.mjsSource;
38-
==== index.mjs (3 errors) ====
21+
==== index.mjs (0 errors) ====
3922
// esm format file
4023
import * as cjs from "package/cjs";
41-
~~~~~~~~~~~~~
42-
!!! error TS2307: Cannot find module 'package/cjs' or its corresponding type declarations.
4324
import * as mjs from "package/mjs";
44-
~~~~~~~~~~~~~
45-
!!! error TS2307: Cannot find module 'package/mjs' or its corresponding type declarations.
4625
import * as type from "package";
47-
~~~~~~~~~
48-
!!! error TS2307: Cannot find module 'package' or its corresponding type declarations.
4926
cjs;
5027
mjs;
5128
type;
@@ -57,17 +34,15 @@ node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import
5734
mjsi.mjsSource;
5835
typei.mjsSource;
5936
ts.mjsSource;
60-
==== index.cjs (3 errors) ====
37+
==== index.cjs (2 errors) ====
6138
// cjs format file
6239
import * as cjs from "package/cjs";
63-
~~~~~~~~~~~~~
64-
!!! error TS2307: Cannot find module 'package/cjs' or its corresponding type declarations.
6540
import * as mjs from "package/mjs";
6641
~~~~~~~~~~~~~
67-
!!! error TS2307: Cannot find module 'package/mjs' or its corresponding type declarations.
42+
!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package/mjs")' call instead.
6843
import * as type from "package";
6944
~~~~~~~~~
70-
!!! error TS2307: Cannot find module 'package' or its corresponding type declarations.
45+
!!! error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package")' call instead.
7146
cjs;
7247
mjs;
7348
type;
@@ -79,33 +54,36 @@ node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import
7954
mjsi.cjsSource;
8055
typei.implicitCjsSource;
8156
ts.cjsSource;
82-
==== node_modules/inner/index.d.ts (1 errors) ====
57+
==== node_modules/inner/index.d.ts (0 errors) ====
58+
// cjs format file
59+
export const implicitCjsSource = true;
60+
==== node_modules/inner/test.d.ts (0 errors) ====
8361
// cjs format file
8462
import * as cjs from "inner/a";
85-
~~~
86-
!!! error TS2303: Circular definition of import alias 'cjs'.
8763
import * as mjs from "inner/b";
8864
import * as type from "inner";
8965
import * as ts from "inner/types";
9066
export { cjs };
9167
export { mjs };
9268
export { type };
9369
export { ts };
94-
export const implicitCjsSource = true;
95-
==== node_modules/inner/index.d.mts (1 errors) ====
70+
==== node_modules/inner/index.d.mts (0 errors) ====
71+
// esm format file
72+
export const mjsSource = true;
73+
==== node_modules/inner/test.d.mts (0 errors) ====
9674
// esm format file
9775
import * as cjs from "inner/a";
98-
~~~
99-
!!! error TS2303: Circular definition of import alias 'cjs'.
10076
import * as mjs from "inner/b";
10177
import * as type from "inner";
10278
import * as ts from "inner/types";
10379
export { cjs };
10480
export { mjs };
10581
export { type };
10682
export { ts };
107-
export const mjsSource = true;
10883
==== node_modules/inner/index.d.cts (0 errors) ====
84+
// cjs format file
85+
export const cjsSource = true;
86+
==== node_modules/inner/test.d.cts (0 errors) ====
10987
// cjs format file
11088
import * as cjs from "inner/a";
11189
import * as mjs from "inner/b";
@@ -115,7 +93,6 @@ node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import
11593
export { mjs };
11694
export { type };
11795
export { ts };
118-
export const cjsSource = true;
11996
==== package.json (0 errors) ====
12097
{
12198
"name": "package",

testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsConditionalPackageExports(module=node16).js

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -50,37 +50,43 @@ typei.implicitCjsSource;
5050
ts.cjsSource;
5151
//// [index.d.ts]
5252
// cjs format file
53+
export const implicitCjsSource = true;
54+
//// [test.d.ts]
55+
// cjs format file
5356
import * as cjs from "inner/a";
5457
import * as mjs from "inner/b";
5558
import * as type from "inner";
5659
import * as ts from "inner/types";
5760
export { cjs };
5861
export { mjs };
5962
export { type };
60-
export { ts };
61-
export const implicitCjsSource = true;
63+
export { ts };
6264
//// [index.d.mts]
6365
// esm format file
66+
export const mjsSource = true;
67+
//// [test.d.mts]
68+
// esm format file
6469
import * as cjs from "inner/a";
6570
import * as mjs from "inner/b";
6671
import * as type from "inner";
6772
import * as ts from "inner/types";
6873
export { cjs };
6974
export { mjs };
7075
export { type };
71-
export { ts };
72-
export const mjsSource = true;
76+
export { ts };
7377
//// [index.d.cts]
7478
// cjs format file
79+
export const cjsSource = true;
80+
//// [test.d.cts]
81+
// cjs format file
7582
import * as cjs from "inner/a";
7683
import * as mjs from "inner/b";
7784
import * as type from "inner";
7885
import * as ts from "inner/types";
7986
export { cjs };
8087
export { mjs };
8188
export { type };
82-
export { ts };
83-
export const cjsSource = true;
89+
export { ts };
8490
//// [package.json]
8591
{
8692
"name": "package",
@@ -123,22 +129,6 @@ export const cjsSource = true;
123129
}
124130

125131

126-
//// [index.js]
127-
// esm format file
128-
import * as cjs from "package/cjs";
129-
import * as mjs from "package/mjs";
130-
import * as type from "package";
131-
cjs;
132-
mjs;
133-
type;
134-
import * as cjsi from "inner/a";
135-
import * as mjsi from "inner/b";
136-
import * as typei from "inner";
137-
import * as ts from "inner/types";
138-
cjsi.mjsSource;
139-
mjsi.mjsSource;
140-
typei.mjsSource;
141-
ts.mjsSource;
142132
//// [index.mjs]
143133
// esm format file
144134
import * as cjs from "package/cjs";
@@ -206,11 +196,27 @@ cjsi.cjsSource;
206196
mjsi.cjsSource;
207197
typei.implicitCjsSource;
208198
ts.cjsSource;
199+
//// [index.js]
200+
// esm format file
201+
import * as cjs from "package/cjs";
202+
import * as mjs from "package/mjs";
203+
import * as type from "package";
204+
cjs;
205+
mjs;
206+
type;
207+
import * as cjsi from "inner/a";
208+
import * as mjsi from "inner/b";
209+
import * as typei from "inner";
210+
import * as ts from "inner/types";
211+
cjsi.mjsSource;
212+
mjsi.mjsSource;
213+
typei.mjsSource;
214+
ts.mjsSource;
209215

210216

211-
//// [index.d.ts]
212-
export {};
213217
//// [index.d.mts]
214218
export {};
215219
//// [index.d.cts]
216220
export {};
221+
//// [index.d.ts]
222+
export {};

testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsConditionalPackageExports(module=node16).js.diff

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)