upd (fw): versions bump + configs

This commit is contained in:
Danya H 2025-01-28 14:35:38 +00:00
parent b55204ee61
commit 47375c0a15
15 changed files with 262 additions and 436 deletions

View File

@ -14,12 +14,15 @@
"build": "tsup" "build": "tsup"
}, },
"dependencies": { "dependencies": {
"@entityseven/rage-fw-rpc": "0.2.5", "@entityseven/rage-fw-rpc": "0.2.5"
"zod": "^3.23.8" },
"devDependencies": {
"@types/node": "catalog:"
}, },
"peerDependencies": { "peerDependencies": {
"@entityseven/rage-fw-shared-types": "0.2.0", "@entityseven/rage-fw-shared-types": "0.2.0",
"@ragempcommunity/types-cef": "^2.1.8" "@ragempcommunity/types-cef": "catalog:",
"typescript": "^5"
}, },
"description": "Package used on a browser-side of your Rage:MP Server", "description": "Package used on a browser-side of your Rage:MP Server",
"keywords": [ "keywords": [

View File

@ -20,6 +20,7 @@
"esModuleInterop": true, "esModuleInterop": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"strict": true, "strict": true,
"skipLibCheck": true "skipLibCheck": true,
"types": ["./node_modules/@ragempcommunity/types-cef/index.d.ts", "node"]
} }
} }

View File

@ -1,12 +1,12 @@
import { defineConfig } from 'tsup' import { defineConfig } from 'tsup'
export default defineConfig({ export default defineConfig({
entry: ['src/index.ts'], entry: ['src/**/*.ts'],
outDir: './dist', outDir: './dist',
format: ['cjs'], format: ['cjs'],
noExternal: ['rage-rpc'],
experimentalDts: true, experimentalDts: true,
splitting: false, splitting: false,
bundle: false,
sourcemap: false, sourcemap: false,
clean: true, clean: true,
}) })

View File

@ -22,10 +22,10 @@
"yargs": "^17.7.2" "yargs": "^17.7.2"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^20.14.2", "@types/node": "^22.12.0",
"@types/yargs": "^17.0.32", "@types/yargs": "^17.0.32",
"prettier": "^3.3.2", "prettier": "^3.3.2",
"typescript": "^5.4.5" "typescript": "^5.7.3"
}, },
"description": "CLI to scaffold a preview for Rage FW", "description": "CLI to scaffold a preview for Rage FW",
"keywords": ["create-rage-fw","ragefw-cli", "ragefw", "rage-fw", "ragemp", "rage:mp", "rage", "gta5"], "keywords": ["create-rage-fw","ragefw-cli", "ragefw", "rage-fw", "ragemp", "rage:mp", "rage", "gta5"],

View File

@ -17,9 +17,13 @@
"@entityseven/rage-fw-rpc": "0.2.5", "@entityseven/rage-fw-rpc": "0.2.5",
"zod": "^3.23.8" "zod": "^3.23.8"
}, },
"devDependencies": {
"@types/node": "catalog:"
},
"peerDependencies": { "peerDependencies": {
"@entityseven/rage-fw-shared-types": "0.2.0", "@entityseven/rage-fw-shared-types": "0.2.0",
"@ragempcommunity/types-client": "^2.1.8" "@ragempcommunity/types-client": "catalog:",
"typescript": "^5"
}, },
"description": "Package used on a client-side of your Rage:MP Server", "description": "Package used on a client-side of your Rage:MP Server",
"keywords": [ "keywords": [

View File

@ -20,6 +20,7 @@
"esModuleInterop": true, "esModuleInterop": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"strict": true, "strict": true,
"skipLibCheck": true "skipLibCheck": true,
"types": ["./node_modules/@ragempcommunity/types-client/index.d.ts"]
} }
} }

View File

@ -1,12 +1,12 @@
import { defineConfig } from 'tsup' import { defineConfig } from 'tsup'
export default defineConfig({ export default defineConfig({
entry: ['src/index.ts'], entry: ['src/**/*.ts'],
outDir: './dist', outDir: './dist',
format: ['cjs'], format: ['cjs'],
noExternal: ['rage-rpc'],
experimentalDts: true, experimentalDts: true,
splitting: false, splitting: false,
bundle: false,
sourcemap: false, sourcemap: false,
clean: true, clean: true,
}) })

View File

@ -10,10 +10,9 @@
}, },
"dependencies": { "dependencies": {
"@microsoft/api-extractor": "^7.47.0", "@microsoft/api-extractor": "^7.47.0",
"@ragempcommunity/types-cef": "^2.1.8", "@ragempcommunity/types-cef": "catalog:",
"@ragempcommunity/types-client": "^2.1.8", "@ragempcommunity/types-client": "catalog:",
"@ragempcommunity/types-server": "^2.1.8", "@ragempcommunity/types-server": "catalog:",
"@types/node": "^22.8.1",
"@typescript-eslint/eslint-plugin": "^7.13.0", "@typescript-eslint/eslint-plugin": "^7.13.0",
"@typescript-eslint/parser": "^7.13.0", "@typescript-eslint/parser": "^7.13.0",
"cli": "^1.0.1", "cli": "^1.0.1",
@ -25,6 +24,10 @@
"typescript": "^5.4.5", "typescript": "^5.4.5",
"winston": "^3.13.0" "winston": "^3.13.0"
}, },
"engines": {
"node": ">=14",
"pnpm": ">=10"
},
"private": true, "private": true,
"type": "module", "type": "module",
"license": "SEE INDIVIDUALLY FOR EACH PACKAGE", "license": "SEE INDIVIDUALLY FOR EACH PACKAGE",

626
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -3,3 +3,11 @@ packages:
- "client" - "client"
- "browser" - "browser"
- "shared-types" - "shared-types"
- "rpc"
- "!cli"
catalog:
"@types/node": "14.10.1"
"@ragempcommunity/types-cef": "^2.1.8"
"@ragempcommunity/types-client": "^2.1.8"
"@ragempcommunity/types-server": "^2.1.8"

View File

@ -14,6 +14,7 @@
], ],
"devDependencies": { "devDependencies": {
"@microsoft/api-extractor": "^7.47.9", "@microsoft/api-extractor": "^7.47.9",
"@types/node": "catalog:",
"prettier": "^3.3.2", "prettier": "^3.3.2",
"tsup": "^8.3.0" "tsup": "^8.3.0"
}, },

View File

@ -17,9 +17,13 @@
"@entityseven/rage-fw-rpc": "0.2.5", "@entityseven/rage-fw-rpc": "0.2.5",
"zod": "^3.23.8" "zod": "^3.23.8"
}, },
"devDependencies": {
"@types/node": "catalog:"
},
"peerDependencies": { "peerDependencies": {
"@entityseven/rage-fw-shared-types": "0.2.0", "@entityseven/rage-fw-shared-types": "0.2.0",
"@ragempcommunity/types-server": "^2.1.8" "@ragempcommunity/types-server": "catalog:",
"typescript": "^5"
}, },
"description": "Package used on a server-side of your Rage:MP Server", "description": "Package used on a server-side of your Rage:MP Server",
"keywords": [ "keywords": [

View File

@ -4,8 +4,8 @@ const { timestamp, printf, colorize } = format
/** Used to log in a server console */ /** Used to log in a server console */
export class Logger { export class Logger {
private format = printf(({ message, level, timestamp }) => { private format = printf(({ message, level }) => {
return `[${new Date(timestamp).toLocaleTimeString()}] [${level}]: ${message}` return `[${new Date().toLocaleTimeString()}] [${level}]: ${message}`
}) })
private systemLogger = winston.createLogger({ private systemLogger = winston.createLogger({

View File

@ -20,6 +20,7 @@
"esModuleInterop": true, "esModuleInterop": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"strict": true, "strict": true,
"skipLibCheck": true "skipLibCheck": true,
"types": ["./node_modules/@ragempcommunity/types-server/index.d.ts"]
} }
} }

View File

@ -1,12 +1,12 @@
import { defineConfig } from 'tsup' import { defineConfig } from 'tsup'
export default defineConfig({ export default defineConfig({
entry: ['src/index.ts'], entry: ['src/**/*.ts'],
outDir: './dist', outDir: './dist',
format: ['cjs'], format: ['cjs'],
noExternal: ['rage-rpc'],
experimentalDts: true, experimentalDts: true,
splitting: false, splitting: false,
bundle: false,
sourcemap: false, sourcemap: false,
clean: true, clean: true,
}) })