resolved local folder as dependency from workspace

This commit is contained in:
2024-06-10 02:12:27 +01:00
parent 8a42309956
commit 991cec842a
8 changed files with 29 additions and 14 deletions
+1 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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