Skip to content

Commit

Permalink
Add yarn support for installing unreleased rrweb as a dependency (#497)
Browse files Browse the repository at this point in the history
* Use prepack instead of prepare for yarn support

* add prepare and prepack

for yarn v1 & v2 compatibility

* Create .npmignore
  • Loading branch information
Juice10 authored Feb 19, 2021
1 parent 75e4a0c commit 918f7f3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.vscode
.idea
node_modules
package-lock.json
yarn.lock
temp
*.log
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "0.9.14",
"description": "record and replay the web",
"scripts": {
"prepare": "npm run bundle",
"prepare": "npm run prepack",
"prepack": "npm run bundle",
"test": "npm run bundle:browser && cross-env TS_NODE_CACHE=false TS_NODE_FILES=true mocha -r ts-node/register test/**/*.test.ts",
"test:watch": "PUPPETEER_HEADLESS=true npm run test -- --watch --watch-extensions js,ts",
"repl": "npm run bundle:browser && cross-env TS_NODE_CACHE=false TS_NODE_FILES=true ts-node scripts/repl.ts",
Expand Down

0 comments on commit 918f7f3

Please sign in to comment.