Skip to content

Commit

Permalink
www: yarn: workaround local package caching
Browse files Browse the repository at this point in the history
due to some caching implemented by yarn, application does not update
local dependencies (cleaning up node_modules seems to be the only way
to trigger a code update when I regen the aocwasm) why is slightly
annoying.

Using the link: protocol fixes the issue. It will symlink the wasm build
directly into the node_modules directly. This gives us live updates -
way better.

ref: yarnpkg/yarn#2165 (comment)
  • Loading branch information
ey3ball committed Dec 3, 2022
1 parent d5fdc63 commit 4bd5091
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^13.5.0",
"antd": "^4.22.8",
"aocwasm": "../pkg",
"aocwasm": "link:../pkg",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.4.4",
Expand Down
5 changes: 3 additions & 2 deletions www/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2657,8 +2657,9 @@ anymatch@^3.0.3, anymatch@~3.1.2:
normalize-path "^3.0.0"
picomatch "^2.0.4"

aocwasm@../pkg:
version "0.1.0"
"aocwasm@link:../pkg":
version "0.0.0"
uid ""

arg@^4.1.0:
version "4.1.3"
Expand Down

0 comments on commit 4bd5091

Please sign in to comment.