mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-14 16:49:10 +00:00
feat(design-system): use rpcs
This commit is contained in:
parent
f31b32c54a
commit
00dff464df
7 changed files with 14 additions and 10 deletions
|
@ -5,6 +5,8 @@ package(default_visibility = ["//visibility:public"])
|
|||
react_library(
|
||||
name = "fixtures",
|
||||
deps = [
|
||||
"@roleypoly/rpc",
|
||||
"//src/rpc/discord",
|
||||
"//src/rpc/platform",
|
||||
"//src/rpc/shared",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Role } from '@roleypoly/rpc/shared';
|
||||
import { Role } from 'roleypoly/src/rpc/shared';
|
||||
|
||||
export const demoData: Role.AsObject[] = [
|
||||
{
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import { Member } from '@roleypoly/rpc/discord';
|
||||
import { Category, GuildData, GuildEnumeration } from '@roleypoly/rpc/platform';
|
||||
import { Member } from 'roleypoly/src/rpc/discord';
|
||||
import { Category, GuildData, GuildEnumeration } from 'roleypoly/src/rpc/platform';
|
||||
import {
|
||||
DiscordUser,
|
||||
Guild,
|
||||
GuildRoles,
|
||||
Role,
|
||||
RoleypolyUser,
|
||||
} from '@roleypoly/rpc/shared';
|
||||
} from 'roleypoly/src/rpc/shared';
|
||||
|
||||
export const roleCategory: Role.AsObject[] = [
|
||||
{
|
||||
|
|
|
@ -4,7 +4,9 @@ def _render_deps(deps = []):
|
|||
output_deps = []
|
||||
|
||||
for dep in deps:
|
||||
if dep.startswith("//"):
|
||||
if dep.startswith("//src/rpc"):
|
||||
output_deps.append(dep + ":ts")
|
||||
elif dep.startswith("//"):
|
||||
output_deps.append(dep)
|
||||
else:
|
||||
output_deps.append("@npm//" + dep)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue