Skip to content

Commit

Permalink
feat: add script to link react
Browse files Browse the repository at this point in the history
  • Loading branch information
octokatherine committed Oct 31, 2021
1 parent 5a76db1 commit dc4592f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions example-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"dev": "yarn run link-react && next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"link-react": "cd ./node_modules/react && yarn link && cd ../../../packages/run-wasm && yarn link \"react\""
},
"dependencies": {
"@headlessui/react": "^1.4.1",
Expand All @@ -29,4 +30,4 @@
"tailwindcss": "^2.2.15",
"typescript": "4.4.3"
}
}
}

0 comments on commit dc4592f

Please sign in to comment.