resolved local folder as dependency from workspace
This commit is contained in:
parent
8a42309956
commit
991cec842a
@ -9,7 +9,7 @@
|
||||
"types": "dts-bundle-generator --config dts.config.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"rage-fw-shared-types": "workspace:shared-types:*"
|
||||
"rage-fw-shared-types": "workspace:^"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "SashaGoncharov19",
|
||||
|
@ -1,5 +1,5 @@
|
||||
import rpc from 'rage-rpc'
|
||||
import {
|
||||
import type {
|
||||
RageFW_ClientEventReturn,
|
||||
RageFW_ClientEvent,
|
||||
RageFW_ClientEventArguments,
|
||||
|
@ -1,6 +1,6 @@
|
||||
/// <reference types="@ragempcommunity/types-client" />
|
||||
|
||||
import { RageFW_ICustomClientEvent } from 'rage-fw-shared-types'
|
||||
import type { RageFW_ICustomClientEvent } from 'rage-fw-shared-types'
|
||||
|
||||
export type RageFW_ClientEvent =
|
||||
| keyof RageFW_ICustomClientEvent
|
||||
|
23
pnpm-lock.yaml
generated
23
pnpm-lock.yaml
generated
@ -23,6 +23,9 @@ importers:
|
||||
esbuild:
|
||||
specifier: ^0.21.5
|
||||
version: 0.21.5
|
||||
lerna:
|
||||
specifier: ^8.1.3
|
||||
version: 8.1.3(encoding@0.1.13)
|
||||
prettier:
|
||||
specifier: ^3.3.1
|
||||
version: 3.3.1
|
||||
@ -32,10 +35,22 @@ importers:
|
||||
typescript:
|
||||
specifier: ^5.4.5
|
||||
version: 5.4.5
|
||||
devDependencies:
|
||||
lerna:
|
||||
specifier: ^8.1.3
|
||||
version: 8.1.3(encoding@0.1.13)
|
||||
|
||||
client:
|
||||
dependencies:
|
||||
rage-fw-shared-types:
|
||||
specifier: workspace:^
|
||||
version: link:../shared-types
|
||||
|
||||
server:
|
||||
dependencies:
|
||||
rage-fw-shared-types:
|
||||
specifier: workspace:^
|
||||
version: link:../shared-types
|
||||
|
||||
shared: {}
|
||||
|
||||
shared-types: {}
|
||||
|
||||
packages:
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
packages:
|
||||
- "server/*"
|
||||
- "client/*"
|
||||
- "shared/*"
|
||||
- "shared-types/*"
|
||||
- "server"
|
||||
- "client"
|
||||
- "shared"
|
||||
- "shared-types"
|
@ -10,7 +10,7 @@
|
||||
"types": "dts-bundle-generator --config dts.config.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"rage-fw-shared-types": "workspace:shared-types:*"
|
||||
"rage-fw-shared-types": "workspace:^"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "SashaGoncharov19",
|
||||
|
@ -1,5 +1,5 @@
|
||||
import rpc from 'rage-rpc'
|
||||
import { RageFW_ServerEvent, RageFW_ServerEventCallback } from './types.js'
|
||||
import type { RageFW_ServerEvent, RageFW_ServerEventCallback } from './types.js'
|
||||
|
||||
class Server {
|
||||
public register<EventName extends RageFW_ServerEvent>(
|
||||
|
@ -1,6 +1,6 @@
|
||||
/// <reference types="@ragempcommunity/types-server" />
|
||||
|
||||
import { RageFW_ICustomServerEvent } from 'rage-fw-shared-types'
|
||||
import type { RageFW_ICustomServerEvent } from 'rage-fw-shared-types'
|
||||
|
||||
export type RageFW_ServerEvent =
|
||||
| keyof RageFW_ICustomServerEvent
|
||||
|
Loading…
Reference in New Issue
Block a user