Improve development tooling (#1516)

- Running `yarn build` in a `packages/*/` directory will trigger build of all dependencies too, and cache them if possible.
- Fix for `yarn dev` breaking for `rrweb` package whenever changing files in `rrweb` package
- Update typescript, turbo, vite and vite-plugin-dts
- Require `workspaces-to-typescript-project-references` from `prepublish`
This commit is contained in:
Justin Halsall
2024-06-21 19:13:53 +02:00
committed by GitHub
parent a2c8a1a37b
commit a756a45aaf
54 changed files with 416 additions and 243 deletions

View File

@@ -1,11 +1,11 @@
import { Rule, Media, NodeWithRules, parse } from './css';
import { type Rule, type Media, type NodeWithRules, parse } from './css';
import {
serializedNodeWithId,
type serializedNodeWithId,
NodeType,
tagMap,
elementNode,
BuildCache,
legacyAttributes,
type tagMap,
type elementNode,
type BuildCache,
type legacyAttributes,
} from './types';
import { isElement, Mirror, isNodeMetaEqual } from './utils';

View File

@@ -1,17 +1,17 @@
import {
serializedNode,
serializedNodeWithId,
type serializedNode,
type serializedNodeWithId,
NodeType,
attributes,
MaskInputOptions,
SlimDOMOptions,
DataURLOptions,
MaskTextFn,
MaskInputFn,
KeepIframeSrcFn,
ICanvas,
elementNode,
serializedElementNodeWithId,
type attributes,
type MaskInputOptions,
type SlimDOMOptions,
type DataURLOptions,
type MaskTextFn,
type MaskInputFn,
type KeepIframeSrcFn,
type ICanvas,
type elementNode,
type serializedElementNodeWithId,
type mediaAttributes,
} from './types';
import {

View File

@@ -1,4 +1,4 @@
import {
import type {
idNodeMap,
MaskInputFn,
MaskInputOptions,
@@ -6,12 +6,12 @@ import {
IMirror,
serializedNodeWithId,
serializedNode,
NodeType,
documentNode,
documentTypeNode,
textNode,
elementNode,
} from './types';
import { NodeType } from './types';
export function isElement(n: Node): n is Element {
return n.nodeType === n.ELEMENT_NODE;