Skip to content

Commit

Permalink
These commands are handy within a package
Browse files Browse the repository at this point in the history
  • Loading branch information
eoghanmurray committed Dec 2, 2024
1 parent 21f2a97 commit 4f056fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/rrweb-snapshot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"version": "2.0.0-alpha.17",
"description": "rrweb's component to take a snapshot of DOM, aka DOM serializer",
"scripts": {
"format": "yarn prettier --write '**/*.{ts,md}'",
"format:head": "git diff --name-only HEAD^ |grep '/rrweb-snapshot/.*\\.ts$\\|\\.md$' |sed 's|packages/rrweb-snapshot/||'|xargs yarn prettier --write",
"prepare": "npm run prepack",
"prepack": "npm run build",
"retest": "vitest run",
Expand Down
2 changes: 2 additions & 0 deletions packages/rrweb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"version": "2.0.0-alpha.17",
"description": "record and replay the web",
"scripts": {
"format": "yarn prettier --write '**/*.{ts,md}'",
"format:head": "git diff --name-only HEAD^ |grep '/rrweb/.*\\.ts$\\|\\.md$' |sed 's|packages/rrweb/||'|xargs yarn prettier --write",
"prepare": "npm run prepack",
"prepack": "npm run build",
"retest": "cross-env PUPPETEER_HEADLESS=true yarn retest:headful",
Expand Down

0 comments on commit 4f056fa

Please sign in to comment.