upd (fw):
- fixed import names for client/server - added "access": "public" field for fw packages
This commit is contained in:
parent
edafb5289e
commit
a820e9896b
@ -13,6 +13,7 @@
|
|||||||
".": "./src/index.ts"
|
".": "./src/index.ts"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
|
"access": "public",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
".": "./src/index.ts"
|
".": "./src/index.ts"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
|
"access": "public",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Client, Logger, Player, rpc } from './core'
|
import { FW_Client, FW_Logger, FW_Player, rpc } from './core'
|
||||||
|
|
||||||
export type { RageFW_MiddlewareFunction } from './types'
|
export type { FW_MiddlewareFunction } from './types'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Package used on a client-side of your Rage:MP Server
|
* Package used on a client-side of your Rage:MP Server
|
||||||
@ -9,13 +9,13 @@ export type { RageFW_MiddlewareFunction } from './types'
|
|||||||
*/
|
*/
|
||||||
export const fw = {
|
export const fw = {
|
||||||
/** Client-side interactions */
|
/** Client-side interactions */
|
||||||
event: new Client(),
|
event: new FW_Client(),
|
||||||
/** Handles event manipulations that require player to be present in context */
|
/** Handles event manipulations that require player to be present in context */
|
||||||
player: new Player(),
|
player: new FW_Player(),
|
||||||
/** Handles functions used to interact with the client environment */
|
/** Handles functions used to interact with the client environment */
|
||||||
system: {
|
system: {
|
||||||
/** Used to log in a client in-game console */
|
/** Used to log in a client in-game console */
|
||||||
log: new Logger(),
|
log: new FW_Logger(),
|
||||||
},
|
},
|
||||||
/** ``rage-fw-rpc`` instance used under the hood. It is highly recommended to use this one if you need it instead of creating a new instance */
|
/** ``rage-fw-rpc`` instance used under the hood. It is highly recommended to use this one if you need it instead of creating a new instance */
|
||||||
rpc,
|
rpc,
|
||||||
|
@ -3,9 +3,16 @@
|
|||||||
"name": "@entityseven/rage-fw-rpc",
|
"name": "@entityseven/rage-fw-rpc",
|
||||||
"version": "0.2.5",
|
"version": "0.2.5",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
|
"exports": {
|
||||||
|
".": "./src/index.ts"
|
||||||
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
|
"access": "public",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts"
|
"types": "dist/index.d.ts",
|
||||||
|
"exports": {
|
||||||
|
".": "./dist/index.js"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsup",
|
"build": "tsup",
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
".": "./src/index.ts"
|
".": "./src/index.ts"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
|
"access": "public",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Logger, Player, Server, rpc } from './core'
|
import { FW_Logger, FW_Player, FW_Server, rpc } from './core'
|
||||||
|
|
||||||
export type { RageFW_MiddlewareFunction } from './types'
|
export type { FW_MiddlewareFunction } from './types'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Package used on a server-side of your Rage:MP Server
|
* Package used on a server-side of your Rage:MP Server
|
||||||
@ -9,13 +9,13 @@ export type { RageFW_MiddlewareFunction } from './types'
|
|||||||
*/
|
*/
|
||||||
export const fw = {
|
export const fw = {
|
||||||
/** Server-side interactions */
|
/** Server-side interactions */
|
||||||
event: new Server(),
|
event: new FW_Server(),
|
||||||
/** Handles event manipulations that require player to be present in context */
|
/** Handles event manipulations that require player to be present in context */
|
||||||
player: new Player(),
|
player: new FW_Player(),
|
||||||
/** Handles functions used to interact with the client environment */
|
/** Handles functions used to interact with the client environment */
|
||||||
system: {
|
system: {
|
||||||
/** Used to log in a server console */
|
/** Used to log in a server console */
|
||||||
log: new Logger(),
|
log: new FW_Logger(),
|
||||||
},
|
},
|
||||||
/** ``rage-fw-rpc`` instance used under the hood. It is highly recommended to use this one if you need it instead of creating a new instance */
|
/** ``rage-fw-rpc`` instance used under the hood. It is highly recommended to use this one if you need it instead of creating a new instance */
|
||||||
rpc,
|
rpc,
|
||||||
|
Loading…
Reference in New Issue
Block a user