Skip to content

Commit 95d9219

Browse files
authored
add exports.types field (#115)
1 parent 7cdfb7a commit 95d9219

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

scripts/build.ts

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const main = async () => {
3737
node: "./$cjs",
3838
browser: "./$esm",
3939
default: "./$cjs",
40+
types: "./$types",
4041
},
4142
});
4243

scripts/tools/dualPackageSupport.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as fs from "fs";
22
import { posix as path } from "path";
33

4-
export type SupportModuleType = "browser" | "node" | "require" | "import" | "default";
4+
export type SupportModuleType = "browser" | "node" | "require" | "import" | "default" | "types";
55

66
export type SupportModule = {
77
// eslint-disable-next-line no-unused-vars

0 commit comments

Comments
 (0)