fix CI error (#1045)

* fix CI error

* change the CI triggering event to pull_request
This commit is contained in:
MF
2026-04-01 12:00:00 +08:00
committed by GitHub
parent 25db99495c
commit 72d08344c1
4 changed files with 15 additions and 8 deletions

View File

@@ -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 }}

View File

@@ -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
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 { Replayer, mirror } from 'rrweb';
import { SvelteComponent } from 'svelte'; import { SvelteComponent } from 'svelte';

View File

@@ -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",