Skip to content

Commit

Permalink
Fix peer dependency scoping
Browse files Browse the repository at this point in the history
  • Loading branch information
LastTalon committed Jan 11, 2024
1 parent 8d08895 commit 99d6d16
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ If you're currently using the scope `lasttalon/matter-hooks`, this is the same
package. You can migrate by changing your `wally.toml` file to use the scope
`matter-ecs/matter-hooks`.

If you have migrated to `ecs-matter/matter`, you should also upgrade to
`ecs-matter/matter-hooks@0.2.0` or newer. This version of Matter Hooks is
compatible with the `ecs-matter/matter` package scope as a peer dependency.

## Building

Before building, you'll need to install all dependencies using [Wally].
Expand Down
3 changes: 3 additions & 0 deletions test.project.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"$path": "lib"
}
},
"DevPackages": {
"$path": "DevPackages"
},
"tests": {
"$path": "tests"
}
Expand Down
2 changes: 1 addition & 1 deletion tests/runners/tests.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TestEZ = require(ReplicatedStorage.Packages.TestEZ)
local TestEZ = require(ReplicatedStorage.DevPackages.TestEZ)

local function test(roots)
print()
Expand Down
7 changes: 5 additions & 2 deletions wally.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ registry = "https://github.com/UpliftGames/wally-index"
realm = "shared"
exclude = ["*.spec.lua", "*.dev.lua", "tests", "docs"]

[place]
shared-packages = "game.ReplicatedStorage.Packages"

[dependencies]
Matter = "evaera/matter@0.6.2"
TestEZ = "roblox/testez@0.4.1" # This is needed currently because Matter has this as a regular dependency.
Matter = "matter-ecs/matter@>=0.6.2, <0.8.0"

[dev-dependencies]
TestEZ = "roblox/testez@0.4.1"

0 comments on commit 99d6d16

Please sign in to comment.