Skip to content

Commit a62ec95

Browse files
authored
fix: generated entrypoints were incorrect (#3436)
1 parent 5a8ae24 commit a62ec95

File tree

4 files changed

+38
-6
lines changed

4 files changed

+38
-6
lines changed

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,13 @@
3636
"import": "./lib/esm/*",
3737
"require": "./lib/cjs/*"
3838
},
39+
"./lib/cjs/*.js": {
40+
"import": "./lib/cjs/*.js",
41+
"require": "./lib/cjs/*.js"
42+
},
3943
"./lib/cjs/*": {
40-
"import": "./lib/cjs/*",
41-
"require": "./lib/cjs/*"
44+
"import": "./lib/cjs/*.js",
45+
"require": "./lib/cjs/*.js"
4246
}
4347
},
4448
"wireit": {

src/cdp/cdp.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/**
2+
* Copyright 2021 Google LLC.
3+
* Copyright (c) Microsoft Corporation.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
export * from './CdpClient.js';
19+
export * from './CdpConnection.js';
20+
export * from './cdpMessage.js';

src/tsconfig.cjs.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
{
22
"extends": "../tsconfig.cjs.json",
3-
"files": [],
3+
"compilerOptions": {
4+
"outDir": "../lib/cjs"
5+
},
6+
"files": ["index.ts"],
47
"references": [
58
{"path": "./bidiMapper/tsconfig.cjs.json"},
6-
{"path": "./bidiTab/tsconfig.cjs.json"}
9+
{"path": "./bidiTab/tsconfig.cjs.json"},
10+
{"path": "./cdp/tsconfig.cjs.json"}
711
]
812
}

src/tsconfig.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
{
22
"extends": "../tsconfig.base.json",
3-
"files": [],
3+
"compilerOptions": {
4+
"outDir": "../lib/esm"
5+
},
6+
"files": ["index.ts"],
47
"references": [
58
{"path": "./bidiMapper/tsconfig.json"},
69
{"path": "./bidiServer/tsconfig.json"},
7-
{"path": "./bidiTab/tsconfig.json"}
10+
{"path": "./bidiTab/tsconfig.json"},
11+
{"path": "./cdp/tsconfig.json"}
812
]
913
}

0 commit comments

Comments
 (0)