test server d.ts with new bundling options

This commit is contained in:
Oleksandr Honcharov 2024-06-11 00:08:21 +03:00
parent 3958fd458a
commit ff37d353bd
6 changed files with 5436 additions and 7095 deletions

View File

@ -8,6 +8,7 @@
"@ragempcommunity/types-cef": "^2.1.8",
"@ragempcommunity/types-client": "^2.1.8",
"@ragempcommunity/types-server": "^2.1.8",
"@microsoft/api-extractor": "^7.47.0",
"tsup": "^8.1.0",
"lerna": "^8.1.3",
"prettier": "^3.3.1",

4321
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -2,7 +2,7 @@
"name": "rage-fw-server",
"version": "0.0.12-alpha.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"types": "dist/src/index.d.ts",
"files": [
"dist/**/*"
],

View File

@ -1,4 +1,4 @@
import '@ragempcommunity/types-server'
/// <reference types="@ragempcommunity/types-server" />
import type {
RageFW_ICustomServerEvent,

View File

@ -9,7 +9,6 @@
"composite": false,
"target": "ES2022",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"moduleDetection": "auto",
"module": "CommonJS",
"resolveJsonModule": true,

View File

@ -5,7 +5,7 @@ export default defineConfig({
outDir: './dist',
format: ['cjs'],
noExternal: ['rage-rpc'],
dts: true,
experimentalDts: true,
splitting: false,
sourcemap: false,
clean: true,