-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsup.config.ts
34 lines (33 loc) · 1.18 KB
/
tsup.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { defineConfig } from "tsup";
export default defineConfig({
entry: [
"src/index.ts",
"src/cli/bin.ts",
"src/integration/cypress/nodeEvents/index.ts",
"src/integration/cypress/reporter/index.ts",
"src/integration/cypress/support/index.ts",
"src/integration/jest/reporter/index.ts",
"src/integration/jest/nodeEnvironment/index.ts",
"src/integration/playwright/index.ts",
"src/integration/playwright/globalSetup/index.ts",
"src/integration/playwright/reporter/index.ts",
"src/integration/playwright/test/index.ts",
"src/integration/playwright/test/wrapper/index.ts",
"src/scenario/gen/internal/jest/index.ts",
"src/scenario/gen/internal/playwright/index.ts",
"src/scenario/gen/jest/asserter/index.ts",
"src/scenario/gen/jest/runner/index.ts",
"src/scenario/gen/playwright/runner/index.ts",
],
target: "es2022",
format: ["cjs", "esm"],
clean: true,
dts: true,
onSuccess: `
mkdir -p ./dist/reporter/dist &&
cp ./reporter/dist/index.html ./dist/reporter/dist/index.html &&
rm -rf ./dist/scenario/template &&
mkdir -p ./dist/scenario/template &&
cp -r ./src/scenario/template ./dist/scenario
`,
});