fix CI error (#1045)
* fix CI error * change the CI triggering event to pull_request
This commit is contained in:
2
.github/workflows/ci-cd.yml
vendored
2
.github/workflows/ci-cd.yml
vendored
@@ -1,6 +1,6 @@
|
|||||||
name: Tests
|
name: Tests
|
||||||
|
|
||||||
on: [push, pull_request_target]
|
on: [push, pull_request]
|
||||||
|
|
||||||
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ declare global {
|
|||||||
}
|
}
|
||||||
|
|
||||||
import { EventType, IncrementalSource } from 'rrweb';
|
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 {
|
export function inlineCss(cssObj: Record<string, string>): string {
|
||||||
let style = '';
|
let style = '';
|
||||||
|
|||||||
3
packages/rrweb-player/typings/index.d.ts
vendored
Normal file → Executable file
3
packages/rrweb-player/typings/index.d.ts
vendored
Normal file → Executable 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 { Replayer, mirror } from 'rrweb';
|
||||||
import { SvelteComponent } from 'svelte';
|
import { SvelteComponent } from 'svelte';
|
||||||
|
|
||||||
|
|||||||
@@ -9,24 +9,30 @@
|
|||||||
"preserveConstEnums": true,
|
"preserveConstEnums": true,
|
||||||
"rootDir": "src",
|
"rootDir": "src",
|
||||||
"outDir": "build",
|
"outDir": "build",
|
||||||
"lib": ["es6", "dom"],
|
"lib": [
|
||||||
|
"es6",
|
||||||
|
"dom"
|
||||||
|
],
|
||||||
"downlevelIteration": true,
|
"downlevelIteration": true,
|
||||||
"importsNotUsedAsValues": "error",
|
"importsNotUsedAsValues": "error",
|
||||||
"strictBindCallApply": true,
|
"strictBindCallApply": true,
|
||||||
"composite": true
|
"composite": true
|
||||||
},
|
},
|
||||||
"references": [
|
"references": [
|
||||||
|
{
|
||||||
|
"path": "../types"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "../rrdom"
|
"path": "../rrdom"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "../rrweb-snapshot"
|
"path": "../rrweb-snapshot"
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "../types"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"exclude": ["test", "scripts"],
|
"exclude": [
|
||||||
|
"test",
|
||||||
|
"scripts"
|
||||||
|
],
|
||||||
"include": [
|
"include": [
|
||||||
"src",
|
"src",
|
||||||
"node_modules/@types/css-font-loading-module/index.d.ts",
|
"node_modules/@types/css-font-loading-module/index.d.ts",
|
||||||
|
|||||||
Reference in New Issue
Block a user