Skip to content

Commit 5a9730d

Browse files
committed
add rslib to root
1 parent 2a1248b commit 5a9730d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

rslib.config.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import { defineConfig } from "@rslib/core";
2+
3+
const scramjetPath = "./packages/scramjet";
4+
5+
export default [
6+
defineConfig({
7+
source: {
8+
entry: {
9+
index: scramjetPath + "/src/index.ts",
10+
},
11+
tsconfigPath: scramjetPath + "/tsconfig.rslib.json",
12+
},
13+
lib: [
14+
{
15+
format: "esm",
16+
bundle: false,
17+
dts: {
18+
bundle: false,
19+
distPath: scramjetPath + "/dist/types",
20+
abortOnError: false,
21+
},
22+
output: {
23+
distPath: {
24+
root: scramjetPath + "/dist/temp",
25+
},
26+
cleanDistPath: true,
27+
},
28+
},
29+
],
30+
}),
31+
];

0 commit comments

Comments
 (0)