Skip to content

Commit e08d039

Browse files
authored
fix CI error (#1045)
* fix CI error * change the CI triggering event to pull_request
1 parent 1990524 commit e08d039

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Tests
22

3-
on: [push, pull_request_target]
3+
on: [push, pull_request]
44

55
concurrency: ${{ github.workflow }}-${{ github.ref }}
66

packages/rrweb-player/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ declare global {
1616
}
1717

1818
import { EventType, IncrementalSource } from 'rrweb';
19-
import type { eventWithTime } from 'rrweb/typings/types';
19+
import type { eventWithTime } from '@rrweb/types';
2020

2121
export function inlineCss(cssObj: Record<string, string>): string {
2222
let style = '';

packages/rrweb-player/typings/index.d.ts

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { eventWithTime, playerConfig } from 'rrweb/typings/types';
1+
import { playerConfig } from 'rrweb/typings/types';
2+
import type { eventWithTime } from '@rrweb/types';
23
import { Replayer, mirror } from 'rrweb';
34
import { SvelteComponent } from 'svelte';
45

packages/rrweb/tsconfig.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,30 @@
99
"preserveConstEnums": true,
1010
"rootDir": "src",
1111
"outDir": "build",
12-
"lib": ["es6", "dom"],
12+
"lib": [
13+
"es6",
14+
"dom"
15+
],
1316
"downlevelIteration": true,
1417
"importsNotUsedAsValues": "error",
1518
"strictBindCallApply": true,
1619
"composite": true
1720
},
1821
"references": [
1922
{
20-
"path": "../rrdom"
23+
"path": "../types"
2124
},
2225
{
23-
"path": "../rrweb-snapshot"
26+
"path": "../rrdom"
2427
},
2528
{
26-
"path": "../types"
29+
"path": "../rrweb-snapshot"
2730
}
2831
],
29-
"exclude": ["test", "scripts"],
32+
"exclude": [
33+
"test",
34+
"scripts"
35+
],
3036
"include": [
3137
"src",
3238
"node_modules/@types/css-font-loading-module/index.d.ts",

0 commit comments

Comments
 (0)