resolved local folder as dependency from workspace

This commit is contained in:
Danya H 2024-06-10 02:12:27 +01:00
parent 8a42309956
commit 991cec842a
8 changed files with 29 additions and 14 deletions

View File

@ -9,7 +9,7 @@
"types": "dts-bundle-generator --config dts.config.json" "types": "dts-bundle-generator --config dts.config.json"
}, },
"peerDependencies": { "peerDependencies": {
"rage-fw-shared-types": "workspace:shared-types:*" "rage-fw-shared-types": "workspace:^"
}, },
"keywords": [], "keywords": [],
"author": "SashaGoncharov19", "author": "SashaGoncharov19",

View File

@ -1,5 +1,5 @@
import rpc from 'rage-rpc' import rpc from 'rage-rpc'
import { import type {
RageFW_ClientEventReturn, RageFW_ClientEventReturn,
RageFW_ClientEvent, RageFW_ClientEvent,
RageFW_ClientEventArguments, RageFW_ClientEventArguments,

View File

@ -1,6 +1,6 @@
/// <reference types="@ragempcommunity/types-client" /> /// <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 = export type RageFW_ClientEvent =
| keyof RageFW_ICustomClientEvent | keyof RageFW_ICustomClientEvent

View File

@ -23,6 +23,9 @@ importers:
esbuild: esbuild:
specifier: ^0.21.5 specifier: ^0.21.5
version: 0.21.5 version: 0.21.5
lerna:
specifier: ^8.1.3
version: 8.1.3(encoding@0.1.13)
prettier: prettier:
specifier: ^3.3.1 specifier: ^3.3.1
version: 3.3.1 version: 3.3.1
@ -32,10 +35,22 @@ importers:
typescript: typescript:
specifier: ^5.4.5 specifier: ^5.4.5
version: 5.4.5 version: 5.4.5
devDependencies:
lerna: client:
specifier: ^8.1.3 dependencies:
version: 8.1.3(encoding@0.1.13) 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: packages:

View File

@ -1,5 +1,5 @@
packages: packages:
- "server/*" - "server"
- "client/*" - "client"
- "shared/*" - "shared"
- "shared-types/*" - "shared-types"

View File

@ -10,7 +10,7 @@
"types": "dts-bundle-generator --config dts.config.json" "types": "dts-bundle-generator --config dts.config.json"
}, },
"peerDependencies": { "peerDependencies": {
"rage-fw-shared-types": "workspace:shared-types:*" "rage-fw-shared-types": "workspace:^"
}, },
"keywords": [], "keywords": [],
"author": "SashaGoncharov19", "author": "SashaGoncharov19",

View File

@ -1,5 +1,5 @@
import rpc from 'rage-rpc' import rpc from 'rage-rpc'
import { RageFW_ServerEvent, RageFW_ServerEventCallback } from './types.js' import type { RageFW_ServerEvent, RageFW_ServerEventCallback } from './types.js'
class Server { class Server {
public register<EventName extends RageFW_ServerEvent>( public register<EventName extends RageFW_ServerEvent>(

View File

@ -1,6 +1,6 @@
/// <reference types="@ragempcommunity/types-server" /> /// <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 = export type RageFW_ServerEvent =
| keyof RageFW_ICustomServerEvent | keyof RageFW_ICustomServerEvent