[dist] `resource` is now a peer dependency