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-cef": "^2.1.8",
"@ragempcommunity/types-client": "^2.1.8", "@ragempcommunity/types-client": "^2.1.8",
"@ragempcommunity/types-server": "^2.1.8", "@ragempcommunity/types-server": "^2.1.8",
"@microsoft/api-extractor": "^7.47.0",
"tsup": "^8.1.0", "tsup": "^8.1.0",
"lerna": "^8.1.3", "lerna": "^8.1.3",
"prettier": "^3.3.1", "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", "name": "rage-fw-server",
"version": "0.0.12-alpha.0", "version": "0.0.12-alpha.0",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/src/index.d.ts",
"files": [ "files": [
"dist/**/*" "dist/**/*"
], ],

View File

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

View File

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

View File

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