Skip to content

Commit

Permalink
fix CI error (#1045)
Browse files Browse the repository at this point in the history
* fix CI error

* change the CI triggering event to pull_request
  • Loading branch information
YunFeng0817 authored Nov 7, 2022
1 parent 1990524 commit e08d039
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Tests

on: [push, pull_request_target]
on: [push, pull_request]

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

Expand Down
2 changes: 1 addition & 1 deletion packages/rrweb-player/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ declare global {
}

import { EventType, IncrementalSource } from 'rrweb';
import type { eventWithTime } from 'rrweb/typings/types';
import type { eventWithTime } from '@rrweb/types';

export function inlineCss(cssObj: Record<string, string>): string {
let style = '';
Expand Down
3 changes: 2 additions & 1 deletion packages/rrweb-player/typings/index.d.ts
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { eventWithTime, playerConfig } from 'rrweb/typings/types';
import { playerConfig } from 'rrweb/typings/types';
import type { eventWithTime } from '@rrweb/types';
import { Replayer, mirror } from 'rrweb';
import { SvelteComponent } from 'svelte';

Expand Down
16 changes: 11 additions & 5 deletions packages/rrweb/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,30 @@
"preserveConstEnums": true,
"rootDir": "src",
"outDir": "build",
"lib": ["es6", "dom"],
"lib": [
"es6",
"dom"
],
"downlevelIteration": true,
"importsNotUsedAsValues": "error",
"strictBindCallApply": true,
"composite": true
},
"references": [
{
"path": "../rrdom"
"path": "../types"
},
{
"path": "../rrweb-snapshot"
"path": "../rrdom"
},
{
"path": "../types"
"path": "../rrweb-snapshot"
}
],
"exclude": ["test", "scripts"],
"exclude": [
"test",
"scripts"
],
"include": [
"src",
"node_modules/@types/css-font-loading-module/index.d.ts",
Expand Down

0 comments on commit e08d039

Please sign in to comment.