fix CI error (#1045)

* fix CI error

* change the CI triggering event to pull_request
This commit is contained in:
MF
2022-11-07 15:54:36 +11:00
committed by GitHub
parent 1990524ebb
commit e08d03988f
4 changed files with 15 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
name: Tests
on: [push, pull_request_target]
on: [push, pull_request]
concurrency: ${{ github.workflow }}-${{ github.ref }}

View File

@@ -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 = '';

3
packages/rrweb-player/typings/index.d.ts vendored Normal file → Executable file
View File

@@ -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';

View File

@@ -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": "../types"
},
{
"path": "../rrdom"
},
{
"path": "../rrweb-snapshot"
},
{
"path": "../types"
}
],
"exclude": ["test", "scripts"],
"exclude": [
"test",
"scripts"
],
"include": [
"src",
"node_modules/@types/css-font-loading-module/index.d.ts",