Skip to content

Commit a130f13

Browse files
committed
Fix build script
1 parent ca8fb52 commit a130f13

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

scripts/build/build.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010
} from "../../src/bin/only-include-used-icons";
1111
import * as child_process from "child_process";
1212
import { oppa } from "oppa";
13-
import { assert } from "tsafe/assert";
1413
import { patchCssForMui } from "./patchCssForMui";
1514

1615
(async () => {
@@ -123,14 +122,7 @@ import { patchCssForMui } from "./patchCssForMui";
123122
...packageJsonParsed,
124123
"main": packageJsonParsed["main"].replace(/^dist\//, ""),
125124
"types": packageJsonParsed["types"].replace(/^dist\//, ""),
126-
"module": packageJsonParsed["module"].replace(/^dist\//, ""),
127-
"exports": Object.fromEntries(
128-
Object.entries(packageJsonParsed["exports"]).map(([key, value]) => [
129-
key,
130-
(assert(typeof value === "string"),
131-
value.replace(/^\.\/dist\//, "./"))
132-
])
133-
)
125+
"module": packageJsonParsed["module"].replace(/^dist\//, "")
134126
};
135127
})(),
136128
null,

0 commit comments

Comments
 (0)